Skip to content

Terraria Tshock

github-actions[bot] edited this page Sep 11, 2026 · 2 revisions

TShock

This guide covers the terraria.tshock module in AlphaGSM.

terraria.tshock is currently PASSED on the documented Ubuntu 24.04 Linux baseline. The checked-in GitHub validation path for this server is Docker-first through the shared steamcmd-linux runtime image with the required .NET runtimes already baked in.

Requirements

  • screen
  • dotnet on process-backed hosts
  • Python packages from requirements.txt

Quick Start

Create the server:

alphagsm mytshock create terraria.tshock

Run setup:

alphagsm mytshock setup

Create its first world and start it:

alphagsm mytshock start --autocreate

Check it:

alphagsm mytshock status

Stop it:

alphagsm mytshock stop

Setup Details

Setup configures:

  • the game port (default 7777)
  • the install directory
  • downloads and extracts the server archive

World Selection and Reset

start --autocreate creates the configured world only when it is missing. If the world already exists, the option does nothing and startup behaves like plain start. Use alphagsm mytshock connect to answer the native console prompts.

To start over, stop the server and run alphagsm mytshock reset-world. It lists the world data to delete and asks for confirmation; -Y bypasses that prompt. wipe is an alias for the same operation.

See world creation and reset for settings, supported paths, and the full lifecycle.

Useful Commands

alphagsm mytshock update
alphagsm mytshock backup

Notes

  • Module name: terraria.tshock
  • Default port: 7777

Developer Notes

Run File

  • Executable: TShock.Server
  • Location: <install_dir>/TShock.Server
  • Engine: Custom

Current upstream Linux releases ship a native TShock.Server apphost inside a release zip that contains a nested tar archive. AlphaGSM unwraps that nested archive during setup. The shared steamcmd-linux Docker runtime image also includes the required .NET 9 runtime for the current TShock build.

Server Configuration

Maps and Mods

  • Map directory: Check game documentation
  • Mod directory: ServerPlugins/
  • Workshop support: No

Plugin Sources

TShock plugin management is separate from vanilla Terraria and uses its own AlphaGSM cache/state root.

  • AlphaGSM stores TShock plugin cache/state under .alphagsm/mods/terraria-tshock/ so it does not collide with other Terraria variants.
  • Current plugin source support is manifest, url, and moddb.
  • manifest uses AlphaGSM's checked-in TShock plugin registry. The built-in families currently include banguard, smartregions, omni, perplayerloot, autoteam, facommands, timeranks, ranksystem, qol, replenisher, bagger, and tslootchest.
  • url accepts direct plugin .dll downloads and .zip plugin packages, including release zips that expose a bare plugin root instead of a prebuilt ServerPlugins/ directory.
  • moddb accepts canonical Mod DB download or addon page URLs when the resolved payload contains TShock plugin files under ServerPlugins/, tshock/, or as a bare plugin-root archive.
  • AlphaGSM records installed plugin files per entry so mod cleanup removes only tracked plugins and leaves unrelated files alone.

Examples:

alphagsm mytshock mod add manifest banguard
alphagsm mytshock mod add manifest smartregions
alphagsm mytshock mod add manifest perplayerloot
alphagsm mytshock mod add manifest timeranks
alphagsm mytshock mod add manifest tslootchest
alphagsm mytshock mod apply
alphagsm mytshock mod cleanup
alphagsm mytshock mod add url https://plugins.example.invalid/ExamplePlugin.dll
alphagsm mytshock mod apply
alphagsm mytshock mod cleanup
alphagsm mytshock mod add moddb https://www.moddb.com/mods/example/downloads/example-plugin-pack
alphagsm mytshock mod apply
alphagsm mytshock mod cleanup

Clone this wiki locally