2.1 InfiniteChestsV3 1.0.2

InfiniteChestsV3

  1. Kurosen

    Kurosen Level 1

    Joined:
    Jul 4, 2016
    Messages:
    19
    I'm having the same issue actually, users only have the permissions

    • ic.use
    • ic.claim
    • ic.info
    • ic.search
    • ic.public
    • ic.protect
    Is one of these causing it?
     
  2. Zaicon

    Zaicon Spam Cleaner 9000
    TShock Mod Plugin Developer

    Joined:
    Feb 15, 2014
    Messages:
    811
  3. Kojiro_S

    Kojiro_S Level 11

    Joined:
    Feb 16, 2014
    Messages:
    644
    I tried migrating to this plugin from v1 but when I used /transferchests v1 I got an error and then it crashed. I'm currently using your fork of v1 and made sure the chests.sqlite database from v1 was still in place, and also made sure that I removed InfiniteChests.dll before I ran InfiniteChestsV3.
    Code:
    2018-02-15 01:04:54 - Utils: INFO: Server executed: /transferchests 1.
    2018-02-15 01:04:56 - TShock: ERROR: System.Exception: Fatal TShock initialization exception: failed to connect to MySQL database. See inner exception for details. ---> Mono.Data.Sqlite.SqliteException: SQLite error
    no such table: Chests
       en Mono.Data.Sqlite.SQLite3.Prepare(SqliteConnection cnn, String strSql, SqliteStatement previous, UInt32 timeoutMS, String& strRemain)
       en Mono.Data.Sqlite.SqliteCommand.BuildNextCommand()
       en Mono.Data.Sqlite.SqliteCommand.GetStatement(Int32 index)
       en Mono.Data.Sqlite.SqliteDataReader.NextResult()
       en Mono.Data.Sqlite.SqliteDataReader..ctor(SqliteCommand cmd, CommandBehavior behave)
       en Mono.Data.Sqlite.SqliteCommand.ExecuteReader(CommandBehavior behavior)
       en Mono.Data.Sqlite.SqliteCommand.ExecuteDbDataReader(CommandBehavior behavior)
       en System.Data.Common.DbCommand.System.Data.IDbCommand.ExecuteReader()
       en TShockAPI.DB.DbExt.QueryReader(IDbConnection olddb, String query, Object[] args)
       --- Fin del seguimiento de la pila de la excepción interna ---
       en TShockAPI.DB.DbExt.QueryReader(IDbConnection olddb, String query, Object[] args)
       en InfiniteChestsV3.DB.TransferV1()
       en InfiniteChestsV3.InfMain.<>c__DisplayClass29_0.<TransferAsync>b__0()
       en System.Threading.Tasks.Task.InnerInvoke()
       en System.Threading.Tasks.Task.Execute()
    --- Fin del seguimiento de la pila de la ubicación anterior donde se produjo la excepción ---
       en System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
       en System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
       en InfiniteChestsV3.InfMain.<TransferAsync>d__29.MoveNext()
    --- Fin del seguimiento de la pila de la ubicación anterior donde se produjo la excepción ---
       en System.Runtime.CompilerServices.AsyncMethodBuilderCore.<>c.<ThrowAsync>b__6_1(Object state)
       en System.Threading.QueueUserWorkItemCallback.WaitCallback_Context(Object state)
       en System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
       en System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
       en System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
       en System.Threading.ThreadPoolWorkQueue.Dispatch()
       en System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()
    2018-02-15 01:04:56 - Utils: INFO: Broadcast: Saving world. Momentary lag might result from this.
    2018-02-15 01:04:58 - Utils: INFO: Broadcast: World saved.
    2018-02-15 01:04:58 - SaveManager: INFO: World saved at (Mundo-Actual.wld.crash)
    Luckily I was testing the waters on one of my backups, so no harm done. But sigh, again I can't upgrade to a newer version.
     
  4. Tygra

    Tygra Level 5

    Joined:
    May 9, 2014
    Messages:
    108
    Hey. Is there a way to disable the multiuse or show an error message to the player if the chest is refilling?

    edit: typo
     
    #24 Tygra, Feb 15, 2018
    Last edited: Feb 15, 2018
  5. Zaicon

    Zaicon Spam Cleaner 9000
    TShock Mod Plugin Developer

    Joined:
    Feb 15, 2014
    Messages:
    811
    This plugin doesn't currently support locking users out of chests until the refill time is up, although I may add that in the future.
     
    • Like Like x 1
    • Friendly Friendly x 1
  6. Zaicon

    Zaicon Spam Cleaner 9000
    TShock Mod Plugin Developer

    Joined:
    Feb 15, 2014
    Messages:
    811
  7. Kojiro_S

    Kojiro_S Level 11

    Joined:
    Feb 16, 2014
    Messages:
    644
    Thanks. Now it worked. However, all of the chests I had marked as public are now private, and dressers for some reason get their tiles distorted when placed (they increase in size one extra tile to the left), and are corrupted. Also, the server still gets those lag spikes when placing a new chest.
     
  8. Correy

    Correy Level 2

    Joined:
    May 17, 2014
    Messages:
    38
    Hey guys, I haven't done tshock in quite some time now, but I saw a post earlier that I found a solution to a while back when the original plugin was up and running.

    https://tshock.co/xf/index.php?threads/infinite-chests.1435/page-27#post-35444

    From that post and a couple pages after that I was posting some questions and such in relation to this. I did get it working (and I am going to try to get it working again soon), but the question is if it will be the same after so many updates and such. @Zaicon can you confirm?
     
  9. Zaicon

    Zaicon Spam Cleaner 9000
    TShock Mod Plugin Developer

    Joined:
    Feb 15, 2014
    Messages:
    811
    If you're asking whether or not you can use SQL to set a batch of chests to a certain refill time, the answer is yes, you can.

    Code:
    UPDATE InfChests3 SET Refill = <refill> WHERE <constraints>;
     
    • Informative Informative x 1
  10. Reska

    Reska Level 0

    Joined:
    May 3, 2018
    Messages:
    1

    So, I'm not trying to use chat commands on it without it being installed...but is there a way to convert the database back into a format that Terraria can handle WITHOUT the addon? It's just not what I want anymore and I've used it long enough that I don't have a saved copy of the world without it being integrated.
     
  11. tanpro260196

    tanpro260196 Level 5

    Joined:
    Oct 30, 2015
    Messages:
    112
    I don't think you can. Not without some sort of plugin and coding skill.
     
  12. thelion20i

    thelion20i Level 0

    Joined:
    Jul 3, 2018
    Messages:
    3
    [dont know how to delete posts]
     
    #32 thelion20i, Jul 3, 2018
    Last edited: Jul 3, 2018
  13. Kojiro_S

    Kojiro_S Level 11

    Joined:
    Feb 16, 2014
    Messages:
    644
    You mean revert back to vanilla? Things never worked how I wanted with this plugin, so I can't vouch for it working, but according to the overview you can use
    Code:
    /convchests -r
    to convert your InfiniteChest chests back to vanilla chests.
    Be aware, though, that if you have hit the 1000 chest limit then the command will fail. Also remember to deactivate the plugin immediately afterwards. If you reboot with the plugin still on, then it will most likely autoconvert the chests back to InfChest format.
     
  14. bryce

    bryce Level 0

    Joined:
    Nov 27, 2012
    Messages:
    1
    I can't get the key of night/key of light to work. it is the only item in the chest I've tried unclaiming the chest and breaking it trying it again with a new chest the key just sits in the chest. No mimic actually spawns.
     
    #34 bryce, Aug 4, 2018
    Last edited: Aug 7, 2018
  15. Lugia_101

    Lugia_101 Level 4

    Joined:
    Mar 13, 2015
    Messages:
    51
    I have the same error, can you maybe tell me how you fixed it? I would really appreciate that thank you :)
     

    Attached Files:

  16. limpy

    limpy Level 0

    Joined:
    Aug 19, 2018
    Messages:
    4
    Any update on the quick stack problem?
     
  17. Kojiro_S

    Kojiro_S Level 11

    Joined:
    Feb 16, 2014
    Messages:
    644
    So I tried again, this time on a 100% clean chest database instead of an imported one. Dressers still get their tiles glitched and are thus rendered as corrupted chests when placed, and as mentioned a couple messages above, placing key(s) of light (didn't test k.o.night) do nothing. Tried with both an user without perms and with one with all possible permissions and the results were the same in both cases. 2019-08-10_2329_1.png 2019-08-10_2329_3.png