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

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

     
  1. Offline

    sorklin

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    [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.

    This post has been edited 10 times. It was last edited by sorklin Mar 6, 2012.
  2.  
  3. Offline

    8_year_old

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Looks amazing. I might end up using this on my server.
  4. Offline

    sorklin

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Just an fyi, I'm in the middle of a ground up rewrite that will enable torch array editing, new torches, etc. Sorry for the delays.
  5. Offline

    tonyt387

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    dam guess i gotta wait for the 1.1 version
  6. Offline

    sorklin

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    As I mention on bukkitdev, the new version will have two new torch types, torch editing, enable/disable per array, etc.
    The old version will work on 1.1, at least in my testing.
  7. Offline

    Psychokiller1888

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Hi!First of all, thank you for this plugin, good idea, well made and easy to use. Exactly what I was searching. Installed it, used it, works just fine. But on server restart I get this nice NPE:

    And so on, for every arrays I created. In game, there's no array then, of course, they failed at loading...

    I'm using latest recommended bukkit, I guess it might come from that?
  8. Offline

    sorklin

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Nope. Most likely its from a multiworld plugin that hasn't loaded. Are you using multiverse or some other multi world plugin?
  9. Offline

    Psychokiller1888

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
  10. Offline

    Zamatica

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Alright, say we want hidden redstone with this it is easy to do. But if it is on top of a Building at night there will be an unwanted glow. Could you add like a .cfg or something to edit the block id from Redstone Torch? If not i will deal with it.
  11. Offline

    sorklin

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    @Psychokiller1888, I'll try to implement something for that. I'm in the middle of a huge rewrite, so it may be a little while.

    This post has been edited 1 time. It was last edited by sorklin Feb 8, 2012.
  12. Offline

    Psychokiller1888

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Yeah no problem, i can wait. Thank you!
  13. Offline

    8_year_old

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    I've been getting this error in my log with Magic Torches. What's going on? I'm using bukkit-1.1-R3-b1846jnks

    [IMG]
  14. Offline

    sorklin

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    You need to paste your whole log (from startup to the errors) in pastebin and link here. I can't work with screenshots of logs.
  15. Offline

    8_year_old

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Does this work? I lost the very top of the log because a couple players logged in and the log scrolled down beyond the absolute start. Most of it is here, though.

    http://pastebin.com/BZGKx5w1
  16. Offline

    sorklin

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    No. In order to help you, I have to see the entire log, from boot to where the problem begins.
  17. Offline

    harryjamesuk

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Thanks, It's brilliant! Just what I needed and it's really easy to use.
  18. Offline

    8_year_old

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    I haven't had any further issues with this plugin since that original one. It's been working perfectly as intended.
  19. Offline

    dgersting

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    In your demo video you mention that you can setup multiple transmitters for the same array. How do you actually do this? It seems to be overwriting the 1st transmitter with the 2nd (it's only keeping the last one)
  20. Offline

    sorklin

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    I meant setting up multiple arrays (with one transmitter each) for the same receiver torch. That is, a receiver can be in multiple arrays. However, this may make it act erratically.

    By the way, I just finished initial coding of 1.0. I have some extensive testing and debugging before it will be posted, but this means R5 compatability and:
    • Two new torch types (with new ones being simple to add later) -- timer and delay (current delay torch renamed to toggle).
      • Timer torches receive a signal, click on (or off), waits a period of time, then click back to original state.
      • Delay torches receive a signal, wait a specific period of time, then change state. (Acts as if there is a repeater between the transmitter and receiver).
    • Vault support (for economy). Torch arrays are priced by whole array (creation and editing), and/or per receiver type (or you can keep em free!)
    • More granular permissions for specific receivers (i.e., you can make it so that people can only create direct receiver arrays, etc.)
    • Full torch editing -- allows you to edit an array, just like when you created it (i.e., add/remove receivers, change transmitters, etc.). Arrays are inactive during editing process.
    • Better torch information tools (e.g., receivers know who their parents are).
    • Transmission Signals are now handled through events, so its possible to hook them with other plugins
    • Transmission can load chunks, if they need to, and you allow it
    • Arrays can be distance limited
    • Admins can activate/deactivate all of the arrays on the fly (doesn't yet do specific array activation/deactivation).
    This may take a bit of time to fully test, but the coding is mostly done.
  21. Offline

    sorklin

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    This is almost finished with debugging, and it fully works with R6 (and hopefully 1.2 when it goes RB).
  22. Offline

    sinkir

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Code:
    [GRAVE] Could not load 'plugins\MagicTorches.jar' in folder 'plugins'
    org.bukkit.plugin.InvalidPluginException: java.lang.NoClassDefFoundError: org/bukkit/event/player/PlayerListener
            at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:148)
            at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:287)
            at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:211)
    [...]
    
    At the server start.
    build 2029

    This post has been edited 1 time. It was last edited by sinkir Mar 3, 2012.
  23. Offline

    sorklin

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    The current version will not work. However, I have a dev version of 1.0 that works well. The problem is that there are still bugs and a few missing features (paged listings and help) that need to be added before it ready for prime time.
  24. Offline

    sinkir

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Can we help you to find bugs:) ? (can you share the dev version ? :rolleyes:)
  25. Offline

    sorklin

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    I'll post a dev if you want, but its not quite finished (i.e. no help, no list of arrays, etc.)
  26. Offline

    Astaroth_j

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Hi! How is the update going? I'm anxious to see this working in 1.2.3. I haven't upgrade my server just waiting haha.

    This post has been edited 1 time. It was last edited by Astaroth_j Mar 6, 2012.
  27. Offline

    sorklin

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Just posted 1.0 to Bukkitdev. It may take a bit of time for the mods to approve it.
  28. Offline

    Astaroth_j

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Awesome, it works. Thank you!
  29. Offline

    Ahnimac

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    i can only set one transimiter to the array :S how could i make multiple transmiters to the arrey ?
  30. Offline

    sorklin

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    You can't. Make multiple arrays -- remember, receivers can receive from multiple transmitters.
  31. Offline

    Things

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Hey, just curious, does anyone experience lag on the server when the wireless torches are toggling between on and off state? I'm trying to create sort of a whole village lighting system, and thought it'd be kinda cool to have them all flash on and off, but every time they switch minecraft pauses for a split second? Happens to everyone on the server, not just me.

    I do admit I have a fairly huge amount of receivers though. I tried disabling chunk update on receive but didn't seem to help.

    Awesome plugin in any case :)

    This post has been edited 1 time. It was last edited by Things Mar 10, 2012.
  32. Offline

    sorklin

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    This plugin definitely isn't optimized for very large arrays. If there is enough need, I'd add some queuing so that it wouldn't try to do all the transmit/receives in one go.

Share This Page