Pryaxis / TSAPI

🛠🌳 The TShock Scaffold API enables developers to build plugins that hook directly into the Terraria game engine.
http://tshock.co/
GNU General Public License v3.0
109 stars 66 forks source link

API crashes on startup on Chinese language systems? #111

Closed hakusaro closed 6 years ago

hakusaro commented 8 years ago

I'm not entirely sure about the root cause here, but a user reported having issues with the API starting on Chinese, English systems.

ServerLog.txt ServerLog (1).txt

It wasn't TShock related, and it wasn't file permissions related, I assume some weird quirk about how either we're compiling TSAPI or how the decompile works is causing this. He said TShock 4.0 started fine, and also said the normal server starts fine. Without TShock, it crashes, and with it, it crashes.

mistzzt commented 8 years ago

It was not related to the system language.

The exception was occurred when TSAPI tried to load the Last Used Time. The user must used an older version of TSAPI while maps of newer version existed. I have reproduced this situation as I said above, using older version of TSAPI and maps of newer version.

But the vanilla server seems to skip maps with newer version on startup.

grapeszy commented 8 years ago

Yes, I've tried the TSv4.0. A solution for this is: Delete the old world map files.

hakusaro commented 8 years ago

We really need a solution for the world file problems. This is getting annoying.

tylerjwatson commented 8 years ago

Can we make a concrete repro scenario? Maybe provide some world files affected by these sorts of bugs?

At the very least it's trivial to handle errors loading world files.

QuiCM commented 6 years ago

No further issues in over a year, closing.

hakusaro commented 6 years ago

@QuiCM mist would have noticed this.