Guide › Databases

Databases

The Databases page holds your game databases: their list on the left, the games of the one chosen on the right. A database is a folder of its own (Name.fcgdb), read fast even with millions of games.

Importing games

New database makes one, named in place; Add a database… lists a database folder made elsewhere, its files left where they are. Import into this database… takes a PGN file, or a .zst, .gz or .zip file holding one; a file dropped on the page goes into the database chosen, or into a new one named after it, and Paste games imports the PGN text of the clipboard. The import runs in the background at a low priority (a tournament beside it loses no time), with its progress, its speed and Cancel. The games committed stay if it stops (every 262,144 games, and at the end), and importing the file again adds only the missing ones; games already in the database are left out.

At the end, a banner on the database tells what came: the games added, those already there, and the damaged ones among the games added (a move that cannot be read or is illegal, a text cut short, a start position that is not one), each kept up to that move with its text as it was; See them in the list, or a click on one, shows the file at its line. The games already there from another source, the same game with its headers written otherwise, are told with Merge them and See them first (see Duplicate games). A full disk, a stop asked for or another error says what is kept and what is needed, with Resume the import and Open the database’s folder; a file that cannot be read on says why, the games read before it kept. Then the database’s opening tree is built, in the background.

A file whose bytes are not text (a program, a picture, an archive the import does not know) is refused before it is read as a PGN: nothing is imported, and a new database made for it is not kept.

A database that another program writes to (another RookStudio importing into it, for instance) opens read-only: the list, the tree and the searches work; importing and saving games wait until that program has finished. Remove from the list leaves a database’s files where they are.

The game list

The list gives each game’s number, players, Elo, result, event, date, ECO code and length; a click on a heading sorts it. A player’s spellings brought together in the database’s table of names (see Players’ names) show under the player’s name, and under the mouse the name says how the game writes it. The quick filter above takes free words: players, event, year, ECO code, result (carlsen 2024 B90). ↑ ↓ go through the list and the game chosen shows beside, on a small board with its moves; Enter or a double click opens it on the Board page. Millions of games scroll and sort at once. Games and Tournaments, beside the database’s name above the list, switch between its games and its tournaments (see Tournaments and crosstables). Export…, after the count of the games, makes the chosen game or the filter’s games a page to replay, an animated GIF, a PDF or a PGN file, the players’ names from the table of names written in it if asked (see Exporting and printing).

FIDE cards

A player’s FIDE card (title, federation, birth year, FIDE id, standard, rapid and blitz ratings) is asked of Lichess, which keeps FIDE’s list, without an account and only when you ask: FIDE card of …, in the menu of the right click on a name of the game list or in the game’s preview. A game that gives the player’s FIDE id (WhiteFideId, as Lichess’s broadcasts do) sends that id; otherwise the name is sent, and when several players of FIDE’s list are called that way, you choose which one it is. The card is kept in your profile for that name: it then shows under the mouse over the name, and in the preview. On lichess.org opens the player’s page there, Dossier of … their dossier (see A player’s dossier). A player matched with FIDE’s rating list in the database’s table of names shows the list’s card instead, without asking Lichess.

A player’s dossier

A player’s dossier gathers what your databases know of them. It opens from their name: Dossier of … in the menu of the right click on a name of the game list, in a game’s preview or on a FIDE card; Ctrl+K, Dossier: Duval; the Lichess page’s Prepare a game against (see Preparing a game). It shows in place of the page, Esc going back. It is made again each time it opens, from your databases as they are, in the background at a low priority with its progress and Cancel (a few seconds at most, even for a player with thousands of games in millions); nothing of it is kept.

Its games are found through each database’s table of names (see Players’ names): all of a player’s spellings together, in every database of yours but those of Lichess players’ games (Lichess · name: their account’s is the Lichess source). A player matched with FIDE’s rating list is told from their namesakes by the FIDE id the games give, and the games played before they could play are left out. When FIDE’s list has several players of that name, the dossier asks which one, the one whose rating fits their games proposed first: ↑ ↓ choose, Enter keeps the choice in the tables of names, and the dossier then takes only that player’s games (Ctrl+Z undoes; Not now shows every game of that name).

