[MECH] Elevators [BukkitDev]

Discussion in 'Archived: Plugin Releases' started by Cybran, Jan 27, 2011.

  1. Offline

    Cybran

    [​IMG]

    The plugin will be continued at dev.bukkit.org!
    Want to help? Sign up as an alpha- or beta-tester!


    What this plugin does:

    It creates vertical moving elevators, which can be controlled by redstone-powered blocks.

    Features (open)

    • Creating elevators with an individual size (square or rectangle shape).
    • Floor-management: define your own floors with their own names, being able to call an elevator on every floor by – per example – pressing a button.
    • Movement-triggers: control the elevator with redstone circuits or buttons or any other redstone-powered block!
    • Elevator movement-controls: have different buttons for moving the elevator up and down, skip floors by pressing a control button several times.
    • Command-queuing: the elevator will move to the different floors one after the other if it gets more than one command at the same time.
    • Build on the elevator whatever you want (nearly ;))
    • Use redstone outputs to link the elevator to iron doors or more complex circuits.
    • Connect the elevator to your minecart system!
    • Use the elevator as something else, like a lava door.
    • Build automtically opening/closing glass doors around or on your elevator!
    • Protect your elevator with a password or user restriction.
    • Permissions support!

    How to install (open)

    • The server mod:
      Just copy the Elevators.jar into your plugins/ folder. That's it. You can modify the config later (See section Tutorials>Configuration).
    • ???

    FAQ (open)

    • Q: I'm completely new to this plugin! What shall I do?
      A: First, install the mod (see How to install), then you can read the basic tutorials in the tutorial section below.
    • Q: I'm sick of using buttons all the time to control the elevator! I want to include my redstone circuits!
      A: You don't have to use buttons! You can right-click any type of redstone-powered block! The buttons are just the easiest way.
    • Q: I want to build several buttons or other blocks for the SAME floor! How to do it?
      A: Have a look at the "direct" command. It links other blocks to an already existing floor.
    • Q: I try to build a lava door, but the lava is transported with the elevator! How can I let displace the lava by the elevator?
      A: At first, build the elevator like it should be later. Then, use the command /elev lock. Now your elevator will not grab any blocks or fluids placed later on it.
    • Q: Is there a size limitation for the elevator's shape?
      A: Yes. Normally, there is a maximum for the area of 25 blocks. But: you can change this limitation in the config.

    Command usage & Permissions (open)

    [...] = optional parameter. ...|... = select ONE of the values, they all mean the same. <...> = put your own values here.

    /elevators|elevator|elev <command from the list below>

    The basic commands:
    • help|? - shows the commands.
    • permission|permissions - shows your current permission level.
    • create - creates a new elevator at your current position.
    • remove - removes an existing elevator from your current position.
    • call|floor <Floorname> - creates a new floor with the given Floorname.
    • up - creates a new UpBlock, right-click to select block after command.
    • down - creates a new DownBlock, right-click to select block after command.
    • go|direct [<Floorname>] - creates a new link to the given floor or the nearest. Toggled by redstone input. Right-click a block.
    • redstoneout [<Floorname>] - creates a redstoneoutput, right-click to select the output block after. Has to be a lever.
    • glassdoor [<Floorname>] - Type command and place glass blocks. A door will be created to the given floor or the nearest. Use /elev finish to finish and disable glass block listener.
    • glassremove [<Floorname>] - Removes all glass blocks linked to the given floor or from the cabin when no floor is specified.
    • finish - Finishes an action (like glassdoor placement).
    • info - creates debugging info file. CONSOLE ONLY.
    • lock - locks the cabin blocks to stop updating before every movement.
    The more advanced ones:
    • help|? - shows the commands.
    • permission|permissions - shows your current permission level.
    • create [password <Password>] [users <Username1> <Username2> <UsernameN>]- creates a new elevator at your current position, optional with password or user whitelist.
    • remove - removes an existing elevator from your current position.
    • call|floor <Floorname> [password <Password>] [users <Username1> <Username2> <UsernameN>] - creates a new floor with the given Floorname, optional with password or user whitelist.
    • up - creates a new UpBlock, right-click to select block after command.
    • down - creates a new DownBlock, right-click to select block after command.
    • go|direct [<Floorname>] - creates a new link to the given floor or the nearest. Toggled by redstone input. Right-click a block.
    • redstoneout [<Floorname>] - creates a redstoneoutput, right-click to select the output block after. Has to be a lever.
    • glassdoor [<Floorname>] [direction <DirectionIdentifier>] - Type command and place glass blocks. A door will be created to the given floor or the nearest. Use /elev finish to finish and disable glass block listener. You can use a DirectionIdentifier (left,right,up,down,splitH,splitV) to set the opening direction manually.
    • glassremove [<Floorname>] - Removes all glass blocks linked to the given floor or from the cabin when no floor is specified.
    • finish - Finishes an action (like glassdoor placement).
    • info - creates debugging info file. CONSOLE ONLY.
    • pw|password [<Floorname>] [password <Password>] - Overrides password protection for the given floor or the whole elevator.
    • user [<Floorname>] [users <Username1> <Username2> <UsernameN>] - Overrides user whitelist for the given floor or the whole elevator.
    • give [<Username>] - changes the owner of the elevator. Once changed, a reset is not possible.
    • lock - locks the cabin blocks to stop updating before every movement.
    Permission nodes:
    • elevators.builder - basic permission level, user can set up elevators.
    • elevators.advancedbuilder - advanced permission level, user can protect elevators with password / user list.
    • elevators.operator - ignores owner, passwords and user restrictions, can modify everything.

    Tutorials (open)

    Basic setup:
    • Prepare a shaft – size can be between 1x1 up to 5x5. There has to be air in the whole shaft(means also no ladders and no torches directly on the wall).
    • Build a plain of any block type in your shaft as the elevator’s ground. (I would recommend to use a block type that is not placed anywhere in the shaft again with the same shape.)
    • Stand on the ground while typing /elevator create
    • A new floor and a new “CallBlock” (to call the elevator later) are created simultaneously by first typing /elevator call <Floorname> and then right-clicking on a (already existing!!) button. The elevator will halt 2 stones below this block
    • You have to create Up- and DownBlocks (to control the elevator) on every floor OR (better) inside the elevator. Type /elevator up or /elevator down , then right-click on a button (again the buttons have to be created BEFORE).
    • Create as many floors as you want. Besides: the control-blocks can be up to 2 blocks away from the elevator
    • Now you are ready to use the elevator!
    • If you want to remove floors or control-blocks, simply destroy the blocks.
    • If you want to remove the whole elevator, stand nearby and type /elevator remove.
    Configuration:
    • After the first server startup with the plugin v1.3+, a new file named Configuration.txt is created in plugins\Elevators\
    • Feel free to modify the values in there. But keep to the given format.
    • restart the server (or use /reload command) to apply the changes.
    Enhanced redstone:
    • If you want, you can extend your calling mechanism, per example by using stone plates connected to redstone wire.
    • To make your elevator moving to a specific floor, type /elevator direct <Floorname> and right-click any redstone wire or button or stone plate...
    • You can also use /elev direct WITHOUT the floorname. This will lead to the next floor in range.
    • If you want, you can add a redstone output to the elevator. Build a LEVER near to the elevator, then type /elev redstoneout and right-click the lever. Connect the lever to your circuit with redstone wire.
    Glass doors for your elevator:
    • Type /elev glassdoor [<Floorname>] [direction <DirectionIdentifier>] to start.
    • You can use a DirectionIdentifier (left,right,up,down,splitH,splitV) to set the opening direction manually. left and right are seen from outside the elevator. splitH and splitV will let the door split horizontally or vertically from the center.
    • Now build glass blocks around the elevator or on the elevator. Use any shape you want.
    • Type /elev finish to stop adding blocks as doors.
    • Call the elevator again to the floor where you built the door. Your created door opens.
    • The door is now activated and will open and close automatically. Have fun!
    Elevator protection (advanced builders):
    • every created elevator has an owner. Only the owner can modify the elevator. To change the owner, type "/elev give <newownername>". To enable modification for every player, type "/elev give". This will remove any owner protection.
    • use the optional parameters to create an elevator/floor with protection, p.e. "/elev floor testing floor password ultimatepassword users NTcomputer Notch" would create a new floor named "testing floor" with the password "ultimatepassword", only available for the users NTcomputer and Notch.
    • modify your protection settings with the commands /elev user and /elev password, p.e.: "/elev user testing floor users Admin" will override the previous settings to only allow user Admin the usage.
    • remove protection settings? Very easy: use /elev password or /elev user without any parameters or floorname only to reset the protection.
    • so far the whitelist, but I want to create a blacklist. How to? Like this: "/elev user testing floor users * -griefer" (no, there isn't any space between the minus and the player - damn line break). * means everybody can use it, the "-" before a name indicates you hate this player and don't want to let him destroy your secret room on the testing floor ;)
    • I have set up the protection, but I'm never asked for a password?! This can have several reasons: 1.) You are an operator. 2.) You have the permission elevators.operator 3.) You are the owner of the elevator. Just let somebody else try, he WILL get a prompt. 4.) You are standing near the elevator while another player tries to use it. He/she won't be blocked.

    Known issues (open)

    • It is difficult to move yourself or turn around while moving with an elevator.
    • Don't use doors on an elevator! They will "clone" items.
    • Pressure plates don't work as Up- /DownBlocks directly. Build at least two redstone to them, type the command and right-click the end of the wire.
    • Avoid using up/down in circuits. This will force any selected redstone-block to remain in off-state. (You can use "direct", though!)

    Future Ideas (open)

    • name elevators - v1.4.4
    • signs with current floor - v1.4.5
    • allow any block type for doors - v1.4.5
    • iConomy support - coming in v1.5

    Changelog (server mod) (open)

    • Version 1.4.3 (RB #740)
      >>Download<<
      -implementation of the secret project (not useable yet)
      -fixed the chest duplication bug
      -fixed the powered/detector rail dropping bug
      -enabled plugin usage for subfolder-worlds
      -fixed some other exceptions
    • Version 1.4.2 (RB #670)
      >>Download<<
      -elevators are now stored in the world folders (-> allow backups)
      -items will drop when moved away from a wall
      -added forbidden blocks to config
      -added command abbreviations to config
      -added glassdoor directions
      -added "lock" for cabin blocks
      -prevent block changes while elevator moves
      -added more config options and messages
    • Version 1.4.1 (RB #602)
      >>Download<<
      -cabin blocks are now searched when initiating movement
      ->WorldEdit & Co for cabin blocks supported!
      -Entities are now moved along, even if they are positioned a greater distance above the ground blocks
      -merged direct and extend commands
      -enabled relative glass doors (=doors in the cabin)
      -glass doors are now "grouped" automatically for a more real opening order
      -redstone outputs floor parameter added.
      -ground blocks pending between grass and dirt are not blocking the elevator anymore
      -wheat, cactus and sugar cane item duplication bug fixed
    • Version 1.4 (RB #556)
      -Permissions support added
      -elevator and floor protection added
      ->many new commands and command parameters
      -command to remove glass doors from a specific floor
      -owner system added
      -individual elevator size support
      -fixed some bugs (can't remember which)
    • Version 1.3.1:
      >>Download<<
      -removed TSLPC
      -added go|direct command
      -improved elevator search
      -improved elevator position search (prevention of loosing the ceiling ;-))
      -storing entity positions when initiating moving - hopefully fixes fall-through bugs
      -added info console command to create debugging info files
      -binds glass doors to a command
      -fixed button and redstone bugs
      -improved storage cleanup
    • Version 1.3:
      -added automatically closing glass doors.
      -added configuration.
      -fixed a fault timing.
      -changed the command handler to onCommand in main file.
    • Version 1.2.3:
      -fixed a block checking bug.
      -redstone on the elevator is now working.
    • Version 1.2.2:
      -chests and dispensers are now working.
      -furnaces are now working.
      -adjacent mine tracks are now working.
      -item orientation bugfix.
    • Version 1.2.1:
      -color of wool is now stored.
      -Signs are now working inside the elevator.
      -orientation of levers, buttons, torches etc. is now stored (can still be glitchy, cause multiplayer servers always have problems with that)
      -fixed many bugs for the blocks built on the elevator
      -elevator blocks can be safely removed by iStick, Superpickaxe and others now
      -improved the movement system for liquids (enables lava doors and more!)
      -improved the movement system for all entities (creatures and minecarts will also be transported now)
      -elevator movement is now much smoother
      -improved floor search for up- and down-blocks when the elevator got stuck
      -changed the entire storage system
    • Version 1.2:
      - enabled building on the elevator.
      - created redstone outputs
      - fixed server crashes
      - made compatible to CraftBukkit 289+
      - improved handling of breaked blocks
      - made plugin thread-secure
      -fixed path problems on mac + linux
      - and maybe some others...
    • Version 1.1:
      - made the creation a bit easier.
      - fixed some bugs
      - increased the maximum size to 5x5
    • Version 1.0:
      - Release
     
  2. Offline

    jasperino

    Thanks for the update! there is only a new bug now :( When you make a button and you give it an elev name, you can't use the same button anymore to open a door, which was kinda nice to have in the previous version so you wouldn't fall down your shaft...

    but the building on the elevator is very nice! :)
     
  3. Offline

    iSushi

    This totally bugged my elevator. Started duplicating blocks and giving the "elevator stuck" error message, something happened when I tried to put more stoneslabs on it (I think this is the cause).

    No errors in the console.

    You shouldn't make it able to build on the elevator at all time, add a /elev buildon "elevator name" ... If not it might cause a lot of bugs. :( Which happened to me, I have no idea of how the bug triggered.

    EDIT: It saved the half steps below the damn elevator. Which stucks it. Needs a reset build command as well :/
     
  4. Offline

    jasperino

    BTW: how can you use redstone than? I tried putting redstone next to the button, but just like opening the door, the button/elev didn't activate it anymore...?
     
  5. Offline

    Cybran

    Once created, you can't change the "ground" of the elevator (if stone slabs are your ground and you put other stone slabs on them, this will cause the error because double stone slab has another type id than single). And because you can't build on stone slabs, you would have to recreate the elevator using another ground block type.

    Think I know why this happened.

    If you two give me some minutes, I will make a workaround for both. I will write when I'm ready.
     
  6. Offline

    Patryk

    Works flawlessly now. Thank you for the quick update, and for this great plugin!
     
  7. Offline

    iSushi

    Thanks for the support! :) Sorry about spamming you like a tard. Just updated my post as I discovered more.
     
  8. Offline

    jasperino

    Thanks for trying to solve our problems so fast :) Some people said the support was low, but it's the opposite :p

    EDIT: lol, didn't see the other Thanks yet :p srry for spam xD
     
  9. Offline

    Cybran

    No matter, I appreciate any thanks ;)

    I have updated the plugin, please re-download and say whether your problems are gone!

    @iSushi: Please notice, that when you once changed the stone slabs to double stone slabs, you won't be able to change it back!
     
  10. Offline

    jasperino

    My problem's solved, thanks! :) Don't know if the redstone part is working now, but it does activate again (also does the door) when I push the button :D
     
  11. Offline

    iSushi

    It's still awesome~ heh.
    I'll look at the double stone slabs later o.o; sorry, just changed the stone slabs to a 4x4 glass elevator instead. I know somewhere I'll get use for stoneslabs again thought :) So I'll report in again in one of the next days.
     
  12. Offline

    majorcyto

    YAY /superelevatorpluginfancommence

    Im so happy to have a compatibility release :3 I will do some extreme testing again and let you know >:] We will see how it reacts with 10+ elevators operating bwahaha.
     
  13. Offline

    iSushi

    Yep, needs a way to remove blocks that have been built on the elevator. :) Either than that, this is now an stable and awesome plugin.
     
  14. Offline

    Cybran

    Just destroy them. Or do you expect something else?
     
  15. Offline

    majorcyto

    Tested a elevator with floors from bedrock to sky limit worked fine, all though it seemed a bit smoother before than it does now. Not sure what thats about.

    Edit - Also its kind of laggy as a elevator passes by or is coming up toward you for other users to just standing near not just on the elevator. Not sure if you can actually do anything about that though.

    Like i said it seems a bit more rough than before, it was more smooth but this also may be due to the fact of the unstable'ish builds currently with recent multi-world support.
     
  16. Offline

    Seth.D

    Code:
    Feb 9, 2011 2:56:29 PM org.bukkit.plugin.SimplePluginManager callEvent
    SEVERE: Could not pass event BLOCK_DAMAGED to Elevators
    java.lang.NoSuchMethodError: org.bukkit.Server.getScheduler()Lorg/bukkit/schedul
    er/BukkitScheduler;
            at com.bukkit.NTcomputer.Elevators.ElevatorsValidationClass.<init>(Eleva
    torsValidationClass.java:24)
            at com.bukkit.NTcomputer.Elevators.ElevatorsBlockListener.onBlockDamage(
    ElevatorsBlockListener.java:128)
            at org.bukkit.plugin.java.JavaPluginLoader.callEvent(JavaPluginLoader.ja
    va:176)
            at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.j
    ava:201)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:334)
            at net.minecraft.server.Packet14BlockDig.a(SourceFile:42)
            at net.minecraft.server.NetworkManager.a(SourceFile:232)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:65)
            at net.minecraft.server.NetworkListenThread.a(SourceFile:104)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:261)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:197)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:512)
    Feb 9, 2011 2:56:29 PM org.bukkit.plugin.SimplePluginManager callEvent
    Happens whenever someone hits a block. Causes a lot of console spam. This didn't happen with Elevators v1.1.
     
  17. Offline

    Cybran

    You need CraftBukkit 289+.

    There are two possible reasons for this:
    1. The scheduler isn't that precise that a normal async timer was.
    2. Because you can build now on the elevator, the movement is done in one-block-steps. Before it was one-half-block-steps. So it is only half the smooth.
     
  18. Offline

    Galrath

    Great update, really gives me some neat ideas for elevators used as gates and such :)

    You think it could be possible to create elevators that are not square, like 2x5 or similiar? Would be pretty cool to be able to create some sort of drawbridge with an elevator.
     
  19. Offline

    LarryDickman

    I noticed if you delete anything you have built on the elevator with iStick, it comes back when it moves.
     
  20. Offline

    Cybran

    You can already do this [​IMG]

    If you delete with iStick, the DamageEvent is not passed to the elevator, so it doesn't recognize whether a block was destroyed. Maybe iStick fires another event? I will have a look.
     
  21. Offline

    Galrath

    Oooh, nice :D
    Always thought you need to make them square...

    Thank you for your great plugin :)
     
  22. Offline

    majorcyto

    Does this mean we can have elevators bigger than 5x5 now, and with odd/random/different shapes instead of just a square? :eek:

    Because if so im going to make one of the big elevator platforms from Halo. xD
     
  23. Offline

    Cybran

    This wasn't the question [​IMG]. You can make squares and rectangles only. And not bigger than 5x5. Maybe i will increase this once more, but I think too big elevators can cause performance problems.
     
  24. Offline

    iSushi

    I do destroy them, but when I use the elevator. They pop back up D:
    --- merged: Feb 10, 2011 1:53 PM ---
    Damn, that's why mine pop up as well. I used Worldedit's super pickaxe.
    Can't test it now.
     
  25. Offline

    Mastacheata

    Has noone ever tested this on a linux box?

    The addon creates a file called Elevators\ElevatorStore.dat in the servers main directory.
    However on unixoid systems it really creates A FILE by that name and does NOT create a file called ElevatorStore.dat in the subdirectory Elevators! That causes the Elevators to not work at all.

    EDIT: I just tested it on a windows box. Very strange:
    On windows the file is created inside plugins/Elevators/ElevatorsStore12.dat
    On linux a folder Elevators is created in main folder and a file called "Elevators\ElevatorsStore.dat" or with escape sequence: Elevators\\ElevatorsStore.dat
     
  26. Offline

    MatCat

    Just so you know cuboiding or super pick axing with worldedit does not trigger most plugins, I.E. BigBrother, Stats, etc do not ever see you destroyed or placed a block with those methods, this can cause wierd behavior if a plugin is expecting a block that is no longer there :).
     
  27. Offline

    iSushi

    I understood that some hours ago :p
     
  28. Offline

    Cybran

    Is it possible that you're not using the latest version on linux? V1.2 creates EVERY save in plugins/Elevators/ and is independant from OS. The old v1.1 worked only on windows and created in main directory.
     
  29. Offline

    Mastacheata

    Sorry my fault. I must've downloaded the file only minutes before you released 1.2.
    Works great now.
     
  30. Offline

    PatrickFreed

    Is there a version compatible with build 198?
     
  31. Offline

    akmotomoto

    Very Easy to setup. I love this plug!. On a sidenote. After watching (julllleee201) 's Video,(IMO THE BETTER ONE)(it says to just ignore the RED Warning txt about the elevator being stuck, the ele will work fine.), It took about 3 minutes to troubleshoot why the ele stuck error msg pops up when the ele is operating, and fix'd it on my own. I dont know if this has been talked about in here yet(didnt feel like going thru 7 pages=P), but it was an easy fix, and i dont get that msg when the elevator is operating!
    Thanks for the awsome elevator's!
     

Share This Page