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

    CyrussM

    Ok with the new WorldGuard alpha9 and Bukkit 677 my Problem is gone. It works fine now, when i see a new Problem i will report here ;)
     
  3. Offline

    Captain Chaos

    I'm glad to hear it!

    Can you post a picture of what you built (showing clearly where the redstone goes)? Or better yet, let me take a look in person on your server?

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

    eagleFMJ

    I do not have the server on when I am not playing as the pc is usually off, we would have to coordinate a time.

    Here are some screens, is the same bridge design in the french guys video posted here in this thread.

    [​IMG]

    [​IMG]

    The redstone is on the bridge isn't moving, I'm pretty much facing west.
     
  5. Offline

    Captain Chaos

    What kind of blocks are those? Wooden planks, or double wooden steps? They should be steps or double steps, but not ordinary full blocks. Also, how far does the redstone extend under the bridge? I can only see it going one block in, does it go further?
     
  6. Offline

    eagleFMJ

    I got it working, I wasn't using the right materials, thanks for your help and great plugin!
     
  7. Offline

    xorvious

    I just updated to RB670 and installed the new version, it works, but I don't move when standing on the bridge. I tried running this as my only plugin and still had no luck. Am I missing something? Thanks.
     
  8. Offline

    Captain Chaos

    It should work. Can you post the top of your server.log (all the startup messages)?
     
  9. Offline

    xorvious

    Ok, this is what I am running right now, I am pretty sure I tried it with no other plugins running as well, but ill try again to be sure.

    Code:
    2011-04-15 21:01:28 [INFO] Starting minecraft server version Beta 1.4
    2011-04-15 21:01:28 [INFO] Loading properties
    2011-04-15 21:01:28 [INFO] Starting Minecraft server on *:25565
    2011-04-15 21:01:28 [WARNING] **** SERVER IS RUNNING IN OFFLINE/INSECURE MODE!
    2011-04-15 21:01:28 [WARNING] The server will make no attempt to authenticate usernames. Beware.
    2011-04-15 21:01:28 [WARNING] While this makes the game possible to play without internet access, it also opens up the ability for hackers to connect with any username they choose.
    2011-04-15 21:01:28 [WARNING] To change this, set "online-mode" to "true" in the server.settings file.
    2011-04-15 21:01:29 [INFO] This server is running Craftbukkit version git-Bukkit-0.0.0-646-gb61ef8c-b670jnks (MC: 1.4)
    2011-04-15 21:01:29 [INFO] Preparing level "the world"
    2011-04-15 21:01:29 [INFO] Preparing start region
    2011-04-15 21:01:29 [INFO] 144 recipes
    2011-04-15 21:01:29 [INFO] BS [o] Opening skates.config file...
    2011-04-15 21:01:29 [INFO] BS [o] Loading BinarySkates v0.1.2
    2011-04-15 21:01:30 [INFO] [MCStats] Loading MCStats
    2011-04-15 21:01:30 [INFO] [MCStats] Restoring player statistics.
    2011-04-15 21:01:30 [INFO] [MCStats] Permissions plugin not detected, disabling group support.
    2011-04-15 21:01:30 [INFO] BS [o] Listener registered: PLAYER_MOVE
    2011-04-15 21:01:30 [INFO] bMobs got world: the world
    2011-04-15 21:01:30 [INFO] bMobs could not process one of your worlds properly! Check that your properties file is properly formatted.
    2011-04-15 21:01:30 [INFO] bMobs version 0.5.8 is enabled!
    2011-04-15 21:01:30 [INFO] Growbie version 2.3 enabled.
    2011-04-15 21:01:30 [INFO] [HeroicDeath] 1.7.3.148 enabled.
    2011-04-15 21:01:30 [INFO] [LimitSpawnsLite] version 1.01 by lonelydime is enabled!
    2011-04-15 21:01:30 [INFO] LoginMessage 0.6_2 enabled
    2011-04-15 21:01:30 [INFO] [MCStats] Enabling MCStats
    2011-04-15 21:01:30 [INFO] [NETHRAR] Permissions not detected.
    2011-04-15 21:01:30 [INFO] [NETHRAR] Listening for player respawns.
    2011-04-15 21:01:30 [INFO] [NETHRAR] Normal world name: the world
    2011-04-15 21:01:30 [INFO] bMobs processing world: the world
    2011-04-15 21:01:30 [INFO] bMobs processing world: netherWorld
    2011-04-15 21:01:30 [INFO] [NETHRAR] Nether world name: netherWorld
    2011-04-15 21:01:30 [INFO] [NETHRAR] Normal : Nether scale: 8:1
    2011-04-15 21:01:30 [INFO] [NETHRAR] Forcing chunks to stay loaded in a radius of 4 around portals.
    2011-04-15 21:01:30 [INFO] [NETHRAR] Nethrar v1.2 enabled.
    2011-04-15 21:01:30 [INFO] OtherBlocks: AIR + LEAVES now drops 1x APPLE with 5.0% chance
    2011-04-15 21:01:30 [INFO] OtherBlocks: ALL TOOLS + GLOWSTONE now drops 6-9x GLOWSTONE_DUST
    2011-04-15 21:01:30 [INFO] OtherBlocks 0.7.4 loaded.
    2011-04-15 21:01:30 [INFO] PickBoat version 0.3.4 is enabled!
    2011-04-15 21:01:30 [INFO] [PorteCoulissante] plugin version 1.2.1 by Captain_Chaos enabled
    2011-04-15 21:01:30 [INFO] [RetractableBridge] plugin version 1.3.4 by Captain_Chaos enabled
    2011-04-15 21:01:30 [INFO] Done (0.151s)! For help, type "help" or "?"
    Ok, just tried it with all other plugins disabled, here is the log from that.

    Code:
    2011-04-15 21:05:10 [INFO] Starting minecraft server version Beta 1.4
    2011-04-15 21:05:10 [INFO] Loading properties
    2011-04-15 21:05:10 [INFO] Starting Minecraft server on *:25565
    2011-04-15 21:05:10 [WARNING] **** SERVER IS RUNNING IN OFFLINE/INSECURE MODE!
    2011-04-15 21:05:10 [WARNING] The server will make no attempt to authenticate usernames. Beware.
    2011-04-15 21:05:10 [WARNING] While this makes the game possible to play without internet access, it also opens up the ability for hackers to connect with any username they choose.
    2011-04-15 21:05:10 [WARNING] To change this, set "online-mode" to "true" in the server.settings file.
    2011-04-15 21:05:10 [INFO] This server is running Craftbukkit version git-Bukkit-0.0.0-646-gb61ef8c-b670jnks (MC: 1.4)
    2011-04-15 21:05:10 [INFO] Preparing level "the world"
    2011-04-15 21:05:10 [INFO] Preparing start region
    2011-04-15 21:05:10 [INFO] 144 recipes
    2011-04-15 21:05:11 [INFO] [RetractableBridge] plugin version 1.3.4 by Captain_Chaos enabled
    2011-04-15 21:05:11 [INFO] Done (0.088s)! For help, type "help" or "?"
     
  10. Offline

    Captain Chaos

    Alright, it turns out that I broke the entity moving functionality in version 1.3.4... :-(

    No idea how that happened, but I just released version 1.3.5 in which it should work again. You can download it here, or from the top post. Sorry for the trouble!
     
  11. Offline

    xorvious

    Works great, thanks!
     
  12. Offline

    ibigpapa

    Is it possible to make the blocks see redstone above them instead of only below?

    b=bridge
    s=support block
    r=redstone

    Currently we can configure it like this
    bbbbbbbbbbbb
    ssssssssssssssss
    rrrrrrrrrrrrrrrr

    I'd like to see it where we could configure it like this as well
    rrrrrrrrrrrrrrrr
    ssssssssssssssss
    bbbbbbbbbbbb

    Great mod by the way. Love using it on my server. My users love it as well.
     
  13. Offline

    Captain Chaos

    I'd rather not. The more configurations there are, the greater the chance that things will start moving unintentionally. Perhaps if more people ask for it, but not for the moment. Remember the redstone can already also be on the side of the blocks (the blocks underneath the bridge, not the bridge itself).

    Thanks! That's great to hear. :)
     
  14. Offline

    ibigpapa

    b=bridge
    s=support block
    r=redstone

    So i can configure like this

    bbbbb
    rrsssssss

    What i was hoping to do is create a mob grinder use the bridges to push the mobs to a side that has a hole. The only problem i can come up with the design is the fact i can only get 1 bridge element IE 1 block high that spiders would be able to over come.

    I did think of a way around this is if i make a bridge 2x-3x's the first one i could do it but it would take a really long time to cover the distance. I'm also not sure if this would break the first bridge having a 2nd right on top. Still have yet to test. Just cleared out my 150x150x128 area for my mob grinder building the tower is next.

    I know this isn't really the idea behind a bridge.

    Will be testing before i make a huge one yes. Was wondering if the mobs would be pushed out of the way.

    Here is a picture of my work around idea.[​IMG]

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

    Captain Chaos

    Yes, that would work.

    I don't think that would work. The bridge doesn't push mobs out of its way. They would just end up inside the bridge blocks I think. At any rate I think you'd better test that out before you spend a lot of time building anything!

    I don't see any picture...

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

    xorvious

    I made a bridge that is supposed to carry me across some water, but about every other time I go across my player stops moving at a random spot and the bridge will slide out from under me unless I move forward to catch up, is this a limitation of bukkit or a bug? Either way, I love both your bridge and portcullis mod, thanks!

    I wanted to post one of the things I made with the bridge mod that I am really happy with how it turned out. Lots of hours of thinking how to keep the bridge hidden, yet still not have to jump to use it. Hope you find it interesting ;)


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

    Captain Chaos

    I've noticed that too. As far as I can tell it's not a bug in the plugin. It still tries to move the player, but for some reason either Bukkit or Minecraft ignores it. It's a hard problem to debug, being so unpredictable and with the source of Minecraft being closed.

    Very cool! :) Especially that second, half-block bridge and how it slides out of the way just in time. I can imagine that must have cost some headaches to figure out.

    Ah yes. That should work for moving both bridges at once. But I'm pretty sure the bridges won't push the mobs. I'll see if it's feasible to have them to that.

    (By the way, it's less confusing if you post your answer after the post you're replying to... ;))

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

    Six_

    So, after doing more fun things with your plug-in, i came across the same bug where things get split by a chunk being unloaded, and it happened with a rather short drawbridge (3x7) which made it easy to do a little bit of testing.

    This particular drawbridge had been working fine for over a week, and i hadn't done any construction in that area when it happened.

    I had left the bridge extended when i moved away (which is its powered state) and when the chunk got unloaded it retracted the bridge, however, when i came back and hit the lever to extend it again, only the first 4 rows moved, the last 3 stayed put.

    I destroyed those back 3 rows and rebuilt them attached to the part that was extended, hit the lever again, and the entire bridge retracted. Hit the lever to extend it, only the first 4 rows moved again.

    So I destroyed the entire bridge and rebuilt it in its retracted state, and only the first 4 rows moved yet again.

    Coincidently, I also had a portal from the TravelPortals mod in the same chunk as the back half of that bridge, and i tried it after i was done messing with the bridge and it had ceased to function as well. (Note: the bug didn't happen when i used a portal, i had simply walked a couple hundred away from the area and walked back)

    After a server restart, both mods were working properly.

    I wish I'd thought of it, but i also had a gate from your PortCoulissante mod on the top floor probably within that same chunk I could've tried. =/

    Anyways, it looks like it might be a bukkit bug instead unless there's some way your mod could've interfered with the portal, which i doubt (the portals don't rely on redstone power).

    Hope that helps.
     
  19. Offline

    Captain Chaos

    Thanks for the comprehensive report! Hmmm, that bug really should be fixed now. Which version of CraftBukkit and my plugins are you using? Can you reproduce this problem?
     
  20. Offline

    Six_

    Ahh, alright, the problem is on my end then, I'm not using 670/1.3.5 yet, because not everything i use has been updated. I must've missed seeing the change that fixed this, thought this bug was still floating around.

    My apologies.
     
  21. Offline

    Captain Chaos

    Actually the bug was in Bukkit, and it has been fixed since recommended build 556. I assume you're not on that old a version, so I don't think that bug explains what you experienced. Maybe the bug is back. Definitely let me know if you can reproduce this!
     
  22. Offline

    Six_

    It was on recommended 617 and 1.2.1 of your mod, so yeah, I am a couple weeks out of date, but not that bad, lol. (I've been waiting for the flurry of bukkit updates to settle so I can use the newest recommended and update the few mods I use at the same time)

    Anyway, I tried walking the same route a couple times, but all I could reproduce was having the bridge retract on its own as if someone had shut the lever off. It was a scouting run to look for a new build site, so kind of hard to reproduce exactly. It didn't, however, cause the back half to stop responding as before.
     
  23. it says it's not compatible with 6.77:(
     
  24. Offline

    Captain Chaos

    My plugin doesn't say things like that. What is it exactly that you're seeing?
     
  25. It says: "Craft bukkit build 478 is older than 626; disabling entity moving" for both gat and bridge mod. i updated my server recently so i don't think its because my server's out of date.

    nm turns out my version was out of date

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

    Deyve

    Hi there,
    I just want to thanks you for this awesome plugin ...
    I have a little suggestion : there is four kind of slab in the game : CobbleStone Slabs; Stone Slabs; Wooden Slabs, and the last one : SandStone Slabs ... The plugin works with the cobble, stone and wooden ones, but not with the third, could you make it works with the four slabs (and double slabs, of course) ?
     
  27. Been using your PorteCoulissante plugin for a while - wanted to try this - It's very good, just as good as PorteCoulissante - many thanks for a good plugin ...... Interesting idea from @Deyve above - not tried this type of slab, but it would be good to have the option if its do-able please ....
     
  28. Offline

    KyleCRat

    I love your add-ons, both of them, super light and very useful. Only one possible one missing! Could you make an add-on that does basically the same thing as this one, but instead of moving a flat surface like a bridge, make it move a wall like opening a vertical gate horizontally instead of vertically like your portcullis one. If it's possible it would be awesome!
     
  29. Offline

    jamescosten

    i love this plugin, i have a castle and its extremely usefull when you have a lava pit as a defence.
    Also love the portocoulissante?? think i spelt that wrong :p

    Yes i did i meant PorteCoulissante
     
  30. Offline

    valdark

    working perfectly on bukkit 706
     
  31. Offline

    Nitnelave

    Hi again!
    Works still great with CB 684, but it throws this error from time to time (possibly when I'm the only one, and I'm not playing, I have the menu open... but possibly at some other point. As the server doesn't crash anymore, I can't pinpoint it):
    Code:
    18:12:45 [SEVERE] [RetractableBridge] Exception thrown while moving bridge!
    java.lang.NullPointerException
        at org.pepsoft.bukkit.retractablebridge.BridgeMover.moveBridge(BridgeMover.java:108)
        at org.pepsoft.bukkit.retractablebridge.BridgeMover.run(BridgeMover.java:69)
        at org.bukkit.craftbukkit.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:128)
        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)
    
    doesn't affect the game, but an error is never a good thing ^^ good work with that!
     
Thread Status:
Not open for further replies.

Share This Page