Approved [v1.12] Infinite Chests

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

  1. Twisp New Member

    Is there any way I can simply make all chests on a map set to auto-refill without having to do it one by one?
  2. MarioE Official TShock Developer

    Code:
    UPDATE Chests SET Flags = (Flags | 4)
  3. MarioE Official TShock Developer

    Did, at any time, you ever use /restart or just close out the window?

    I have no clue. You moved the database into the tshock folder with the config, etc, right?

    Strange. I guess it's not really that much of a problem, though... are you even loading it correctly?
  4. cccdfern Member

    Umm, nope /restart has never been used since this plugin was added (tried it once but TCAdmin didn't understand and broke xD), other than that
    we have only used off/exit.

    Also, found out that when the chests do 'freeze up", that by using the /convchests command will revert them to a usable state, but if the server goes down for any reason, (/off or crash) they cease to function.
  5. MarioE Official TShock Developer

    Try it again, now; I made it so that chests save when the world saves. This SHOULD work.
  6. Helios Member

    I get this when using /save;

    Code:
    2012-06-14 10:31:43 - Utils: INFO: Server executed: /save
    2012-06-14 10:31:43 - Command: ERROR: System.NullReferenceException: Object reference not set to an instance of an object.
      at TShockAPI.Commands.Save(CommandArgs args)
      at TShockAPI.Command.Run(String msg, TSPlayer ply, List`1 parms)
    2012-06-14 10:31:43 - Utils: INFO: Broadcast: Saving world. Momentary lag might result from this.
    Console says command failed but then goes about it's business. Other than that its working, haven't been able to test much else though.
  7. Olink TShock Developer

    Read the help and support forums. You will notice that /save has an error that doesn't impact saving.
    Helios likes this.
  8. Emily New Member

    I did /convchests (twice) and there are still chests undeground and ppl can't open them :(
  9. MarioE Official TShock Developer

    I can't seem to reproduce this; any chest that I find underground, I can open. Tell them to just try and break the chests.
  10. Mythril Guy Member

    Usually if they break it it glitches and if you place a block on it you get multiple chests. If you have modified chests and then use /convchests it will cause them to not be able to open. I would prefer using the old chest protection plugin, even if it doesn't allow more than the maximum chests in a world.
  11. MarioE Official TShock Developer

    /convchests is only meant to be done once...
    Snirk Immington likes this.
  12. cccdfern Member

    Hum,
    Well, shortly after updating and cset etc, the chests became unresponsive again :s I can't really see any errors that relate, server did shutdown during this time. But I can upload the log to paste-bin if you wish.
  13. Emily New Member

    The old chest protection plugin (ChestControl) doesn't work with latest tshock version
  14. InanZen TShock Plugin Developer

    for some reason all world chests are protected even though the Account is empty.
    Also when i remove all items from the chest that was world-generated, i cannot remove it.
    I'm using server-side inventory (altho i doubt it's affecting it).
  15. MarioE Official TShock Developer

    Fixed those. Those were all small oversights. :rolleyes:
    To fix those chests with empty accounts,
    Code:
    UPDATE Chests SET Account = '' WHERE Account IS NULL
    The reason you can't remove world-generated chests is because I forgot to null out those chests... just write something to do that. Anytime /convchests is used after this update, though, it will work correctly.
  16. popstarfreas Active Member

    I see you changed the link to just download the dll file :p Its easier in some circumstances
  17. InanZen TShock Plugin Developer

    thanks MarioE
  18. Mythril Guy Member

    I use -ignoreversion to bypass API version checking.
  19. cccdfern Member

    uh oh. um latest build appears to crash the server when you do /conchests :eek:
    after that the rest of logs is that error, guess its our myslq server then. Will try emptying the table and starting over/a 1 plugin run.

    Code:
    2012-06-16 15:30:07 - TShock: INFO: TShock was improperly shut down. Please use the exit command in the future to prevent this.
    2012-06-16 15:30:07 - TShock: INFO: Port overridden by startup argument. Set to 7777
    2012-06-16 15:30:17 - TShock: INFO: |> Version 3.9.1.526 (4.x & 50,000th download milestone) now running.
    2012-06-16 15:30:17 - TShock: INFO: AutoSave Enabled
    2012-06-16 15:30:17 - TShock: INFO: Backups Enabled
    2012-06-16 15:30:32 - StatTracker: INFO: Stat Tracker: Check-in succeeded.
     
    2012-06-16 15:32:05 - GetDataHandlers: INFO: Catrina (186.123.106.176) from 'user' group from 'Argentina' joined. (0/30)
    2012-06-16 15:32:05 - Utils: INFO: Broadcast: Catrina has joined from the Argentina
    2012-06-16 15:32:05 - Utils: INFO: Catrina has joined. IP: 186.123.106.176
    2012-06-16 15:32:19 - GetDataHandlers: INFO: Smithy (220.253.37.28) from 'user' group from 'Australia' joined. (1/30)
    2012-06-16 15:32:19 - Utils: INFO: Broadcast: Smithy has joined from the Australia
    2012-06-16 15:32:19 - Utils: INFO: Smithy has joined. IP: 220.253.37.28
    2012-06-16 15:32:26 - Commands: INFO: Catrina authenticated successfully as user: Catrina
    2012-06-16 15:32:28 - Utils: INFO: Broadcast: user:Smithy: s
    2012-06-16 15:32:36 - Commands: INFO: Smithy authenticated successfully as user: smithy
    2012-06-16 15:32:36 - Utils: INFO: Broadcast: superadmin:Smithy: d
    2012-06-16 15:32:40 - Utils: INFO: Broadcast: superadmin:Smithy: hum
    2012-06-16 15:32:44 - Utils: INFO: Smithy executed: /convchests
    2012-06-16 15:35:29 - StatTracker: INFO: Stat Tracker: Check-in succeeded.
     
    2012-06-16 15:36:56 - PacketBufferer: WARNING: System.Net.Sockets.SocketException (0x80004005): An established connection was aborted by the software in your host machine
      at System.Net.Sockets.Socket.Send(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags)
      at TShockAPI.PacketBufferer.SendBytes(ServerSock socket, Byte[] buffer, Int32 offset, Int32 count)

    EDIT: ok a dry run with only the infinite chests plugin is an instant lockup when the command /convchests is executed.

    EDIT#2: ignore me for a while, our server is broked :(
  20. popstarfreas Active Member

    i tried /crefill and it wont work when i try to select a chest. It wont open it or set its refill unless i do /crefill 1 and i also cant destroy the chest as i cant use /crefill

Share This Page