[TP][FUN] NetherPortal - Multi World Fast Travel with a challenge v0.6.10 [803]

Discussion in 'Inactive/Unsupported Plugins' started by asdaarg, Mar 5, 2011.

  1. Offline

    asdaarg

    NetherPortal v0.6.11

    New in Version 0.6.11:
    • Added NetherPortal.portal.use permission
    Description

    I always thought things like random tping around that make the game too easy takes away the fun of playing, but in SSP fast travel constrained by 8x ratio rule was fun and reasonable advantage considering that you had to go through the nether a dangerous place to set up portals there, and if you wanted to make the travel safer you'd have to build or dig to make it safe. Unfortunately I have not seen a single plugin that does the following:

    1. Fast travel (8x rule)
    2. Auto portal creation (i.e. when you go through a portal a portal is created at the destination that is linked to it)
    3. Multiworld

    Well this plugin does. But it is also different from other plugins.

    The challenging thing is of course how to match portals. One thing I did not like in SSP was portal hopping, making it possible to easily find caves by digging down in the nether and place a portal there , and travel ultra fast by placing portals where there was solid material on the nether side. One solution to this was creating airpockets and platforms as in NetherGate. While this preserves the 8x rule, it is a bit dangerous to use, since you can destroy things you've built, and alternatively it would make it difficult to program to avoid it.

    The easy solution for me, which also adds a bit of challenge in setting up working portals, is that portals simply do not work if there is not air for the portal to be created in, the portal exits on both sides, and a platform for the portal and you to stand on when you exit it. So the challenge is to find a suitable location for a portal, but you can do it with the aid of a compass which gives a rough indication of the probability of there being a suitable location nearby, the closer the greater. The compass will also give you a guaranteed indication "X" that there is one solid block underneath and 5 air blocks above and one solid block underneath and at least 1 but at most 4 "_". The shape of the "X" indications in the following form:
    Code:
     XX
    XXXX
     XX
    
    will guarantee that a portal can be constructed here, however if you have linked the world to more than 1 other world, readings from another world could interfere and you lose this guarantee, even though it is not likely to fail. Note, the exact size of the shape depends on the ratio between your world and the target world. If you are going to the nether from a normal world with default ratios (1 to 8) the shape is 8 times bigger. Note also that each indication then represent the entire 8x8x8 cube.
    If you are going to a higher or equal scale world, the portal has to be placed so the two bottom middle blocks reside within the two middle blocks of the shape.
    If you are going to a lower scale world, a special portal indication "N" "S" "W" or "E" is needed to guarantee that a portal can be placed, indicating the direction the other bottom middle block of the portal from the block you stand on (which is one of the bottom middle blocks).

    To get any reading at all YOU HAVE TO LINK THE WORLDS using the WORLD LINK or WORLD TARGET commands for a one way link.

    Here is a top down schematic view of all blocks needed on each level of a suitable location for a portal:
    Code:
      S  |  A  |  A  |  A  |  A  |  A
     SSS |  A  | AAA | AAA |  A  |  A
     SSS |  A  | AAA | AAA |  A  |  A
      S  |  A  |  A  |  A  |  A  |  A
    
    y-1    y     y+1   y+2   y+3   y+4
    
    Where S is solid i.e. non air block and A is air block.
    Full features list (open)

    • Portals that simply work, no strange glitches or random suffocations happening. Place a block in front of the portal exit and it will refuse to teleport you.
    • Fast travel (8x rule like in single player, but ratio adjustable)
    • Auto-portal-creation at destination, so you can go back, like in single player
    • Multiworld support - create or import any number of worlds, nether or normal.
    • Permissions/Group manager support (optional)
    • Iconomy support (optional) - set the cost of portal usage
    • The (now optional) challenge to find a suitable location for a portal using compass
    • The option to create portals destructively (air pocket and platform creation)
    • The option to link any portal to any other, one way or two way.
    • Basic safe teleportation commands-adjusting to prevent fall damage and suffocation
    • Eternal night in the nether - good bye blue sky!
    • Worlds can link/target each other to allow fast travel auto portal creation and compass reading
    • Deconstruct portals faster - destroy one block and all will drop.
    • Anti-obsidian farming auto-created portals.
    • Configurable commands
    • And more.. see full list of commands

    Commands (open)

    Code:
    fullsearch <target world>                searches a 400x400 area around you of suitable portal locations to target world
    fullsearch <target world> <size>         same as above but you can specify the area size
    teleport <world>                         teleports you to worldname to the corresponding coordinate
    teleport <world> <x> <y> <z>             teleports you to worldname to specified coordinate
    location                                 lists your corresponding coordinates in each world
    world create <world> <environment>       creates or imports world of type environment (normal or nether)
    world remove <world>                     removes a world (does not delete it)
    world ratio <world name> <ratio>         sets the ratio of the world (nether is 8 by default and normal is 1)
    world center                             centers the world at the spot you stand (0,64,0 by default)
    world list                               lists all loaded worlds
    world link <world1> <world2>             link together 2 worlds (i.e. both target each other)
    world settarget <world1> <world2>        world1 targets world2 - allows fast travel auto created portals and readings from world2.
    world detarget <world1> <world2>         removes world2 from world1's target list
    portal link <portal1> <portal2>          link together 2 portals (i.e. both target each other)
    portal settarget <portal1> <portal2>     portal1 targets portal2 - stepping into portal1 teleports you to portal2
    portal detarget <portal>                 set portal points to null i.e. nowhere
    portal name <portal>                     sets name of portal you last stepped through
    portal punch through to <world>          auto creates a portal in world for the latest entered portal and with air pocket and platform if necessary
    portal list                              lists all portals in current world and their locations and targets worlds and locations
    portal setcost <cost>                    set the iconomy cost of portal you last entered
    teleport adjust                          change configuration of command based teleport to not adjust you on y axis to avoid fall damage or suffocation
    teleport to potral <portal>              teleports you to a named portal.
    world target list                        lists the target worlds of a world
    setspawn                                 moves spawn point to current location
    

    config.txt (open)

    alwayspunchthrough - sets whether to punch through to a target world automatically when you enter the portal
    tpadjust - sets whether teleportation y coordinate is adjusted so you do not take fall damage or suffocate
    respinnormal - respawn in last normal world you were in, when you die in nether
    artificialportal - workaround for portal not teleporting you when it reports the portal block to be air
    cooldown - number of milliseconds it takes for a portal to work again
    compass - the item id of the compass
    noYscale - whether Y scaling (up/down) should be used or not.

    Permissions (open)

    NetherPortal.fullsearch
    NetherPortal.world.remove
    NetherPortal.teleport
    NetherPortal.world.create
    NetherPortal.world.ratio
    NetherPortal.world.center
    NetherPortal.world.list
    NetherPortal.location
    NetherPortal.world.link
    NetherPortal.world.settarget
    NetherPortal.world.detarget
    NetherPortal.portal.setcost
    NetherPortal.portal.link
    NetherPortal.portal.settarget
    NetherPortal.portal.detarget
    NetherPortal.portal.name
    NetherPortal.portal.punch.through.to
    NetherPortal.portal.list
    NetherPortal.portal.use
    NetherPortal.teleport.adjust
    NetherPortal.teleport.to.potral
    NetherPortal.world.target.list
    NetherPortal.setspawn
    NetherPortal.portal.create
    NetherPortal.portal.destroy

    Downloads (open)

    Todo (open)

    • Fix portal not lit on the other side at times (is this happening at all anymore? a bukkit issue that got resolved?)
    Done and will be in next update:

    Changelog (open)

    Changelog:
    Version 0.6.11:
    • Added config option noYscale, is false by default. It removes scaling factor on Y axis.
    Version 0.6.10:
    • Fixed /world remove not being called
    • World remove now removes the world from MC server without needing a restart.
    Version 0.6.9:
    • Added NetherPortal.portal.use permission
    Version 0.6.8:
    • Updated iConomy support to iConomy5
    • Added compass config option for changing the id of the compass
    Version 0.6.7:
    • Fixed inaccurate teleportation when portal exit is on different axis than entrance
    • Fixed portal names not being loaded into lookup table at startup.
    Version 0.6.6:
    • Fixed scrambled portals on reload when there is at least one portal without target
    Version 0.6.5:
    • Removed nag about some old event that i imported
    • Fixed singly linked portals not being loaded correctly
    Version 0.6.4:
    • portals will not break other portals when punching through, they will "angrily spit you out" on autopunchthrough
    • cooldown option for setting how long time til a portal can be used again
    • defaults to ops only when permissions is not present
    • autocreation of config file
    • uses NSCommand now
    Version 0.6.3:
    • bug fixed old portal names remaining after being renamed
    • All portals are now given auto-generated unique names until renamed. No more indistinguishable "null"s
    • Portals can no longer be given a non-unique name
    • Right clicking a portal gives info about it as well as selects it, in the same way walking through it does.
    Version 0.6.2
    • Updated for 617
    • Fixed broken permissions
    • Removed debug messages
    • Added permissions NetherPortal.portal.create and NetherPortal.portal.destroy so you can control who can create and destroy portals
    Version 0.6.1
    • Backward incompatible support for #602 (bukkit api changed so can't help it. You can use the previous version for #556 - nothing else changed)
    Version 0.6
    • Iconomy support: portal setcost <cost> (all portals are free when iconomy is not running) Backward compatible savefile format change to accomodate cost
    • Portals are no longer auto constructed on water, lava or any other player walkable materials
    • Portals now accepts player walkable materials as portal exits (but they will not show on indication still, which only looks for air)
    • Portals are no longer auto constructed in place of active portals (although they can still be constructed on inactive portals)
    • Fixed embarassing bug causing nonsensical indication. It should make a whole lot more sense now.
    • Fixed faulty target location is not safe messages
    • Fixed teleportation to bottom of world when using tpadjust when location is solid.
    • Fixed dropped air blocks on collapse causing client to crash
    Version 0.5.5
    • Teleportation to nonexisting world causes nullpointer exception bug (harmless but pollutes your server log) fixed
    • Portal frame corner blocks drops obsidian blocks on collapse when corner blocks are not obsidian bug fixed
    • Artificial Portal block (the workaround for bukkit portal is air block error) remaining after collapse bug fixed
    • Artificial Portal blocks configurable off by default. Put "artificialportal=true" in config.txt to turn it on.
    Version 0.5.4
    • If you die in the nether you respawn in last normal world you were in. Can be turned off by putting CFGrespinnormal=false in config.txt
    • command setspawn will set the location to current location
    Version 0.5.3
    • Permissions no longer required to have a config file
    Version 0.5.2
    • workaround for portal block said to be air (randomly stops working until server restarted - bukkit issue)
    • debug messages removed
    • fixed portal creation on too high or low altitude
    • fixed linking worlds is being only oneway
    • changed indications of 80000 to X and 70000 to _
    Version 0.5.1
    • Added alwayspunchthrough config option
    Version 0.5
    • Command for Air pocket and platform creation portals for lazy people
    • Command for teleporting to a portal
    • Configuration to adjust command based teleportation target y wise to avoid suffocation or fall damage, default is on, but can be changed in configuration file
    • Command to change the above configuration on the fly
    • Command to list all portals in current world and their locations
    • removing any block of a portal result in the portal to collapse and are thereby removed from list of registered portals
    • A portal that collapses, drops all of it obsidian blocks unless it was autocreated
    • Autocreated portal collapse when untargetted
    • Autocreated portals cannot change target
    Version 0.4
    • Symmetric Portal creation criteria
    • Portal linking feature - link individual portals
    • Configurable commands
    • Commands and permissions changed
    • World linking feature - link worlds rather than all worlds being directly accessible to each
    • worlds not saved when world created or imported fixed along with some other world related commands
    • Somewhat more useful search function for higher ratio to lower ratio worlds
    Version 0.3.2
    • fullsearch no longer teleports you but lists all locations
    • fullsearch allows specification of size and default changed to 400x400
    • proper colouring of text
    • np location displays corresponding locations in all worlds
    • indication no longer displays location
    • indication no longer displays two kinds of it
    Version 0.3.1
    • Save files to keep data on how portals are linked (needed for x8 to x1)
    • x8 to x1 auto portal creation finally working
    Version 0.3
    • workaround for "Player moved wrongly" bug.
    • moon higher up now updating every 2 hours (72 seconds your time) rather than 8
    • More output, less guessing
    • Fixed some permission names
    • Fixed always displaying indication 0 [0,0(0)] before any interaction with a newly loaded
    • Reverted to 8x8x8 rather than 8x1x8 even though it means only 1/8 of the nether is within reach of a 1x1x1 world. Since 8x1x8 makes readings make less sense.
      world
    • Compass starts moving erratically and spin on full indication
    • np tp <world> <x> <y> <z>
    • np fullsearch <target world>
    Version 0.2
    • set ratio fixed.
    • Normal worlds have a default ratio of 1 and nether default 8.
    • Auto-created portals are now lit (apparently problems with it still)
    • Improved long range search giving readings inverse square proportional to manhattan distance
    • Eternal night in the nether - good bye blue sky!
    Version 0.1
    • Initial Release

    Donate (Not necessary but appreciated)
     
    Hrdkr, harakiwi and Maxwolf Goodliffe like this.
  2. Offline

    CameronK

    Yes, and I get the "unknown command" error. I tried starting over with the portals and the files ( i deleted some worlds I didnt need manually as well) but only ended up screwing up the War plugin (it's now telling me that the world "war" doesn't exist even though I can still get to it) and causing all the worlds I deleted to be regenerated.
     
  3. Offline

    asdaarg

    deleting the world is not how to remove it. Only delete the world after it has been removed. Otherwise it will regenerate. Do you get any errors in server log when you use the remove command and does the other commands work? I'm thinking this might be a plugin conflict. Try also turning off all other plugins and use the command. Or change the command so that they don't conflict.
     
  4. Offline

    CameronK

    I get the errors. "Unknown console command. Type /help for help." when I try /world remove [world]
     
  5. Offline

    asdaarg

    I mean in the server log.
     
  6. Offline

    CameronK

    That's what's in the server log...
     
  7. Offline

    asdaarg

    what exactly do you type and is it as player from the client or in server console?
     
  8. Offline

    AndrewNF

    May you change the compass to the clock?
    I use my compass a lot, and my friends keep receiving the indication messages, what is a little boring sometimes = /
     
  9. Offline

    andune

    assuming iConomy4? I just installed this tonight (great plugin, btw!) and getting a bunch of iConomy errors on boot. I'm not charging my users so it doesn't really matter (since it's optional dependency), but would be great to have an iConomy 5 update in case I do want to start charging!

    Thanks.

    Using latest version (v0.6.7), I'm getting NPE on player logout event on my server: http://pastebin.com/J9QbTpPi

    Please let me know if this is repeatable or if you need my mod list and more debug info to track it down. Thanks!

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 11, 2016
  10. Offline

    asdaarg

    I could add the option to choose what item to use, especially now that adjusting the compass needle doesn't work anyway.

    I still have 4.6, I guess its time to update if you start getting errors.

    This typically occurs due to some other error at startup. Could you have a look at post the first error that occurs?

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 11, 2016
  11. Offline

    andune

    Sure, it's a ClassDefNotFound for iConomy:

    http://pastebin.com/hKAvwSMF

    That's it, only other errors are the PLAYER_QUIT NPE's. Thanks for looking into it.
     
  12. Offline

    asdaarg

    Alright, will try to update it.
    Edit: huh? Now there are multiple banks :( What to do?
    Edit: Apparently players have holdings now that aren't bank accounts, so I'm going to "deduct" it from the holdings.
     
  13. Offline

    andune

    Thanks I'll update and see if it cleans up the errors!
     
  14. Offline

    u83rju1c3

    okay just updated netherportal and:


    Code:
    19:41:33 [SEVERE] Could not pass event PLAYER_MOVE to NetherPortal
    java.lang.NullPointerException
            at com.asdaarg.bukkit.NetherPortal.NetherPortal.evtPlayerMoved(NetherPor
    tal.java:310)
            at com.asdaarg.bukkit.NetherPortal.NetherPortal$2.onPlayerMove(NetherPor
    tal.java:772)
            at org.bukkit.plugin.java.JavaPluginLoader$7.execute(JavaPluginLoader.ja
    va:268)
            at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.jav
    a:59)
            at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.j
    ava:289)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:131)
            at net.minecraft.server.Packet10Flying.a(SourceFile:126)
            at net.minecraft.server.NetworkManager.a(NetworkManager.java:196)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:75)
            at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:372)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:287)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)
    and:

    19:38:29 [INFO] This server is running Craftbukkit version git-Bukkit-0.0.0-729-
    g5ee3f0f-b766jnks (MC: 1.5_02)
    19:38:40 [INFO] NetherPortal 0.6.8 enabled.
     
  15. Offline

    asdaarg

    Typically occurs when there has been a prior error during startup. Can you check and see if there is an earlier error and post it?
     
  16. Offline

    andune

    @asdaarg ok it's working good now, no more exceptions on load or NPE's. Thanks!
     
  17. Offline

    MathijsNL

    As far as i know essentials has nether support with automatic portal generation on the other side. Works flawless on my server.
     
  18. Offline

    Jargon

    Hi again! Don't suppose any progress has been made on this? Or is this a feature you're not interested in adding?
     
  19. Offline

    asdaarg

    Perhaps, its not very high priority at the moment, but if there is more interest in it then yes.
     
  20. Offline

    andune

    First of all, kudos for a great mod. Was using the built-in essentials nether and it was giving me all sorts of problems (weird portal issues, people getting kicked for by anti-fly for using nether, etc), so I switched to this and we've been good since! I appreciate the quality mod!

    One feature request: since I try to keep a fairly vanilla SMP server, the only permission I've given my players is to create/destroy portals. However, as an anti-griefer measure, I used to NOT let guests use portals, they had to be promoted to Newbie first to use them. I don't seem to have that capability with this mod. Can you please add a NetherPortal.use permission or such to allow me to do this? Or if you don't want to cause issues with your existing user base (by adding a permission they all have to go add too), maybe a NetherPortal.denyuse that allows me to deny use to my guests?

    Thanks!
     
  21. Offline

    asdaarg

    Sounds good, should be easy to add.
     
  22. The plugin dont work with runecraft.

    In the second world the runes doesn't work, only in the original world
     
  23. Offline

    Kiro_Dragoon

    I seem to have run into a slight problem... the /world remove command just returns "Invalid World, Possible worlds are the numbers 0 through 3. You can also type the name of a specific world."

    the world is "world" which i have no idea how it was created, never wanted it... i typed "/world remove world" and i got the statement from above... I just updated it 20 minutes ago, so the plugin is up to date.
     
  24. Offline

    andune

    Awesome, thanks for the fast response! Looking forward to a release with this feature.

    Thank you, new permission works great! Appreciate it!

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 11, 2016
  25. Offline

    Atticusmas

    WTF the /world commands DONT work WTFWTFWTF​
     
  26. Offline

    asdaarg

    That's defintively a conflict, my plugin doesn't say anything like that. rename the command in config.txt to resolve it
     
  27. video tutorial?
     
  28. Offline

    ben1996123

    How do I change the time on other worlds?
     
  29. Offline

    asdaarg

    There is no such feature in NetherPortal. You can use /time set <number> after you've teleported there.
     
  30. Offline

    AlienWar

    hey !
    i create a portail.
    when I go in there wrote :
    the portail refuses to teleport you.

    i am op and i have full permissions.
     
  31. Offline

    harakiwi

    is there a trick to use the NetherPortal-Nether world as my 1.6.3 Nether?
    everytime i start my server it creates a new folder "world_nether"
    i renamed the old "nether" to "world_nether" and started the server ... it creates a new folder called "nether"
    wtf?
    so i cleared the server-created "nether" folder, moved averything from the 1.5x nether in it ... again it creates a new folder world_nether
     

Share This Page