[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

    mrgreaper

    np
    if you go back to page 11 post 314 i explained it (proberly badly) in text

    the essentials to renember is there is two floors plus the surface
    the surface is not a floor and when the stairs are up and accesable the lift is actuly at the floor where the steps go down to, when the lift is down and out of sight its at a floor the average person wouldnt be ment to see (though i do show it on the video)

    sorry im pretty bad at explaining in text lol (i do attempt to explain in the vid too but fully understand the not wanting to wake kids) hopefully using post 314 and this one and watching the vid it will all make sense lol
     
  3. Offline

    Tassrus

    Lol, i figured it out. Build the elevator and make sure it works, THEN build onto it. hehe
     
  4. Offline

    ThomasJ

    That is simply awesome :)
     
  5. Offline

    jascotty2

    while destroying a linked call button:
    caused server to halt & and to restart
     
  6. Offline

    mrgreaper

    im in the process of doing video tutorials for the players on our server, i decided it may be a good idea to share the videos in the plugin topics to (this is different to the video i shared earlier this is a howto) hope its helpful :)
    http://www.youtube.com/watch?v=du7YAvgLUmI
     
  7. Offline

    Chugger

    Hi, I got an error, [WARNING] Elevators - Store - loading save v10301 failed! and looking at my elevators file, I see there is no flat file, no db or anything. Also, the config has nothing in that vain. I'm sure I'm missing something, but don't know where to find it.

    Can you point me in the right direction? Thanks!
     
  8. Needs updating for #493.
     
  9. Offline

    Darim

    Is there a height limit to the elevator? I'm not really sure what's wrong with mine. I've spent hours on it trying to fix the "To elevator linked block destroyed" problem, untill I gave up and went to do other things. When I came back, everything suddenly worked. But then I wanted to expand my elevator with another level, which is alot higher than the rest, but for some reason the elevator gets stuck halfway, saying "Oh no, the elevator is stuck above! You have to clear the shaft and restart manually", but there is nothing in the shaft at all. At least not visible. Are there any blocks or something that are invisible? I've cleared all the blocks that even touch it from every side..

    Awesome plugin, I love it :D
     
  10. Offline

    Cybran

    I don't know why, but I didn't get any alert on my thread - I just had a look now and - woah! Many new posts! I hope the alerts do work again now ;)

    Very cool idea! It's just great to see what you guys make with my plugin! Althoug I had many ideas how to use the elevators for something else, this wasn't one of them. Awesome!
    --- merged: Mar 4, 2011 12:46 PM ---
    Good to see. I will fix it.

    This warning is usual if you start the server first time with the plugin installed or haven't created any elevators yet. Just set one up, if you don't get any errors then, it works as it should. The config should be created after you started the server running the plugin.

    I will have a look.

    There is no height limitation. I try to find a solution for the "removing-problems", but haven't found a clue yet.
     
  11. Offline

    Ismoh

    i dont understand that errors...
    sombody have any idea?
     
  12. Offline

    Cybran

    Post your craftbukkit version. Seems like you have less than #450.
    Edit: Wait, what is that "updater" thing?
     
  13. Offline

    Ismoh

    i use #493
    : BukkitUpdate PlugIn ;)

    more information:
    i updatet craftbukkit from #450 to #493
    after that i "installed" premissions.
    then iupdated Elevators.
    i was just testing all my plugins and thought everything works, but then i try to use my elev...didnt work!
    opened putty => connected => saw that errors!

    thanks 4 help
     
  14. Offline

    Punchin

    Where did you find that plugin? I looked on the Bukkit list and couldn't find it? I searched for update and bukkitupdate.

    Found something under "bukkitup" called "CraftBukkitUpToDate". Is that it? If so, it only supports 2 of the plugins I use. :( Been looking for something like this, though.
     
  15. Offline

    Ismoh

    => Bukkit.org :)

    BukkitUpdater
    -----------------------------------------------------------------------------------
    But i also need help with Elevator - PlugIn
     
  16. Offline

    Cybran

    Seems like the updater searches for the <init> function of my plugin - which was removed since TSLPC fires an exception. Try to load the plugin without the updater and check whether this works. If it does, the issue is located at the updater plugin.
     
  17. Offline

    Ismoh

    also got errors....
    now, i copied the server log...
    maybe then u can better see the error! :)

    Show Spoiler
     
  18. Hmm, this is working with #493, but all elevators have had to be remade, for some reason :/
     
  19. Offline

    Jognu

    Thanks for this plugin ! [​IMG]
    I have got the same problem that Darim : "To elevator linked block destroyed" (with bukkit 493).
    I can use the button to call the elevator only one time, after that I have to recreate them !
     
  20. Offline

    Jonathan Bloom

    My elevators aren't working in 493 either.
     
  21. Offline

    Spawni

    Working well for me, but i'm probably missing something here. Trying to make something a bit like mrgreaper's elevator. I got the elevator going up and down without a problem but i'd like to place blocks ontop of it as to act like a roof that moves with the elevator but it gets stuck in it :/

    Just made it purely for the screenshot, hoping the picture would explain what i was trying to do. 2011-03-06_03.22.33.png 2011-03-06_03.22.39.png
     
  22. Offline

    QQCucumber

    One of my more savvier players has reported this exact same issue.
     
  23. Offline

    Meldanor

    I've a suggestion:
    Can you add a property where the admin can controll how many blocks are a maximum for a elevator?
    So we can create a bigger elevator than 5x5.
     
  24. Offline

    Arcwolf

    For some reason I keep having the following show up in my console log and it more or less forces me to restart the server and recreate a broken elevator:

    2011-03-06 08:34:22 [SEVERE] java.lang.ClassCastException: org.bukkit.craftbukkit.block.CraftBlockState cannot be cast to org.bukkit.block.Sign
    2011-03-06 08:34:22 [SEVERE] at de.NTcomputer.Elevators.Elevators.BlockWrite(Elevators.java:601)
    2011-03-06 08:34:22 [SEVERE] at de.NTcomputer.Elevators.Elevators.DoMoveElevator(Elevators.java:443)
    2011-03-06 08:34:22 [SEVERE] at de.NTcomputer.Elevators.ElevatorsMoveTask.run(ElevatorsMoveTask.java:62)
    2011-03-06 08:34:22 [SEVERE] at org.bukkit.craftbukkit.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:122)
    2011-03-06 08:34:22 [SEVERE] at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:345)
    2011-03-06 08:34:22 [SEVERE] at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:272)
    2011-03-06 08:34:22 [SEVERE] at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)
    2011-03-06 08:34:22 [SEVERE] Unexpected exception
    java.lang.ClassCastException: org.bukkit.craftbukkit.block.CraftBlockState cannot be cast to org.bukkit.block.Sign
    at de.NTcomputer.Elevators.Elevators.BlockWrite(Elevators.java:601)
    at de.NTcomputer.Elevators.Elevators.DoMoveElevator(Elevators.java:443)
    at de.NTcomputer.Elevators.ElevatorsMoveTask.run(ElevatorsMoveTask.java:62)
    at org.bukkit.craftbukkit.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:122)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:345)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:272)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)

    Elevators version 1.3.1
    This server is running Craftbukkit version git-Bukkit-0.0.0-493-g8b5496e-b493jnks (MC: 1.3)

    It only happens on rare occasions but enough to prompt me to see if I can find an answer for it.
     
  25. Offline

    Cybran

    Uhhm, this could only happen when the elevator's virtual store isn't synchronized with the world's blocks - which shouldn't occur anyway. I will include a check for this, it will be fixed within the next version.
    --- merged: Mar 6, 2011 4:12 PM ---
    Marked. You will have an option for this in the config.
    --- merged: Mar 6, 2011 4:13 PM ---
    Strange. I don't have any ideas now. Just try it again when the next version is out.
     
  26. Offline

    Ismoh

    Anyway thank you very much for your effort!
    I will wait for the next version! ;)
     
  27. Offline

    some1

    i need the passoword protection ITS SO NICE IDEA
     
  28. Offline

    TatteredKing

    Wow, this is really quite cool. I've just made a few simple ones so far, but I can tell I'm going to love this. Great plugin!
     
  29. Offline

    QQCucumber

    Yeah, my server is having this same problem. I was just about to report it.
     
  30. Offline

    10rd0fD4rkn355

    Hi, wanna ask, if you could make the elevator much more bigger? The idea is to sink and rise whole Buildings. :)
     
  31. Offline

    iarspider

    I've found a bug: block data (e.g. wool color) is not preserved.
     

Share This Page