Terraria: The Auto-Saving Server

After beating Minecraft (not really) I thought my addition to these blasted sandbox mining games was satisfied.  Sadly, I was wrong.  I started playing Terraria a few days ago and its got many more game elements than Minecraft.  It’s also wildly addicting if you’ve got a sever case of ‘Got’a’ Catch’em Alls’.  It’s also possibly the real world equivalent of Heroin Hero.

In any event, I setup a server for my friends and I to play only to discover that the server does not auto-save the world.  So if it crashes or is shutdown improperly, everything in the world resets.

So I wrote a little bit of code to fix it and decided to share.  It’s a simple bootstrapping program, you give it the file path of the Terraria server executable as the first argument and then all the other arguments to pass to it as a single string.  It then sends save commands to the server every 10 minutes.

If you want to just download a compiled version for yourself, you can download it here.

If you were to place it in the same directory as the TerrariaServer, you’d run it like this:

TerrariaAutosave.exe TerrariaServer.exe "-config serverconfig.txt"