From 38c2a82c388129d383e86b1a52ed4b0b93cea199 Mon Sep 17 00:00:00 2001 From: Pieter-Jan Smets Date: Tue, 5 Sep 2023 22:08:17 +0200 Subject: [PATCH] Update server autostart instructions Specifying a combination of -world, -port and -maxplayers did not auto-start the TShock server for me. I found that -world and -autocreate were required. The other settings could be read from config.json. As such, I updated the documentation. --- docs/changelog.md | 1 + docs/command-line-parameters.md | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/changelog.md b/docs/changelog.md index 6a159e8a5..9ad392857 100644 --- a/docs/changelog.md +++ b/docs/changelog.md @@ -89,6 +89,7 @@ Use past tense when adding new entries; sign your name off when you add or chang * Added a method `TSPlayer.GiveItem`, which has `TShockAPI.NetItem` structure in its arguments. (@AgaSpace) * Added a property `TSPlayer.Hostile`, which gets pvp player mode. (@AgaSpace) * Fixed typo in `/gbuff`. (@sgkoishi, #2955) +* Updated the documentation for auto-starting the server. (@HerrSubset) ## TShock 5.2 * An additional option `pvpwithnoteam` is added at `PvPMode` to enable PVP with no team. (@CelestialAnarchy, #2617, @ATFGK) diff --git a/docs/command-line-parameters.md b/docs/command-line-parameters.md index 6a132eb76..12eb31e14 100644 --- a/docs/command-line-parameters.md +++ b/docs/command-line-parameters.md @@ -31,6 +31,6 @@ These command line flags are in-addition to the ones that the Terraria server of ## Autostarting TShock -If you want to start TShock automatically though a script, and bypass the interactive startup prompt, you need to specify a `-world` path, a `-port`, and `-maxplayers`. +If you want to start TShock automatically though a script, and bypass the interactive startup prompt, you need to specify a `-world` path and `-autocreate`. -For example: `TShock.Server.exe -world C:\Terraria\worlds\MyWorld.wld -port 7777 -maxplayers 8` +For example: `TShock.Server.exe -world C:\Terraria\worlds\MyWorld.wld -autocreate 1`