Skip to main content

Config reference

Stop the server before editing any of these by hand. A running server can write over your changes.

Where the files are​

TavernLib's configThe game's folder (world, logs)
Windows%APPDATA%\TheModdingTavern%APPDATA%\A Township Tale
Dockertavern-configserver-data
Panelstavern-config in the server's directoryserver-data
Wine~/att-server/config~/att-server/saves

TavernLib's config​

FileWhat it is
server_settings.jsonName, password, listing and more. Below.
users.jsonEvery player's account, their roles, the whitelist and blacklist. Below.
tavern_server.jsonThe server's ports. Below.
console_token.txtThe owner console token. Keep it secret.
server_secret.keySigns every console token. Never share it. If it's lost, all tokens stop working.
console_tokens.jsonNamed console tokens. See Console and tokens.
console_token_log.jsonlWhat each console token did.
modlist.jsonMods the server keeps installed. See Mods on your server.
mod_repos.jsonExtra mod sources added with modmanager addrepo.
whitelist_requests.jsonPlayers asking to join a whitelisted server.

Back up the whole folder along with the world.

server_settings.json​

Made with the defaults on the first start. Keys you leave out use the default.

KeyDefaultWhat it does
name"My Tavern Server"The name players see.
passwordSet a password here in plain text. On its next read, the server hashes it into password_hash and removes this line.
password_hash""The password, hashed. Empty means no password. Set it to "" to remove a password.
max_players24How many players can be on at once. Anyone past that is told "Reached player limit of: 24".
whitelist_enabledfalseOnly players on the whitelist can join. Others can ask to join. Without the Windows launcher, the whitelist is also on whenever it has anything in it.
enforce_ip_limittrueAt most 5 new names can be made from one IP address. Stops one person making loads of accounts. Players who already have a name keep joining.
community_listedfalseShow the server on Community Servers. Needs a restart. See Getting listed.
region"unknown"EU, NA, SA, Asia, Oceania, Africa or unknown. Shown on the list.
public_hostnamenoneA name to show on the list instead of your IP. It has to point at your server.
community_listing_tokenmade for youHow the list knows updates are from your server. Leave it alone.
quest_scenefalseRun the Quest scene (no forest, lighter graphics). Needs a restart.
tutorial_scenefalseRun the tutorial scene. Beats quest_scene if both are on. Needs a restart.
server_backup_time0Hours between automatic world backups on a headless server. 0 is off. The Windows launcher does its own backups.
server_backup_max_backups0How many automatic backups to keep. 0 keeps them all.
garbage_collection_timer30Seconds between the game's memory clean-ups (.NET garbage collection) on a server running without graphics. It doesn't touch items in the world. Needs a restart. With Steady installed, the clean-ups only run if this is set to something other than 30.
console_owner_local_onlyfalseOnly accept the owner console token from the server itself.

The Windows Server launcher has a Settings window for all of these. In Docker, SCENE in .env sets the two scene keys for you.

Scenes

The scene only changes when the server starts with /questScene or /tutorialScene. The Windows launcher, the container and the panels read these two keys and add that for you. With Wine, set it in start.sh.

users.json​

Made when the first player joins. Every name is stored in lower case.

{
"users": {
"placeholder": {
"user_id": 1001,
"token": "...",
"registered_from": "203.0.113.20",
"roles": ["moderator"]
}
},
"whitelist": { "usernames": [], "ips": [], "user_ids": [] },
"blacklist": { "usernames": [], "ips": [], "user_ids": [] }
}
  • token is that player's key to their account. Never share this file.
  • An IP on the whitelist lets in everyone on that connection. Only add one for a place where you trust everyone.

Roles​

RoleWhat it gives
ownerCan join in Fly mode and change the server's settings from the in-game settings board.
moderatorSame as owner.
flyCan join in Fly mode, and nothing else.
modShows as a moderator in the game.
devShows as a developer in the game.
supporterShows as a supporter in the game.

Players without owner, moderator or fly who try to join in Fly mode are kicked with "Bizarre mode detected."

