Pryaxis / TShock

☕️⚡️TShock provides Terraria servers with server-side characters, anti-cheat, and community management tools.
GNU General Public License v3.0
2.41k stars 377 forks source link

[v4.3.23] "-dump" parameter not working #1411

Closed williamjcm closed 7 years ago

williamjcm commented 7 years ago

I updated my TShock server to 4.3.23 recently, and, as usual, I launched TerrariaServer.exe with the "-dump" command line parameter.

However, TShock started normally, instead of dumping the usual data.

Here is the ServerLog.txt file:

[03/18/17 16:50:44] [Server API] Verbose: TerrariaApi - Server v2.0.0.0 started.
[03/18/17 16:50:44] [Server API] Verbose:   Command line: TerrariaServer.exe  -dump
[03/18/17 16:50:44] [Server API] Verbose:   OS: Microsoft Windows NT 6.1.7601 Service Pack 1 (64bit: True)
[03/18/17 16:50:44] [Server API] Verbose:   Mono: False
[03/18/17 16:50:45] [Server API] Info: Plugin TShock v4.3.23.0 (by The TShock Team) initiated.

And here is the log in the tshock folder (user name censored):

2017-03-18 16:50:45 - TextLog: INFO: TShock 4.3.23.0 (Mintaka) now running.
2017-03-18 16:50:45 - TShock: INFO: AutoSave Enabled
2017-03-18 16:50:45 - TShock: INFO: Backups Disabled
2017-03-18 16:50:45 - TShock: INFO: Welcome to TShock for Terraria. Initialization complete.
2017-03-18 16:52:14 - GetDataHandlers: INFO: William JCM authenticated successfully as user William JCM.
2017-03-18 16:52:15 - TShock: INFO: William JCM (192.168.0.44) from 'superadmin' group joined. (1/8)
2017-03-18 16:52:15 - Utils: INFO: Broadcast: William JCM has joined.
2017-03-18 16:52:15 - Utils: INFO: William JCM has joined. IP: 192.168.0.44
2017-03-18 16:52:34 - TShock: INFO: Broadcast: <William JCM> off
2017-03-18 16:52:38 - Utils: INFO: William JCM executed: /off.
2017-03-18 16:52:38 - Utils: INFO: Kicked William JCM for : 'Server shutting down!'
2017-03-18 16:52:38 - Utils: INFO: Broadcast: William JCM was force kicked for 'server shutting down!'
2017-03-18 16:52:38 - Utils: INFO: Broadcast: Saving world. Momentary lag might result from this.
2017-03-18 16:52:38 - Utils: INFO: Broadcast: World saved.
2017-03-18 16:52:38 - SaveManager: INFO: World saved at (C:\Users\<user>\Documents\My Games\Terraria\Worlds\TestWorld.wld)
2017-03-18 16:52:38 - Utils: INFO: Broadcast: Server shutting down!
2017-03-18 16:52:38 - Utils: INFO: Broadcast: William JCM has left.
2017-03-18 16:52:38 - TShock: INFO: William JCM disconnected.
QuiCM commented 7 years ago

Could you post your command-line here, please?

EDIT: nevermind, just saw it gets printed to the log. Will look into this

williamjcm commented 7 years ago

Thank you. I'll download, build it and test this commit.

williamjcm commented 7 years ago

I'd like to report that it's still not working with v4.3.24.

The -dump parameter seems to be ignored, because TShock still starts normally.

I took a look at the source, and according to it, the parameter should be taken into account.

Since I can't build the solution (I might be missing something somewhere), I can't add console output to the dump method.

hakusaro commented 6 years ago

Well, that's ironic.