[INACTIVE][MECH] Quantum Circuits v0.8.3 - Remote control redstone via signs [740]

Discussion in 'Inactive/Unsupported Plugins' started by Ne0nx3r0, Apr 7, 2011.

  1. Offline

    Ne0nx3r0

    This plugin has been replaced with
    Quantum Connectors

    -----------------------------------------------------------------------

    Quantum Circuits v0.8.3 [733][INACTIVE]

    Simplify redstone designs by remotely controlling your levers with a sign.

    *0.7 - Added "qon" and "qoff" circuits (whenever they receive power, they always turn the receiver on/off respectively)
    *0.6 - Added "qlag/a/b" toggle
    *0.4 - Added quantum toggles, the same usage as quantum circuits, but the first line needs to read "qtoggle", every time it receives power after not having power it will toggle the lever. Great for toggles and memory cells!

    Download
    Source Code

    Usage:
    Show Spoiler

    Step 1 - place a lever where you want to remote control
    Step 2 - Holding some redstone click on the lever
    Step 3 - Place a sign with the first line labeled either quantum/qtoggle
    Step 4 - Click on the sign with some redstone to transfer the coordinates
    Step 5 - Whenever the redstone near the sign receives power, your lever will too!

    qlag Usage:
    Show Spoiler

    Same as other toggles, except format is: qlag/a/b, where a = on lag time in seconds, and b = off lag time in seconds

    So, qlag/2/10

    Would create a circuit that turns on two seconds after the sender receives power, and turns off 10 seconds after it loses power.

    Changelog:
    Show Spoiler

    Version 0.8.3
    • Bug fix for signs with less than 4 characters
    Version 0.8.2
    • Minor tweaks, [possible] bug fix
    Version 0.8.1
    • Bug fix with 'qon', etc toggling when a circuit is already on
    Version 0.8
    • Mainly tweaks, bug fixes, different flow though.
    Version 0.7
    • Added qon, qoff circuits
    Version 0.6
    • Added qlag circuit
    Version 0.5.1
    • Fixed bug with empty hand throwing a null error
    Version 0.5
    • Added transferring coordinates with redstone
    Version 0.4
    • Added quantum toggles
    Version 0.3
    • Fixed bug with negative XYZ cords
    Version 0.2
    • Added support for signs underneath redstone


    Do you like this plugin? Click like so I know! ; )
     
  2. Offline

    Plague

    please update to latest rb
     
  3. Offline

    Ne0nx3r0

    I'm running it on 670 and it works fine; I've updated the title to reflect that.
     
  4. Offline

    deathwish00

    i have been trying to get it to work and i have it say that quantum coords. Transfured but yet it doesnt work when i try it. running craftbukkit 646. I also got this error a couple of seconds ago now.
    "18:55:04 [SEVERE] Could not pass event PLAYER_INTERACT to Quantum Circuits
    java.lang.NullPointerException
    at Ne0nx3r0.QuantumCircuits.QuantumCircuitsPlayerListener.onPlayerIntera
    ct(QuantumCircuitsPlayerListener.java:22)
    at org.bukkit.plugin.java.JavaPluginLoader$9.execute(JavaPluginLoader.ja
    va:252)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.jav
    a:59)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.j
    ava:255)
    at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEven
    t(CraftEventFactory.java:162)
    at net.minecraft.server.ItemInWorldManager.a(ItemInWorldManager.java:208
    )
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:447)
    at net.minecraft.server.Packet15Place.a(SourceFile:57)
    at net.minecraft.server.NetworkManager.a(NetworkManager.java:198)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:72)
    at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:368)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:283)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:375)"
     
  5. Offline

    Ne0nx3r0

    My fault, apparently I never tested it with nothing in my hand, heh. The download link goes to the updated version, that should fix it for you. :)
     
  6. Offline

    deathwish00

    I updated and now my server goes into this error that just loops to living hell, I cant copy and paste it because it is in constant flow so im not sure how to show u this one
     
  7. Offline

    Ne0nx3r0

    If you open server.log that should have what it's saying
     
  8. Offline

    deathwish00

    nvm, i got it
    "22:20:58 [SEVERE] Could not pass event PLAYER_INTERACT to Quantum Circuits
    java.lang.NullPointerException
    at Ne0nx3r0.QuantumCircuits.QuantumCircuitsPlayerListener.onPlayerIntera
    ct(QuantumCircuitsPlayerListener.java:26)
    at org.bukkit.plugin.java.JavaPluginLoader$9.execute(JavaPluginLoader.ja
    va:252)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.jav
    a:59)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.j
    ava:255)
    at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEven
    t(CraftEventFactory.java:162)
    at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEven
    t(CraftEventFactory.java:133)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:663)
    at net.minecraft.server.Packet18ArmAnimation.a(SourceFile:35)
    at net.minecraft.server.NetworkManager.a(NetworkManager.java:198)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:72)
    at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:368)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:283)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:375)"
    This happened everytime i broke a block with redstone.
     
  9. Offline

    Ne0nx3r0

    Are you sure that's the updated file? it should be ~10kb. I tried breaking a few things with redstone and didn't get the error. The version in your log should say 0.5.1, when it loads.
     
  10. Offline

    deathwish00

    its "22:19:22 [INFO] Quantum Circuits version 0.5.1 ENABLED" im running craft bukkit 646
     
  11. Offline

    Ne0nx3r0

    After looking at the line that error was coming from it looks like it could happen if you are clicking on air, I've updated it to rectify this - try a fresh download, I think that should fix it.
     
  12. Offline

    ROFLCopter64bit

    Yay! Quantum Mechanics are implemented in Minecraft!
     
  13. Offline

    deathwish00

    This plugin is great but a good idea would be if it also to could do it in reverse. So if i were to hit the target switch it would turn off the switch connected to the sign
     
  14. Offline

    Ne0nx3r0

    It gets complicated when you try to recursively activate redstone; paradoxes and time continuums such (interestingly enough I've yet to blow up a server building with these, the circuits themselves seem fairly stable). I suppose you could do it with just two levers and link them, however one of the reasons I set the plugin up to use signs is so that it doesn't require any external storage (and holds its integrity with the IG blocks).

    I think for most setups, you only really are using one way communication anyway; I'd be interested to hear of something that requires it to go both directions though.

    You could also just make two signs and two levers, to get a basic communication setup.
     
  15. Offline

    deathwish00

  16. Offline

    woodzy

    dont get me wrong nice plugin but i think the craft/falsebook allready have something like this i beleve therew called transmitters/recevers mc1110/mc0111
     
  17. Offline

    Ne0nx3r0

    I've used transmitters, and they are pretty cool. To be honest this is just my excuse to learn Java; but that said I do like the way it works a little better, and I'm playing around with a lot of interesting extensions for it.
     
  18. Offline

    woodzy

    well learning java is a really good thing. maby you could get the game server mulit core XD i cant get mine to use more then one core
     
  19. Offline

    Zirind

    Is it possible to have 1 sign and multiple associated levers?
     
  20. Offline

    Ne0nx3r0

    You can put two signs next to the same redstone wire
     
  21. Offline

    Zirind

    Yeah, was just curious. This is pretty handy (And a lot easier to understand than anything else I found)
     
  22. Offline

    Ne0nx3r0

    I've debated on upgrading it to allow multiple associations with each sign, but one of the things I like about this is that it doesn't have any storage requirements. It's all in game mechanics.

    Actually come to think of it, if it was using hex it could store one location per line (15 characters). FFFFF allows for over a million unsigned numbers, or ~500,000 signed. I don't -think- anyone would go outside of -500,000 to 500,000, so that might work to store up to three locations.

    I could use this, I just had to setup a tripod forwarder for four pressure plates that do the same thing last night. I'll take a look at this today/tonight. :)
     
  23. Offline

    derchris

    I have some trouble getting the remote circuits to work.
    We tested today, we have a working circuit for a door, with a lever.
    It is opening/closing the door no problem. We then used redstone, on the lever, which returned "Quantum location stored".
    We then build another 2 block redstone circuit, with a lever on a stone block. creating the sign with either quantum or qtoggle in the first line, clicking on it with redstone confirmed "Quantum coorinates transfered"
    Powering the redstone now is working, however the remote lever is not.
    Are we doing something wrong?
    You said" stand on the lever" I was standing on the stoneblock where the lever was connected to, and pointed to the lever with redstone. Only then I was able to get the first message. So I think they way we were getting the remote lever was correct.
    But we are not able to get it to work at all.
    Any help much appreciated.

    Thank,
    derchris
     
  24. Offline

    Ne0nx3r0

    I should have removed the part about standing on the lever, that's no longer necessary since you can transfer coordinates with redstone; you should be able to see the xyz coordinates on your sign.

    I think I know what's causing this for you, and I'll take a look at it tonight; however for now you can try putting a piece of redstone down next to your sign, so when the redstone gets powered the sign will as well.
     
  25. Offline

    derchris

    After some trial and error we got it working. So at the moment, the remote is only working when the lever is on top of a block, not on the side.
    Not sure if it should be like this.
     
  26. Offline

    Zirind

    Any progress on that? I want to open a whole bunch of doors in different places at once lol. :) And I've had derchris' problem too. I couldn't find a solution to it.
     
  27. Offline

    derchris

    I also get the following error when using the remote switch:

    Code:
    2011-04-16 02:22:09 [SEVERE] Could not pass event REDSTONE_CHANGE to Quantum Circuits
    java.lang.StringIndexOutOfBoundsException: String index out of range: 4
            at java.lang.String.substring(String.java:1934)
            at Ne0nx3r0.QuantumCircuits.QuantumCircuitsBlockListener.onBlockRedstoneChange(QuantumCircuitsBlockListener.java:60)
            at org.bukkit.plugin.java.JavaPluginLoader$30.execute(JavaPluginLoader.java:380)
            at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:59)
            at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:255)
            at net.minecraft.server.BlockLever.a(BlockLever.java:136)
            at net.minecraft.server.BlockLever.b(BlockLever.java:117)
            at net.minecraft.server.ItemInWorldManager.a(ItemInWorldManager.java:75)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:356)
            at net.minecraft.server.Packet14BlockDig.a(SourceFile:42)
            at net.minecraft.server.NetworkManager.a(NetworkManager.java:198)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:72)
            at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:368)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:283)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:375)
    
     
  28. Offline

    Ne0nx3r0

    Should be fixed now, still playing with adding the three locations / sign in; mostly it's taking a little bit of work so it's backwards compatible, and can convert old signs to the new setup
     
  29. Offline

    Blazednlovinit

    Hello Mr Plugin Developer, i love the concept of this plugin and the possibilities seem endless now i dont have to get into wire tangle madness. however, i think your plugin might have broken my elevator XD using elevator plugin and each floor has 8 buttons and 4 signs near the buttons (inbetween them all) to show which button takes to which floor. they all stop working anyway and when pushed the console spams severes quoting your plugin.

    "could not pass event redstone_change to quantum circuits..."

    any help? because i'd love to use this. Thanks for your time :)
     
  30. Offline

    Ne0nx3r0

    Can you share a bit of the logs so I can take a look? Also, what plugin for elevators are you using?
     

Share This Page