[MECH] MagicTorches v1.0 - Create Wireless Redstone Torches [BUKKIT DEV]

Discussion in 'Archived: Plugin Releases' started by sorklin, Oct 11, 2011.

  1. Offline

    sorklin

    [​IMG]

    MagicTorches gives you a way to make wireless redstone torch connections. Each MagicTorch array has one transmitter and any number of receivers. When the transmitter changes its state (to on or off), that change is transmitted to all of the receiver torches.

    See BukkitDev for more information.



    Download here.
    Source here.
    Maintained at BukkitDev.

    Commands
    /mt create <name> [direct|inverse|delay] - Creates a MagicTorch array. Receiver torches selected will be direct (default), inverse, toggle, delay or timer.
    /mt edit <name> - Edit a torch array.
    /mt cancel - Cancels a torch creation or edit.
    /mt finish - Finishes the creation of a MagicTorch array.
    /mt direct - Sets the next receiver torches selected to be direct receivers.
    /mt inverse - Sets the next receiver torches selected to be inverse receivers.
    /mt delay - Sets the next receiver torches selected to be delay receivers.
    /mt delete <name> - Delete the named torch array.
    /mt info <name> - Shows info for the named torch array.
    /mt list - lists torch arrays that you own.
    /mt reload - reloads MagicTorches from the database.

    Permissions
    magictorches.access- allows a user access to many functions of MagicTorches.
    magictorches.create.direct - allows a user to create a direct receiver.
    magictorches.create.inverse - allows a user to create a direct receiver.
    magictorches.create.toggle - allows a user to create an inverse receiver.
    magictorches.create.delay - allows a user to create a delay receiver.
    magictorches.create.timer - allows a user to create a timer receiver.
    magictorches.admin - allows a user to see, edit, list and delete all MagicTorch arrays. Also allows user to reload the MT db and other things.



    Change Log
    v.1.0:
    • So much. Just look at Bukkit dev.
     
  2. not even the off version of the redstone torch? i'm sure you already know that they're technically two different items.
     
  3. Offline

    sorklin

    Yes, I know they are two different items. :rolleyes:
     
  4. so couldn't they be used? >.> i'm just spitballing ideas... because torches give off unwanted light... so... ya... i do wonder if it's possible at all.
     
  5. Offline

    mip6886

    Is there a way that i can set 2 transmitters?
     
  6. Offline

    sorklin

    As I said in my earlier post, Redstone_torch_off gets reset every physics cycle to ON, unless there is a power input. The physics event for that could be cancelled, though it would create lag (cause you're checking thousands of physics calls for the all worlds for a match for every receiver before cancelling), and even if you do cancel them all, some physics events aren't raised, so the torch randomly changes to ON anyway.

    Make two arrays. Each array can have only one transmitter for many reasons (logic and practical). You can, however, create two (or more) arrays (with their transmitters) using the same receivers, which produces the same effect. So, for example, Array A (with Transmitter A) and Array B (with Transmitter B) can both have Receiver A be in their arrays. And they can each make Receiver A be a different type. For example, in Array A, Receiver A is a Direct receiver, but in Array B, Receiver A is a Delay Reciever. etc.
     
  7. ah... ok i understand. oh well :p thanks for explaining
     
  8. Offline

    DeargFaolchu

    not sure y but am getting this >16:09:06 [INFO] [MagicTorches] Enabling MagicTorches v1.0.1
    >16:09:06 [INFO] [MagicTorches] Initializing MagicTorches
    >16:09:06 [INFO] [MagicTorches] Loading config
    >16:09:06 [INFO] [MagicTorches] MiniDB found or created. Loading DB
    >>16:09:06 [WARNING] [MagicTorches] NPE on torch: sugarcane
    >>16:09:06 [WARNING] [MagicTorches] NPE on torch: sugarwater
    >>16:09:06 [WARNING] [MagicTorches] NPE on torch: sugarpiston
    >>16:09:06 [WARNING] [MagicTorches] NPE on torch: bridge1
    >>16:09:06 [WARNING] [MagicTorches] NPE on torch: faolchudoor1
    >>16:09:06 [WARNING] [MagicTorches] NPE on torch: shutdownroom
    >>16:09:06 [WARNING] [MagicTorches] NPE on torch: faolchudoor1.2
    >16:09:06 [INFO] [MagicTorches] Loading 0 magictorch arrays.
    >16:09:06 [INFO] [MagicTorches] Initializing commands and events
    >16:09:06 [INFO] [MagicTorches] Plugin initialized
    everytime my server restarts
     
  9. Offline

    sorklin

    upgrade to 1.02 and see if you still have the problem.
     
  10. Offline

    DeargFaolchu

  11. Offline

    nm3230

    Awesome plugin! Trying it now!
     
  12. Offline

    spaztazticii

    I have a recommendation...can you make it so the a receiver can be these new fangled glowstone lamps? i would like to create a flickering column without extra blocks on the sides.
     
  13. Offline

    sorklin

    I'm not sure it would work with the plugin mechanics, but I'll take a look.
     
  14. Offline

    spaztazticii

    Thank you if anything it would just be nice to change the item that's being toggled...like a lit lamp to an off lamp...since they have different IDs. I don't know much about plugins and their creation but a tad about code and i can't seem to alter any...
     
  15. Offline

    sorklin

    Okay, I experimented with that, and it suffers from the same issues as redstone torches -- lamps immediately revert to off unless they're receiving active redstone power. Cancelling the physics events doesn't work, because the lamps randomly revert anyway. Sorry, you're going to have to power the lamp from a receiver torch, and just try to hide it as best as you can.
     
  16. Offline

    spaztazticii

    aw :( Thanks for trying.
     
  17. Offline

    Apparentthreat

  18. Offline

    sorklin

    Still works just fine. Go to bukkit dev.
     
  19. Hi! Still getting that NPE since long.

    Multiworld still not supported?
     
  20. Offline

    sorklin

    What is your multiworld plugin? I can easily add it to the soft depend if you specify. Currently I support Multiverse and MyWorlds. Tell me what you have and I'll add it to the depend.
     
  21. It's MyWorlds from Bergerkiller actually...
     
  22. Offline

    sorklin

    Can you pastebin your entire log file, from startup to the problem and give me the link?
     
  23. Offline

    sorklin

    Okay, I posted 1.0.3 with a revised My Worlds softdepends. Try that (when its approved) and let me know if it works.
     
  24. Works just fine now, thanks a lot for your efforts!
     
  25. Offline

    rubdos

    Hey, just installed the plugin. Works well, but I've a question. I used "WirelessRedstone" before. It could have multiple transmitters (a feature that wasn't bug-less, but it did it for us). I quit using it because of the way you had to add receivers (MT does it quite fast, TBH). I'm using WorldEdit to stack several redstone circuits and WiFi redstone will make things go lot smoother. But it's quite annoying to have to rewrite every single sign in a tower of 16 floors with 12 signs on each. Left/right clicking a torch is much faster.

    But I need multiple transmitters on one channel (like an OR gate). Would that be possible to implement?
     
  26. Offline

    erick107

    i cant create an array it says missing required arguments
     
  27. Offline

    sorklin

    rubdos
    I have plans for that in the future, but have been writing some other plugins at the moment, which is taking up most of my time. One option a friend did was a have multiple arrays. So the "inputs" would transmit to a hidden circuit (or/nor/xor whatever) and it's output would transmit back. So it was like what you want, but with a bit more work.

    But I do have eventual plan of putting in extra "inputs" in order to create new types of outputs (ie. those that are circuits).

    erick107
    You'll need to supply the missing parameters.

    (seriously, that was about the most unhelpful request for help I have ever seen. What are you doing and what is the messages? There is /mt help for specific detail of what parameters are needed to do what).
     
  28. Offline

    rubdos

    The problem is, I've got several hundreds of inputs in one channel... But just one of them will actually output a on state...

    Can I fork you on github and mess around a bit? ;D
    EDIT: I forked, but I'm a c++ guy, I'd probably mess it up :p
     
  29. Offline

    sorklin

    Fork all you like. Its open source!
     
    rubdos likes this.
  30. Offline

    rubdos

    That's the spirit! :) I'll have a deeper look at it today... Should I do the ports already? Or just multiple transmitters? :p
     

Share This Page