TShock icon indicating copy to clipboard operation
TShock copied to clipboard

Server crash when auto create the world.

Open gentlecola opened this issue 4 years ago • 2 comments

This bug didn't exist in previous version.(At least 4.4.0 pre 6 is fine)

If we use -autocreate in cmd line to startup server and there is no world had been created, it will crash. If we put a world file which is be set by -worldname , it will be fine.

CrashLog

6/6/2020 4:12:19 PM System.NullReferenceException: Object reference not set to an instance of an object at Terraria.Main.WriteFancyWorldLoadErrorToConsole () [0x00005] in <713e8644be2142fa84d22c25b4d94971>:0 at Terraria.Main.DedServ () [0x00adf] in <713e8644be2142fa84d22c25b4d94971>:0 at Terraria.Program.LaunchGame (System.String[] args, System.Boolean monoArgs) [0x000ac] in <713e8644be2142fa84d22c25b4d94971>:0

gentlecola avatar Jun 06 '20 08:06 gentlecola

the same error occurs with me. When I try to open a world file I have created before, it gives the same error. The world opens when I want to play the game in singleplayer or multiplayer mode but when I try to open a dedicated server it gives this error.

barbarbar338 avatar Nov 11 '20 14:11 barbarbar338

I did a few tries and I think I understood the problem. Once I open my map with version 1.4.1.2, I can never open it with older versions again. So I downloaded the 1.4.1.2 test version of TShock, which has not been shared yet, from the actions section and the map is opened.

Edit: They shared the version I mentioned

Edit 2: You can open old version maps with the new version, but new version maps cannot be opened in the old version.

barbarbar338 avatar Nov 17 '20 20:11 barbarbar338