Guide › Files
Files
Everything lives in the profile folder: ~/.local/share/rookstudio/ on Linux,
%APPDATA%\rookstudio\ on Windows, ~/Library/Application Support/rookstudio/ on macOS.
Files the program creates are not writable by other users, and settings.json is readable by its owner only once
it holds a lichess token. Settings shows the profile folder, with Open the folder.
Portable mode
With a file named portable (empty, without extension) beside the program (beside rookstudio.exe or
rookstudio, beside RookStudio.app on macOS), the profile is the folder data beside the program instead,
and the default tournaments folder is data/runs: nothing is written elsewhere, but in the folders chosen for
tournaments, exports and the like. The paths of what lies in the program’s folder (engines, books, tablebases, test
suites, the PGN files of the ratings and the setup, the folders chosen) are kept relative to it in the profile’s
files, so the whole folder can be moved, copied to another machine or run from a USB stick, whatever its drive
letter, and its engines are found again. Settings says Portable mode beside the profile folder. To carry an
existing profile over, copy its files into data. --profile still chooses another folder, outside the portable
mode. A tournament keeps the engines’ paths of when it was created: resume an unfinished one before moving the
folder. On macOS, remove the quarantine first (see the README): otherwise macOS runs the application from a temporary
place, where the portable file is not.
The profile folder
engines.json: the engine library, andengines.json.bakits previous version, read if the first is lost;setup.json: the last setup;profiles.json: your profiles of the setup’s sections;templates/*.json: the saved templates;queue.json: the queue;book-cache/: the PGN books turned into Polyglot books for the participants’ own books (removed after 30 days unused);layout.ini: the window layout and the panels of the workspace;layouts.json: the layouts saved by name;rookstudio.log: the log of the last session;suite.json: the last setup of the Suites page;suites/<suite>-<date>.json: the finished test suite runs;board.json: the settings of the Board page’s analysis and games;analyses/*.json: the games analysed move by move, one file each;games/*.pgn: the games played from the Board page;settings.json: the tournaments folder, when another one was chosen in Settings, Software rendering, the folder of Every engine of a folder…, the tester and site of Export for a rating list…, the lichess token, the window’s size and place, the guide panel’s width, the getting started card hidden, the check for a new version (wanted or not, when it was last made, the release it found, the notice hidden), the appearance (board colours, pieces, move sounds), and the machine’s budget (cores, memory and GPUs for the tournaments, Start when cores are free);logos/: the engines’ logos, copies of the pictures chosen on their cards;machines.json: the remote machines of Settings (their address, folder, budgets, engines’ paths and what the last test found; no passphrase), andknown_hosts.jsonthe host keys trusted, of the machines and the tunnel;running.json: the tournaments playing now, with their weights, each removed when it stops; found at launch, it tells what to show again (a tournament that played on without the window) or to resume;runs/: the tournaments, unless another folder was chosen (see A tournament’s folder);databases.json: your databases, anddatabases/the folders of those made here (Name.fcgdb);searches.json: the kept searches;repertoires/: your repertoires, one PGN file each;recent.json: the Board page’s game and the recent games, with their changes not saved;engines/: the popular engines downloaded, each version in a folder of its own;assistant.json: the assistant’s settings, andmodels/its model;lichess-account.json: the Lichess account linked, its permissions and its token (a file readable by you alone);lichess-cache/: the answers of Lichess’s tables and cloud.
A tournament’s folder
runs/<date>_<A>_vs_<B>/ for a match, runs/<date>_<name>/ for a tournament (in runs/ or the chosen folder), one
folder each, which can be moved, copied, zipped and sent:
tournament.json: the format, the participants (engines copied with their options) and the conditions;setup.json: the New tournament page’s setup it started from, which Clone and Relaunch with… read (see Queue and relaunch); a tournament started by an older version has none;journal.jsonl: everything that happened since, one line per event (game pairs started, games finished, changes, Swiss and knockout pairings); with the PGN files, it is what a resume reads. A game is on disk before its line, so a power cut loses at most the games being played. Game text no line points to (a game dropped by a change while it was saved, or left by a crash) is replaced with blank lines, so other PGN viewers only show the tournament’s games;tournament.lock: held by the program playing the tournament; another program opening the folder only shows it;<name>.pgn: move comments in the cutechess / fastchess style,{+0.35/18 1.234s}, with the score from the point of view of the side that moved; games in the order they ended (the journal finds each one by its place in the file; Export all in the Games tab, and the file of Also append every game to, follow the schedule);<name>-chessbase.pgn:{[%eval 0.35,18] [%clk 0:00:59.200] [%emt 0:00:01.234]}, with the evaluation from White’s point of view, as read by ChessBase / Fritz and Lichess;<name>is the tournament’s name when it was created (renaming it later keeps the files), with the characters Windows does not allow replaced by_and cut to 64 bytes;tournament.jsonrecords both names. A tournament without a name, an older one, or a match imported from 0.2.x hasgames.pgnandgames-chessbase.pgn;lichess.json: the lichess broadcast and round its games went to (no token);processor.tsv: the processor time each game’s engines used, for the Processor use of a resumed tournament;rookstudio.log: the log of the processes that played it (each tournament plays in a process of its own);control.json, while one plays it: where its local socket is (control.sockin the folder, or in the user’s runtime folder when that path is too long; a named pipe on Windows), and which process listens;logs/game-N.log: every line exchanged with both engines during game N (the number shown in the Games tab), with the time it was sent or read (W>sent to White’s engine,W<read from its output,W!read from its error output: assertions, crash messages), for the games lost on time, by a crash, a stall or an illegal move (or every game, if asked). The first 300 lines of each engine and the last 5000 lines of the game are kept, in the order they came. It is what an engine author needs to reproduce a bug. For a WinBoard engine it shows the UCI side;FCG_WB2UCI_LOGgives the WinBoard side;logs/start-<engine>.log: the last failed try to start an engine that cannot start: its program, the error, and the lines exchanged with the engines of that game until then (see An engine that cannot start).
A folder received from someone else is safe to open: the file of Also append every game to must be a .pgn file
(another name is ignored, with a warning), and a folder whose journal, PGN files or lock file are symbolic links is
not opened for writing, so it cannot make the program write outside it. Resuming it runs the engines its
tournament.json names, as any tournament does.
Matches played with version 0.2 appear on the Tournaments page: Import them turns them into finished tournaments.