Mods can check for their own roles too, so a mod's page might tell you to add one.

tavern_server.json​

{
"server_port": 1757,
"auth_port": 1762,
"web_port": 1761,
"console_port": 1760
}

A missing or broken value means the default. See Join by name for moving them. In Docker, the container writes this file from .env on every start, so change .env instead.

The game's folder​

The world is in Servers/-1/ inside the game's folder:

Save/The world save.
Backups/Automatic backups.
ServerConfiguration.jsonThe game's own settings: autosave, time speed, spawn rates, death rules and so on.
Logs/logs/unity-log.csvThe game's log. Older ones are in archives/, 20 of each kind at most.

ServerConfiguration.json is written on the first start. AMP shows its settings in its UI. Elsewhere, stop the server and edit it by hand. Every key is below. What's in Save/ is in Save format.

ServerConfiguration.json​

The game's own settings for the world. The game writes the file with the defaults on the first start. A key you leave out keeps its default.

{
"IsAutoSaving": true,
"MinutesBetweenAutoSaving": 5.0,
"TimeSpeedMultiplier": 1.0,
"IsPVPEnabled": false,
"DropAllOnDeath": false
}

That's a few of the keys. The real file has all of them.

How changes apply​

The game watches this file. When it changes, the running server reads it again, and most settings apply straight away. The Restart column below marks the ones that only apply on the next start. If a change doesn't seem to apply, restart.

Stopping the server first is still the safe way. The in-game settings board and the settings console commands write the whole file, so they can put back a value you just changed by hand.

From the console, settings set server <key> <value> changes one key, saves the file and applies it. For example settings set server IsPVPEnabled true. settings list server shows the current values, and settings reset puts every key back to its default.

Ranges are given where the game has one. The game keeps a value inside its range when it writes the file, but doesn't check what it reads, so stay inside it when you edit by hand.

Saving​

KeyTypeDefaultWhat it doesRestart
IsSavingtrue/falsetrueSave the world and players at all. false makes a throwaway world: nothing is written, and players start fresh each time they join.Yes
IsAutoSavingtrue/falsetrueSave the world every MinutesBetweenAutoSaving minutes. With it off, the world is still saved when the server stops, and each player when they leave.Yes
MinutesBetweenAutoSavingnumber5Minutes between autosaves. 1 to 60.Yes
WipesWhenEmptytrue/falsefalseNot used by this version of the game.
HasRunRepairBoxFixtrue/falsefalseNot used by this version of the game.

Players​

KeyTypeDefaultWhat it doesRestart
PlayerLimitwhole number-1Ignored on a Tavern server: TavernLib uses max_players from server_settings.json instead. Without TavernLib, 0 or less means no limit.
IsCustomizationEnabledtrue/falsetrueNew players go to the character room on their first join. false skips it.No
InitialPlayerInventorytextDefaultWhat a new player starts with: Default, DeckedOut or None (empty hands). Only players joining for the first time get it.No
HasAFKTimertrue/falsetrueWarns players who haven't moved or hit anything for 10 minutes, then kicks them 35 seconds later. The warning says "in 600 seconds", which is wrong.No
PlayerLandmarkModetextShowAllOther players on the map: ShowAll, FriendsOnly or Hidden. With FriendsOnly, players see only their friends.No
PlayerSmoothingLeveltextDefaultHow much players' movement is smoothed: Default or Low.No
HandoverRequireConfirmationtrue/falsetrueNot used by this version of the game.

Death​

KeyTypeDefaultWhat it doesRestart
DownedStateDurationwhole number60Seconds a player stays downed, and can be revived, before they die. 0 skips being downed. 0 to 120.No
DropAllOnDeathtrue/falsefalsePlayers drop everything they carry when they die. Off, they keep it.No
IsResetingHungerOnDeathtrue/falsefalseResets a player's hunger when they die.No
UnspentExperienceLostOnDeathnumber0.0001How much of their unspent XP a player loses on death, from 0 to 1. 0.5 is half. It can't go below 0.0001, which is next to nothing.No
ImpactInvincibilityTimenumber12Seconds a player can't be hurt by hits after they spawn or come through a cave teleporter. 1 to 30.No
RespawnTimeSecondsnumber4Not used by this version of the game.

