How to run Terrariaserver.exe with config file? #1933
-
Am coming from Linux where I could run ./TerrariaServer.bin.x86_64 -config serverconfig.txt How do I do this natively on windows with TShock? The server runs fine but I am trying to automate it selecting the correct world and setting the basic parameters like player number, port etc. Was also looking for a startserver.bat as the Wiki says but didn't find it. Then how can I automate windows10 running this each time on boot so server starts each time? Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 7 replies
-
Alternatively, I also have docker for windows if this would be easier to run it in a container (still trying to figure that part out, however. Just installed docker engine last night) |
Beta Was this translation helpful? Give feedback.
-
startserver.bat exists in the default terraria installation (at least when downloaded via steam) https://terraria.gamepedia.com/Server#Command_line_parameters here's information about params that could be passed in via a .bat file or a shortcut. My config starts the server with a particular world on a certain port. The below text exists in a .bat file, and I just execute the batch file any time I want to run the server. |
Beta Was this translation helpful? Give feedback.
startserver.bat exists in the default terraria installation (at least when downloaded via steam)
https://terraria.gamepedia.com/Server#Command_line_parameters here's information about params that could be passed in via a .bat file or a shortcut.
My config starts the server with a particular world on a certain port. The below text exists in a .bat file, and I just execute the batch file any time I want to run the server.
C:\Users\User\Desktop\tshock1.4.0.4pre8\TerrariaServer.exe -port 7778 -world "C:\Users\User\My Documents\My Games\Terraria\Worlds\WorldName.wld" -killinactivesocket