Inactive [MECH] PorteCoulissante - Easy and realistic portcullises

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

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

    Captain Chaos

    ****************************************************************************************
    PorteCoulissante moved to BukkitDev!

    PorteCoulissante 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.
    ****************************************************************************************

    PorteCoulissante - The easy and realistic portcullis plugin:

    Build redstone powered portcullises, without using commands! This is my first ever Minecraft plugin, so please be gentle! I needed a project for my first plugin, and I've always wanted a working portcullis in my town gate, so I decided to write this. I subsequently discovered that there already is a portcullis plugin (which is why I named mine after the French word that the word portcullis was derived from), but I think mine has enough distinguishing features to be useful.

    Download the latest release from the BukkitDev page.

    Also check out the new sister plugin, RetractableBridge, which does basically the same thing, only horizontally.

    Features:
    • It doesn't use commands. Just build the portcullis 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 portcullis does not disappear, but moves up and down just like a real one would.
    Usage:
    • Build the portcullis itself by stacking rows of fences (wood or iron), at least two wide and two high.
    • Build the wall around it to contain it. Leave enough empty space above the portcullis to allow it to go as high as you want it to go.
    • Power the portcullis by powering one of the blocks adjacent to it on either side, by attaching a lever or redstone dust. For now, the power has to come from the side.
    • The result should look something like this:
    [​IMG]
    • When the block is powered, the portcullis will start moving upwards, and will keep going until it hits something and can't go any further. It moves slowly, since a portcullis is heavy!
    • Important: make sure that when it is in the up position, it is still in contact with a powered block (the same one, or a different one).
    • When the power goes off, the portcullis will drop down (a lot faster than it went up).
    • Decorate the gate by building walls in front of and behind the portcullis to cover the empty space and to make it appear the portcullis is moving in a groove. Of course you can make it look any way you want! Here is an example:
    [​IMG]

    Hints and tips:
    • The portcullis can be any size you want, as long as it is at least two blocks wide and two blocks high. It must be rectangular though, and have no holes. If the portcullis breaks, it won't move any more until you repair it.
    • Try to make the empty space above the portcullis one block less high than the portcullis itself (like in the first picture above). That way, you only need to power one block (the one in the middle on either side), since that block will always be in contact with the portcullis.
    • Of course the empty space can be even smaller, if you want. The portcullis only has to go up two blocks to let people through, or three if you want the passage to be a little less claustrophobic.
    • The portcullis will go through (and hold back) water and lava, so you can make water gates and water or lava traps with them.
    More information:

    For download links, source code, configuration information and change logs, please see the BukkitDev page:

    http://dev.bukkit.org/server-mods/portecoulissante/
     
  2. Offline

    valdark

    Working without a hitch on 617.

    Continuing conversation from your Bridge thread.......

    Elevators do not work on 617 and I may just have not built one high enough on 602. After the first several blocks of movement you begin to sink into and through the structure.

    I guess I'm just going to have to jump up each movement to prevent falling through until you add player teleport to the code :(

    I was so excited too.
     
  3. Offline

    Captain Chaos

    @valdark: I was surprised it worked at all! I'm thinking about looking into moving players and items located on a bridge when the bridge moves. If that turns out to be feasible it would probably be relatively easy to implement it for this plugin as well.

    Thanks! I like it, especially how you also demonstrate how you can make a lava floodgate with it. :)

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

    monkeymii

    maybe you could embed it into the main bit as thiw will be great way to advertise our brand new channel and the server

    Also a little something back to us
    And btw Great Plugin Every city on my server depends on it.
     
  5. Offline

    Captain Chaos

    I would, if it were just a tad more professional. Such as not having people loudly crunching crisps into the microphone... ;) :p

    Also somebody else also made a tutorial video earlier, so it wouldn't be fair to them to put yours in the main post. Plenty of people will see it where it is, don't worry!
    Thanks!
     
  6. Offline

    monkeymii

    ah :p thats fair enough
     
  7. Offline

    nicholaslimck

    I had to wire it up so that i could open it from both sides of my little castle. I thought of trying with buttons, but the amount of redstone repeaters needed to delay the signal would've been a bit too many. Levers required that I had two systems , one on each side. (so that i could reset the system and close it even when there was power going through one circuit)
     
  8. Offline

    stavos

    These gates work great for the new wolf addition

    [​IMG]


    [​IMG]

    [​IMG]
     
    lappro and Captain Chaos like this.
  9. Offline

    lappro

    lol i have never know that such a gate was called a portcullis :p though it really is a great addition to minecraft now i only have to make an awesome castle that fits for the portcullis
     
  10. Offline

    valdark

    That,would be awesome. Narrowtux has that part down if you need some help.
     
  11. Offline

    yaminub

    i have an idea, customizable speed for vertical movement. (Prop file or something)
     
  12. Offline

    Thorns_Ofire

    Having the same problem a few other people seem to be having. Gate goes up but doesn't come down.:(
    I'm really excited for this one to work!

    Heres what I'm running.
    Code:
    C:\Users\Scot\Desktop\Robbie's Stuff\Minecraft\Server>"C:\Program Files\Java\jre
    6\bin\java.exe" -Xms1024M -Xmx1024M -jar craftbukkit-0.0.1-SNAPSHOT.jar nogui
    03:17:05 [INFO] Starting minecraft server version Beta 1.4
    03:17:05 [INFO] Loading properties
    03:17:05 [INFO] Starting Minecraft server on *:25565
    03:17:05 [INFO] This server is running Craftbukkit version git-Bukkit-0.0.0-617-
    g78ac8a8-b621jnks (MC: 1.4)
    03:17:05 [INFO] Preparing level "world"
    03:17:05 [INFO] Preparing start region
    03:17:06 [INFO] 144 recipes
    03:17:06 [INFO] Preparing spawn area: 93%
    03:17:07 [INFO] Loading map 'org.dynmap.flat.FlatMap'...
    03:17:07 [INFO] Loading map 'org.dynmap.kzedmap.KzedMap'...
    03:17:07 [INFO] Loading renderer 'org.dynmap.kzedmap.DefaultTileRenderer'...
    03:17:07 [INFO] Loading renderer 'org.dynmap.kzedmap.CaveTileRenderer'...
    03:17:07 [INFO] Activated world 'world' in Dynmap.
    03:17:07 [INFO] Loading map 'org.dynmap.flat.FlatMap'...
    03:17:07 [INFO] Loading map 'org.dynmap.kzedmap.KzedMap'...
    03:17:07 [INFO] Loading renderer 'org.dynmap.kzedmap.DefaultTileRenderer'...
    03:17:07 [INFO] Dynmap WebServer started on null:8123
    03:17:07 [INFO] [MagicCarpet] MagicCarpet version 1.5.1 is enabled!
    03:17:07 [INFO] [MagicCarpet] Take yourself wonder by wonder, using /magiccarpet
     or /mc.
    03:17:07 [INFO] [MagicCarpet] Anyone can use the Magic Carpet.
    03:17:07 [SEVERE] [mcMMO] Permissions isn't loaded, there are no restrictions.
    03:17:07 [INFO] mcMMO version 0.9.14 is enabled!
    03:17:07 [INFO] Minecart Mania Core version 1.07b is enabled!
    03:17:07 [INFO] Minecart Mania Sign Commands version 1.06 is enabled!
    03:17:07 [INFO] Minecart Mania Station version 1.07 is enabled!
    03:17:07 [INFO] Persistence version 0.64 is enabled
    03:17:07 [INFO] PorteCoulissante plugin version 1.1.0 by Captain_Chaos enabled
    03:17:07 [INFO] Spells version 0.996 is enabled
    03:17:07 [INFO] Wand version 0.69 is enabled
    03:17:07 [INFO] Minecart Mania Admin Controls version 1.06 is enabled!
    03:17:07 [INFO] Minecart Mania Automations version 1.06 is enabled!
    03:17:07 [INFO] Minecart Mania Chest Control version 1.07 is enabled!
    03:17:07 [INFO] Done (0.224s)! For help, type "help" or "?"
    03:17:08 [INFO] Thorns_Ofire [/127.0.0.1:50803] logged in with entity id 63
    03:17:08 [INFO] Persistence: loaded 2 profiles from permissions.yml
    03:17:13 [INFO] [Minecart Mania] Loading Sensor Data.
    
    Edit: Just figured out it was because the fence section of the gate when it was raised wasn't being powered. Put a redstone line to the top works great!
     
  13. Offline

    ThomasJ

    I'm having a weird problem and I cannot understand why. Using b617 and 1.1.0 and I keep getting the following error on server start:
    Code:
    13:12:36 [SEVERE] tried to access field org.pepsoft.bukkit.portcullis.PortcullisPlugin.logger from class org.pepsoft.bukkit.portcullis.PortcullisBlockListener loading PorteCoulissante v1.1.0 (Is it up to date?)
    java.lang.IllegalAccessError: tried to access field org.pepsoft.bukkit.portcullis.PortcullisPlugin.logger from class org.pepsoft.bukkit.portcullis.PortcullisBlockListener
            at org.pepsoft.bukkit.portcullis.PortcullisBlockListener.<clinit>(PortcullisBlockListener.java:192)
            at org.pepsoft.bukkit.portcullis.PortcullisPlugin.onEnable(PortcullisPlugin.java:31)
            at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:118)
            at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:514)
            at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:216)
            at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:94)
            at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:72)
            at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:215)
            at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:202)
            at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:142)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:257)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:375)
    13:12:36 [SEVERE] Could not initialize class org.pepsoft.bukkit.portcullis.PortcullisBlockListener loading PorteCoulissante v1.1.0 (Is it up to date?)
    java.lang.NoClassDefFoundError: Could not initialize class org.pepsoft.bukkit.portcullis.PortcullisBlockListener
            at org.pepsoft.bukkit.portcullis.PortcullisPlugin.onEnable(PortcullisPlugin.java:31)
            at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:118)
            at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:514)
            at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:216)
            at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:94)
            at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:72)
            at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:215)
            at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:202)
            at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:142)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:257)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:375)
    
    Any ideas?
     
  14. Offline

    Captain Chaos

    That's a very strange error. It would lead me to believe that there are multiple copies of the plugin being loaded. Are you sure you have only one copy of my plugin installed?
     
  15. Offline

    ThomasJ

    That was it. For some reason there was a file with a completely different name formatting lying about in the plugin folder. No idea how that happened. Thanks.
     
  16. Offline

    Captain Chaos

    The naming scheme changed when I added support for the automatic plugin updating thingy, that may be why you had a plugin with a name from the old scheme laying around. By the way, the plugin is at 1.2 now (support for bridges made out of double slabs and stone or cobblestone).
     
  17. Offline

    Thorns_Ofire

    So download both this and your retractable bridge plugin and I have to say awesome fuckin job! I love the idea of adding functioning buildable redstone devices. I built a awsome duel gate with a moving floor covering a lava pit. On the walls are a bunch of buttons. Press the right ones and your happily on your way, press the wrong ones and your off to a fiery grave. :p Keep up the good work!!!
    Hallway Of Death.png Hallway Of Death 2.png Hallway Of Death 3.png
     
    ddubois89 and Captain Chaos like this.
  18. Offline

    ddubois89


    I never thought of having it go sideways. Mine is smaller bridge but goes straight out. I was having a hell of a time hiding it but i really like your implementation. I may use this.
     
  19. Offline

    Thorns_Ofire

    Thanks!:D
    Hardest part of building it was building and hiding all the redstone and timer circuits, while not making it massive. Theres 17 buttons all connected to RS NOR Latches with a delayed reset. Only 2 of the buttons on the inside open the gates, one for the inner gate, one for the outer gate. The rest of the buttons on the inside trigger the floor. You have to press the right button or bye bye:p. If you like I can throw up a screenshot of the RS NOR /w Delay which both doors and the floor uses.
     
    ddubois89 likes this.
  20. Offline

    Captain Chaos

    I love it. Very nasty and creative. :)
     
    ddubois89 likes this.
  21. Offline

    ddubois89


    yea a screenshot would be awesome. i just only really started using redstone and need ideas on how to hide this stuff better. i wish it wasnt such a pain sometimes. I used to have my bridge and portcullis on separate levers but decided it was easier to have them all on one lever. i havent gotten too much into circuitry because i never really needed to but now i have a reason to. now im really going to use this. keep those pesky people out on my server haha thanks for the ideas!
     
  22. Offline

    Thorns_Ofire

    So heres a basic RS NOR Latch with delay.

    RS NOR Latch w delay.jpg

    The way a RS NOR Latch works is when you supply power to the input (left side of latch) it will lock on that side and keep supplying power (like a lever). Think of this as "Left Side Input = Active" "Right Side Input = Reset". The active input is from either of the gate buttons. Once you press a button it switchs to the active side of the latch keeping power on the gate allowing it to rise.

    Heres what it looks like switched.
    RS NOR Latch w delay active.jpg

    Look how there is a signal slowly moving through the repeaters. Once that signal reaches the right side "Reset Input" it flips the latch and resets the system, closing the gate. You could also replace the repeaters with a button and not connect it to "Gate Button 2" this would create a manual reset. Such as if you want an outside "Open" button and a inside "Close" button.

    I used almost the exact same setup for the delayed close on the moving floor.

    If you need some tutorials on redstone check out sirdavva's Channel

    Hope this helps.;)
     
    Captain Chaos and ddubois89 like this.
  23. Offline

    ddubois89

    @Thorns_Ofire

    Thanks. I started making a xnor gate last night had some issues with expanding it and implementing it into my exising bridge and gate system but im getting closer. Im sure ill get it by tonight. thanks for the pictures/explanation. its wicked helpful

     
  24. Offline

    Dave Wright

    Great Addon, everyone that see's it in action is awalys impressed and pretty gobsmacked, on a boring adminy type note any chance you could integrate it with 'CraftBukkitUpToDate' to make that side of my bits easier ? :)
     
  25. Offline

    Captain Chaos

    It already is!
     
  26. Offline

    Dave Wright

    Ahh my bad, just realised I was running 1.03 still :eek:
     
  27. Offline

    blutherz

    where can i get the v. 1.2? :D
     
  28. Offline

    Captain Chaos

    There is no version 1.2 of this plugin...
     
  29. Offline

    Specops343

    Chaos, have you thought of adapting something like this to make elevators? I love the rising portcullis's like this but think this way of movement would be awesome with elevators.
     
  30. Offline

    Captain Chaos

    You're not the first to ask about it, but I'm not sure. I think it would be hard to get working right. The bridge plugin now moves people standing on it along with it, but it doesn't always work. Sometimes you suddenly remain standing right where you are and the bridge moves from underneath you, causing you to fall. The same thing would probably happen with elevators. Who knows though...
     
  31. Offline

    blutherz

    Hi, i think if you only let in this plugin the one and only porte cullisante function, will be make it more clean.

    Better make a second plugin like for the bridge etc etc.

    I prefer simple plugins which are stable and at moment prote cullisante works great stable
     
Thread Status:
Not open for further replies.

Share This Page