At its top: the player’s title, federation, birth year and FIDE ratings when they are matched with the list, and what it is made of: your databases, with their games and years, and Lichess when its source is ticked. Their games in the list shows them on the Databases page; Print… makes the dossier a PDF of a few pages, HTML page a page of its own whose lines replay on a board (see Exporting and printing). Then four tabs (Ctrl+Page Down and Ctrl+Page Up go from one to the next):

  • Overview: their first moves with White and their score, their answers with Black to the first moves they meet most, their rating over the years, their results against stronger and weaker players, their pawn structures, and your games against them (your names are those of Settings › Your names); then their last games. A click opens one on the Board page with the dossier as its list: Ctrl+← and Ctrl+→ go through their games, and Back to the dossier returns;
  • Openings: their lines with White and with Black, by ECO code, each with its games, its wins, draws and losses, their score and the last year they played it. A click opens the line on the Board page, its Tree tab on their games alone, from their side (Duval, Anne with White). Below, the gaps of your repertoires against them: the lines they play three times or more that your repertoires leave without an answer, the most frequent first;
  • Rating and structures: their rating year by year, the mean of the Elo their classical games give in each year (no curve under three years), their highest and what FIDE’s list says; their pawn structures at move 20, as the assistant’s facts name them (none under five games), a click showing those games in the list with the Structure search starting from their pawns; and when you reviewed games of theirs (Alt+G), their accuracy in each phase and where their clear mistakes fall;
  • Lichess, with its source: what they play over the board and online side by side, their level online, your games against them on both, and your repertoires’ gaps over both sources.

+ Lichess… links their Lichess account to them, the link kept in the tables of names, and ticks the source: their games of the last year come as for a game prepared against them; a click on the source’s chip takes it out, or puts it back. Under twenty games, the dossier says that it gives hints rather than trends. A player with no game in your databases is told so, with From a source… and + Lichess… to bring some. Nothing leaves the machine, except, with the Lichess source ticked, what preparing a game sends: their name with the filters of their games, and their public profile. Offline, the source shows the games of its last sync, dated. While you play them on Lichess, the dossier shows nothing of them.

Tournaments and crosstables

Tournaments, beside Games above a database’s list, shows its tournaments: the games of one event, its site and its year (a tournament from December to January stays one; the same event in two places, with players of their own, makes two). Online games, which share no event whose rounds are told, are in none: a database of them says it has no tournament and offers Games. Each tournament gives its system, its players, its rounds, the mean Elo of its players and its games, 286 of 288 in orange when games are missing. The list is sorted by mean Elo; a click on a heading sorts it otherwise, and its filter (Ctrl+L) takes words of the event, the site or the year. A large database’s list is made in the background with its progress (a few seconds for ten million games), and kept until the database changes.

The system is guessed from the games: a round robin when each played each (a double round robin when each pair met twice), Swiss otherwise; ? when it is not sure (a pair met more often than its system lets them, games missing in a field as small as a round robin’s). Team events and knockouts are said, their crosstables for later. A click on the system changes it, kept for the tournament.

A click on a tournament, or Enter, opens its crosstable in place of the list, Esc going back; Ctrl+K opens one too (Crosstable: Autumn Open). Its players are those of the database’s table of names (see Players’ names): all of a player’s spellings together. The games that came twice from two sources (the same players with the same colours, rounds that can be one) are counted once, and each game’s round is read from its Round tag (9.2: round 9, board 2).

  • A round robin’s crosstable has a cell for each opponent: 1, ½ or 0 (a result for each cycle in a double round robin),
    • and − for a forfeit; then the points, the tie-breaks, the wins, the performance and the rating change.
  • A Swiss’s has the start numbers, by rating, then a cell for each round: 4b½ is a draw against number 4, with Black; bye, the only player unpaired in the round (a win’s points, FIDE’s rule for a pairing-allocated bye); –, a round without a game. The first ten show, their games between them in the accent colour; All players shows the others.

A click on a game opens it on the Board page, the tournament’s games as its list (Ctrl+← and Ctrl+→, Back to the crosstable); a click on a name opens the player’s dossier (see A player’s dossier). The performance and the rating change say how they were counted under the mouse. Print… makes the crosstable a PDF on landscape pages, every player listed, and HTML page a page of its own (see Exporting and printing).

