[INACTIVE][TP] Nether v1.2 (2.0 in progress) - Super-Simple Nether Portals [1000]

Discussion in 'Inactive/Unsupported Plugins' started by SpaceManiac, Feb 14, 2011.

  1. Offline

    SpaceManiac

    Nether - Super-Simple Nether Portals
    Version: v1.2
    Tested on: should work on all RBs 450+; tested on 766. DOES NOT work on 1060.

    I'm updating Nether very soon to work on 1060+ and also adding some nifty new features!

    I use Bukkit, but have no plugins except a bit of my own tinkering installed. When multiworlds came out I decided that the denizens of my server could use some Nether action, but every plugin I could find came with too many frills, so I wrote up a simple one to use. There is no configuration and no commands. Figured I'd post it here in case somebody found it useful. It's basically designed to be used when you just want to add a classic Nether to your currently single-world server.

    Features:
    • World coordinates are scaled 8x like in single player.
    • No configuration, commands, or persistent storage - drop and go!
    • Teleportation is smooth and usually lag-free (especially when the chunks on the other side are already loaded)
    • Portals are auto-created when teleporting through a new portal, carving a small cavern and placing a platform if needed.
    • Dying in the Nether teleports you back to the Earth spawn!
    Known Issues:
    • Portal frames are not detected, only active portals, so if you try to portal through to an inactive portal, a new portal might be generated a few blocks off.
    • Both sides of a portal must be uncovered or there is a risk of suffocation when teleporting in.
    • The area carved around new portals can sometimes cut into existing structures if you're not careful, though this is unlikely.
    • Ghast noises can still be heard on Earth in some cases (Bukkit bug).
    Download: Nether v1.2
    Source code: GitHub (MIT License)

    Changelog:
    Version 1.2 (April 13)
    • Portals no longer make a giant platform and air bubble and instead seek vertically for a suitable location (thanks Acru).
    • The Nether world name is now configurable (thanks Acru).
    • The Nether world is now loaded on startup instead of first portal use.
    Version 1.1 (February 25)
    • Removed some vestigial debugging methods.
    • Dying in the Nether now respawns players on Earth.
    • Fixed TSLPC.
    Version 1.0 (February 15)
    • Initial release.
     
  2. Offline

    dlwhdrlf

    hey when ever i teleport to nether, ghost start blowing up everywhere!
    how do i stop ghost from exploding?
     
  3. Offline

    Acru

    If you mean me, I have my own plugins to work on at the moment~
    I only forked off my own version as I liked this plugin but wanted a bit more, for the server I admin.
    Perhaps SpaceManiac will return soon and pick up again?
    [MERGETIME="1299967981"][/MERGETIME]
    Heh, use another mod to either kill them or stop them from spawning. Or a general explosion nerf.
     
  4. Offline

    dlwhdrlf

    what mod might that be?
     
  5. Offline

    Acru

    I have no idea! You'll have to look for yerself. I just try and stay under cover, or else arrow the ghasts to death. :3
     
  6. Offline

    Incendia

    Ah, darn. He doesn't seem to be coming back, though he's in irc all the time :/
    Because I also just realized this needs a warmup and cooldown. the warmup because some people like to have a nethergate as their entrance and since this is instant it breaks their house (just stand in the portal for 5 seconds for it to port instead of instant) and a cooldown because I walked in a portal and immediately teleported back because I stepped forward xD I just realized a warmup would fix that also.
     
  7. Offline

    MisterSpuds

    Please help, I have installed this and it works fun, I can go into nether and everything, I myself the admin, cannot mine and block, it comes back as if experienceing lag, I can place blocks but not mine it. Other players in the server can mine (etc...), but I cannot.

    Can someone help me? [​IMG]
     
  8. Offline

    Minorius

    Hey guys, i have a question, is there a way to disable ghasts ?
    cuz they cause horrible laggs ...
     
  9. Offline

    Dreadreaver

    if u use Craftbukkit Build before 440 update and this issue should be fixed, otherwise it could be some kind of spawnprotection
     
  10. Offline

    Matthew Uecker

    This plugin is nice as I like to have Nether capability on my server.

    But it does have issues with SpawnControl, lots of people have trouble and often die from suffocation when they go in the Nether and try to /home or /spawn out.

    Also sometimes invisible ghasts spawn in the real world and kill players. I always just remove them but they seem to come back a lot more often than I think would be just from being near a portal.

    Other than that very nice [​IMG]
     
  11. Offline

    Vyce

    It works great, but my player skin resets when I go between the real world and the nether.
     
  12. Offline

    dumble99

    whenever I leave the nether, i just fall into the void and die :( and seeing as i have tombstone (death chest) plugin installed, i find my chest at the top of the world .......

    Any suggestions?
     
  13. Offline

    LucidLethargy

    It is my belief that this has been causing crashes on my server and making things pretty rough on me as an admin. Today I finally concluded this when I went to and from the nether 5 times through a portal. This spiked my ram on my test server (with only me online) from 13% to 40%. It did not revert until I logged off and back on. I am on Recommended Build 556, but the crashes all happened back on 531.
     
  14. Offline

    Brettflan

    I've made some changes in my fork of the project which I think warrant another release. I've labeled this release as 1.2, but it is most certainly unofficial.
    http://wimbli.com/minecraft/Nether_1.2_unofficial.zip

    It includes most of Acru's changes, particularly the vastly improved portal creation code, with these notable differences (some by dakotahawkins):
    • Made nether world size ratio/scale vs. the normal world modifiable in config.yml, defaults to 8 of course.
    • When exit portals are automatically created, their X/Z orientation will match the origin portal. (by dakotahawkins)
      Similarly, the direction you are facing will be maintained, the same direction you were facing when you entered the origin portal.
    • Search method for finding an exit portal in the normal world (from a portal in the nether) used the wrong scale. (fixed by dakotahawkins)
      An offset correction was also needed for negative coordinates. (fixed by dakotahawkins)
    • Made players teleport to directly inside the exit portal, so a safe teleport location is ensured. Acru's code for finding a safe exit location has been accordingly left out since it's not needed.
      The target location will be in the dead center between the 2 portal columns, but offset forward enough that your face will be poking out and view forward will be unobscured.
      You will only be sent back through a portal once you've first moved out of the exit portal, so you can't get stuck in an infinite portal loop.
    • Now both portal block columns are checked for a corresponding portal on target world; mostly applies for nether->normal, keeps from creating an unneccesary additional portal in the target world.
    I've tested it fairly thoroughly, but it's always possible that some bugs escaped. So, use
     
  15. Offline

    Arcwolf

    Something doesnt seem right about how this unofficial version is working. Example, I create a portal on earth at -689, +647, 85

    Creates a nether portal to -86, +647, 85

    Enter that new portal in the nether and it takes me to

    -695, +5177, 77 earth. WTH?

    That new portal takes me back to the correct -86 portal in the nether but the first portal can not be returned to from the nether. -689 earth is one way?

    :confused:

    Thats not suppose to be how the nether works right? I mean, I duno, I dont ever play Single player so <shrugs> The 1.1 version two portals link I just kind of expected this to act the same way.
     
  16. Offline

    Shenlong

    Umm, this is creating portals WAY off. I went in a portal I had created before updating and then when I went back I was in an area that hadn't even been created yet. The two portals I already had are now going to completely different places than before.
     
  17. Offline

    baunegaard

    Confirmed. Something is really weird with this unofficial release
     
  18. Offline

    SpaceManiac

    Right, so I should be able to get things sorted out now. I was a week or so without any way to do development but I am now in the process of going over Acru's changes and field-testing them.

    I notice a lot of people having bugs - stuff like insane lag is a CraftBukkit issue that I can't easily fix, and the void death thing is also some weird, hard to reproduce lag-related CraftBukkit bug (since normally the server is supposed to prevent players from ever moving through solid objects).

    The issues in Brettflan's build seem to be stemming from some of dakotahawkins' code that change the way the portal locations are calculated (using chunk borders rather than raw coordinateS), but I can't see at a glance what's causing the wildly incorrect portal locations.
     
  19. Offline

    Arcwolf

    Cool beans! Right now the unofficial version just isnt going to work for me on my server. That version wants to create an entirely new Nether. I think its the nether associated with the earth world the nether port was created in. So it doesnt even seem to use the world which 1.1 creates. Which for me sucks because I only allow 1 nether portal in my earth world and its in a heavly shielded slip gate facility and the nether side is also very built up and shielding. Enough so that I'd have to spend a couple of hours rebuilding in the nether just to get things back to ghast proof levels again. Not cool. I'd really prefer to use the same world as before.

    I noticed that the only way to get 1.2 unofficial to at least attempt to work correctly was to completely delete the netherworld folder and let it recreate it. Otherwise it would try to regenerate a new world every time a player tried to port into the nether from the nether portal. The portals never connected right though. With or without the 1.1 netherworld folder. Duno what thats all about...

    So, I'll wait for something official. 1.1 is working fine for me right now anyway. I'm patient...
     
  20. Offline

    Incendia

    @SpaceManiac don't forget to add a configurable warmup before teleporting in the new version, mmmmmmkayyyyy? :p

    And permissions on who can make (activate rather) portals really would be nice...
     
  21. Offline

    Shasharala

    I'm excited for a more offical release soon. =D
     
  22. Offline

    Brettflan

    Are you sure you're using my unofficial release? Also, I assume that by "-689, +647, 85" you mean "-689, 85, +647"? The vertical axis Y should be the middle one.
    Anyway, I just retested a few locations using my release, including the one you just indicated ("-689, 85, +647" XYZ location), and they all teleported to the correct Nether coordinates according to the 1:8 ratio. Your example lead to "-86, 78, 80" in my test. I went back and forth between worlds and the portals all linked up correctly.
    A list of tested results, tested both ways, using the default 8:1 ratio (arrow indicates origin portal to automatically created portal):
    normal world <==> nether world
    800, 80, -400 ==> 100, 46, -50
    -1600, 66, 12 ==> -200, 90, 1
    -689, 85, 647 ==> -86, 78, 80
    -519, 94, 376 <== -65, 78, 47

    These were just the portals I tested today after reading your post, as I indicated I have actually tested it a fair bit before and created several portals back and forth.

    Portals which matched up in the 1.1 version indeed might not match up in my unofficial 1.2 release above.
    For one thing, when using a portal in the normal world to go to the nether in 1.1 (SpaceManiac's release or Acru's), it searches for a portal within 16 blocks of the destination location in the nether by using findPortal(). It should in fact just link up with a single X/Z position in the nether instead.

    I should also mention that I've tested between completely shutting off and restarting the server several times and it never re-created the nether world, and all portals continued to match up correctly. I was solely using a nether world created by my version, though, I'll give you that.
    Another possible item of confusion, when the server has been restarted, the first person through a portal into the nether world will get the message "First load of world netherworld, please wait". It's not (necessarily) creating the world when it says that, it's just indicating the world isn't loaded up yet since the server has been restarted.
     
  23. Offline

    Iaconic

    Thank you so much for this!!
     
  24. Offline

    Arcwolf

    I used Zan's Minimap mod for the locations it simply displays coordinates with no XYZ information. Therfore I didnt know which was which.
    I dont know what to say. I deleted 1.1 plugin as well as the 1.1 world folder and reinstalled a backup of my world before I used 1.2. I created a gate with 1.2 and the above is what happened. I then repeated the procedure by deleting the newly created config file and the newly created netherworld folder. I then reinstalled the backup of my world and re-attempted to create a nether portal. Again it did the same thing with the EXACT same coordinates per my post.


    Understood, I made that discovery upon my first attempt to just plug and play with the unofficial version. Hence my test above and its discoveries which I posted about.

    Then that is indeed confusing and possibly a mistake on my part. However I cant be for sure because I didnt build anything in the new nether to test and see if it was still there between reloads and when I saw the "First load of world..." prompt.

    In any case, what I saw and what occurred I cannot explain. I can only report. Yes I installed the 1.2 and yes 1.1 was fully removed. Why the links went to vastly incorrect coordinates I haven't a clue. Maybe its because my world is a world created from like 2 months before the Halloween update. Who knows, but the fact remains 1.2 just doesnt work right for me. I can live with that because 1.1 works fine for me right now and since I dont need more then 1 portal I dont need any new features. I'm merely reporting in hopes of helping you fix a potential problem. If its only my problem well then so be it, ignore me then there is nothing to fix. Otherwise there is something you may be overlooking.

    <shrugs> Its your code... perhaps some debugging build I could run to get more information on the plugin's inner workings and its interaction with my obviously unusual situation?
     
  25. Offline

    Famzilla

  26. Offline

    Brettflan

    And I appreciate the feedback, I just was trying to make it clear that I couldn't duplicate your results.

    However, after enabling debugging output, making many more portals back and forth, and digging through the code, I found the source of the problem you were running into. It was indeed a math error on my part for secondary portal column checking in normal->nether portals.
    There's also an additional "debug-output: false" option I added to config.yml which (if set to "true") will output debug info to the console. Some of the debug output was added by dakotahawkins earlier, some of it I added myself.

    After that testing, I did find that it still seems to create portals in mid-air a little too often for some reason. I'm going to try to pin that one down and will post an updated release later.


    EDIT: OK, here is an updated unofficial version:
    http://wimbli.com/minecraft/Nether_1.2.1_unofficial.zip

    Changelist:
    • fixed a bad math error in normal->nether portal search which could result in badly skewed X or Z value on secondary portal column search
    • also made sure secondary portal column search doesn't override original target destination if it's not viable, which was possible and needed fixing as well
    • added another config.yml option "debug-output: false" which, when set to "true", will have the plugin output extra debug info to the console
    • made existence of solid blocks to stand on a little more important for finding a good Y position during portal creation, and made it accept a location without needing a perfect "quality points" score; results in hopefully much fewer instances of portals created floating up in the sky in the normal world
    For the debug output to console, here's an example (the nice portal search maps are courtesy of dakotahawkins):
    Code:
    01:35:22 [INFO] NETHER_PLUGIN: Brettflan just entered a portal at: -119, 65, 8
    01:35:22 [INFO] NETHER_PLUGIN: Brettflan: Using portal block: -120, 65, 8
    01:35:22 [INFO] NETHER_PLUGIN: Brettflan: Portal is X oriented.
    01:35:23 [INFO] NETHER_PLUGIN: Brettflan: using coordinates at (X: -15, Z: 1).
    01:35:23 [INFO] NETHER_PLUGIN: Brettflan used portal to NETHER world
    01:35:40 [INFO] NETHER_PLUGIN: Brettflan just entered a portal at: -3, 64, 3
    01:35:40 [INFO] NETHER_PLUGIN: Brettflan: Using portal block: -3, 64, 2
    01:35:40 [INFO] NETHER_PLUGIN: Brettflan: Portal is Y oriented.
    01:35:40 [INFO] NETHER_PLUGIN: Brettflan: Starting portal search at (X: -20, Z: 20).
    01:35:40 [INFO] NETHER_PLUGIN: Brettflan: ^>>>>>X
    01:35:40 [INFO] NETHER_PLUGIN: Brettflan: .^.>.>
    01:35:40 [INFO] NETHER_PLUGIN: Brettflan: ^.^.>.
    01:35:40 [INFO] NETHER_PLUGIN: Brettflan: .^.S.v
    01:35:40 [INFO] NETHER_PLUGIN: Brettflan: ^.<.v.
    01:35:40 [INFO] NETHER_PLUGIN: Brettflan: .<.<.v
    01:35:40 [INFO] NETHER_PLUGIN: Brettflan: <.<.<.
    01:35:40 [INFO] NETHER_PLUGIN: Brettflan:
    01:35:40 [INFO] NETHER_PLUGIN: Brettflan: found portal at (X: -17, Z: 23).
    01:35:40 [INFO] NETHER_PLUGIN: Brettflan used portal to NORMAL world
    01:36:03 [INFO] NETHER_PLUGIN: Brettflan just entered a portal at: -72, 65, 64
    01:36:03 [INFO] NETHER_PLUGIN: Brettflan: Using portal block: -72, 65, 64
    01:36:03 [INFO] NETHER_PLUGIN: Brettflan: Portal is X oriented.
    01:36:03 [INFO] NETHER_PLUGIN: Brettflan: forcing coordinates (X: -9, Z: 8).
    01:36:03 [INFO] NETHER_PLUGIN: Creating new portal, X oriented. Searching along Y (vertical) for a good spot.
    01:36:03 [INFO] NETHER_PLUGIN: Creating new portal at (X: -9, Y: 78, Z: 8)
    01:36:03 [INFO] 1, 0
    01:36:03 [INFO] NETHER_PLUGIN: Brettflan used portal to NETHER world
    01:36:22 [INFO] NETHER_PLUGIN: Brettflan just entered a portal at: -8, 78, 8
    01:36:22 [INFO] NETHER_PLUGIN: Brettflan: Using portal block: -9, 78, 8
    01:36:22 [INFO] NETHER_PLUGIN: Brettflan: Portal is X oriented.
    01:36:22 [INFO] NETHER_PLUGIN: Brettflan: Starting portal search at (X: -68, Z: 68).
    01:36:22 [INFO] NETHER_PLUGIN: Brettflan: ^>>>>>>
    01:36:22 [INFO] NETHER_PLUGIN: Brettflan: .^.>.>v
    01:36:22 [INFO] NETHER_PLUGIN: Brettflan: ^.^.>.v
    01:36:22 [INFO] NETHER_PLUGIN: Brettflan: .^.S.vv
    01:36:22 [INFO] NETHER_PLUGIN: Brettflan: ^.<.v.v
    01:36:22 [INFO] NETHER_PLUGIN: Brettflan: .<.<.vv
    01:36:22 [INFO] NETHER_PLUGIN: Brettflan: <.<.<.v
    01:36:22 [INFO] NETHER_PLUGIN: Brettflan: X<<<<<v
    01:36:22 [INFO] NETHER_PLUGIN: Brettflan: found portal at (X: -71, Z: 64).
    01:36:22 [INFO] NETHER_PLUGIN: Brettflan used portal to NORMAL world
    01:36:29 [INFO] NETHER_PLUGIN: Brettflan just entered a portal at: -72, 65, 64
    01:36:29 [INFO] NETHER_PLUGIN: Brettflan: Using portal block: -72, 65, 64
    01:36:29 [INFO] NETHER_PLUGIN: Brettflan: Portal is X oriented.
    01:36:29 [INFO] NETHER_PLUGIN: Brettflan: using coordinates at (X: -9, Z: 8).
    01:36:29 [INFO] NETHER_PLUGIN: Brettflan used portal to NETHER world
    01:37:57 [INFO] NETHER_PLUGIN: Brettflan just entered a portal at: -23, 79, 26
    01:37:57 [INFO] NETHER_PLUGIN: Brettflan: Using portal block: -23, 79, 26
    01:37:57 [INFO] NETHER_PLUGIN: Brettflan: Portal is X oriented.
    01:37:57 [INFO] NETHER_PLUGIN: Brettflan: Starting portal search at (X: -180, Z: 212).
    01:37:57 [INFO] NETHER_PLUGIN: Brettflan: ^^>>>>>>
    01:37:57 [INFO] NETHER_PLUGIN: Brettflan: ^.^.>.>v
    01:37:57 [INFO] NETHER_PLUGIN: Brettflan: ^^.^.>.v
    01:37:57 [INFO] NETHER_PLUGIN: Brettflan: ^.^.S.vv
    01:37:57 [INFO] NETHER_PLUGIN: Brettflan: ^^.<.v.v
    01:37:57 [INFO] NETHER_PLUGIN: Brettflan: ^.<.<.vv
    01:37:57 [INFO] NETHER_PLUGIN: Brettflan: ^<.<.<.v
    01:37:57 [INFO] NETHER_PLUGIN: Brettflan: <<<<<<<v
    01:37:57 [INFO] NETHER_PLUGIN: Brettflan: Starting portal search at (X: -172, Z: 212).
    01:37:57 [INFO] NETHER_PLUGIN: Brettflan: ^^>>>>>>
    01:37:57 [INFO] NETHER_PLUGIN: Brettflan: ^.^.>.>v
    01:37:57 [INFO] NETHER_PLUGIN: Brettflan: ^^.^.>.v
    01:37:57 [INFO] NETHER_PLUGIN: Brettflan: ^.^.S.vv
    01:37:57 [INFO] NETHER_PLUGIN: Brettflan: ^^.<.v.v
    01:37:57 [INFO] NETHER_PLUGIN: Brettflan: ^.<.<.vv
    01:37:57 [INFO] NETHER_PLUGIN: Brettflan: ^<.<.<.v
    01:37:57 [INFO] NETHER_PLUGIN: Brettflan: <<<<<<<v
    01:37:57 [INFO] NETHER_PLUGIN: Creating new portal, X oriented. Searching along Y (vertical) for a good spot.
    01:37:57 [INFO] NETHER_PLUGIN: Creating new portal at (X: -184, Y: 79, Z: 208)
    01:37:57 [INFO] 1, 0
    01:37:57 [INFO] NETHER_PLUGIN: Brettflan used portal to NORMAL world
    01:38:16 [INFO] NETHER_PLUGIN: Brettflan just entered a portal at: -184, 79, 208
    01:38:16 [INFO] NETHER_PLUGIN: Brettflan: Using portal block: -184, 79, 208
    01:38:16 [INFO] NETHER_PLUGIN: Brettflan: Portal is X oriented.
    01:38:16 [INFO] NETHER_PLUGIN: Brettflan: using coordinates at (X: -23, Z: 26).
    01:38:16 [INFO] NETHER_PLUGIN: Brettflan used portal to NETHER world
     
  27. Offline

    Arcwolf

    Thats cool, I'm glad I could help in some way. I apologize if I came off a little blunt or appeared to offend.

    I'll give the new version a test later today. Here's hoping that it was indeed a bug in the plugin and not something intrinsic to my world.

    Cheers!
     
  28. Offline

    UncleGeorge

    Is it normal that there is a "sky" and clouds in the Nether? Like I can see the blue or black sky in the horizon, from the vids I saw of the Nether on youtube, it seems like its more should be a sort of "red fog". Is there a way to change that?
     
  29. Offline

    iFraank

    I found a huge bug that all my player exploit, when you die in nether and respawn in the normal world, you get infinite health. I've tested this without any other plugins and its this plugin.
    I am running latest recommended and running with monsters and health on.
     
  30. Offline

    Incendia

    Does yours have a warmup? So far everyone's nether plugin has been instant, I want a small warmup (5 seconds) like sp nether (I know you can't get the clientside effect, but that doesn't really matter, a simple "entering the nether" text message would suffice)
     
  31. Offline

    Brettflan

    Mine doesn't have a warmup, no. I've got it working pretty much how I like it, but since I do know how to do that... I might give it a shot.

    It's currently not possible due to client limitations. Perhaps after some official updates by Mojang.

    I haven't noticed this happening, but I'll test for it later to make sure.

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

Share This Page