Combat​

KeyTypeDefaultWhat it doesRestart
IsPVPEnabledtrue/falsefalsePlayers can hurt each other with weapons and tools.No
PVPMultipliernumber0.1Damage one player's hit does to another, times this. 0.0001 to 100.No
PVPCrippleMultipliernumber0.3Cripple damage one player's hit does to another, times this. 0.0001 to 100.No
DamageXnumber1Damage from hits and area attacks, times this. 0.0001 to 100.No
PlayerDamageTakenMultipliernumber1Damage players take, times this. 0 means players can't be hurt. 0 to 100. TavernLib's player damage commands change this key.No

Hunger and health​

KeyTypeDefaultWhat it doesRestart
HungerTicknumber0.0005How fast hunger goes down. Higher is faster. 0.0001 to 1.No
HungerDealsDamagetrue/falsetrueStarving players lose health.No
HealthRegenMultipliernumber1How fast players heal, times this. 0 stops healing over time. 0 to 10.No

Time​

KeyTypeDefaultWhat it doesRestart
TimeSpeedMultipliernumber1How fast the in-game day goes. 2 is twice as fast. 0.0001 to 10.No
IsAdvancingTimeWhenOfflinetrue/falsetrueWhen the server starts, move the clock on by how long it was off, so time seems to have passed.Yes
FixedDaytimenumber-1Lock the time of day. -1 lets the day run. A value from 0 to 1 picks a point in the day.No

Experience​

KeyTypeDefaultWhat it doesRestart
XPXnumber1All XP, times this. 0 or more.No
ForgingXPX, WoodcuttingXPX, MiningXPX, ChiselingXPX, CookingXPX, MeleeXPX, RangedXPXnumber1XP for that skill, times this. It stacks with XPX: 2 here and 2 in XPX is four times as much. 0 or more.No
CanOnlyBuySkillsAfterPracticingtrue/falsetruePlayers have to practise a skill before they can buy it. Off, they can buy any skill.No

World​

KeyTypeDefaultWhat it doesRestart
SpawningRateMultipliernumber1How often creatures and other spawns come back. 2 halves the wait. More than 0.No
DecayMultipliernumber1How fast things decay. 2 is twice as fast. Things already decaying keep their old timer. More than 0.No
CommunityStorageMultipliernumber1How much each player can take from the town's shared storage (like the ore and stick storage) each in-game day, times this. Changing it resets everyone's allowance. More than 0.No
AvoidSpawnCollectedPagestrue/falsetrueNot used by this version of the game.

Physics​

The server lowers how often it runs physics when its frame rate drops, so a busy server doesn't fall further behind. It checks every 5 seconds.

KeyTypeDefaultWhat it doesRestart
IsUpdatingPhysicsFixedFrameCounttrue/falsetrueChange the physics rate with the frame rate. Off, physics runs at the maximum all the time.No
MaximumPhysicsFixedFramesPerSecondwhole number45Physics steps a second when the server runs well.No
MinimumPhysicsFixedFramesPerSecondwhole number15Physics steps a second at worst.No
FPSForMaximumFixedFrameCountwhole number20At this server frame rate or above, physics runs at the maximum.No
FPSForMinimumFixedFrameCountwhole number5At this server frame rate or below, physics runs at the minimum.No

Other​

KeyTypeDefaultWhat it doesRestart
HasInGameSettingstrue/falsefalseAdds the server settings board to the quick-access menu. On a Tavern server only owner and moderator can change settings with it. settings enable-board and settings disable-board on the console do the same.No
EmptyServerShutdownTimeInSecondswhole number300Not used by this version of the game. Some panels list it, but it does nothing.

"Not used by this version of the game" means the game keeps the key and shows it on the settings board, but nothing in the game reads it.