Inactive [MECH] RetractableBridge - Easy and realistic retractable bridges

Discussion in 'Inactive/Unsupported Plugins' started by Captain Chaos, Mar 31, 2011.

Thread Status:
Not open for further replies.
  1. Offline

    Captain Chaos

    ****************************************************************************************
    RetractableBridge moved to BukkitDev!

    RetractableBridge has moved to BukkitDev! I will no longer be updating this thread, please use the BukkitDev page to keep track of developments, download the plugin and source code, read how to configure it and other details, etc.
    ****************************************************************************************

    RetractableBridge - The easy and realistic retractable bridges plugin:

    Build redstone powered rectractable bridges, without using commands! Much requested by the users of my PorteCoulissante plugin. If you know that plugin, this is basically the same thing, but horizontally instead of vertically... :)

    Download the latest release from the BukkitDev page.

    Features:
    • It doesn't use commands. Just build the bridge and it will work.
    • Stateless, i.e. it does not have to save anything on the server.
    • It's redstone powered, giving you flexibility in controlling it.
    • It is realistic. The bridge does not disappear, but slides in and out just like a real one would.
    • Holds back water or lava... ;)
    • Configurable speed by applying more or less redstone power
    Usage:
    • Build the bridge itself, out of slabs/half-blocks or double slabs.
    • Make sure there is at least one block adjacent to the bridge on three sides, so that it can't move in that direction.
    • For the direction in which you want it to move, make sure there is a block to stop at the distance you want it to move to.
    • Power one of the blocks underneath the bridge with redstone. Please note: you are powering a block underneath the bridge, not the bridge itself! Note that for the purposes of this plugin, just running redstone wire underneath a block will power it.
    • If you power more than one block, the bridge will move faster! Two blocks doubles the speed, and three blocks doubles it once more (so four times as fast as one block).
    • Make sure that when the bridge is fully extended it is still in contact with redstone power underneath. It can be the same blocks, or different ones.
    • When the blocks receive redstone power, the bridge will move to the south or west (depending on which direction it is able to move in), when they lose redstone power, it will move to the north or east.
    • Here is an example. If you build this, it will work. The bridge in this picture is three blocks wide and four blocks long. Note that it only has one powered block, so the bridge will move at its slowest speed:
    [​IMG]

    Hints and tips:
    • The bridge has to be at least two blocks long on each side, and it must be rectangular. It can't have holes or bits sticking out. It also can't abut any other blocks of the same height and material (when open or closed), since the plugin will think they are meant to be part of the bridge.
    • I highly recommend to make the distance the bridge can move less than its length. That way, the blocks at the forward edge of the bridge (when it is open) are always in contact with the bridge, so you only have to power one of those blocks.
    • The bridge will go through (and hold back) water and lava, so you can make water gates and water or lava traps with them.
    • The blocks that stop the bridge when it retracts can be steps or stairs. This way you get a smooth walking experience when the bridge is closed, without having to jump, if you are using slabs/half-blocks for the bridge. Here is an example to show what I mean (the bridge is closed in this example, and there are wooden stair blocks on each end):
    [​IMG]

    More information:

    For download links, source code, configuration information and change logs, please go to the BukkitDev page for RetractableBridge:

    http://dev.bukkit.org/server-mods/retractablebridge/
     
    kawa1107, Undrtakr, Xordaii and 8 others like this.
  2. Offline

    Captain Chaos

    Wow, pretty cool stuff you're building! :)

    I just released another new version of the plugin, version 1.3.3. This version does not move entities (including players) or items on the bridge if there's no room (the previous version would move you straight into a stone wall, where you would suffocate).

    Download here, or from the top post.

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

    xieno

    This server is running Craftbukkit version git-Bukkit-0.0.0-612-g4c7a9e7-b617jnks (MC: 1.4)

    ^-- I think i see the problem, I'll make MyMcAdmin update it.
     
  4. Offline

    Captain Chaos

    Did you read the part in my announcement and in the top post where it says you need Bukkit build 626 or higher to run version 1.3.0 of the plugin? ;-)

    However, that announcement is now obsolete. If you get the latest version of the plugin (1.3.3), it should work on build 617 as well, but it won't move you along if you're standing on the bridge.
     
  5. Offline

    xieno

    well um...i DID read that, but I didn't know mine was out of date. I'm new to the whole server and redstone and am testing out different plugins. I see the version at the end, but whenever I tell MyMcAdmin to update it, i just saw a different name each day, so I didn't know how to tell before. Now I got it.
     
  6. Offline

    xxduby

    it still doesnt work, it just wont come back:D
     
  7. Offline

    DCSiira

    Hey, I was wondering if you could make it so that whatever blocks are directly on top of the bridge are moved along with it? It would make SO many things possible as well as make it a little easier not to fall off.
     
  8. Offline

    marado

    Hey man this mod is great but can you do an updated version, it doesnt seems to work with beta 1.4 it would be very nice of you. Thanks
     
  9. Offline

    Captain Chaos

    I does work with beta 1.4. Why do you think it doesn't?

    Can you post a picture of what you built? Make sure it clearly shows where the redstone goes. Or invite me to your server so I can take a look.

    No, because most people don't want the blocks directly on top of the bridge to move, and there is no way for the plugin to tell what you want. People are sliding these bridges underneath walls and covers, and those should obviously stay put.

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

    marado

    It says Warning recractablebridge craftbukkit build 617 is older than 626 disabling entity moving!

    Got it lol i had an older version of bukkit sry for bothering

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

    Captain Chaos

    Just to be clear: the plugin does in fact work on older versions of Bukkit, it just disables a bit of functionality that would trigger a bug in Bukkit.
     
  12. Offline

    Mark PROT

  13. Offline

    QuackzMcDuck

    This plugin has potential..I'd really like to see it be able to perform this: You put a small house on the top of the bridge and allow it to be carried with the bridge...Thus creating a small moving building that can travel long distances via redstone! Best idea for this plugin if you ask me.
     
  14. Offline

    Captain Chaos

    Merci beaucoup!

    Thanks for the suggestion. I don't think it would be feasible though, as there would be no way for the plugin to tell whether you want to blocks on the bridge to move with it, or to stay put (if you want the bridge to slide out from underneath something), without resorting to commands (which I don't want to do)...

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

    Mergrim

    I like this plugin a lot! This one and your portecoulissante are a couple of my favs.

    I have a couple requests/suggestions though.
    1. It would be great if a bridge could be made only 1 block wide instead of the currently required two.
    2. If possible, it would be cool if we could mix slab heights in a single bridge. For instance a bridge could be partially made of wooden half slabs and partially of wooden double slabs like a step up.
    But even if these can't be done, I'll still enjoy using this plugin!
     
  16. Offline

    Captain Chaos

    Thanks for the feedback! These things are unlikely to happen though. The first because that would make it too easy to make a bridge accidentally. The reason the minimum size is two by two is that it makes it less likely that some halfblocks somewhere which happen to be in contact with some redstone would start flying off into the distance... ;-)

    The second because it would decrease the performance too much. Right now all the plugin has to do to move the bridge is add blocks on the leading edge and remove them on the trailing edge. If mixing different blocks was allowed, it would have to actually move every block, which would make the movement jerky and laggy.
     
  17. Offline

    CyrussM

    I have a little Problem with this plugin, i have build a bridge. This one moves nice everythink looks ok. Now i have install the Plugin WorldGuard and my big bridge looks bugy. First what i see is that the Block in the middel are removed. I replace the Blocks and turn the redstone on, nothing happens, in the server log i see the Server overload message again and again. The bridge dont move, i can not destroy the bridge I remove one block and i have a rollback. Then i remove the redstone , remove the lever but i cannot remove the Block from the bridge.
    Whats going on? We need WorldGurad so its no Option to remove this Plugin.
     
  18. Offline

    Captain Chaos

    I don't know. I don't know how WorldGuard works or why it would stop the bridge from working. I know there are other servers using WorldGuard and both of my plugins, and they have not reported problems to me, so it must be possible. I suspect that you need to change your WorldGuard configuration, or that it is malfunctioning.

    Have you tried disconnecting and logging in again?

    Which version of RetractableBridge, WorldGuard and CraftBukkit are you using?

    Are you using PorteCoulissante as well? Does it work correctly?

    Is anyone else seeing this?
     
  19. Offline

    CyrussM

    Recommend Bukkit Version 670
    craftbukkit build [670]
    RetractableBridge 1.3.1
    WorldGuard [5.0-alpha8] (with WorldEdit 4.3) Default Option, Only need a pvp Region nothing more

    PorteCoulissante ? I dont know that , so no i dont use this one.
    I make a test with the Plugin MagnetBlock , it has the same Problem
     
  20. Offline

    Captain Chaos

    PorteCoulissante is my other plugin, it allows you to create working portcullises. It is very similar to RetractableBridge, so I suspect that it would not work either, but it would be interesting to know.

    That makes me even more sure that this is a WorldGuard problem. Try asking the WorldGuard authors if they know how to fix this. Or you could ask other people who run both WorldGuard and RetractableBridge, for instance these people, or these people.

    Sorry I can't be of more help, but I don't know anything about WorldGuard.
     
  21. Offline

    QuackzMcDuck

    You could just make it so the bridge would have to be contained by fences around the edge...That way the bridge doesn't necessarily have to have a house on it but it still offers transportation.
     
  22. Offline

    Nitnelave

    Thanks again for your great plugin! Your fix for earlier seems to have worked out, but now I have another bug... As I said before, the only bridge I have opens at dawn and closes at dusk, but seemingly randomly I've been having this error :
    Code:
    22:35:22 [SEVERE] java.lang.NullPointerException
    22:35:22 [SEVERE]     at org.pepsoft.bukkit.retractablebridge.BridgeMover.moveBridge(BridgeMover.java:104)
    22:35:22 [SEVERE]     at org.pepsoft.bukkit.retractablebridge.BridgeMover.run(BridgeMover.java:68)
    22:35:22 [SEVERE]     at org.bukkit.craftbukkit.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:122)
    22:35:22 [SEVERE]     at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:356)
    22:35:22 [SEVERE]     at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:283)
    22:35:22 [SEVERE]     at net.minecraft.server.ThreadServerApplication.run(SourceFile:375)
    22:35:22 [SEVERE] Unexpected exception
    java.lang.NullPointerException
        at org.pepsoft.bukkit.retractablebridge.BridgeMover.moveBridge(BridgeMover.java:104)
        at org.pepsoft.bukkit.retractablebridge.BridgeMover.run(BridgeMover.java:68)
        at org.bukkit.craftbukkit.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:122)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:356)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:283)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:375)
    
    and the server crashes...
    I've updated to the latest version of craftbukkit I could find, but I think it is 646 (This server is running Craftbukkit version git-Bukkit-0.0.0-646-gb61ef8c-b670jnks (MC: 1.4))

    Well, I hope you can figure out this bug and pop a new version soon!
    Thanks!
     
  23. Offline

    Captain Chaos

    You may already be aware of this, but the latest version of the plugin does already move you along with the bridge if you're standing on it (if you're using CraftBukkit build 626 or later).

    You should look at the "b670jnks" part. You're running Jenkins build 670, which is the current recommended build, so that should be fine.

    So that exception's not good. Is this with the latest version (1.3.3) of the plugin?

    Is anyone else seeing this?

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

    KrazyBonez

    Did you change this to move people with the bridge? I really hope not, and if you did, i hope its configurable because i need it to NOT move the people with the bridge and its auto moving me on my bridges...
     
  25. Offline

    marado

    hmm wierd. maybe i got some puglin making it not work or a very old version of bukkit, ty for the support btw

    Ok ! lol could you do a tutorial video of this plz

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

    Captain Chaos

    Yes I did, and no it's not configurable, sorry. If you don't want that you could downgrade to version 1.2 of the plugin, the only new functionality in 1.3 is that it moves people along with the bridge. You can download version 1.2 here.

    I just released a new version of the plugin: version 1.3.4. This version tries to log exceptions in the log file without crashing the server if a problem occurs, so if the plugin malfunctions at least your server should keep running. Download it here, or from the top post.

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

    xorvious

    Wow Krazy, you don't even deserve to use a great plugin like this with that kind of attitude. Posts like this bring the quality of the whole community down. :(
     
  28. Offline

    KrazyBonez

    Thanks captain for workin with me :)
     
  29. Offline

    TnT

    @KrazyBonez
    While I understand your frustration, you're really not doing yourself any favours by acting like that. The dev can handle his plugin in any way he wants, and if he wants to make that kind of change without making it configurable, he is more than free to do so. If you would ask for him, politely, to include that option as configurable, he may be willing to add it in. If not, well, you can choose to not use his plugin anymore, but ranting and going off like that does no one any good.

    @Captain Chaos
    Would it be possible to make it configurable? In my opinion (for whatever its worth) it seems like it may be a good idea. Up to you of course, just a suggestion.

    I have personally had no luck with using "older versions" of plugins that exclude new features - mainly because when a new build comes out, your older version will no longer get updated and thus stop working.
     
  30. Offline

    Captain Chaos

    It's not that I don't want it to be configurable. But right now the plugin does not have any configuration options at all, so making this configurable is not simply a matter of adding a configuration option, it entails adding the entire configuration mechanism. So it's a lot of work for something that so far only one person has asked for, and for which there is a reasonable alternative, and it goes against the KISS principle.

    Having said that, I will continually keep evaluating it, and whenever the most reasonable solution becomes making the plugin configurable, I will do so! And like I told KrazyBonez, I have now committed myself to keeping the option available of having the bridge move without the people on it moving with it, so he does not have to worry that he will have to choose between keeping that option, or updating the plugin.

    If anyone's missing a few posts here, KrazyBonez and I decided to remove a few off-topic posts to keep this thread nice and tight. ;-)

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

    eagleFMJ

    Looks like a great plugin, but no matter what I do I just cannot get the bridge to move.

    I have built my own bridge design, it had all the requirements, didn't work.

    I built the exact bridge in this video http://www.youtube.com/watch?v=kf5Pnp1kP2Y , didn't work.

    I built one of the bridges based on the screenshots in the original post, didn't work.

    I have PorteCoulissante plugin installed and it works fine, I also have WorldGuard latest version, and craftbukkit 670, MC 1.4.01.

    I have even removed all plugins except RetractableBridge and it still doesn't work. =(

    Not sure what else to try, anyone have any ideas as to why this plugin might not be working for me?

    Also should note, I run my own server from home PC for me and friends, there isn't a need for any permissions plugins or anything.
     
Thread Status:
Not open for further replies.

Share This Page