File: README.scorelog

package info (click to toggle)
freeciv 2.6.2-1~bpo10+1
  • links: PTS, VCS
  • area: main
  • in suites: buster-backports
  • size: 212,500 kB
  • sloc: ansic: 443,831; cpp: 29,541; sh: 7,982; makefile: 7,886; python: 1,933; xml: 945
file content (38 lines) | stat: -rw-r--r-- 1,356 bytes parent folder | download | duplicates (13)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38

Format description of the scorelog format version 2
===================================================

Empty lines and lines starting with '#' are comments. Each non-comment
line starts with a command. The parameter are supplied on that line
and are seperated by a space. Strings which may contain whitespaces
are always the last parameter and so extend till the end of line.

The following commands exists:
  id <game-id>
    <game-id> is a string without whitespaces which is used
              to match a scorelog against a savegame.

  tag <tag-id> <descr>
    add a data-type (tag)
      the <tag-id> is used in the 'data' commands
      <descr> is a string without whitespaces which 
              identified this tag

  turn <turn> <number> <descr>
    adds information about the <turn> turn
      <number> can be for example year
      <descr> may contain whitespaces

  addplayer <turn> <player-id> <name>
    adds a player starting at the given turn (inclusive)
      <player-id> is a number which can be reused
      <name> may contain whitespaces

  delplayer <turn> <player-id>
    removes a player from the game. The player was 
      active till the given turn (inclusive)
      <player-id> used by the creation

  data <turn> <tag-id> <player-id> <value>
    give the value of the given tag for the given 
    player for the given turn.