Above the crosstable, a line for each thing wrong with the data, with what fixes it:

  • games missing (a round robin’s pair that did not meet, a Swiss’s two players without a game in a round) are counted “?”, and the points, tie-breaks and rating changes that read them say “?”. Look for them in your other databases finds them under other spellings, Copy it into this tournament adds one, its event, site and players written as the tournament’s (Ctrl+Z takes it out again); Set the results by hand gives each its result, as a click on a “?” does, kept with the tournament in your profile, the database unchanged;
  • a player under two names: two names that can be one player’s, never paired together, their rounds apart; Bring them together joins them in the table of names (Ctrl+Z undoes);
  • games that came twice: Merge them keeps each as one game, its fullest fields from each source, as the maintenance’s duplicates do (Ctrl+Z undoes); those whose moves or results differ are shown in the list instead;
  • a forfeit: a decisive result without moves (a PGN has no word for it) counts in the points, not in the performance nor the rating change;
  • a system that is not sure: a click chooses it.

A followed broadcast has its crosstable too: Crosstable, beside the standings in the mosaic’s column, shows it in place of the boards (The mosaic, or Esc, brings them back). It is made of the rounds RookStudio follows and of those it kept in the Broadcasts database: ● a game being played (a click follows it on the Board page), · a game to come, the points, the games played and the rating change so far. Lichess’s own standings stay beside it, and nothing more is asked of Lichess for it; a team broadcast keeps Lichess’s team standings.

Tie-breaks, performance and rating change

The tie-breaks order the players on the same points, one after the other: FIDE’s by default, the line above the table saying which. The current FIDE tie-break regulations (C.07, effective from 1 March 2026) recommend none for a system, so RookStudio takes those of FIDE’s own events: for a round robin, as the Candidates Tournament 2026, Sonneborn-Berger, the wins, the direct encounter; for a Swiss, as the Grand Swiss 2025, the average rating of the opponents cut 1, Buchholz cut 1, Buchholz, the direct encounter (the average rating left out when a player has no rating, as C.07 asks). A click on a tie-break, in that line or on its heading, puts it first, moves it, replaces it or removes it; + adds one; FIDE’s puts theirs back. The order is kept for the tournament.

They are FIDE’s: direct encounter, wins (forfeits and byes worth a win count), games won, games with Black, wins with Black, progressive score, Buchholz, Buchholz cut 1, median Buchholz, Sonneborn-Berger, Koya, the average rating of the opponents (also cut 1) and the performance. In a Swiss, a round without a game counts in Buchholz and Sonneborn-Berger as FIDE says (C.07, article 16): as against an opponent of the player’s own score, at most a draw a round (at most the scheduled opponent’s score for a forfeit), and a player’s rounds after withdrawing count as draws for their opponents.

The performance is FIDE’s: the average rating of the rated opponents met over the board, plus the difference FIDE’s table gives the score in those games (rounded to the hundredth). The rating change is FIDE’s formula: for each game played over the board against a rated opponent, the score less the expected score from FIDE’s table (a difference counted as 400 at most, below 2650), times K. K is the player’s own from FIDE’s rating list when they are matched with it in the table of names and the list is of the tournament’s year or the next (see FIDE’s rating list); otherwise FIDE’s rules give it: 40 until the end of the year of their 18th birthday while under 2300, 10 from 2400, 20 otherwise, smaller when 700 would be passed over all their games. A rapid or blitz tournament follows FIDE’s rapid and blitz rules. A forfeit counts in the points only.

Searching

Search (Ctrl+F) opens the search panel beside the list, in six tabs (Ctrl+Page Down and Ctrl+Page Up go from one to the next); the list follows each criterion as it is typed:

  • Headers: a player and their colour, the opponent, the event, the years, the ECO codes, the Elo of both players at least, the result; Damaged games only;
  • Position: the Board page’s position, or one set up (Set up the pieces…): its games are found in the background, those that cannot reach it (their pawns, their material) left out without being replayed;
  • Material: a preset (rook endings, no queens, the bishop pair against bishop and knight, a queen against two rooks) or the men of each side counted (2, or 0-2), for so many plies at least;
  • Pattern: men put on the board with the mouse (a click puts the man chosen, a click again takes it away; Shift and a click, an empty square; the other squares, anything), White has only these pawns, three examples, and conditions beyond them: what attacks, defends or pins what, a line of moves (see Patterns);
  • Manoeuvre: a man’s route, such as a knight going b1, d2, f1, g3 (see Manoeuvres);
  • Structure: the pawns of the Board page, exactly or one or two pawns away (see Pawn structures).

