All forum data (this website) will be deleted unless you vote to keep the forum.

Infinite Chests

Discussion in 'Plugin Release Discussion' started by MarioE, May 26, 2012.

  1. MarioE

    TShock Admin TShock Mod Plugin Developer

    Joined:
    May 26, 2012
    Messages:
    386
    BACK UP YOUR WORLD BEFORE USING THIS!!!

    Description:
    • Allows for a potentially infinite amount of chests in the world, by moving the chest data from the world file to a database.
    Permissions:
    • infchests.admin.convert - Allows /convchests.
    • infchests.admin.editall - Allows editing any chests.
    • infchests.admin.info - Allows /cinfo.
    • infchests.admin.prune - Allows /prunechests.
    • infchests.admin.refill - Allows /crefill.
    • infchests.chest.bank - Allows /cbank.
    • infchests.chest.bank.### - Allows up to ### bank chests via /cbank. Use infchests.chest.bank.* to override this limit.
    • infchests.chest.deselect - Allows /ccset.
    • infchests.chest.lock - Allows /clock.
    • infchests.chest.public - Allows /cpset.
    • infchests.chest.region - Allows /crset.
    • infchests.chest.protect - Allows /cset.
    • infchests.chest.unlock - Allows /cunlock.
    • infchests.chest.unprotect - Allows /cunset.
    Commands:
    • /cbank <ID> - Creates a bank chest when opened. Bank chests are similar to piggy banks in that linked chests will contain the same contents and will be saved across worlds.
    • /ccset - Cancels selecting a chest to protect/refill/etc.
    • /cinfo - Shows info on a chest when opened.
    • /clock <password> - Locks a chest using the password. Use "remove" as the password to remove it.
    • /convchests - Converts Terraria chests into database-formatted chests.
    • /cpset - Toggles the publicity of a chest.
    • /crefill [<time>] - Toggles a chest's refill status, adds a refill delay if applicable.
    • /crset - Toggles a chest's region share status.
    • /cset - Protects a chest when opened.
    • /cunlock - Unlocks a chest using the password.
    • /cunset - Un-protects a chest when opened.
    • /prunechests - Prunes all empty chests.
    • /rconvchests - Converts database-formatted chests into Terraria chests. This will immediately fail if the number of chests is more than 1000.
    Links:
     
    • Like Like x 9
    #1 MarioE, May 26, 2012
    Last edited by a moderator: May 27, 2015
  2. DankBud

    DankBud Level 8

    Joined:
    Jul 23, 2011
    Messages:
    228
    Just for the record i knew you could do it ;)
     
  3. InanZen

    InanZen Level 9

    Joined:
    Jan 11, 2012
    Messages:
    358
    can anyone confirm that this actually works?
     
  4. MarioE

    TShock Admin TShock Mod Plugin Developer

    Joined:
    May 26, 2012
    Messages:
    386
    Well, I spammed ~1039 chests on a test world, and it works as far as I can tell, but it'd be nice if someone else could, too.
     
    • Like Like x 2
  5. cuntnim

    cuntnim Level 2

    Joined:
    Jan 14, 2012
    Messages:
    35
    Hi this mite be a bit of a noob thing to ask but im trying to use this plugin but i dont no were it goes do i put the zip in the plugin folder pleas can u help as i have reached my chest limit :)
     
  6. MarioE

    TShock Admin TShock Mod Plugin Developer

    Joined:
    May 26, 2012
    Messages:
    386
    You extract the DLL from the zip and place it in the plugins folder...
     
  7. InanZen

    InanZen Level 9

    Joined:
    Jan 11, 2012
    Messages:
    358
    what happens when most of the current chests are using Chest Protection plugin?
     
  8. MarioE

    TShock Admin TShock Mod Plugin Developer

    Joined:
    May 26, 2012
    Messages:
    386
    It should work if you do /convchests; owner, refill, regionshare flags are not transferred, though.
     
  9. SpIit

    SpIit Level 2

    Joined:
    Feb 19, 2012
    Messages:
    28
    Does this work with K0rds chest generation plugin? (Like when I used K0rds genchests command, it deleted some of the empty chests that were protected (By the Chest Control plugin), and the order of the chests got really messed up.)


    *Edited for the sake of being specific.
     
  10. MarioE

    TShock Admin TShock Mod Plugin Developer

    Joined:
    May 26, 2012
    Messages:
    386
    After using /convchests, it should, but I'll try it out.
     
  11. InanZen

    InanZen Level 9

    Joined:
    Jan 11, 2012
    Messages:
    358
    i tried it on a test server. for some reason i cannot delete any chest. Since i dont see any delete command i assume that isnt normal?
     
  12. MarioE

    TShock Admin TShock Mod Plugin Developer

    Joined:
    May 26, 2012
    Messages:
    386
    Did you do /convchests first, and did you make sure to not use chest control as well?
     
  13. InanZen

    InanZen Level 9

    Joined:
    Jan 11, 2012
    Messages:
    358
    updated that server to 3.9 and deleted few unnecessary plugins and now it works :)
     
  14. Colin

    Colin Level 5

    Joined:
    Nov 25, 2011
    Messages:
    100
    Is it possible to make a chest protected and public? And if not, it'd be a good feature to add. :)
     
  15. MarioE

    TShock Admin TShock Mod Plugin Developer

    Joined:
    May 26, 2012
    Messages:
    386
    Isn't that kind of useless, having it protected AND public? It might as well not be protected since people could still steal stuff from you if it was public.
     
  16. Colin

    Colin Level 5

    Joined:
    Nov 25, 2011
    Messages:
    100
    The general idea would be for community chests, so either a refilling chest with free items available to all, or a chest for placing unwanted items in that others can take freely (but no one can protect the chest as their own, or break it).
     
  17. Snirk Immington

    Snirk Immington Level 9

    Joined:
    Jan 12, 2012
    Messages:
    378
    You mean refill chests? That everyone can access but no one can change?
    Edit: NINJA'D
     
  18. MarioE

    TShock Admin TShock Mod Plugin Developer

    Joined:
    May 26, 2012
    Messages:
    386
    Added /cpset.
     
  19. Elezoz

    Elezoz Level 0

    Joined:
    Aug 1, 2011
    Messages:
    2
    Is it possible if you could make it so multiple people can be authorized to be able to take from one chest? The chest owner can assign other people to be able to access the chest. Also for signs maybe?
     
  20. SpIit

    SpIit Level 2

    Joined:
    Feb 19, 2012
    Messages:
    28
    This is already built into tShock, as players sharing a region can share the chest. This plugin allows the use of /crset, allowing players sharing a region to share the protected chest after being further protected by the plugin.
    ---------------------------------------------------------------------------------------------------------------------------
    Question to Mario: Do you have a 1.11 version of this? I would like to update my tShock, but there are still many plugins that I use that have not been updated to 1.12: if you had this plugin in version 1.11, it would save me a lot of effort and tears. Thanks!