Skip to main content

Files

Every file TavernLib reads or writes. For what's inside the config files, see the config reference. For the property that gives each path, see Folders.

R is read, W is written.

TheModdingTavern​

%APPDATA%\TheModdingTavern (TavernDirectories.ModdingTavern). In Docker and on panels, tavern-config.

FileSideWhen
server_settings.jsonServerR WRead at start and again on logins, joins and console logins. Created with the defaults if missing. Written when a plain password is hashed or the listing token is made. See Server settings.
users.jsonServerR WRead at start, polled every second for roles, read on every login and join. Created if missing. Written on registration, on each join's mod list, and by player ban and player unban. See User config.
tavern_server.jsonServerRRead once at start. Created with the defaults if missing. See Ports.
whitelist_requests.jsonServerR WAdded to when a player asks to join a whitelisted server. Created if missing.
console_token.txtServerR WThe owner console token. Written at start if missing or out of date, and by token rotate owner.
server_secret.keyServerR WSigns every console token. Made once if missing, never replaced.
console_tokens.jsonServerR WNamed tokens. Read at start, written by token commands and when a named token logs in (its last use). See Other config files.
console_token_log.jsonlServerWOne line per console connect, disconnect, command and refused login. Moved to console_token_log.jsonl.1 at 5 MB.
mod_repos.jsonServerR WRead by the /modlist reconcile, written by modmanager addrepo.
the /modlist fileServerRAny name. Read once at start.
last_rejection.jsonClientR WWritten when a server refuses you for mods, for the launcher to fix and rejoin.
launcher_path.txtClientRWhere the launcher is, so TavernLib can start it after a refusal. The launcher writes it.
quick_joinClientR WQuick join is on while it exists. Made or deleted when the QuickJoin preference changes.

Files written through ServerConfigFile (the four JSON configs, console_tokens.json, mod_repos.json) also leave <file>.bak, the version before the last write, and briefly <file>.tmp.

blacklist.json and whitelist.json have properties on TavernDirectories, but this TavernLib doesn't read them.

The game folder​

The folder with A Township Tale.exe (MelonEnvironment.GameRootDirectory).

File or folderSideWhen
Mods\BothRScanned at start to tell MelonLoader which build folders to load, and on the server on every ping and join (cached 5 seconds).
Mods\<id>\manifest.json, manifest.disabled.json, .server\, .client_windows\ServerWBy the /modlist reconcile: installs, updates, enables and disables. Downloads go to a .tavern_dl_*.part file first.
UserLibs\ and its .meta.json filesServerWLibraries installed by reconcile.
UserData\MelonPreferences.cfgClientR WMelonLoader keeps the TavernLib category's QuickJoin entry here.

On a client, the launcher installs mods, not TavernLib.

The game's own folder​

%APPDATA%\A Township Tale (TavernDirectories.ATTSave). In Docker and on panels, server-data. The document row is the exception: it's wherever the game's download folder is.

File or folderSideWhen
Servers\-1\Backups\ServerBackup_yyyy-MM-dd_HH-mm-ss.zipServerWAutomatic backups of Servers\-1, leaving out Backups and Logs. Checked every minute against server_backup_time. Not with /launcherauth.
The game log's Archives\ folderServerWunity-log.csv moved to unity-log.N.csv, 20 kept: 10 seconds after start, then whenever it passes 10 MB (checked every minute). Not with /launcherauth.
presets\<id>.presetClientR WYour cosmetic presets, kept locally instead of on Alta's servers.
Command Documentation\BothWWritten by the document command, in the game's download folder (Alta.FileDownload, one folder per calling user id). It downloads a template from Alta's storage the first time.

See also​