Inactive [MISC] SupplySign - Infinite Item Distribution w/ Signs(chest/dispenser also supported)

Discussion in 'Inactive/Unsupported Plugins' started by redsgreens, Mar 10, 2011.

  1. Offline

    redsgreens

    SupplySign is now on dev.bukkit.org! Go there for the latest versions, a dedicated support forum, and ticket tracking system: http://dev.bukkit.org/server-mods/supplysign/

    SupplySign - Infinite Items Distribution via Signs (now with dispenser support!)

    Use this plugin to distribute items and blocks to your players by creating [Supply] signs that load a chest interface when right-clicked. These signs can also be placed on chests.

    Download: http://dev.bukkit.org/server-mods/supplysign/

    The Basics:
    • Place a sign
    • Set the first line to [Supply]
    • On each of the remaining lines, put the name(or item id) of the contents of the supply sign
    • Right-click the sign to open the chest.
    Chest Sign: To place a sign on a chest, make sure it is not within one block of another chest. Place your supply sign on the ground next to the chest and it will attach itself to the chest after you are done editing the sign. Right-clicking the sign or the chest will display the contents of the sign. If you want, you can put two signs on a large chest.

    Dispensers: Attach a sign to a dispenser in the same way you would attach one to a sign. The inventory of the dispenser will always be full of whatever is on the sign. If you use a kit, or if you put multiple items on the sign, only the first will be used. Remember that dispensers require redstone to activate, so it might be a good idea to wire up the dispenser and test it before attaching the sign. If the dispenser doesn't work without a SupplySign on it, then I can't help you (I'm no redstone expert).

    Using Kits: To use a kit, set the first line to [Supply] as usual, then put "kit:" followed by the kit name on the second line, ie. "kit:wool".
    Default Kits: wool, dye, woodtools, woodplus, irontools, ironplus, diamondtool, diamondplus, goldtools, goldplus, desert, makecake, chainmail

    Permissions:
    • Ops and players with the "supplysign.create" permission will be able to place supply signs.
    • Ops and players with the "supplysign.access" permission will be able to access them.
    • Ops and players with the "supplysign.destroy" permission can destroy existing supply signs.
    • Ops and players with the "supplysign.reload" permission can trigger a reload of items/kits data.
    • Players with "supplysign.access.kitname" can access the kit called "kitname".
    If you don't use permissions: Only Ops will be able to place SupplySigns. There is a config file option that will allow non-op players to access signs, but not place them.

    Data Files: After the plugin has been loaded for the first time, a "supplysign" data folder will be created in the bukkit plugins folder with two files in it: items.csv and kits.yml. You can customize these files to add new kits or modify item names. Use "/supplysign reload" to load your changes without restarting the server. NOTE: When editing these files, make sure the format doesn't change. On Windows, use something like Wordpad. There has been a report that OpenOffice can change the files in a way that breaks the plugin.

    Config File: Used to configure the ShowErrorsInClient, FixSignOnSignGlitch, and AllowNonOpAccess options. Check out the (automatically created) config.yml file for more info.

    Screenshots:
    example-using-kit.png
    This is an example of a SupplySign with a kit.

    example-sign-contents.png
    And here is what you see when you right-click the sign in the previous screenshot.

    example-chest-sign.png
    This is what a chest with a sign on it looks like.

    2011-05-09_15.52.15.png
    An arrow being fired from an infinite arrow dispenser. Watch out!

    This video gives an example of how to attach a SupplySign to a dispenser.​

    Thanks:
    This plugin was originally based on the [Free] sign code from Essentials by Zenexer. Without his hard work there would be no SupplySign plugin. Thanks!
    Also thanks to vitaminmoo for testing this plugin and developing the kits.yml format.

    Old Changelog (open)

    Version 1.7.1 (08/09/2011)
    • Removed support for air blocks in signs (they break the game)
    • Corrected spelling of some items in items-base.csv
    • Replaced calls to deprecated Bukkit methods
    Version 1.7.0 (07/05/2011)
    • Added pistons and shears support
    • Access to SupplySigns on chests can now be protected by Lockette, WorldGuard, etc (allows finer grained access than previously possible)
    Version 1.6.3 (06/26/2011)
    • Added workaround for conflict with plugins that alter sign text color
    Version 1.6.2 (06/22/2011)
    • Fixed small bug related to custom items with a stack size less than the maximum for that item
    Version 1.6.1
    • The kit/item names are now case insensitive (suggested by Maxis010)
    Version 1.6
    • Replaced "items.csv" file with "items-base.csv" and "items-custom.csv" files to better handle new items added to Minecraft.
    • Added AllowNonOpAccess config file option (requested by Xiangliang2)
    Version 1.5
    • SupplySigns on dispensers now supported! (CB766 or higher required)
    Version 1.4
    • Fixed bug that prevented numeric item codes in kits.yml file (discovered by piousminion)
    • Added permission support for "supplysign.access.kitname" so you can restrict which kits a user/group can access (suggested by RaCooN)
    Version 1.3
    • Fixed bug where empty kits.yml file would break basic functionality.
    • Added support for large chests.
    Version 1.2
    • Fixed awful bug (discovered by Harushimo) that caused all signs in game to show an inventory. Oops.
    Version 1.1
    • Added new "supplysign.destroy" permission that can keep unauthorized players from destroying signs.
    • Updated to support Bukkit build 602. Servers running Bukkit 531/556 should still use version 1.0.
    Version 1.0
    • Added configurable option to hide client side error messages.
    • Fixed glitch where signs can be placed on other signs (can be disabled).
    • Config file support added.
    Version 0.9
    • Added support for signs on chests.
    Version 0.8
    • Added some diagnostic messages describing the number of items and kits loaded.
    • Fixed a typo in the items.csv file breaking birchwood and redwood. If you haven't customized your items.csv file, then just delete it and it will be recreated with the error corrected.
    Version 0.7
    • Initial release to the world.



    If you have problems: Check the diagnostic messages from SupplySign on the server console. You should see something like this when the plugin starts up, or when you use /supplysign reload :

    08:01:07 [INFO] SupplySign loaded 1092 items from items.csv.​
    08:01:07 [INFO] SupplySign loaded 16 kits from kits.yml.​

    If you see something like this:

    07:55:53 [INFO] SupplySign error: while parsing a flow sequence; expected ',' or ']', but got StreamEnd​
    07:55:53 [INFO] SupplySign loaded 1092 items from items.csv.​
    07:55:53 [INFO] SupplySign loaded 0 kits from kits.yml.​

    Then there is a typo in your kits.yml file and zero kits were loaded because of it. Unfortunately Yaml is a bit touchy about typos.

    If you can't figure out what's happening, post a capture of the SupplySign console output and attach your items.csv and kits.yml files to a your post so I can try and reproduce the problem. A screenshot of your sign could be useful as well.
     
  2. Offline

    Mighty Mackinac

    Looks like what I was looking for. will check it out.

    UPDATE

    ok I tried editing the items file and after i was done, i reloaded. clicked on sign, nothing showing in box. Here's the exception im getting.

    Code:
    23:59:39 [SEVERE] java.lang.Exception: Unknown item name: ironshovel
    23:59:39 [SEVERE]       at redsgreens.SupplySign.SupplySign.getItem(SupplySign.j
    ava:237)
    23:59:39 [SEVERE]       at redsgreens.SupplySign.SupplySign.showInventory(Supply
    Sign.java:372)
    23:59:39 [SEVERE]       at redsgreens.SupplySign.SupplySignBlockListener.onBlock
    RightClick(SupplySignBlockListener.java:54)
    23:59:39 [SEVERE]       at org.bukkit.plugin.java.JavaPluginLoader$20.execute(Ja
    vaPluginLoader.java:259)
    23:59:39 [SEVERE]       at org.bukkit.plugin.RegisteredListener.callEvent(Regist
    eredListener.java:59)
    23:59:39 [SEVERE]       at org.bukkit.plugin.SimplePluginManager.callEvent(Simpl
    ePluginManager.java:255)
    23:59:39 [SEVERE]       at net.minecraft.server.NetServerHandler.a(NetServerHand
    ler.java:493)
    23:59:39 [SEVERE]       at net.minecraft.server.Packet15Place.a(SourceFile:57)
    23:59:39 [SEVERE]       at net.minecraft.server.NetworkManager.a(SourceFile:230)
    
    23:59:39 [SEVERE]       at net.minecraft.server.NetServerHandler.a(NetServerHand
    ler.java:76)
    23:59:39 [SEVERE]       at net.minecraft.server.NetworkListenThread.a(SourceFile
    :100)
    23:59:39 [SEVERE]       at net.minecraft.server.MinecraftServer.h(MinecraftServe
    r.java:357)
    23:59:39 [SEVERE]       at net.minecraft.server.MinecraftServer.run(MinecraftSer
    ver.java:272)
    23:59:39 [SEVERE]       at net.minecraft.server.ThreadServerApplication.run(Sour
    ceFile:366)
     
  3. Offline

    Solaris765

    sounds promising may try later this week
     
  4. Offline

    zergilng

    perfectly working #493
    but
    items.csv
    wood,17,0,64
    redwood,5,1,64
    rwood,5,1,64
    birchwood,5,2,64
    birch,5,2,64
    bwood,5,2,64

    need to modify
     
  5. Offline

    redsgreens

    @Mighty Mackinac: The error "Unknown item name: ironshovel" makes me think that there was a typo in items.csv data file. Can you attach your file to a post here?

    @zergilng: Thanks for pointing that glitch out. If you change the occurrences of "5" to "17" in your items.csv file, then the redwood and birchwood will start working properly. I'll fix it on my end as well. Not sure it warrants a new build just for this, but when the next one comes out it will include this fix.
     
  6. Offline

    Mighty Mackinac

    Yeah, the plugin created the proper folder and files. it worked fine until i edited the items file.


    Also, If possible consider adding option to use crates marked by signs, instead of just signs.

    Also, please talk with NoFear13 (CraftBukkitUpToDate) http://forums.bukkit.org/threads/ad...keep-your-server-plugins-up-to-date-400.5026/
    to add your plug-in to the list.

    Fix the bugs, do this list, and you will have an awesome plugin! Keep up the awesome werk!
     
  7. Offline

    redsgreens

    @Mighty Mackinac: Permissions support is already in. It's in the description.

    I like the look of chests marked with signs (like in Lockette) but it adds a lot of complexity that I wasn't ready for in my first plugin. :) I have been considering it, though.

    I'll take a look at the CraftBukkitUpToDate thing, looks interesting.
    [MERGETIME="1299860283"][/MERGETIME]
    I posted version 0.8 that fixes the birchwood/redwood typo and adds some diagnostic info on the server console.

    @Mighty Mackinac: please update and post any SupplySign messages you get on the server console. The stack traces should be gone, so you should just see useful error messages now.
     
  8. Offline

    Mighty Mackinac

    Ok Thanks! btw, just a formality. Thank you very much for being quick in your responses! Helps alot!

    Will update and let you know what happens.

    UPDATE:

    Ok tried editing the items file again. got the same error. Deleted edited file and regenerated a new one. plugin works fine. Im guessing it has something to do with the fact im using OpenOffice to edit it. Perhaps it is changing something...

    UPDATE 2: it was OpenOffice. it was doing something...used word pad instead. Please add disclaimer so no one else makes this mistake
     
  9. Offline

    redsgreens

    @Mighty Mackinac: I'm glad to hear it's working! I added a disclaimer to the first post about using a basic editor.
     
  10. Offline

    TPMJB

    I see you posted in the infchests thread. If you could make this somehow work with dispensers (so you could make it shoot arrows forever) you'd completely replace that plugin. Unfortunately dispensers doesn't even work with that plugin (even though they say it does).
     
  11. Offline

    Solaris765

    i seem to be having a problem were i can't destroy anything primarily right after i try and get rid of or place a sign. does anyone else have this problem?
     
  12. Offline

    redsgreens

    I haven't noticed this specific behavior. I have generally blamed problems like this on bukkit bugs, and they are generally resolved for me by restarting the server. Is this behavior reproducible after a server restart? Also, what bukkit build are you running?
    [MERGETIME="1299969818"][/MERGETIME]
    Version 0.9 is out, with signs on chests support! Check it out and let me know if/when you find some bugs.
     
  13. Offline

    ReapKarmah

    Think you could remove the error message for my players? They aren't allowed to use it so I don't even want them to see "Error: You don't have permissions to do this" when they right-click a sign.

    Thanks!
     
  14. Offline

    Solaris765

    i just remembered i had some sp mods in. i'll delete those then try again.
     
  15. Offline

    redsgreens

    That's not a bad idea. I'll work on adding a config file so that setting can be set according to the preference of the server admin.
     
  16. Offline

    ReapKarmah

    Thanks mate, much appreciated and I look forward to it!
     
  17. Offline

    Solaris765

    ok. that didn't help. i'll have to test each plugin 1 by 1 now.

    thanks for the plugin by the way. for those who have gotten it to work it seems like it gets the job done.
     
  18. Offline

    redsgreens

    I know it's a pain, but is there any chance that you could test SupplySign by itself? That would quickly rule in/out a conflict with another plugin.

    Also, what bukkit build are you running?
     
  19. Offline

    Arbitation

    Great plugin, please don't stop updating >.<

    So great to have Permissions support on inf. chests.

    EDIT: Found an error. Non-OPs, when accessing the inf. chests by right clicking on the signs can place other signs of they are holding a sign.
     
  20. Offline

    redsgreens

    I've noticed this weird behavior too. This bug is actually in Minecraft itself, so there's not much I can do about it. Try right-clicking on any old sign, not a supply sign, while holding another sign.

    2011-03-14_08.07.49.png
    I took this screenshot while running a completely stock server (using Minecraft_Server.exe, so no bukkit or anything).

    I've been trying to come up with a solution to this, and I'll keep working on it, but we may end up having to wait for Mojang to fix it.
    [MERGETIME="1300119512"][/MERGETIME]
    Actually, I just found a sort of hackish fix to this. I can't prevent the sign editing dialog from popping up when you try to place a sign on another sign, but I can delete the extra sign and give it back to the player after they click the done button. What do you think? Worth including in SupplySign? This hack could almost be a plugin on it's own...
     
  21. Offline

    Mozzay670

    Awesome plugin redsandgreens; I got it efficiently working, thanks. One question, how do i specify a the number of items say, i want 1 door not a stack?
     
  22. Offline

    redsgreens

    To change the stack amount, edit the items.csv file, find the item you want to modify, then change the 4th column in that row.

    That being said, every box in the sign inventory will be full. No way around this at the moment.
     
  23. Offline

    Solaris765

    i was running the latest recommended build 531 i believe. but I'm pretty sure i had some conflicting options turned on in the minecart mania plugins (conflicting or incomplete areas any way my fault). i'll have to test this plugin again later this week but otherwise i'm pretty sure that was the problem.

    I'll let you know how it goes when i get done testing your plugin alone and with the others installed later.
     
  24. Offline

    riuthamus

  25. Offline

    Solaris765

    ok i found my issue. it turns out our main map got seriously corrupt when we updated to world file type we just never went to the area it was corrupt at till this mod came about.
    [MERGETIME="1300171923"][/MERGETIME]
    I lied. i tested it now. it works wonders! thank you!
     
  26. Offline

    redsgreens

    I'll consider this, but to be honest, I've never understood the need for a monetary system inside Minecraft. Can you explain the attraction to me?


    That's great, I'm glad to hear it's working well. :D
     
  27. This would be even better if you also have it on dispensers
     
    TPMJB likes this.
  28. Offline

    darkcammo

    It would appear there is a bug with MultiVerse. When I go to any other world, not default world, I am unable to make supply signs except RIGHT at the spawn point for that world. A small inconvience but worth reporting.
     
  29. Offline

    dark_hunter

    I'm using this, I have an idea. as you know the chest has 4 lines, how about being able to spit the 2 with with different items?

    The sign would be like this:
    [Supply]​
    1​
    4​
    So than means the first 2 lines would be Stone and the second 2 lines would be cobblestone.​
    Discuss?​
    EDIT: Holly crap, already implemented.​
     
  30. Offline

    redsgreens

    That's a strange one. I'll download Multiverse and see if I can reproduce. What Bukkit build are you running?
     

Share This Page