Each search gives its games and its time; Add to the filter and Take out of the filter combine them, See in the list (Enter) shows the result, Clear everything starts again. The searches set add up: a pattern, and a material, and headers. A search that replays the games (a pattern, a route, a structure) goes on in the background with its progress and Cancel; the first games it finds are in the list already, and a search cancelled keeps them, Resume (the rest only) searching the games it had not reached. While the database is being imported into, a search covers the games already committed, and is made again by itself at the end.

The list then shows each game at the position found, in a column Found at (the move that led there): Enter or a double click opens the game at that move, and so does the next or previous game of the list from the Board page.

Keep this search… names it after its criteria (a pattern by its preset’s name). Its criteria are kept, not its games, for any database (its new games are found next time); the kept searches show at the top of the panel, where a click sets their criteria and the right button renames or deletes one, and in Ctrl+K (Search: …, or Pattern: … for a pattern alone).

Patterns

The Pattern tab says what holds in one position: the men on the small board first, then conditions, one per row, all true at once. A click on a word of a row changes it: the men (a white knight, the black queen or a black rook, any black man, on squares or anywhere), the verb (is on, attacks, defends, pins … on …, is en prise, is passed, and their contrary), the side to move, check, mate. + A condition adds one, × takes it away. The same man as in row 1, in the men’s menu, makes two rows speak of one man: a knight that attacks the king, and the same knight that attacks the queen or a rook, is a fork.

The presets set a whole pattern: Knight fork, Pin on the king, Back-rank mate, Queen’s double attack, Sacrifice on h7, Protected passed pawn; they are in Ctrl+K too (Pattern: Knight fork), on the database chosen.

Then… (a line) adds a line of positions after the first: each step a move (“the white bishop takes on h7 with check”) or a position, at the next ply or within so many plies (each step at the next ply, within 3 plies). A move can also be played on the small board (+ A step, a move played on the small board: a click on the man, then on its square). In each game, the position found is the first of the pattern.

What can never be found is said before searching, and nothing is started: a knight on c7 and c7 empty, White and Black to move, a pawn on its first rank; a click takes one of the two conditions away. A search that finds more than half of the games says so (Very broad): Add a condition, or Keep it as it is.

The pattern language

The same pattern is a text under the builder (Text, or Alt+T): changing one changes the other, and a kept search keeps its text, which can be copied and shared. Its words are CQL’s, the language of chess queries:

; Knight fork                       a comment (// also)
piece $n in N                       $n: one white knight, the same in every line
$n attacks k                        one condition a line, all true in the same position
$n attacks [qr]
btm

Bd3 Nf3 Qd1 Pe5 kg8 ph7 _f6         men on squares, side by side
line --> move from B to h7 capture check
     --> move from k to h7 capture
     --> .{0,2} --> move from N to g5 check
  • Men in FEN letters: K Q R B N P for White, k q r b n p for Black, A and a for any white or black man, _ for an empty square, [qr] for one of several; squares after the letter (Nf3, R[a1,h1], p[a-h7]), or alone where a word wants squares (move to [g5,h5]).
  • attacks, defends, pin from … through … to …, en prise, passed, check, mate, stalemate, wtm and btm (the side to move), not, or, only P (White has no other pawns than those named on their squares).
  • line --> then a step after each arrow, at the next ply: move from … to … capture … promote … and what holds after the move, or a position; .{0,2} before a step lets two plies of anything come first.
  • Two names ($n, $q) are always two men; a name follows its man through the moves of a line.

A line that does not read is named, with the word it looks like (“Line 2: “atacks” is not a known word — “attacks”?”); the rest of CQL is told as not read. The builder keeps the last version that read, and nothing is searched until the text reads again.

Manoeuvres

The Manoeuvre tab looks for a man’s route: a click on a man of the small board (the Board page’s position), then a click on each square it goes to (b1, d2, f1, g3); Backspace takes the last square off. Other moves between lets the side play other moves meanwhile; The same man all along asks for one man, else any man of its kind on each square in turn; In 15 moves at most counts the side’s moves from the first of the route to its last. From any position, or From the Board page’s position: the route once a game reaches that position.

The results say where the same man went next (on f5 in 31 % of the games), and the neighbouring routes, which part from it after its first move (b1–d2–b3); a click sets one. The grey arrow on the board is the most played continuation, not a condition. From the Board page, Ctrl+K This manoeuvre takes the man under the mouse and its moves in the game.

Pawn structures

The Structure tab looks for the pawns of the Board page alone, the pieces left aside: Exactly, One pawn away or Two pawns away (a pawn more, fewer or on another square, on either side, is one pawn), Both sides, or White’s pawns or Black’s pawns alone, The colours reversed too, held so many plies at least. Take the Board page’s pawns again takes them anew; Set up the pawns… changes them square by square. Its name shows when the assistant’s facts know it (Carlsbad, Maroczy, hedgehog, Stonewall, the pawn chains, Benoni, isolated queen’s pawn).

The results give the games held exactly and those near, the openings that reach it most, and the variants one pawn away with their games and White’s score (“the white b-pawn on b4”, “without the black a-pawn”); a click sets one. From the Board page, Ctrl+K Games at this structure searches its pawns at once.

Tournaments and PGN files

The tournaments of the profile, and the PGN file open on the Board page, show under Read without a copy after your databases: their games listed and searched like a database’s, brought up to date in the background when shown (the games a tournament finishes, a file that grew or changed). They are neither imported nor removed.

ChessBase databases

A ChessBase database dropped on the Databases page, or chosen with Import a file…, is copied into a RookStudio database: its .cbh or .2cbh (or any of its files), or an archive of one, .cbv or .cbz for a .cbh, .2cbv or .2cbz for a .2cbh. A card says first what it holds, read in its headers, what comes in and what stays out, where it goes and about how long it takes; Import (Enter) starts the copy, Not now (Esc) leaves it. The ChessBase files are only read, nothing is written beside them; an archive is unpacked while it is read. The password of a .cbz or a .2cbz is typed on the card (Enter in the field starts the copy) and not kept; a wrong one is said there at once, to be typed again, before anything is copied.

The copy keeps the moves and their variations, the comments before and after the moves (a text in several languages: English first, the others after it), the symbols, the coloured squares and arrows, the clocks and the time spent, the engines’ evaluations, the medals (a Medals tag), the critical positions and the time controls. Training questions, pictures, sounds and videos, web links, games quoted, pawn structures and piece paths, variation colours and the texts (articles) stay out: the report at the end counts them by kind. Imported again (new games added in ChessBase since), only the new games come in. Players’ names are written as the database writes them, “Last, First”.

Scid databases

A Scid database, of format 4 (.si4, .sn4, .sg4) or 5 (.si5, .sn5, .sg5), dropped on the Databases page or chosen with Import a file… (any of its three files), is copied into a RookStudio database the same way: a card says first how many games its index holds, what comes in and what stays out, where it goes and about how long it takes; Import (Enter) starts the copy, Not now (Esc) leaves it. The Scid files are only read, nothing is written beside them.

A database that comes in a .zip or a .7z is read from the archive as it is, without unpacking it first: drop the archive itself. Its games are counted as they come. A .7z is unpacked in memory before its games are read (up to 4 GB); a larger one is unpacked by hand first, then any of its files is dropped.

The copy keeps the moves and their variations, the comments before and after the moves, the symbols, every tag, and the squares and arrows Scid draws from its comments, which become coloured squares and arrows (in the nearest of red, green, yellow and blue); clocks and engines’ evaluations written in the comments are read as in a PGN file. Scid’s flags become a ScidFlags tag, their letters as Scid writes them (W for White’s openings, T for tactics…). The games marked deleted stay out: the report at the end counts them. Imported again, only the new games come in.

TWIC

From a source… brings games from a site, downloaded only when you ask. TWIC, The Week in Chess, publishes an issue of the week’s games every Monday: its sheet asks theweekinchess.com for its list of issues and shows the latest ones, with their Monday, their games and whether each is already in the database chosen. Tick some, choose the database (A new database, “TWIC” at first), then Download and add: each issue’s PGN is downloaded, then imported, one after the other, the database read all along; Cancel stops after what was added. A game the database already has, the same tags and moves, is not added twice. Then a report gives the strongest tournaments of the games added (the average rating of their players) and the best-rated players; a name opens its games in the list. The games already there from another source, a broadcast followed before for instance, are told there with Merge them.

Every Monday, look for a new issue is off until you tick it. Ticked, RookStudio asks for the list of issues while it is open, four times a day at most; a new issue shows under the list of databases, in Followed sources, and on the Home page’s My databases card, with Add to “…”: it is never added without you. What leaves the machine: the request for the list of issues, then for the PGN files of the issues chosen, nothing else. TWIC is free for personal use; nothing of it ships with RookStudio.

Lichess months

From a source… › Lichess broadcasts adds a month of Lichess’s official broadcasts (database.lichess.org, CC BY-SA 4.0): its sheet asks for the site’s page of files and lists the latest months with their size and games. Choose one and the database (A new database, “Lichess broadcasts” at first), then Download and add: the month’s file is downloaded, resumable, then imported, and a report gives its strongest tournaments and best-rated players. A game the database already has is not added twice. The games keep their source, the broadcast’s page in their Site tag: what you share of them is shared under the same licence. What leaves the machine: the request for the page, then for the month’s file.

From a source… › Lichess games reads a month of Lichess’s rated games (CC0, about 95 million games and 30 GB compressed) as it downloads, and keeps only the games that pass its filters: by default both players rated 2400 and more, without bullet (a base time and 40 increments under three minutes). Only the games kept reach the disk, added to the database chosen by batches, the database read all along. Read a file already downloaded… reads a lichess_db_standard_rated_*.pgn.zst from the disk instead. Cancel, a network cut or the program closed keeps what was added, and Go on goes on from where it stopped, with the same filters; the games read again are not added twice.

A chess.com player

From a source… › chess.com adds a player’s games from chess.com’s public API, without an account: type their name and Look up asks for the months they played; Download and add asks for each month’s games, one month at a time, and imports them into the database chosen (A new database, “chess.com · name” at first), with the same report. With Follow ticked, the player shows under the list of databases, in Followed sources: Look for new games asks again for the months not added yet and for the newest one (its games may have grown); a game already there is not added twice. What leaves the machine: the player’s name and the requests for their months, to api.chess.com.

Lumbra’s Gigabase

From a source… › Lumbra’s Gigabase explains how to bring it: its site asks you to accept its licence (CC BY-NC 4.0) and to show you are not a robot, which RookStudio does not do for you. Open its site opens it in your browser; once the file is downloaded, Import the downloaded file… imports it as it is. A .7z archive (LZMA or LZMA2) is read as it is unpacked: its PGN files one after the other, its other files passed over, nothing written onto the disk but the games. Any .7z of PGN files can be imported, or dropped on the page, the same way.

Maintenance

A database’s ⋯, beside its buttons on the Databases page, or a right click on it in the list, opens its maintenance in place of the page, in three parts: Duplicate games, Players’ names, Check and compact; Esc comes back. Ctrl+K has Duplicate games, Players’ names, FIDE’s rating list, Check the database and Compact the database. Each long task runs in the background at a low priority, with its progress and Cancel, the database read all along: a tournament beside it loses no time. Ctrl+Z undoes the last merge, the last players brought together, or the damaged games set aside. A database another program writes to is open read-only: its maintenance waits until that program lets it go. The Home page speaks of the maintenance only when it finds something: duplicates after an import, damaged games found by a check or when a database opens.

Duplicate games

The same game can come twice from two sources, its headers written otherwise: a round followed on Lichess, then TWIC’s issue of the Monday. The import leaves out a game the database has exactly (the same tags and moves), not these. Duplicate games finds them: the same players (read in the table of names; else their surnames and first initials), the same year, rounds and dates that do not differ, and the same moves, or the moves of one the start of the other’s, unfinished (a broadcast cut short). A game needs ten moves at least to be told (twenty when its day is not known); two games with an address of their own (Lichess’s) are two games.

It counts them by kind: the same moves with other headers; one shorter, a broadcast cut short; results that differ, left to you. Merge all (Enter) merges the first two kinds: each group becomes one game with the fullest of each field (a name in full over an initial, the longer event, the round that says more, “9.2” over “9”, a date that knows more, the ratings, the ECO code, the FIDE ids, the longer moves with their comments, the clocks and evaluations, a result over none), the other games marked deleted. A click on a group compares it field by field, each source in a column and the merged game beside: a click on a cell takes that field from that source; then Merge (Enter), Keep both (two games, never offered again) or Next group (↓). The merged game keeps the number of the oldest; its MergedFrom tag says where each field came from, and a broadcast’s address left for a place stays as its GameURL. Ctrl+Z brings the other games back. See in the list shows the duplicates in the game list, where Show all shows every game again.

At the end of an import, the games already there from another source are told in its report, with Merge them: they are never merged without your click. The reports of the sources (From a source…) tell them too.

Players’ names

One player is often written several ways: “Lindqvist, Erik”, “Lindqvist,E”, “Erik Lindqvist”. Players’ names brings a player’s spellings together in the database’s table of names. The games are not changed, but the game list shows the player’s name, and its quick filter, its search and its sorts, the opening tree’s reference games, the reports of the sources and the players’ dossiers read it. Three counts say what can be done:

  • brought together at once: the games give the player’s FIDE id (Lichess’s broadcasts do), or FIDE’s rating list has a single player of that name, or of that name as another alphabet writes it (“Kowalenko” for “Kovalenko”) with ratings near the games’; Bring together the … (Enter) does it;
  • to confirm: several players of the list have that name. The one whose rating is the nearest to the games’ is proposed first; ↑ ↓ choose among them or None of them, and Enter keeps the choice and goes to the next one;
  • kept as they are: a player not on the list, a name of one word (an account’s), or no list taken; two spellings of one surname and given name are brought together by hand, with a right click and Bring together.

A player matched with the list keeps its FIDE id, federation, title, birth year and ratings in the table, also once the list is removed. Ctrl+Z undoes. The table is part of the database: it goes with its folder. The games of a later import join their players by themselves when they give a player’s FIDE id or write its name in full; another spelling waits for this page.

FIDE’s rating list

FIDE publishes its rating list each month, about two million players: their FIDE ids, names, federations, titles, ratings and birth years. RookStudio does not ship it, since FIDE gives it no licence. Download, on the Players' names part, asks ratings.fide.com for its combined list (a zip of about 43 MB) and reads it into your profile (about 90 MB), where it stays, never sent anywhere; A file already downloaded… reads one you have. A download cut short resumes where it stopped (Resume). Each month after, the Home page says that a new list is out, with Take it: it is never taken without your click. Look for a newer list asks again; Remove it takes the list out of your profile, the players brought together staying as they are. A list whose columns changed is refused, the list before staying in service, with Report it. What leaves the machine: the request for the file, when you download it.

Checking and compacting

Check (Enter, or Ctrl+K Check the database) reads every segment of the database again from the disk and replays every game: its signature and its key (a hash of its headers and moves) are made again and compared with those stored, and a game that reads otherwise than it was written is damaged. It says Sound, or the damaged games and the files they were imported from: Keep what can be read sets them aside (deleted; Ctrl+Z brings them back), and Import their file again brings them back from their file when it is still there. The opening tree is compared with the games too.

A segment whose files no longer read when the database opens (cut short, missing or changed while RookStudio was closed: a disk error, a copy left half done, a sync tool) does not keep the database from opening. Its other segments work: the list, the opening tree and the searches read their games, and the damaged segment’s games keep their numbers. The Home page and the Databases page tell it, with See them, and Check and compact says it at once: the segment, how many games cannot be read, and the files they were imported from. Keep what can be read writes that segment again, its games set aside (deleted, their numbers kept). The players, events and sites first imported with it are kept when its list of names still reads; otherwise the other games that use them show “?” in their place. Its damaged files stay until RookStudio closes: until then, Undo (or Ctrl+Z) puts them back, as long as nothing else is written to the database. Import their file again brings its games back from their file when it is still there. Compacting waits until such a segment is dealt with, and a database open read-only is never changed.

Games deleted or replaced, merges included, keep their room in the files. Compact writes the segments that hold them again without them: each game keeps its number (a deleted game its headers only), and the opening tree stays valid. The old files are kept until RookStudio closes: Undo the compaction puts them back until then, and the room is given back at closing. Imports and saves into the database wait while it compacts; the list, the tree and the searches work. When the disk has not room enough for the copy, Compact segment by segment needs the room of one segment only, but cannot be undone.

In RookStudio, F1 opens this guide beside the page, at the section of what is under the mouse.