89typedef const char *(*help_callback_func_t) (
const struct setting *
pset);
90typedef const struct sset_val_name * (*val_name_func_t) (
int value);
195 const char *
name,
const char *path,
206#define settings_snprintf(_buf, _buf_len, format, ...) \
207 if (_buf != NULL) { \
208 fc_snprintf(_buf, _buf_len, format, ## __VA_ARGS__); \
224#define NAME_CASE(_val, _support, _pretty) \
227 static const struct sset_val_name name = { _support, _pretty }; \
322 N_(
"Generator's choice"));
324 N_(
"One player per continent"));
326 N_(
"Two or three players per continent"));
328 N_(
"All players on a single continent"));
330 N_(
"Depending on size of continents"));
340 switch (team_placement) {
344 N_(
"As close as possible"));
346 N_(
"On the same continent"));
348 N_(
"Horizontal placement"));
350 N_(
"Vertical placement"));
360 switch (persistent_ready) {
364 N_(
"As long as connected"));
410 N_(
"See everything inside borders"));
412 N_(
"Borders expand to unknown, revealing tiles"));
422 switch (trait_dist) {
449 switch (happyborders) {
465 N_(
"Only allowed between human players"));
509 switch (revolentype) {
537 N_(
"Allows units to be airlifted from allied cities"));
539 N_(
"Allows units to be airlifted to allied cities"));
541 N_(
"Unlimited units from source city"));
543 N_(
"Unlimited units to destination city"));
556 "PLAYER",
N_(
"All players alternate movement"));
583#ifdef FREECIV_HAVE_LIBZ
586#ifdef FREECIV_HAVE_LIBBZ2
590#ifdef FREECIV_HAVE_LIBLZMA
593#ifdef FREECIV_HAVE_LIBZSTD
654 _(
"This setting controls whether players may make "
655 "moves at the same time during a turn. Change "
656 "in setting takes effect next turn. Currently, at least "
657 "to the end of this turn, mode is \"%s\"."),
674 "Currently this setting is being overridden by an "
675 "old scenario or savegame, which has set the absolute "
676 "number of huts to %d. Explicitly set this setting "
677 "again to make it take effect instead."),
683 return pset->extra_help;
695 if (*
pset->boolean.pvalue) {
707 const char *msg =
aifill(*
pset->integer.pvalue);
709 log_normal(
_(
"Warning: aifill not met: %s."), msg);
711 _(
"Warning: aifill not met: %s."), msg);
722 if (pplayer->nation !=
NULL) {
741 _(
"Warning: not enough nations in this nation set "
742 "for all current players."));
769 if (*
pset->boolean.pvalue) {
771 if (
is_human(pplayer) && !pplayer->is_connected) {
786 int timeout = *
pset->integer.pvalue;
803 int timeout = *
pset->integer.pvalue;
878 log_warn(
_(
"Failed to update default AI type."));
898 _(
"Invalid save name definition: '%s' "
899 "(resolves to '%s')."), value,
buf);
917 _(
"You cannot disable the map generator."));
924 _(
"You cannot require a map generator "
925 "when a map is loaded."));
941 _(
"Invalid score name definition: '%s'."), value);
964 _(
"Demography string validation failed at character: "
965 "'%c'. Try \"/help demography\"."), value[error]);
982 ?
NULL :
"save interval");
984 }
else if (!(value & (1 <<
AS_TIMER))
1015 for (
i = 0;
i <
len;
i++) {
1017 if (
strchr(
"HhAadbOo", value[
i])) {
1031 _(
"Allowed take string validation failed at "
1032 "character: '%c'. Try \"/help allowtake\"."),
1059 for (
i = 0;
i <
len;
i++) {
1060 if (
strchr(
"cwxksfdDaA", value[
i])) {
1066 _(
"Starting units string validation failed at "
1067 "character '%c'. Try \"/help startunits\"."),
1086 _(
"The first starting unit must be native to at "
1087 "least one \"Starter\" terrain. "
1088 "Try \"/help startunits\"."));
1105 _(
"Cannot set endturn earlier than current turn."));
1119 _(
"Number of players (%d) is higher than requested "
1129 _(
"Requested value (%d) is greater than number of "
1130 "available start positions (%d). Keeping old value."),
1146 if (
strlen(value) == 0) {
1153 _(
"Unknown nation set \"%s\". See '%slist nationsets' "
1154 "for possible values."), value, caller ?
"/" :
"");
1167 && value < 30 && value != 0) {
1169 _(
"You are not allowed to set timeout values less "
1170 "than 30 seconds."));
1178 _(
"For autogames ('timeout' = -1) 'unitwaittime' "
1179 "should be deactivated (= 0)."));
1188 _(
"'timeout' can not be lower than 3/2 of the "
1189 "'unitwaittime' setting (= %d). Please change "
1205 && value < 30 && value != 0) {
1207 _(
"You are not allowed to set timeout values less "
1208 "than 30 seconds."));
1224 _(
"For autogames ('timeout' = -1) 'unitwaittime' "
1225 "should be deactivated (= 0)."));
1232 _(
"'unitwaittime' has to be lower than 2/3 of the "
1233 "'timeout' setting (= %d). Please change 'timeout' "
1252 _(
"For an isometric or hexagonal map the ysize must be "
1270 _(
"The map size (%d * %d = %d) must be larger than "
1276 _(
"The map size (%d * %d = %d) must be lower than "
1295 _(
"The map size (%d * %d = %d) must be larger than "
1301 _(
"The map size (%d * %d = %d) must be lower than "
1306 && value % 2 != 0) {
1310 _(
"For an isometric or hexagonal map the ysize must be "
1325 && ((value & (
TF_ISO)) != 0 || (value & (
TF_HEX)) != 0)
1330 _(
"For an isometric or hexagonal map the ysize must be "
1342 if ((value & (
TF_ISO)) != 0
1343 || (value & (
TF_HEX)) != 0) {
1346 _(
"Freeciv-web doesn't support this topology."));
1362 _(
"No such AI type loaded."));
1379 if ((value & (
WRAP_Y)) != 0) {
1382 _(
"Freeciv-web doesn't support this map wrap."));
1405 _(
"No nations in the currently loaded ruleset have "
1406 "associated colors."));
1412#define GEN_BOOL(name, value, sclass, scateg, slevel, al_read, al_write, \
1413 short_help, extra_help, func_validate, func_action, \
1415 {name, sclass, al_read, al_write, short_help, extra_help, NULL, SST_BOOL, \
1418 .boolean = {&value, _default, func_validate, bool_name, \
1419 FALSE} INIT_BRACE_END , func_action, FALSE, .ruleset_settable = TRUE},
1421#define GEN_INT(name, value, sclass, scateg, slevel, al_read, al_write, \
1422 short_help, extra_help, func_help, \
1423 func_validate, func_action, \
1424 _min, _max, _default) \
1425 {name, sclass, al_read, al_write, short_help, extra_help, func_help, \
1426 SST_INT, scateg, slevel, \
1428 .integer = {(int *) &value, _default, _min, _max, func_validate, \
1429 0} INIT_BRACE_END, \
1430 func_action, FALSE, .ruleset_settable = TRUE},
1432#define GEN_STRING(name, value, sclass, scateg, slevel, al_read, al_write, \
1433 short_help, extra_help, func_validate, func_action, \
1435 {name, sclass, al_read, al_write, short_help, extra_help, NULL, \
1436 SST_STRING, scateg, slevel, \
1438 .string = {value, _default, sizeof(value), func_validate, ""} \
1440 func_action, FALSE, .ruleset_settable = TRUE},
1442#define GEN_STRING_NRS(name, value, sclass, scateg, slevel, al_read, al_write, \
1443 short_help, extra_help, func_validate, func_action, \
1445 {name, sclass, al_read, al_write, short_help, extra_help, NULL, \
1446 SST_STRING, scateg, slevel, \
1448 .string = {value, _default, sizeof(value), func_validate, ""} \
1450 func_action, FALSE, .ruleset_settable = FALSE},
1452#define GEN_ENUM(name, value, sclass, scateg, slevel, al_read, al_write, \
1453 short_help, extra_help, func_help, func_validate, \
1454 func_action, func_name, _default) \
1455 { name, sclass, al_read, al_write, short_help, extra_help, func_help, \
1456 SST_ENUM, scateg, slevel, \
1458 .enumerator = { &value, sizeof(value), _default, \
1460 (val_name_func_t) func_name, 0 } INIT_BRACE_END, \
1461 func_action, FALSE, .ruleset_settable = TRUE},
1463#define GEN_BITWISE(name, value, sclass, scateg, slevel, al_read, al_write, \
1464 short_help, extra_help, func_validate, func_action, \
1465 func_name, _default) \
1466 { name, sclass, al_read, al_write, short_help, extra_help, NULL, \
1467 SST_BITWISE, scateg, slevel, \
1469 .bitwise = { (unsigned *) (void *) &value, _default, func_validate, \
1470 func_name, 0 } INIT_BRACE_END, \
1471 func_action, FALSE, .ruleset_settable = TRUE},
1481 N_(
"Map size definition"),
1487 N_(
"Chooses the method used to define the map size. Other options "
1488 "specify the parameters for each method.\n"
1489 "- \"Number of tiles\" (FULLSIZE): Map area (option 'size').\n"
1490 "- \"Tiles per player\" (PLAYER): Number of (land) tiles per "
1491 "player (option 'tilesperplayer').\n"
1492 "- \"Width and height\" (XYSIZE): Map width and height in "
1493 "tiles (options 'xsize' and 'ysize')."),
NULL,
1498 N_(
"Map area (in thousands of tiles)"),
1504 N_(
"This value is used to determine the map area.\n"
1505 " size = 4 is a normal map of 4,000 tiles (default)\n"
1506 " size = 20 is a huge map of 20,000 tiles\n"
1507 "For this option to take effect, the \"Map size definition\" "
1508 "option ('mapsize') must be set to \"Number of tiles\" "
1514 N_(
"Number of (land) tiles per player"),
1520 N_(
"This value is used to determine the map dimensions. It "
1521 "calculates the map size at game start based on the number "
1522 "of players and the value of the setting 'landmass'.\n"
1523 "For this option to take effect, the \"Map size definition\" "
1524 "option ('mapsize') must be set to \"Tiles per player\" "
1531 N_(
"Map width in tiles"),
1537 N_(
"Defines the map width.\n"
1538 "For this option to take effect, the \"Map size definition\" "
1539 "option ('mapsize') must be set to \"Width and height\" "
1545 N_(
"Map height in tiles"),
1551 N_(
"Defines the map height.\n"
1552 "For this option to take effect, the \"Map size definition\" "
1553 "option ('mapsize') must be set to \"Width and height\" "
1563 N_(
"Freeciv-web maps are always two-dimensional.\n"),
1566 N_(
"Freeciv maps are always two-dimensional. "
1567 "Individual tiles may "
1568 "be rectangular or hexagonal, with either an overhead "
1569 "(\"classic\") or isometric alignment.\n"
1570 "To play with a particular topology, clients will need a "
1571 "matching tileset.\n"
1572 "Overhead rectangular: Isometric rectangular:\n"
1573 " _________ /\\/\\/\\/\\/\\\n"
1574 " |_|_|_|_|_| /\\/\\/\\/\\/\\/\n"
1575 " |_|_|_|_|_| \\/\\/\\/\\/\\/\\\n"
1576 " |_|_|_|_|_| /\\/\\/\\/\\/\\/\n"
1577 " \\/\\/\\/\\/\\/\n"
1579 " /\\/\\/\\/\\/\\/\\ _ _ _ _ _\n"
1580 " | | | | | | | / \\_/ \\_/ \\_/ \\_/ \\\n"
1581 " \\/\\/\\/\\/\\/\\/\\"
1582 " \\_/ \\_/ \\_/ \\_/ \\_/\n"
1583 " | | | | | | | / \\_/ \\_/ \\_/ \\_/ \\\n"
1584 " \\/\\/\\/\\/\\/\\/"
1585 " \\_/ \\_/ \\_/ \\_/ \\_/\n"),
1594 N_(
"Freeciv-web maps may wrap "
1595 "at the east-west directions to form a flat map or a "
1599 N_(
"Freeciv maps may wrap at "
1600 "the north-south and east-west directions to form a flat "
1601 "map, a cylinder, or a torus (donut)."),
1607 N_(
"Method used to generate map"),
1613 N_(
"Specifies the algorithm used to generate the map. If the "
1614 "default value of the 'startpos' option is used, then the "
1615 "chosen generator chooses an appropriate 'startpos' setting; "
1616 "otherwise, the generated map tries to accommodate the "
1617 "chosen 'startpos' setting.\n"
1618 "- \"Scenario map\" (SCENARIO): indicates a pre-generated map. "
1619 "By default, if the scenario does not specify start positions, "
1620 "they will be allocated depending on the size of continents.\n"
1621 "- \"Fully random height\" (RANDOM): generates maps with a "
1622 "number of equally spaced, relatively small islands. By default, "
1623 "start positions are allocated depending on continent size.\n"
1624 "- \"Pseudo-fractal height\" (FRACTAL): generates Earthlike "
1625 "worlds with one or more large continents and a scattering of "
1626 "smaller islands. By default, players are all placed on a "
1627 "single continent.\n"
1628 "- \"Island-based\" (ISLAND): generates 'fair' maps with a "
1629 "number of similarly-sized and -shaped islands, each with "
1630 "approximately the same ratios of terrain types. By default, "
1631 "each player gets their own island.\n"
1632 "- \"Fair islands\" (FAIR): generates the exact copy of the "
1633 "same island for every player or every team.\n"
1634 "- \"Fracture map\" (FRACTURE): generates maps from a fracture "
1635 "pattern. Tends to place hills and mountains along the edges "
1636 "of the continents.\n"
1637 "If the requested generator is incompatible with other server "
1638 "settings, the server may fall back to another generator."),
1643 N_(
"Method used to choose start positions"),
1649 N_(
"The method used to choose where each player's initial units "
1650 "start on the map. (For scenarios which include pre-set "
1651 "start positions, this setting is ignored.)\n"
1652 "- \"Generator's choice\" (DEFAULT): the start position "
1653 "placement will depend on the map generator chosen. See the "
1654 "'generator' setting.\n"
1655 "- \"One player per continent\" (SINGLE): one player is "
1656 "placed on each of a set of continents of approximately "
1657 "equivalent value (if possible).\n"
1658 "- \"Two or three players per continent\" (2or3): similar "
1659 "to SINGLE except that two players will be placed on each "
1660 "continent, with three on the 'best' continent if there is an "
1661 "odd number of players.\n"
1662 "- \"All players on a single continent\" (ALL): all players "
1663 "will start on the 'best' available continent.\n"
1664 "- \"Depending on size of continents\" (VARIABLE): players "
1665 "will be placed on the 'best' available continents such that, "
1666 "as far as possible, the number of players on each continent "
1667 "is proportional to its value.\n"
1668 "If the server cannot satisfy the requested setting due to "
1669 "there being too many players for continents, it may fall "
1670 "back to one of the others. (However, map generators try to "
1671 "create the right number of continents for the choice of this "
1672 "'startpos' setting and the number of players, so this is "
1673 "unlikely to occur.)"),
1678 N_(
"Method used for placement of team mates"),
1684 N_(
"After start positions have been generated thanks to the "
1685 "'startpos' setting, this setting controls how the start "
1686 "positions will be assigned to the different players of the "
1688 "- \"Disabled\" (DISABLED): the start positions will be "
1689 "randomly assigned to players, regardless of teams.\n"
1690 "- \"As close as possible\" (CLOSEST): players will be "
1691 "placed as close as possible, regardless of continents.\n"
1692 "- \"On the same continent\" (CONTINENT): if possible, place "
1693 "all players of the same team onto the same "
1694 "island/continent.\n"
1695 "- \"Horizontal placement\" (HORIZONTAL): players of the same "
1696 "team will be placed horizontally.\n"
1697 "- \"Vertical placement\" (VERTICAL): players of the same "
1698 "team will be placed vertically."),
1703 N_(
"Presence of 1x1 islands"),
1704 N_(
"This setting controls whether the map generator is allowed "
1705 "to make islands of one only tile size."),
NULL,
NULL,
1711 N_(
"Whether the poles are separate continents"),
1712 N_(
"If this setting is disabled, the continents may attach to "
1717 N_(
"How much the land at the poles is flattened"),
1719 N_(
"Controls how much the height of the poles is flattened "
1720 "during map generation, preventing a diversity of land "
1721 "terrain there. 0 is no flattening, 100 is maximum "
1722 "flattening. Only affects the 'RANDOM' and 'FRACTAL' "
1723 "map generators."),
NULL,
1730 N_(
"Northernmost latitude"),
1733 N_(
"Combined with 'southlatitude', controls what climatic "
1734 "zones exist on the map. Higher values are further north, "
1735 "lower values are further south.\n"
1737 "1000 and -1000 gives a full planetary map.\n"
1738 "1000 and 0 gives only a northern hemisphere.\n"
1739 " 500 and 500 gives a map with the same middle-latitude "
1740 "climate everywhere.\n"
1741 " 300 and -300 gives an equatorial map.\n"
1743 "In rulesets that support it, latitude may also have certain "
1744 "effects during gameplay."),
NULL,
1751 N_(
"Southernmost latitude"),
1754 N_(
"Combined with 'northlatitude', controls what climatic "
1755 "zones exist on the map. Higher values are further north, "
1756 "lower values are further south.\n"
1758 "1000 and -1000 gives a full planetary map.\n"
1759 "1000 and 0 gives only a northern hemisphere.\n"
1760 " 500 and 500 gives a map with the same middle-latitude "
1761 "climate everywhere.\n"
1762 " 300 and -300 gives an equatorial map.\n"
1764 "In rulesets that support it, latitude may also have certain "
1765 "effects during gameplay."),
NULL,
1773 N_(
"Average temperature of the planet"),
1774 N_(
"Small values will give a cold map, while larger values will "
1775 "give a hotter map.\n"
1777 "100 means a very dry and hot planet with no polar arctic "
1778 "zones, only tropical and dry zones.\n"
1779 " 70 means a hot planet with little polar ice.\n"
1780 " 50 means a temperate planet with normal polar, cold, "
1781 "temperate, and tropical zones; a desert zone overlaps "
1782 "tropical and temperate zones.\n"
1783 " 30 means a cold planet with small tropical zones.\n"
1784 " 0 means a very cold planet with large polar zones and no "
1792 N_(
"Percentage of the map that is land"),
1793 N_(
"This setting gives the approximate percentage of the map "
1800 N_(
"Amount of hills/mountains"),
1801 N_(
"Small values give flat maps, while higher values give a "
1802 "steeper map with more hills and mountains."),
1809 N_(
"Amount of water on landmasses"),
1810 N_(
"Small values mean lots of dry, desert-like land; "
1811 "higher values give a wetter map with more swamps, "
1817 N_(
"Global warming"),
1818 N_(
"If turned off, global warming will not occur "
1819 "as a result of pollution. This setting does not "
1825 N_(
"Global warming percent"),
1826 N_(
"This is a multiplier for the rate of accumulation of global "
1834 N_(
"Nuclear winter"),
1835 N_(
"If turned off, nuclear winter will not occur "
1836 "as a result of nuclear war."),
NULL,
NULL,
1841 N_(
"Nuclear winter percent"),
1842 N_(
"This is a multiplier for the rate of accumulation of nuclear "
1855 N_(
"Map generation random seed"),
1856 N_(
"The same seed will always produce the same map; "
1857 "for zero (the default) a seed will be generated randomly, "
1858 "based on gameseed. If also gameseed is zero, "
1859 "the map will be completely random."),
1875 N_(
"Game random seed"),
1876 N_(
"For zero (the default) a seed will be chosen based "
1877 "on system entropy or, failing that, the current time."),
1883 N_(
"Amount of \"special\" resource tiles"),
1884 N_(
"Special resources improve the basic terrain type they "
1885 "are on. The server variable's scale is parts per "
1891 N_(
"Amount of huts (bonus extras)"),
1892 N_(
"Huts are tile extras that usually may be investigated by "
1894 "The server variable's scale is huts per thousand tiles."),
1900 N_(
"Amount of animals"),
1901 N_(
"Number of animals initially created on terrains "
1902 "defined for them in the ruleset (if the ruleset supports it). "
1903 "The server variable's scale is animals per "
1913 N_(
"Minimum number of players"),
1914 N_(
"There must be at least this many players (connected "
1915 "human players) before the game can start."),
1921 N_(
"Maximum number of players"),
1922 N_(
"The maximal number of human and AI players who can be in "
1923 "the game. When this number of players are connected in "
1924 "the pregame state, any new players who try to connect "
1925 "will be rejected.\n"
1926 "When playing a scenario which defines player start positions, "
1927 "this setting cannot be set to greater than the number of "
1928 "defined start positions."),
1934 N_(
"Limited number of AI players"),
1935 N_(
"If set to a positive value, then AI players will be "
1936 "automatically created or removed to keep the total "
1937 "number of players at this amount. As more players join, "
1938 "these AI players will be replaced. When set to zero, "
1939 "all AI players will be removed."),
1945 N_(
"When the Readiness of a player gets autotoggled off"),
1946 N_(
"In pre-game, usually when new players join or old ones leave, "
1947 "those who have already accepted game to start by toggling \"Ready\" "
1948 "get that autotoggled off in the changed situation. This setting "
1949 "can be used to make readiness more persistent."),
1955 N_(
"Set of nations to choose from"),
1957 N_(
"Controls the set of nations allowed in the game. The "
1958 "choices are defined by the ruleset.\n"
1959 "Only nations in the set selected here will be allowed in "
1960 "any circumstances, including new players and civil war; "
1961 "small sets may thus limit the number of players in a game.\n"
1962 "If this is left blank, the ruleset's default nation set is "
1964 "See '/list nationsets' for possible choices for the "
1965 "currently loaded ruleset."),
1971 N_(
"Event cache for this number of turns"),
1972 N_(
"Event messages are saved for this number of turns. A value of "
1973 "0 deactivates the event cache."),
1980 N_(
"Size of the event cache"),
1981 N_(
"This defines the maximal number of events in the event cache."),
1988 N_(
"Save chat messages in the event cache"),
1989 N_(
"If turned on, chat messages will be saved in the event "
1995 N_(
"Print turn and time for each cached event"),
1997 N_(
"If turned on, all cached events will be marked by the turn "
1998 "and time of the event like '(T2 - 15:29:52)'."),
2007 N_(
"List of players' initial units"),
2008 N_(
"This should be a string of characters, each of which "
2009 "specifies a unit role. The first character must be native to "
2010 "at least one \"Starter\" terrain. The characters and their "
2012 " c = City founder (eg., Settlers)\n"
2013 " w = Terrain worker (eg., Engineers)\n"
2014 " x = Explorer (eg., Explorer)\n"
2015 " k = Gameloss (eg., King)\n"
2016 " s = Diplomat (eg., Diplomat)\n"
2017 " f = Ferryboat (eg., Trireme)\n"
2018 " d = Ok defense unit (eg., Warriors)\n"
2019 " D = Good defense unit (eg., Phalanx)\n"
2020 " a = Fast attack unit (eg., Horsemen)\n"
2021 " A = Strong attack unit (eg., Catapult)\n"),
2027 N_(
"Whether player starts with a city"),
2028 N_(
"If this is set, game will start with player's first "
2029 "city already founded to starting location."),
2035 N_(
"Area where initial units are located"),
2036 N_(
"This is the radius within "
2037 "which the initial units are dispersed."),
2044 N_(
"Starting gold per player"),
2045 N_(
"At the beginning of the game, each player is given this "
2052 N_(
"Starting infrapoints per player"),
2053 N_(
"At the beginning of the game, each player is given this "
2060 N_(
"Number of initial techs per player"),
2063 N_(
"At the beginning of the game, each player is given this "
2064 "many technologies. The technologies chosen are random for "
2065 "each player. Depending on the value of tech_cost_style in "
2066 "the ruleset, a big value for 'techlevel' can make the next "
2073 N_(
"Technology cost multiplier percentage"),
2074 N_(
"This affects how quickly players can research new "
2075 "technology. All tech costs are multiplied by this amount "
2076 "(as a percentage). The base tech costs are determined by "
2077 "the ruleset or other game settings."),
2083 N_(
"Allow researching multiple technologies"),
2084 N_(
"Allows switching to any technology without wasting old "
2085 "research. Bulbs are never transferred to new technology. "
2086 "Techpenalty options are ineffective after enabling that "
2092 N_(
"Percentage penalty when changing tech"),
2093 N_(
"If you change your current research technology, and you have "
2094 "positive research points, you lose this percentage of those "
2095 "research points. This does not apply when you have just gained "
2102 N_(
"Chance to lose a technology while receiving it"),
2103 N_(
"The chance that learning a technology by treaty or theft "
2110 N_(
"Chance to lose a technology while giving it"),
2111 N_(
"The chance that your civilization will lose a technology if "
2112 "you teach it to someone else by treaty, or if it is stolen "
2119 N_(
"Tech leakage percent"),
2120 N_(
"The rate of the tech leakage. This multiplied by the "
2121 "percentage of players who know the tech tell which "
2122 "percentage of tech's bulb cost gets leaked each turn. "
2123 "This setting has no effect if the ruleset has disabled "
2130 N_(
"Team pooled research"),
2131 N_(
"If this setting is turned on, then the team mates will share "
2132 "the science research. Else, every player of the team will "
2133 "have to make its own."),
2138 N_(
"Penalty when getting tech from treaty"),
2139 N_(
"For each technology you gain from a diplomatic treaty, you "
2140 "lose research points equal to this percentage of the cost to "
2141 "research a new technology. If this is non-zero, you can end up "
2142 "with negative research points."),
2148 N_(
"Penalty when getting gold from treaty"),
2149 N_(
"When transferring gold in diplomatic treaties, this percentage "
2150 "of the agreed sum is lost to both parties; it is deducted from "
2151 "the donor but not received by the recipient."),
2157 N_(
"Probability of gold loss during inciting revolt"),
2158 N_(
"When unit trying to incite revolt is eliminated, half of the gold "
2159 "(or quarter, if unit was caught), prepared to bribe citizens, "
2160 "can be lost or captured by enemy."),
2167 N_(
"Probability of gold capture during inciting revolt"),
2168 N_(
"When unit trying to incite revolt is eliminated and lose its "
2169 "gold, there is chance that this gold would be captured by "
2170 "city defender. Transfer tax would be applied, though. "
2171 "This setting is irrelevant, if incite_gold_loss_chance is zero."),
2178 N_(
"Penalty when getting tech from conquering"),
2179 N_(
"For each technology you gain by conquering an enemy city, you "
2180 "lose research points equal to this percentage of the cost to "
2181 "research a new technology. If this is non-zero, you can end up "
2182 "with negative research points."),
2189 N_(
"Penalty when getting a free tech"),
2192 N_(
"For each technology you gain \"for free\" (other than "
2193 "covered by 'diplcost' or 'conquercost': for instance, from huts "
2194 "or from Great Library effects), you lose research points "
2195 "equal to this percentage of the cost to research a new "
2196 "technology. If this is non-zero, you can end up "
2197 "with negative research points."),
2203 N_(
"Research point debt threshold for losing tech"),
2204 N_(
"When you have negative research points, and your shortfall is "
2205 "greater than this percentage of the cost of your current "
2206 "research, you forget a technology you already knew.\n"
2207 "The special value -1 prevents loss of technology regardless of "
2208 "research points."),
2215 N_(
"Research points restored after losing a tech"),
2216 N_(
"When you lose a technology due to a negative research balance "
2217 "(see 'techlossforgiveness'), this percentage of its research "
2218 "cost is credited to your research balance (this may not be "
2219 "sufficient to make it positive).\n"
2220 "The special value -1 means that your research balance is always "
2221 "restored to zero, regardless of your previous shortfall."),
2229 N_(
"Food required for a city to grow"),
2230 N_(
"This is the base amount of food required to grow a city. "
2231 "This value is multiplied by another factor that comes from "
2232 "the ruleset and is dependent on the size of the city."),
2238 N_(
"Percentage food lost when city can't grow"),
2239 N_(
"If a city would expand, but it can't because it lacks some "
2240 "prerequisite (traditionally an Aqueduct or Sewer System), "
2241 "this is the base percentage of its foodbox that is lost "
2242 "each turn; the penalty may be reduced by buildings or other "
2243 "circumstances, depending on the ruleset."),
2251 N_(
"Multiplier percentage for production costs"),
2252 N_(
"This affects how quickly units and buildings can be "
2253 "produced. The base costs are multiplied by this value (as "
2266 N_(
"Minimum city size to get full trade"),
2269 N_(
"There is a trade penalty in all cities smaller than this. "
2270 "The penalty is 100% (no trade at all) for sizes up to "
2271 "'notradesize', and decreases gradually to 0% (no penalty "
2272 "except the normal corruption) for size='fulltradesize'. "
2279 N_(
"Maximum size of a city without trade"),
2282 N_(
"Cities do not produce any trade at all unless their size "
2283 "is larger than this amount. The produced trade increases "
2284 "gradually for cities larger than 'notradesize' and smaller "
2285 "than 'fulltradesize'. See also 'fulltradesize'."),
2292 N_(
"How largely trade distance is relative to world size"),
2295 N_(
"When determining trade between cities, the distance factor "
2296 "can be partly or fully relative to world size. This setting "
2297 "determines how big percentage of the bonus calculation is "
2298 "relative to world size, and how much only absolute distance "
2307 N_(
"Minimum distance between cities"),
2308 N_(
"When a player attempts to found a new city, it is prevented "
2309 "if the distance from any existing city is less than this "
2310 "setting. For example, when this setting is 3, there must be "
2311 "at least two clear tiles in any direction between all existing "
2312 "cities and the new city site. A value of 1 removes any such "
2313 "restriction on city placement."),
2320 N_(
"Technology trading"),
2321 N_(
"If turned off, trading technologies in the diplomacy dialog "
2328 N_(
"If turned off, trading gold in the diplomacy dialog "
2335 N_(
"If turned off, trading cities in the diplomacy dialog "
2341 N_(
"Caravan bonus style"),
2342 N_(
"The formula for the bonus when a caravan enters a city. "
2343 "CLASSIC bonuses are proportional to distance and trade "
2344 "of source and destination with multipliers for overseas and "
2345 "international destinations. LOGARITHMIC bonuses are "
2346 "proportional to log^2(distance + trade)."),
2352 N_(
"Trade revenue style"),
2353 N_(
"The formula for the trade a city receives from a trade route. "
2354 "CLASSIC revenues are given by the sum of the two city sizes "
2355 "plus the distance between them, with multipliers for overseas "
2356 "and international routes. "
2357 "SIMPLE revenues are proportional to the average trade of the "
2364 N_(
"Minimum distance for trade routes"),
2365 N_(
"In order for two cities in the same civilization to establish "
2366 "a trade route, they must be at least this far apart on the "
2367 "map. For square grids, the distance is calculated as "
2368 "\"Manhattan distance\", that is, the sum of the displacements "
2376 N_(
"Number of turns between rapture effect"),
2377 N_(
"Sets the number of turns between rapture growth of a city. "
2378 "If set to n a city will grow after celebrating for n+1 "
2387 N_(
"Frequency of disasters"),
2388 N_(
"Affects how often random disasters happen to cities, "
2389 "if any are defined by the ruleset. The relative frequency "
2390 "of disaster types is set by the ruleset. Zero prevents "
2391 "any random disasters from occurring."),
2398 N_(
"AI trait distribution method"),
2399 N_(
"How trait values are given to AI players."),
2404 N_(
"Chance for conquered building destruction"),
2405 N_(
"When a player conquers a city, each city improvement has this "
2406 "percentage chance to be destroyed."),
NULL,
NULL,
NULL,
2411 N_(
"Chance of moving into tile after attack"),
2412 N_(
"If set to 0, combat is Civ1/2-style (when you attack, "
2413 "you remain in place). If set to 100, attacking units "
2414 "will always move into the tile they attacked when they win "
2415 "the combat (and no enemy units remain in the tile). If "
2416 "set to a value between 0 and 100, this will be used as "
2417 "the percent chance of \"occupying\" territory."),
2424 N_(
"Turn on/off server-side autoattack"),
2425 N_(
"If set to on, units with moves left will automatically "
2426 "consider attacking enemy units that move adjacent to them."),
2432 N_(
"Do all units in tile die with defender"),
2433 N_(
"If this is enabled, each time a defender unit loses in combat, "
2434 "and is not inside a city or suitable base, all units in the same "
2435 "tile are destroyed along with the defender. If this is disabled, "
2436 "only the defender unit is destroyed."),
2441 N_(
"Reduce city population after attack"),
2442 N_(
"This flag indicates whether a city's population is reduced "
2443 "after a successful attack by an enemy unit. If this is "
2444 "disabled, population is never reduced. Even when this is "
2445 "enabled, only some units may kill citizens."),
2450 N_(
"Slowly kill units without home cities (e.g., starting units)"),
2451 N_(
"If greater than 0, then every unit without a homecity will "
2452 "lose hitpoints each turn. The number of hitpoints lost is "
2453 "given by 'killunhomed' percent of the hitpoints of the unit "
2454 "type. At least one hitpoint is lost every turn until the "
2455 "death of the unit."),
2462 N_(
"National borders"),
2463 N_(
"If this is not disabled, then any land tiles around a "
2464 "city or border-claiming extra (like the classic ruleset's "
2465 "Fortress base) will be owned by that nation. "
2466 "SEE_INSIDE and EXPAND makes everything inside a player's "
2467 "borders visible at once. ENABLED will, in some rulesets, "
2468 "grant the same visibility if certain conditions are met."),
2474 N_(
"Units inside borders cause no unhappiness"),
2475 N_(
"If this is set, units will not cause unhappiness when "
2476 "inside your borders, or even allies borders, depending "
2483 N_(
"Ability to do diplomacy with other players"),
2484 N_(
"This setting controls the ability to do diplomacy with "
2490 N_(
"Allowed city names"),
2494 N_(
"- \"No restrictions\" (NO_RESTRICTIONS): players can have "
2495 "multiple cities with the same names.\n"
2496 "- \"Unique to a player\" (PLAYER_UNIQUE): one player can't "
2497 "have multiple cities with the same name.\n"
2498 "- \"Globally unique\" (GLOBAL_UNIQUE): all cities in a game "
2499 "have to have different names.\n"
2500 "- \"No city name stealing\" (NO_STEALING): like "
2501 "\"Globally unique\", but a player isn't allowed to use a "
2502 "default city name of another nation unless it is a default "
2503 "for their nation also."),
2508 N_(
"How to pick player colors"),
2513 N_(
"This setting determines how player colors are chosen. Player "
2514 "colors are used in the Nations report, for national borders on "
2515 "the map, and so on.\n"
2516 "- \"Per-player, in order\" (PLR_ORDER): colors are assigned to "
2517 "individual players in order from a list defined by the "
2519 "- \"Per-player, random\" (PLR_RANDOM): colors are assigned "
2520 "to individual players randomly from the set defined by the "
2522 "- \"Set manually\" (PLR_SET): colors can be set with the "
2523 "'playercolor' command before the game starts; these are not "
2524 "restricted to the ruleset colors. Any players for which no "
2525 "color is set when the game starts get a random color from the "
2527 "- \"Per-team, in order\" (TEAM_ORDER): colors are assigned to "
2528 "teams from the list in the ruleset. Every player on the same "
2529 "team gets the same color.\n"
2530 "- \"Per-nation, in order\" (NATION_ORDER): if the ruleset "
2531 "defines a color for a player's nation, the player takes that "
2532 "color. Any players whose nations don't have associated colors "
2533 "get a random color from the list in the ruleset.\n"
2534 "Regardless of this setting, individual player colors can be "
2535 "changed after the game starts with the 'playercolor' command."),
2555 N_(
"Barbarian appearance frequency"),
2558 N_(
"This setting controls how frequently the barbarians appear "
2559 "in the game. See also the 'onsetbarbs' setting."),
2565 N_(
"Barbarian onset turn"),
2566 N_(
"Barbarians will not appear before this turn."),
2573 N_(
"Way to determine revolution length"),
2574 N_(
"Which method is used in determining how long period of anarchy "
2575 "lasts when changing government. The actual value is set with "
2576 "'revolen' setting. The 'quickening' methods depend on how "
2577 "many times any player has changed to this type of government "
2578 "before, so it becomes easier to establish a new system of "
2579 "government if it has been done before."),
2585 N_(
"Length of revolution"),
2586 N_(
"When changing governments, a period of anarchy will occur. "
2587 "Value of this setting, used the way 'revolentype' setting "
2588 "dictates, defines the length of the anarchy."),
2595 N_(
"Whether to enable fog of war"),
2596 N_(
"If this is enabled, only those units and cities within "
2597 "the vision range of your own units and cities will be "
2598 "revealed to you. You will not see new cities or terrain "
2599 "changes in tiles not observed."),
2604 N_(
"Whether fog of war applies to border changes"),
2605 N_(
"If this setting is enabled, players will not be able "
2606 "to see changes in tile ownership if they do not have "
2607 "direct sight of the affected tiles. Otherwise, players "
2608 "can see any or all changes to borders as long as they "
2609 "have previously seen the tiles."),
2619 N_(
"This setting affects airlifting units between cities. It "
2620 "can be a set of the following values:\n"
2621 "- \"Allows units to be airlifted from allied cities\" "
2623 "- \"Allows units to be airlifted to allied cities\" "
2625 "- \"Unlimited units from source city\" (SRC_UNLIMITED): "
2626 "airlifting from a city doesn't reduce the "
2627 "airlifted counter. It depends on the ruleset whether "
2628 "this is possible even with zero airlift capacity.\n"
2629 "- \"Unlimited units to destination city\" "
2630 "(DEST_UNLIMITED): airlifting to a city doesn't "
2631 "reduce the airlifted counter. It depends on the ruleset "
2632 "whether this is possible even with zero airlift capacity."),
2638 N_(
"Base chance for diplomats and spies to succeed"),
2639 N_(
"The base chance of a spy returning from a successful mission and "
2640 "the base chance of success for diplomats and spies for most "
2641 "aggressive mission types. Not all the mission types use diplchance "
2642 "as a base chance – a ruleset can even say that no action at all does. "
2643 "Unit Bribing, and Unit Sabotaging never do. "
2644 "Non-aggressive missions typically have no base chance "
2645 "at all, but always success."),
2652 N_(
"What kinds of victories are possible"),
2658 N_(
"This setting controls how game can be won. One can always "
2659 "win by conquering entire planet, but other victory conditions "
2660 "can be enabled or disabled:\n"
2661 "- \"Spacerace\" (SPACERACE): Spaceship is built and travels to "
2663 "- \"Allied\" (ALLIED): After defeating enemies, all remaining "
2664 "players are allied.\n"
2665 "- \"Culture\" (CULTURE): Player meets ruleset defined cultural "
2666 "domination criteria.\n"
2667 "- \"World Peace\" (WORLDPEACE): There's no wars in the world for "
2668 "the specified amount of turns.\n"),
2673 N_(
"Should the game end if the spaceship arrives?"),
2674 N_(
"If this option is turned on, the game will end with the "
2675 "arrival of a spaceship at Alpha Centauri."),
2681 N_(
"Percentage to multiply spaceship travel time by"),
2682 N_(
"This percentage is multiplied onto the time it will take for "
2683 "a spaceship to arrive at Alpha Centauri."),
NULL,
NULL,
NULL,
2690 N_(
"Minimum number of cities for civil war"),
2691 N_(
"A civil war is triggered when a player has at least this "
2692 "many cities and the player's capital is captured. If "
2693 "this option is set to the maximum value, civil wars are "
2701 N_(
"Restrict the use of the infrastructure for enemy units"),
2702 N_(
"If this option is enabled, the use of roads and rails "
2703 "will be restricted for enemy units."),
NULL,
NULL,
2709 N_(
"Does unreachable unit protect reachable ones"),
2710 N_(
"This option controls whether tiles with both unreachable "
2711 "and reachable units can be attacked. If disabled, any "
2712 "tile with reachable units can be attacked. If enabled, "
2713 "tiles with an unreachable unit in them cannot be attacked. "
2714 "Some units in some rulesets may override this, never "
2715 "protecting reachable units on their tile."),
2721 N_(
"Turns until player contact is lost"),
2722 N_(
"Players may meet for diplomacy this number of turns "
2723 "after their units have last met, even when they do not have "
2724 "an embassy. If set to zero, then players cannot meet unless "
2725 "they have an embassy."),
2733 N_(
"Rebuild palace whenever capital is conquered"),
2734 N_(
"If this is turned on, when the capital is conquered the "
2735 "palace is automatically rebuilt for free in another randomly "
2736 "chosen city. This is significant because the technology "
2737 "requirement for building a palace will be ignored. (In "
2738 "some rulesets, buildings other than the palace are affected "
2739 "by this setting.)"),
2745 N_(
"Give caught units a homecity"),
2748 N_(
"If unset, caught units will have no homecity and will be "
2749 "subject to the 'killunhomed' option."),
2755 N_(
"Whether to use natural city names"),
2756 N_(
"If enabled, the default city names will be determined based "
2757 "on the surrounding terrain."),
2763 N_(
"Whether to enable citizen migration"),
2766 N_(
"This is the master setting that controls whether citizen "
2767 "migration is active in the game. If enabled, citizens may "
2768 "automatically move from less desirable cities to more "
2769 "desirable ones. The \"desirability\" of a given city is "
2770 "calculated from a number of factors. In general larger "
2771 "cities with more income and improvements will be preferred. "
2772 "Citizens will never migrate out of the capital, or cause "
2773 "a wonder to be lost by disbanding a city. A number of other "
2774 "settings control how migration behaves:\n"
2775 " 'mgr_turninterval' - How often citizens try to migrate.\n"
2776 " 'mgr_foodneeded' - Whether destination food is checked.\n"
2777 " 'mgr_distance' - How far citizens will migrate.\n"
2778 " 'mgr_worldchance' - Chance for inter-nation migration.\n"
2779 " 'mgr_nationchance' - Chance for intra-nation migration."),
2785 N_(
"Number of turns between migrations from a city"),
2787 N_(
"This setting controls the number of turns between migration "
2788 "checks for a given city. The interval is calculated from "
2789 "the founding turn of the city. So for example if this "
2790 "setting is 5, citizens will look for a suitable migration "
2791 "destination every five turns from the founding of their "
2792 "current city. Migration will never occur the same turn "
2793 "that a city is built. This setting has no effect unless "
2794 "migration is enabled by the 'migration' setting."),
2802 N_(
"Whether migration is limited by food"),
2804 N_(
"If this setting is enabled, citizens will not migrate to "
2805 "cities which would not have enough food to support them. "
2806 "This setting has no effect unless migration is enabled by "
2807 "the 'migration' setting."),
NULL,
NULL,
2813 N_(
"Maximum distance citizens may migrate"),
2815 N_(
"This setting controls how far citizens may look for a "
2816 "suitable migration destination when deciding which city "
2817 "to migrate to. The value is added to the candidate target "
2818 "city's radius and compared to the distance between the "
2819 "two cities. If the distance is lower or equal, migration "
2820 "is possible. (So with a setting of 0, citizens will only "
2821 "consider migrating if their city's center is within the "
2822 "destination city's working radius.) This setting has no "
2823 "effect unless migration is enabled by the 'migration' "
2831 N_(
"Percent probability for migration within the same nation"),
2833 N_(
"This setting controls how likely it is for citizens to "
2834 "migrate between cities owned by the same player. Zero "
2835 "indicates migration will never occur, 100 means that "
2836 "migration will always occur if the citizens find a suitable "
2837 "destination. This setting has no effect unless migration "
2838 "is activated by the 'migration' setting."),
2846 N_(
"Percent probability for migration between foreign cities"),
2848 N_(
"This setting controls how likely it is for migration "
2849 "to occur between cities owned by different players. "
2850 "Zero indicates migration will never occur, 100 means "
2851 "that citizens will always migrate if they find a suitable "
2852 "destination. This setting has no effect if migration is "
2853 "not enabled by the 'migration' setting."),
2867 N_(
"Players that users are allowed to take"),
2870 N_(
"This should be a string of characters, each of which "
2871 "specifies a type or status of a civilization (player).\n"
2872 "Clients will only be permitted to take or observe those "
2873 "players which match one of the specified letters. This "
2874 "only affects future uses of the \"take\" or \"observe\" "
2875 "commands; it is not retroactive. The characters and their "
2877 " o,O = Global observer\n"
2878 " b = Barbarian players\n"
2879 " d = Dead players\n"
2880 " a,A = AI players\n"
2881 " h,H = Human players\n"
2882 "The first description on this list which matches a "
2883 "player is the one which applies. Thus 'd' does not "
2884 "include dead barbarians, 'a' does not include dead AI "
2885 "players, and so on. Upper case letters apply before "
2886 "the game has started, lower case letters afterwards.\n"
2887 "Each character above may be followed by one of the "
2888 "following numbers to allow or restrict the manner "
2890 "(none) = Controller allowed, observers allowed, "
2891 "can displace connections. (Displacing a connection means "
2892 "that you may take over a player, even when another user "
2893 "already controls that player.)\n"
2894 " 1 = Controller allowed, observers allowed, "
2895 "can't displace connections;\n"
2896 " 2 = Controller allowed, no observers allowed, "
2897 "can displace connections;\n"
2898 " 3 = Controller allowed, no observers allowed, "
2899 "can't displace connections;\n"
2900 " 4 = No controller allowed, observers allowed"),
2906 N_(
"Whether AI-status toggles with connection"),
2907 N_(
"If enabled, AI status is turned off when a player "
2908 "connects, and on when a player disconnects."),
2913 N_(
"Turn the game ends"),
2914 N_(
"The game will end at the end of the given turn."),
2920 N_(
"Reveal the map"),
2926 N_(
"If \"Reveal map at game start\" (START) is set, the "
2927 "initial state of the entire map will be known to all "
2928 "players from the start of the game, although it may "
2929 "still be fogged (depending on the 'fogofwar' setting). "
2930 "If \"Unfog map for dead players\" (DEAD) is set, dead "
2931 "players can see the entire map, if they are alone in "
2937 N_(
"Maximum seconds per turn"),
2942 N_(
"If all players have not hit \"Turn Done\" before this "
2943 "time is up, then the turn ends automatically. Zero "
2944 "means there is no timeout. In servers compiled with "
2945 "debugging, a timeout of -1 sets the autogame test mode. "
2946 "Only connections with hack level access may set the "
2947 "timeout to fewer than 30 seconds. Use this with the "
2948 "command \"timeoutincrease\" to have a dynamic timer. "
2949 "The first turn is treated as a special case and is controlled "
2950 "by the 'first_timeout' setting."),
2956 N_(
"First turn timeout"),
2959 N_(
"If greater than 0, T1 will last for 'first_timeout' seconds.\n"
2960 "If set to 0, T1 will not have a timeout.\n"
2961 "If set to -1, the special treatment of T1 will be disabled.\n"
2962 "See also 'timeout'."),
2969 N_(
"Timeout at least n seconds when enemy moved"),
2970 N_(
"Any time a unit moves while in sight of an enemy player, "
2971 "the remaining timeout is increased to this value."),
2978 N_(
"Minimum time between unit actions over turn change"),
2981 N_(
"This setting gives the minimum amount of time in seconds "
2982 "between unit moves and other significant actions (such as "
2983 "building cities) after a turn change occurs. For example, "
2984 "if this setting is set to 20 and a unit moves 5 seconds "
2985 "before the turn change, it will not be able to move or act "
2986 "in the next turn for at least 15 seconds. This value is "
2987 "limited to a maximum value of 2/3 'timeout'."),
2997 N_(
"Control of simultaneous player/team phases"),
2998 N_(
"This setting controls whether players may make "
2999 "moves at the same time during a turn. Change "
3000 "in setting takes effect next turn."),
3005 N_(
"Seconds to let a client's network connection block"),
3006 N_(
"If a network connection is blocking for a time greater than "
3007 "this value, then the connection is closed. Zero "
3008 "means there is no timeout (although connections will be "
3009 "automatically disconnected eventually)."),
3015 N_(
"Max seconds for network buffers to drain"),
3016 N_(
"The server will wait for up to the value of this "
3017 "parameter in seconds, for all client connection network "
3018 "buffers to unblock. Zero means the server will not "
3024 N_(
"Seconds between PINGs"),
3025 N_(
"The server will poll the clients with a PING request "
3032 N_(
"Time to cut a client"),
3033 N_(
"If a client doesn't reply to a PING in this time the "
3040 N_(
"Keep client IP hidden"),
3041 N_(
"Don't tell client IP address to other clients. Server operator "
3042 "can still see it. Also, changing this setting cannot do anything "
3043 "to the information already sent before."),
3049 N_(
"Turn-blocking game play mode"),
3050 N_(
"If this is turned on, the game turn is not advanced "
3051 "until all players have finished their turn, including "
3052 "disconnected players."),
3058 N_(
"Fixed-length turns play mode"),
3061 N_(
"If this is turned on the game turn will not advance "
3062 "until the timeout has expired, even after all players "
3063 "have clicked on \"Turn Done\"."),
3069 N_(
"Number of cities in Top Cities report"),
3070 N_(
"How many cities should the Top Cities report contain? "
3071 "If this is zero, Top Cities report is not available "
3079 N_(
"What is in the Demographics report"),
3082 N_(
"This should be a string of characters, each of which "
3083 "specifies the inclusion of a line of information "
3084 "in the Demographics report.\n"
3085 "The characters and their meanings are:\n"
3086 " N = include Population\n"
3087 " P = include Production\n"
3088 " A = include Land Area\n"
3089 " L = include Literacy\n"
3090 " R = include Research Speed\n"
3091 " S = include Settled Area\n"
3092 " E = include Economics\n"
3093 " M = include Military Service\n"
3094 " O = include Pollution\n"
3095 " C = include Culture\n"
3096 "Additionally, the following characters control whether "
3097 "or not certain columns are displayed in the report:\n"
3098 " q = display \"quantity\" column\n"
3099 " r = display \"rank\" column\n"
3100 " b = display \"best nation\" column\n"
3101 "The order of characters is not significant, but "
3102 "their capitalization is."),
3107 N_(
"Turns per auto-save"),
3111 N_(
"How many turns elapse between automatic game saves. This "
3112 "setting only has an effect when the 'autosaves' setting "
3118 N_(
"Minutes per auto-save"),
3122 N_(
"How many minutes elapse between automatic game saves. "
3123 "Unlike other save types, this save is only meant as backup "
3124 "for computer memory, and it always uses the same name, older "
3125 "saves are not kept. This setting only has an effect when the "
3126 "'autosaves' setting includes \"Timer\"."),
NULL,
NULL,
NULL,
3131 N_(
"Which savegames are generated automatically"),
3137 N_(
"This setting controls which autosave types get generated:\n"
3138 "- \"New turn\" (TURN): Save when turn begins, once every "
3139 "'saveturns' turns.\n"
3140 "- \"Game over\" (GAMEOVER): Final save when game ends.\n"
3141 "- \"No player connections\" (QUITIDLE): "
3142 "Save before server restarts due to lack of players.\n"
3143 "- \"Server interrupted\" (INTERRUPT): Save when server "
3144 "quits due to interrupt.\n"
3145 "- \"Timer\" (TIMER): Save every 'savefrequency' minutes."),
3150 N_(
"Whether to do saving in separate thread"),
3153 N_(
"If this is turned in, compressing and saving the actual "
3154 "file containing the game situation takes place in "
3155 "the background while game otherwise continues. This way "
3156 "users are not required to wait for the save to finish."),
3161 N_(
"Savegame compression level"),
3163 N_(
"If non-zero, saved games will be compressed depending on the "
3164 "'compresstype' setting. Larger values will give better "
3165 "compression but take longer."),
3171 N_(
"Savegame compression algorithm"),
3172 N_(
"Compression library to use for savegames."),
3177 N_(
"Definition of the save file name"),
3182 N_(
"Within the string the following custom formats are "
3186 " %T = <turn-number>\n"
3187 " %Y = <game-year>\n"
3189 "Example: 'freeciv-T%04T-Y%+05Y-%R' => "
3190 "'freeciv-T0100-Y00001-manual'\n"
3192 "Be careful to use at least one of %T and %Y, else newer "
3193 "savegames will overwrite old ones. If none of the formats "
3194 "is used '-T%04T-Y%05Y-%R' is appended to the value of "
3205 N_(
"Whether to log player statistics"),
3208 N_(
"If this is turned on, player statistics are appended to "
3209 "the file defined by the option 'scorefile' every turn. "
3210 "These statistics can be used to create power graphs after "
3216 N_(
"Scorelog level"),
3217 N_(
"Whether scores are logged for all players including AIs, "
3225 N_(
"Name for the score log file"),
3227 N_(
"The default name for the score log file is "
3228 "'freeciv-score.log'."),
3235 N_(
"Maximum number of connections to the server per host"),
3236 N_(
"New connections from a given host will be rejected if "
3237 "the total number of connections from the very same host "
3238 "equals or exceeds this value. A value of 0 means that "
3239 "there is no limit, at least up to the maximum number of "
3240 "connections supported by the server."),
NULL,
NULL,
NULL,
3247 N_(
"Time before a kicked user can reconnect"),
3250 N_(
"Gives the time in seconds before a user kicked using the "
3251 "\"kick\" command may reconnect. Changing this setting will "
3258 N_(
"Time in seconds that a single lua script can run before it gets "
3264 N_(
"Metaserver info line"),
3265 N_(
"User defined metaserver info line. For most of the time "
3266 "a user defined metamessage will be used instead of an "
3267 "automatically generated message. "
3268 "Set to empty (\"\", not \"empty\") to always use an "
3269 "automatically generated meta server message."),
3274 N_(
"Level of new AIs"),
3275 N_(
"Difficulty level of any AI players to be created now on. "
3276 "Changing value of this setting does not affect "
3282 N_(
"Default AI type"),
3283 N_(
"Name of the default AI type. New AI players will be "
3284 "created with that type by default. Changing this "
3285 "setting does not affect existing AI players."),
3343 return pset->short_help;
3352 if (!constant &&
pset->help_func !=
NULL) {
3356 return _(
pset->extra_help);
3372 return pset->slevel;
3380 return pset->scategory;
3392 switch (
pset->sclass) {
3401 _(
"The setting '%s' can't be modified after the map "
3437 _(
"The setting '%s' can't be modified after the game "
3448 log_error(
"Wrong class variant for setting %s (%d): %d.",
3467 _(
"You are not allowed to change the setting '%s'."),
3472 switch (
pset->lock) {
3478 _(
"The setting '%s' is locked by the ruleset."),
3484 _(
"The setting '%s' is locked by admin."),
3566 const char *prefix,
int *pvalue,
3584 _(
"\"%s\" prefix is ambiguous. Candidates are: %s."),
3600 _(
"No match for \"%s\"."), prefix);
3608 bool value,
bool pretty,
3638 _(
"This setting is not a boolean."));
3680 return *
pset->boolean.pvalue;
3705 ((
const struct setting *) data)->boolean.name(val);
3714 int value,
bool pretty,
3727 return pset->integer.min_value;
3736 return pset->integer.max_value;
3753 *
pset->integer.pvalue = val;
3769 _(
"This setting is not an integer."));
3775 _(
"Value out of range: %d (min: %d; max: %d)."),
3776 val,
pset->integer.min_value,
pset->integer.max_value);
3780 return (!
pset->integer.validate
3792 return *
pset->integer.pvalue;
3799 const char *
value,
bool pretty,
3840 _(
"This setting is not a string."));
3844 if (
strlen(val) >=
pset->string.value_size) {
3846 _(
"String value too long (max length: %lu)."),
3847 (
unsigned long)
pset->string.value_size);
3851 return (!
pset->string.validate
3863 return pset->string.value;
3902 return _(
name->pretty);
3904 return name->support;
3944 _(
"This setting is not an enumerator."));
3953 && (
NULL ==
pset->enumerator.validate
3963 switch (
pset->enumerator.store_size) {
3999 switch (
pset->enumerator.store_size) {
4001 val = *((
int *)
pset->enumerator.pvalue);
4004 val = *((
char *)
pset->enumerator.pvalue);
4007 val = *((
short *)
pset->enumerator.pvalue);
4010 log_error(
"Illegal enum store size %d, can't read value",
pset->enumerator.store_size);
4038 log_error(
"Illegal enumerator value size %d for %s",
4039 pset->enumerator.store_size, val);
4098 return _(
name->pretty);
4100 return name->support;
4108 unsigned value,
bool pretty,
4122 if ((1 <<
bit) & value) {
4151 if ((1 <<
bit) & value) {
4152 if (
'\0' !=
buf[0]) {
4185 _(
"This setting is not a bitwise."));
4211 }
while (
NULL != p);
4213 return (
NULL ==
pset->bitwise.validate
4261 return *
pset->bitwise.pvalue;
4274 switch (
pset->stype) {
4295 log_error(
"%s(): Setting \"%s\" (nb %d) not handled in switch statement.",
4310 switch (
pset->stype) {
4331 log_error(
"%s(): Setting \"%s\" (nb %d) not handled in switch statement.",
4341 switch (
pset->stype) {
4343 (*
pset->boolean.pvalue) =
pset->boolean.default_value;
4346 (*
pset->integer.pvalue) =
pset->integer.default_value;
4350 pset->string.value_size);
4356 (*
pset->bitwise.pvalue) =
pset->bitwise.default_value;
4410 log_error(
"unknown unsettable setting in '%s': %s",
4420 if (
pset->ruleset_settable) {
4446 const char *
name,
const char *path,
4470 switch (
pset->stype) {
4480 "%s.value", path)) {
4487 if (val != *
pset->boolean.pvalue) {
4491 *
pset->boolean.pvalue = val;
4492 log_normal(
_(
"Ruleset: '%s' has been set to %s."),
4509 }
else if (val != *
pset->integer.pvalue) {
4512 log_normal(
_(
"Ruleset: '%s' has been set to %s."),
4529 }
else if (0 !=
strcmp(val,
pset->string.value)) {
4532 log_normal(
_(
"Ruleset: '%s' has been set to %s."),
4548 "%s.value", path)) {
4549 log_error(
"Can't read value for setting '%s': %s",
4552 if (
NULL ==
pset->enumerator.validate
4556 log_normal(
_(
"Ruleset: '%s' has been set to %s."),
4572 "%s.value", path)) {
4573 log_error(
"Can't read value for setting '%s': %s",
4575 }
else if (val != *
pset->bitwise.pvalue) {
4577 ||
pset->bitwise.validate((
unsigned) val,
NULL,
4579 *
pset->bitwise.pvalue = val;
4580 log_normal(
_(
"Ruleset: '%s' has been set to %s."),
4604 log_normal(
_(
"Ruleset: '%s' has been locked by the ruleset."),
4618 return (*
pset->boolean.pvalue !=
pset->boolean.default_value);
4620 return (*
pset->integer.pvalue !=
pset->integer.default_value);
4622 return (0 !=
strcmp(
pset->string.value,
pset->string.default_value));
4626 return (*
pset->bitwise.pvalue !=
pset->bitwise.default_value);
4632 log_error(
"%s(): Setting \"%s\" (nb %d) not handled in switch statement.",
4650 return pset->rslock;
4704 pset->boolean.game_value = *
pset->boolean.pvalue;
4708 pset->integer.game_value = *
pset->integer.pvalue;
4713 pset->string.game_value
4715 *
sizeof(
pset->string.game_value));
4718 pset->string.value_size);
4726 pset->bitwise.game_value = *
pset->bitwise.pvalue;
4804 log_error(
"Error restoring setting '%s' to the value from game start: "
4907 "%s.gamestart_valid",
section);
4925 log_verbose(
"Can't read the number of settings in the save file.");
4945 switch (
pset->stype) {
4957 if (val != *
pset->boolean.pvalue) {
4963 *
pset->boolean.pvalue = val;
4964 log_normal(
_(
"Savegame: '%s' has been set to %s."),
4968 log_error(
"Savegame: error restoring '%s' . (%s)",
4972 log_normal(
_(
"Savegame: '%s' explicitly set to value same as default."),
4989 if (val != *
pset->integer.pvalue) {
4995 *
pset->integer.pvalue = val;
4996 log_normal(
_(
"Savegame: '%s' has been set to %s."),
5000 log_error(
"Savegame: error restoring '%s' . (%s)",
5004 log_normal(
_(
"Savegame: '%s' explicitly set to value same as default."),
5025 log_normal(
_(
"Savegame: '%s' has been set to %s."),
5029 log_error(
"Savegame: error restoring '%s' . (%s)",
5033 log_normal(
_(
"Savegame: '%s' explicitly set to value same as default."),
5055 && (
NULL ==
pset->enumerator.validate
5059 log_normal(
_(
"Savegame: '%s' has been set to %s."),
5063 log_error(
"Savegame: error restoring '%s' . (%s)",
5067 log_normal(
_(
"Savegame: '%s' explicitly set to value same as default."),
5086 if (val != *
pset->bitwise.pvalue) {
5092 *
pset->bitwise.pvalue = val;
5093 log_normal(
_(
"Savegame: '%s' has been set to %s."),
5097 log_error(
"Savegame: error restoring '%s' . (%s)",
5101 log_normal(
_(
"Savegame: '%s' explicitly set to value same as default."),
5117 switch (
pset->stype) {
5119 pset->boolean.game_value =
5125 pset->integer.game_value =
5133 "%s.set%d.gamestart",
5135 pset->string.value_size);
5139 pset->enumerator.game_value =
5142 &info,
"%s.set%d.gamestart",
section,
i);
5146 pset->bitwise.game_value =
5149 &info,
"%s.set%d.gamestart",
section,
i);
5160 "%s.set%d.gamesetdef",
section,
i);
5165 log_error(
"Setting %s has invalid gamesetdef value %s",
5198 log_debug(
"No saved settings from the game start available.");
5281#define PACKET_COMMON_INIT(packet, pset, pconn) \
5282 memset(&packet, 0, sizeof(packet)); \
5283 packet.id = setting_number(pset); \
5284 packet.is_visible = setting_is_visible(pset, pconn); \
5285 packet.is_changeable = setting_is_changeable(pset, pconn, NULL, 0); \
5286 packet.initial_setting = game.info.is_new_game; \
5287 packet.setdef = setting_get_setdef(pset);
5297 packet.
val = *
pset->boolean.pvalue;
5311 packet.
val = *
pset->integer.pvalue;
5367 packet.
val = *
pset->bitwise.pvalue;
5516 "Invalid setting level for '%s' (%s).",
5614 return pset->setdef;
struct ai_type * ai_type_by_name(const char *search)
bool set_default_ai_type_name(const char *name)
void astr_free(struct astring *astr)
const char * astr_build_and_list(struct astring *astr, const char *const *items, size_t number)
static const char * astr_str(const struct astring *astr) fc__attribute((nonnull(1)))
#define BV_ISSET(bv, bit)
#define conn_list_iterate(connlist, pconn)
#define conn_list_iterate_end
const struct ft_color ftc_server
int generate_save_name(const char *format, char *buf, int buflen, const char *reason)
#define GAME_MIN_TOP_CITIES_COUNT
#define GAME_DEFAULT_TECHPENALTY
#define GAME_MAX_RAPTUREDELAY
#define GAME_DEFAULT_START_CITY
#define GAME_DEFAULT_SKILL_LEVEL
#define GAME_DEFAULT_KILLSTACK
#define GAME_DEFAULT_INFRA
#define GAME_MAX_DIPLCHANCE
#define GAME_MAX_SCIENCEBOX
#define GAME_DEFAULT_LUA_TIMEOUT
#define GAME_MAX_EVENT_CACHE_MAX_SIZE
#define GAME_DEFAULT_REVOLENTYPE
#define GAME_DEFAULT_AUTO_AI_TOGGLE
#define GAME_MIN_RAZECHANCE
#define GAME_MIN_GLOBAL_WARMING_PERCENT
#define GAME_DEFAULT_CARAVAN_BONUS_STYLE
#define GAME_MAX_TECHLOSSFG
#define GAME_DEFAULT_TCPTIMEOUT
#define GAME_DEFAULT_EVENT_CACHE_INFO
#define GAME_DEFAULT_MGR_FOODNEEDED
#define GAME_DEFAULT_TECHLOST_DONOR
#define GAME_DEFAULT_ALLOWED_CITY_NAMES
#define GAME_MIN_TRADEWORLDRELPCT
#define GAME_DEFAULT_SCORELOG
#define GAME_MAX_KILLUNHOMED
#define GAME_MIN_TECHLOST_RECV
#define GAME_MIN_FREECOST
#define GAME_MAX_CONTACTTURNS
#define GAME_MAX_TECHLOST_RECV
#define GAME_DEFAULT_OCCUPYCHANCE
#define GAME_DEFAULT_USER_META_MESSAGE
#define GAME_DEFAULT_GLOBAL_WARMING_PERCENT
#define GAME_DEFAULT_TRADING_TECH
#define GAME_MIN_SCIENCEBOX
#define GAME_MAX_PINGTIMEOUT
#define GAME_MAX_SAVEFREQUENCY
#define GAME_MIN_REVOLUTION_LENGTH
#define GAME_MAX_MGR_TURNINTERVAL
#define GAME_DEFAULT_SAVETURNS
#define GAME_DEFAULT_IPHIDE
#define GAME_DEFAULT_BORDERS
#define GAME_DEFAULT_AIRLIFTINGSTYLE
#define GAME_DEFAULT_SPACESHIP_TRAVEL_PCT
#define GAME_MAX_CONQUERCOST
#define GAME_MAX_TOP_CITIES_COUNT
#define GAME_DEFAULT_TOP_CITIES_COUNT
#define GAME_MAX_AQUEDUCTLOSS
#define GAME_DEFAULT_KILLUNHOMED
#define GAME_DEFAULT_SCIENCEBOX
#define GAME_MIN_DIPLGOLDCOST
#define GAME_DEFAULT_MGR_WORLDCHANCE
#define GAME_MIN_PINGTIME
#define GAME_DEFAULT_ONSETBARBARIAN
#define GAME_MIN_ONSETBARBARIAN
#define GAME_MAX_TECHLOSSREST
#define GAME_DEFAULT_KILLCITIZEN
#define GAME_MIN_INCITE_GOLD_LOSS_CHANCE
#define GAME_MIN_MGR_NATIONCHANCE
#define GAME_MAX_COMPRESS_LEVEL
#define GAME_DEFAULT_NATIONSET
#define GAME_DEFAULT_SHIELDBOX
#define GAME_MIN_NOTRADESIZE
#define GAME_MAX_OCCUPYCHANCE
#define GAME_MIN_SPACESHIP_TRAVEL_PCT
#define GAME_DEFAULT_MAXCONNECTIONSPERHOST
#define GAME_DEFAULT_INCITE_GOLD_CAPT_CHANCE
#define GAME_DEFAULT_DEMOGRAPHY
#define GAME_MIN_MAXCONNECTIONSPERHOST
#define GAME_DEFAULT_FULLTRADESIZE
#define GAME_MAX_DISPERSION
#define GAME_MIN_TECHLOST_DONOR
#define GAME_DEFAULT_RAPTUREDELAY
#define GAME_MIN_MGR_TURNINTERVAL
#define GAME_DEFAULT_REVOLUTION_LENGTH
#define GAME_DEFAULT_MGR_TURNINTERVAL
#define GAME_DEFAULT_START_UNITS
#define GAME_MAX_TCPTIMEOUT
#define GAME_DEFAULT_ALLOW_TAKE
#define GAME_DEFAULT_THREADED_SAVE
#define GAME_MAX_TRADEWORLDRELPCT
#define GAME_DEFAULT_MIN_PLAYERS
#define GAME_MIN_CONQUERCOST
#define GAME_MAX_MGR_DISTANCE
#define GAME_MIN_TECHLOSSREST
#define GAME_DEFAULT_AUTOATTACK
#define GAME_DEFAULT_SAVEFREQUENCY
#define GAME_DEFAULT_REVEALMAP
#define GAME_DEFAULT_SCOREFILE
#define GAME_MAX_FIRST_TIMEOUT
#define GAME_MIN_MGR_DISTANCE
#define GAME_MIN_DISPERSION
#define GAME_DEFAULT_TEAM_POOLED_RESEARCH
#define GAME_DEFAULT_SEED
#define GAME_DEFAULT_HOMECAUGHTUNITS
#define GAME_MAX_GLOBAL_WARMING_PERCENT
#define GAME_MAX_MAXCONNECTIONSPERHOST
#define GAME_DEFAULT_NETWAIT
#define GAME_MIN_PINGTIMEOUT
#define GAME_MIN_TECHPENALTY
#define GAME_MIN_CONTACTTURNS
#define GAME_MAX_INCITE_GOLD_LOSS_CHANCE
#define GAME_DEFAULT_KICK_TIME
#define GAME_DEFAULT_PLRCOLORMODE
#define GAME_MAX_CITYMINDIST
#define GAME_DEFAULT_DIPLCHANCE
#define GAME_MAX_NUCLEAR_WINTER_PERCENT
#define GAME_MIN_LUA_TIMEOUT
#define GAME_MIN_END_TURN
#define GAME_DEFAULT_UNRPROTECTS
#define GAME_MIN_MGR_WORLDCHANCE
#define GAME_DEFAULT_RAZECHANCE
#define GAME_MIN_SHIELDBOX
#define GAME_MIN_FIRST_TIMEOUT
#define GAME_MAX_RAZECHANCE
#define GAME_MAX_ONSETBARBARIAN
#define GAME_DEFAULT_INCITE_GOLD_LOSS_CHANCE
#define GAME_MAX_MAX_PLAYERS
#define GAME_DEFAULT_TRADING_CITY
#define GAME_DEFAULT_FOODBOX
#define GAME_DEFAULT_COMPRESS_TYPE
#define GAME_MAX_SPACESHIP_TRAVEL_PCT
#define GAME_DEFAULT_PINGTIMEOUT
#define GAME_DEFAULT_TRADE_REVENUE_STYLE
#define GAME_DEFAULT_SAVEPALACE
#define GAME_MIN_EVENT_CACHE_TURNS
#define GAME_DEFAULT_GLOBAL_WARMING
#define GAME_MAX_DIPLGOLDCOST
#define GAME_DEFAULT_TECHLOST_RECV
#define GAME_DEFAULT_NOTRADESIZE
#define GAME_DEFAULT_COMPRESS_LEVEL
#define GAME_MAX_TECHLOST_DONOR
#define GAME_MIN_SAVETURNS
#define GAME_MAX_UNITWAITTIME
#define GAME_DEFAULT_FIRST_TIMEOUT
#define GAME_DEFAULT_NUCLEAR_WINTER_PERCENT
#define GAME_MIN_CIVILWARSIZE
#define GAME_DEFAULT_TRADING_GOLD
#define GAME_MIN_TECHLEAK
#define GAME_DEFAULT_TRAIT_DIST_MODE
#define GAME_DEFAULT_NUCLEAR_WINTER
#define GAME_MIN_DISASTERS
#define GAME_MIN_OCCUPYCHANCE
#define GAME_DEFAULT_FREECOST
#define GAME_MIN_KICK_TIME
#define GAME_DEFAULT_MAX_PLAYERS
#define GAME_DEFAULT_CITYMINDIST
#define GAME_MIN_NUCLEAR_WINTER_PERCENT
#define GAME_DEFAULT_PHASE_MODE
#define GAME_DEFAULT_AIFILL
#define GAME_DEFAULT_TRADEWORLDRELPCT
#define GAME_DEFAULT_MULTIRESEARCH
#define GAME_DEFAULT_CONQUERCOST
#define GAME_MAX_TECHPENALTY
#define GAME_DEFAULT_TIMEOUT
#define GAME_MAX_DISASTERS
#define GAME_MIN_INCITE_GOLD_CAPT_CHANCE
#define GAME_MIN_TECHLOSSFG
#define GAME_MAX_END_TURN
#define GAME_MIN_COMPRESS_LEVEL
#define GAME_DEFAULT_TECHLOSSREST
#define GAME_MIN_KILLUNHOMED
#define GAME_MAX_NOTRADESIZE
#define GAME_DEFAULT_CONTACTTURNS
#define GAME_DEFAULT_SCORELOGLEVEL
#define GAME_DEFAULT_TECHLOSSFG
#define GAME_DEFAULT_TECHLEVEL
#define GAME_MIN_MAX_PLAYERS
#define GAME_DEFAULT_DISASTERS
#define GAME_MAX_FREECOST
#define GAME_MAX_REVOLUTION_LENGTH
#define GAME_DEFAULT_GOLD
#define GAME_MIN_AQUEDUCTLOSS
#define GAME_MIN_DIPLBULBCOST
#define GAME_DEFAULT_MIGRATION
#define GAME_MIN_EVENT_CACHE_MAX_SIZE
#define GAME_MIN_CITYMINDIST
#define GAME_MIN_SAVEFREQUENCY
#define GAME_DEFAULT_NATURALCITYNAMES
#define GAME_DEFAULT_EVENT_CACHE_TURNS
#define GAME_DEFAULT_VICTORY_CONDITIONS
#define GAME_MIN_UNITWAITTIME
#define GAME_DEFAULT_FOGGEDBORDERS
#define GAME_DEFAULT_UNITWAITTIME
#define GAME_DEFAULT_TIMEOUTADDEMOVE
#define GAME_DEFAULT_DISPERSION
#define GAME_MAX_CIVILWARSIZE
#define GAME_DEFAULT_AUTOSAVES
#define GAME_DEFAULT_EVENT_CACHE_CHAT
#define GAME_DEFAULT_DIPLOMACY
#define GAME_DEFAULT_MGR_DISTANCE
#define GAME_MIN_DIPLCHANCE
#define GAME_DEFAULT_TURNBLOCK
#define GAME_MAX_SAVETURNS
#define GAME_MAX_PINGTIME
#define GAME_DEFAULT_PINGTIME
#define GAME_DEFAULT_AQUEDUCTLOSS
#define GAME_DEFAULT_TRADEMINDIST
#define GAME_DEFAULT_BARBARIANRATE
#define GAME_DEFAULT_HAPPYBORDERS
#define GAME_MAX_FULLTRADESIZE
#define GAME_MAX_TECHLEAK
#define GAME_MAX_MGR_NATIONCHANCE
#define GAME_MAX_TECHLEVEL
#define GAME_MAX_MGR_WORLDCHANCE
#define GAME_MIN_MIN_PLAYERS
#define GAME_MAX_TRADEMINDIST
#define GAME_DEFAULT_END_TURN
#define GAME_MAX_EVENT_CACHE_TURNS
#define GAME_MAX_DIPLBULBCOST
#define GAME_DEFAULT_DIPLGOLDCOST
#define GAME_MAX_SHIELDBOX
#define GAME_DEFAULT_TECHLEAK
#define GAME_MAX_MIN_PLAYERS
#define GAME_MIN_TCPTIMEOUT
#define GAME_DEFAULT_END_SPACESHIP
#define GAME_MIN_RAPTUREDELAY
#define GAME_DEFAULT_EVENT_CACHE_MAX_SIZE
#define GAME_DEFAULT_SAVE_NAME
#define GAME_MAX_LUA_TIMEOUT
#define GAME_MIN_TRADEMINDIST
#define GAME_DEFAULT_MGR_NATIONCHANCE
#define GAME_MIN_TECHLEVEL
#define GAME_MAX_INCITE_GOLD_CAPT_CHANCE
#define GAME_DEFAULT_FOGOFWAR
#define GAME_DEFAULT_PERSISTENTREADY
#define GAME_MIN_FULLTRADESIZE
#define GAME_DEFAULT_DIPLBULBCOST
#define GAME_DEFAULT_RESTRICTINFRA
#define GAME_MAX_KICK_TIME
#define GAME_DEFAULT_CIVILWARSIZE
void send_game_info(struct conn_list *dest)
enum unit_role_id crole_to_role_id(char crole)
static enum log_level max_level
#define fc_assert_msg(condition, message,...)
#define fc_assert_ret(condition)
#define log_warn(message,...)
#define log_verbose(message,...)
#define fc_assert(condition)
#define fc_assert_ret_val(condition, val)
#define log_debug(message,...)
#define log_normal(message,...)
#define log_error(message,...)
int map_startpos_count(void)
#define MAP_MIN_STEEPNESS
#define MAP_MAX_LINEAR_SIZE
#define MAP_MAX_TILESPERPLAYER
#define MAP_MAX_FLATPOLES
#define MAP_MIN_TILESPERPLAYER
#define MAP_DEFAULT_LINEAR_SIZE
#define MAP_DEFAULT_STARTPOS
#define MAP_DEFAULT_ANIMALS
#define MAP_DEFAULT_TEAM_PLACEMENT
#define MAP_MIN_TEMPERATURE
#define MAP_DEFAULT_MAPSIZE
#define MAP_MIN_LINEAR_SIZE
#define MAP_MAX_STEEPNESS
#define MAP_DEFAULT_LANDMASS
#define MAP_MIN_FLATPOLES
#define MAP_MAX_TEMPERATURE
#define MAP_MAX_LATITUDE_BOUND
#define MAP_DEFAULT_NORTH_LATITUDE
#define MAP_DEFAULT_SEPARATE_POLES
#define MAP_DEFAULT_RICHES
#define MAP_DEFAULT_TINYISLES
#define MAP_MIN_LATITUDE_BOUND
#define MAP_DEFAULT_TILESPERPLAYER
#define MAP_DEFAULT_TEMPERATURE
#define MAP_DEFAULT_SOUTH_LATITUDE
#define MAP_DEFAULT_GENERATOR
#define MAP_DEFAULT_FLATPOLES
#define MAP_DEFAULT_WETNESS
#define MAP_DEFAULT_STEEPNESS
#define fc_calloc(n, esz)
const struct rgbcolor * nation_color(const struct nation_type *pnation)
struct nation_set * nation_set_by_rule_name(const char *name)
#define nations_iterate_end
#define nations_iterate(NAME_pnation)
#define NO_NATION_SELECTED
void notify_conn(struct conn_list *dest, const struct tile *ptile, enum event_type event, const struct ft_color color, const char *format,...)
int send_packet_server_setting_bitwise(struct connection *pc, const struct packet_server_setting_bitwise *packet)
int send_packet_server_setting_str(struct connection *pc, const struct packet_server_setting_str *packet)
int send_packet_server_setting_const(struct connection *pc, const struct packet_server_setting_const *packet)
int send_packet_server_setting_int(struct connection *pc, const struct packet_server_setting_int *packet)
int send_packet_server_setting_control(struct connection *pc, const struct packet_server_setting_control *packet)
int send_packet_server_setting_bool(struct connection *pc, const struct packet_server_setting_bool *packet)
int send_packet_set_topology(struct connection *pc, const struct packet_set_topology *packet)
int send_packet_server_setting_enum(struct connection *pc, const struct packet_server_setting_enum *packet)
bool player_set_nation(struct player *pplayer, struct nation_type *pnation)
#define players_iterate_end
#define players_iterate(_pplayer)
void send_nation_availability(struct conn_list *dest, bool nationset_change)
int normal_player_count(void)
void server_player_set_color(struct player *pplayer, const struct rgbcolor *prgbcolor)
void send_player_info_c(struct player *src, struct conn_list *dest)
void count_playable_nations(void)
bool nation_is_in_current_set(const struct nation_type *pnation)
const char * secfile_error(void)
bool secfile_lookup_int(const struct section_file *secfile, int *ival, const char *path,...)
bool secfile_lookup_enum_data(const struct section_file *secfile, int *pvalue, bool bitwise, secfile_enum_name_data_fn_t name_fn, secfile_data_t data, const char *path,...)
int secfile_lookup_enum_default_data(const struct section_file *secfile, int defval, bool bitwise, secfile_enum_name_data_fn_t name_fn, secfile_data_t data, const char *path,...)
const char * secfile_lookup_str(const struct section_file *secfile, const char *path,...)
bool secfile_lookup_bool_default(const struct section_file *secfile, bool def, const char *path,...)
int secfile_lookup_int_default(const struct section_file *secfile, int def, const char *path,...)
const char * secfile_name(const struct section_file *secfile)
struct section * secfile_section_by_name(const struct section_file *secfile, const char *name)
const char * secfile_lookup_str_default(const struct section_file *secfile, const char *def, const char *path,...)
bool secfile_lookup_bool(const struct section_file *secfile, bool *bval, const char *path,...)
#define secfile_insert_int(secfile, value, path,...)
#define secfile_insert_str(secfile, string, path,...)
#define secfile_insert_bool(secfile, value, path,...)
#define secfile_insert_enum_data(secfile, value, bitwise, name_fn, data, path,...)
const void * secfile_data_t
void log_civ_score_free(void)
bool is_valid_demography(const char *demography, int *error)
void log_civ_score_init(void)
static struct compatibility compat[]
#define setcompat_current_val_from_previous(_set_, _old_val_)
#define setcompat_current_name_from_previous(_old_name_)
bool setting_ruleset_locked(const struct setting *pset)
bool setting_int_validate(const struct setting *pset, int val, struct connection *caller, char *reject_msg, size_t reject_msg_len)
static void metamessage_action(const struct setting *pset)
static const struct sset_val_name * phasemode_name(int phasemode)
void settings_init(bool act)
static bool savename_validate(const char *value, struct connection *caller, char *reject_msg, size_t reject_msg_len)
static const char * setting_bool_to_str(const struct setting *pset, bool value, bool pretty, char *buf, size_t buf_len)
#define PACKET_COMMON_INIT(packet, pset, pconn)
static bool endturn_callback(int value, struct connection *caller, char *reject_msg, size_t reject_msg_len)
void setting_action(const struct setting *pset)
bool(* bitwise_validate_func_t)(unsigned value, struct connection *pconn, char *reject_msg, size_t reject_msg_len)
static const struct sset_val_name * revealmap_name(int bit)
void setting_ruleset_lock_clear(struct setting *pset)
void setting_admin_lock_clear(struct setting *pset)
#define GEN_BOOL(name, value, sclass, scateg, slevel, al_read, al_write, short_help, extra_help, func_validate, func_action, _default)
int setting_int_get(struct setting *pset)
static const char * setting_bool_secfile_str(secfile_data_t data, int val)
static void nationset_action(const struct setting *pset)
const char * setting_default_name(const struct setting *pset, bool pretty, char *buf, size_t buf_len)
bool setting_enum_validate(const struct setting *pset, const char *val, struct connection *caller, char *reject_msg, size_t reject_msg_len)
struct setting * setting_by_name(const char *name)
static const struct sset_val_name * compresstype_name(enum fz_method compresstype)
void setting_set_to_default(struct setting *pset)
static void timeout_action(const struct setting *pset)
static const struct sset_val_name * startpos_name(int startpos)
const char * setting_value_name(const struct setting *pset, bool pretty, char *buf, size_t buf_len)
void settings_game_load(struct section_file *file, const char *section)
const char * setting_extra_help(const struct setting *pset, bool constant)
static bool setting_match_prefix(const val_name_func_t name_fn, const char *prefix, int *pvalue, char *reject_msg, size_t reject_msg_len)
const char *(* help_callback_func_t)(const struct setting *pset)
int setting_number(const struct setting *pset)
struct setting * setting_by_number(int id)
bool setting_int_set(struct setting *pset, int val, struct connection *caller, char *reject_msg, size_t reject_msg_len)
enum sset_category setting_category(const struct setting *pset)
static bool aitype_callback(const char *value, struct connection *caller, char *reject_msg, size_t reject_msg_len)
bool setting_is_visible(const struct setting *pset, struct connection *caller)
static bool first_timeout_callback(int value, struct connection *caller, char *reject_msg, size_t reject_msg_len)
static void setting_ruleset_setdef(struct setting *pset)
bool setting_locked(const struct setting *pset)
bool setting_non_default(const struct setting *pset)
static bool wrap_callback(unsigned value, struct connection *caller, char *reject_msg, size_t reject_msg_len)
static bool xsize_callback(int value, struct connection *caller, char *reject_msg, size_t reject_msg_len)
static const struct sset_val_name * airliftingstyle_name(int bit)
enum sset_type setting_type(const struct setting *pset)
static const struct sset_val_name * caravanbonusstyle_name(int caravanbonus)
void setting_admin_lock_set(struct setting *pset)
static void settings_list_free(void)
bool setting_str_set(struct setting *pset, const char *val, struct connection *caller, char *reject_msg, size_t reject_msg_len)
#define GEN_STRING(name, value, sclass, scateg, slevel, al_read, al_write, short_help, extra_help, func_validate, func_action, _default)
static const struct sset_val_name * bool_name(int enable)
static const struct sset_val_name * revolentype_name(int revolentype)
int setting_int_max(const struct setting *pset)
enum sset_level setting_level(const struct setting *pset)
static struct setting settings[]
static void first_timeout_action(const struct setting *pset)
static bool allowtake_callback(const char *value, struct connection *caller, char *reject_msg, size_t reject_msg_len)
static void wrap_action(const struct setting *pset)
static const char * setting_bitwise_to_str(const struct setting *pset, unsigned value, bool pretty, char *buf, size_t buf_len)
static const struct sset_val_name * topology_name(int topology_bit)
bool setting_bitwise_set(struct setting *pset, const char *val, struct connection *caller, char *reject_msg, size_t reject_msg_len)
static void topology_action(const struct setting *pset)
const char * setting_enum_secfile_str(secfile_data_t data, int val)
void settings_game_save(struct section_file *file, const char *section)
int settings_number(void)
bool setting_str_validate(const struct setting *pset, const char *val, struct connection *caller, char *reject_msg, size_t reject_msg_len)
static const struct sset_val_name * traderevenuestyle_name(int revenue_style)
bool(* string_validate_func_t)(const char *value, struct connection *pconn, char *reject_msg, size_t reject_msg_len)
#define NAME_CASE(_val, _support, _pretty)
#define GEN_STRING_NRS(name, value, sclass, scateg, slevel, al_read, al_write, short_help, extra_help, func_validate, func_action, _default)
static bool setting_is_free_to_change(const struct setting *pset, char *reject_msg, size_t reject_msg_len)
static const char * setting_enum_to_str(const struct setting *pset, int value, bool pretty, char *buf, size_t buf_len)
const char * setting_enum_val(const struct setting *pset, int val, bool pretty)
struct setting_list * level[OLEVELS_NUM]
void setting_changed(struct setting *pset)
#define GEN_ENUM(name, value, sclass, scateg, slevel, al_read, al_write, short_help, extra_help, func_help, func_validate, func_action, func_name, _default)
static bool startunits_callback(const char *value, struct connection *caller, char *reject_msg, size_t reject_msg_len)
static void huts_action(const struct setting *pset)
static bool nationset_callback(const char *value, struct connection *caller, char *reject_msg, size_t reject_msg_len)
enum setting_default_level setting_get_setdef(const struct setting *pset)
static bool mapsize_callback(int value, struct connection *caller, char *reject_msg, size_t reject_msg_len)
static const char * setting_int_to_str(const struct setting *pset, int value, bool pretty, char *buf, size_t buf_len)
static bool setting_bool_validate_base(const struct setting *pset, const char *val, int *pint_val, struct connection *caller, char *reject_msg, size_t reject_msg_len)
static bool setting_ruleset_one(struct section_file *file, const char *name, const char *path, bool compat)
static bool demography_callback(const char *value, struct connection *caller, char *reject_msg, size_t reject_msg_len)
static struct @119 setting_sorted
bool(* enum_validate_func_t)(int value, struct connection *pconn, char *reject_msg, size_t reject_msg_len)
void settings_game_start(void)
bool setting_enum_set(struct setting *pset, const char *val, struct connection *caller, char *reject_msg, size_t reject_msg_len)
const char * setting_short_help(const struct setting *pset)
static const struct sset_val_name * citynames_name(int citynames)
void send_server_setting_control(struct connection *pconn)
static bool plrcol_validate(int value, struct connection *caller, char *reject_msg, size_t reject_msg_len)
static const struct sset_val_name * generator_name(int generator)
const char * setting_bitwise_bit(const struct setting *pset, int bit, bool pretty)
static bool autosaves_callback(unsigned value, struct connection *caller, char *reject_msg, size_t reject_msg_len)
static bool maxplayers_callback(int value, struct connection *caller, char *reject_msg, size_t reject_msg_len)
int setting_int_min(const struct setting *pset)
bool(* bool_validate_func_t)(bool value, struct connection *pconn, char *reject_msg, size_t reject_msg_len)
static bool setting_enum_validate_base(const struct setting *pset, const char *val, int *pint_val, struct connection *caller, char *reject_msg, size_t reject_msg_len)
static void autotoggle_action(const struct setting *pset)
bool setting_bitwise_validate(const struct setting *pset, const char *val, struct connection *caller, char *reject_msg, size_t reject_msg_len)
void setting_ruleset_lock_set(struct setting *pset)
static const struct sset_val_name * ailevel_name(enum ai_level lvl)
static const struct sset_val_name * victory_conditions_name(int condition_bit)
#define GEN_INT(name, value, sclass, scateg, slevel, al_read, al_write, short_help, extra_help, func_help, func_validate, func_action, _min, _max, _default)
bool setting_bool_validate(const struct setting *pset, const char *val, struct connection *caller, char *reject_msg, size_t reject_msg_len)
struct setting_list * settings_list_get(enum sset_level level)
bool setting_is_changeable(const struct setting *pset, struct connection *caller, char *reject_msg, size_t reject_msg_len)
static const struct sset_val_name * teamplacement_name(int team_placement)
int settings_list_cmp(const struct setting *const *pset1, const struct setting *const *pset2)
static bool setting_bitwise_validate_base(const struct setting *pset, const char *val, unsigned *pint_val, struct connection *caller, char *reject_msg, size_t reject_msg_len)
static enum m_pre_result setting_match_prefix_base(const val_name_func_t name_fn, const char *prefix, int *ind_result, const char **matches, size_t max_matches, size_t *pnum_matches)
static void settings_list_init(void)
void settings_reset(void)
const char * setting_name(const struct setting *pset)
static const int SETTINGS_NUM
static const char * phasemode_help(const struct setting *pset)
static bool ysize_callback(int value, struct connection *caller, char *reject_msg, size_t reject_msg_len)
bool settings_game_reset(void)
static void scorelog_action(const struct setting *pset)
static const struct sset_val_name * happyborders_name(int happyborders)
int setting_bitwise_get(struct setting *pset)
static const struct sset_val_name * scoreloglevel_name(enum scorelog_level sl_level)
static const struct sset_val_name * wrap_name(int wrap_bit)
void settings_list_update(void)
static bool timeout_callback(int value, struct connection *caller, char *reject_msg, size_t reject_msg_len)
@ SSET_PLAYERS_CHANGEABLE
static bool generator_validate(int value, struct connection *caller, char *reject_msg, size_t reject_msg_len)
static const char * setting_str_to_str(const struct setting *pset, const char *value, bool pretty, char *buf, size_t buf_len)
void(* action_callback_func_t)(const struct setting *pset)
#define settings_snprintf(_buf, _buf_len, format,...)
char * setting_str_get(struct setting *pset)
const struct sset_val_name *(* val_name_func_t)(int value)
bool settings_ruleset(struct section_file *file, const char *section, bool act, bool compat)
bool setting_bool_get(struct setting *pset)
static bool set_enum_value(struct setting *pset, int val)
static void setting_game_set(struct setting *pset, bool init)
static void setting_game_free(struct setting *pset)
static bool scorefile_validate(const char *value, struct connection *caller, char *reject_msg, size_t reject_msg_len)
const char * setting_bitwise_secfile_str(secfile_data_t data, int bit)
static void aitype_action(const struct setting *pset)
static void aifill_action(const struct setting *pset)
static const struct sset_val_name * trait_dist_name(int trait_dist)
bool setting_is_visible_at_level(const struct setting *pset, enum cmdlevel plevel)
static const struct sset_val_name * plrcol_name(int plrcol)
bool setting_bool_set(struct setting *pset, const char *val, struct connection *caller, char *reject_msg, size_t reject_msg_len)
void send_server_setting(struct conn_list *dest, const struct setting *pset)
static const char * huts_help(const struct setting *pset)
static const struct sset_val_name * persistentready_name(int persistent_ready)
void send_server_settings(struct conn_list *dest)
#define GEN_BITWISE(name, value, sclass, scateg, slevel, al_read, al_write, short_help, extra_help, func_validate, func_action, func_name, _default)
static const struct sset_val_name * mapsize_name(int mapsize)
static void plrcol_action(const struct setting *pset)
void send_server_access_level_settings(struct conn_list *dest, enum cmdlevel old_level, enum cmdlevel new_level)
static const struct sset_val_name * diplomacy_name(int diplomacy)
static const struct sset_val_name * barbarians_name(int barbarians)
static void setting_game_restore(struct setting *pset)
int read_enum_value(const struct setting *pset)
static const struct sset_val_name * borders_name(int borders)
static const struct sset_val_name * autosaves_name(int autosaves_bit)
bool(* int_validate_func_t)(int value, struct connection *pconn, char *reject_msg, size_t reject_msg_len)
static bool unitwaittime_callback(int value, struct connection *caller, char *reject_msg, size_t reject_msg_len)
static bool topology_callback(unsigned value, struct connection *caller, char *reject_msg, size_t reject_msg_len)
#define settings_iterate(_level, _pset)
#define settings_iterate_end
bool is_safe_filename(const char *name)
void remove_leading_trailing_spaces(char *s)
const char * aifill(int amount)
bool game_was_started(void)
enum server_states server_state(void)
void toggle_ai_player_direct(struct connection *caller, struct player *pplayer)
void strvec_destroy(struct strvec *psv)
void strvec_append(struct strvec *psv, const char *string)
struct strvec * strvec_new(void)
size_t strvec_size(const struct strvec *psv)
const char * strvec_to_and_list(const struct strvec *psv, struct astring *astr)
enum city_names_mode allowed_city_names
int incite_gold_capt_chance
char scorefile[MAX_LEN_PATH]
enum barbarians_rate barbarianrate
char start_units[MAX_LEN_STARTUNIT]
int incite_gold_loss_chance
bool settings_gamestart_valid
enum plrcolor_mode plrcolormode
char demography[MAX_LEN_DEMOGRAPHY]
struct conn_list * est_connections
struct civ_game::@32::@36::@40 meta_info
struct packet_game_info info
struct timer * save_timer
enum scorelog_level scoreloglevel
int maxconnectionsperhost
struct packet_scenario_info scenario
int nuclear_winter_percent
char default_ai_type_name[256]
char nationset[MAX_LEN_NAME]
char save_name[MAX_LEN_NAME]
enum fz_method save_compress_type
enum trait_dist_mode trait_dist
struct civ_game::@32::@36::@38 event_cache
struct civ_game::@32::@36 server
struct packet_timeout_info tinfo
char allow_take[MAX_LEN_ALLOW_TAKE]
int global_warming_percent
enum mapsize_type mapsize
enum map_startpos startpos
enum team_placement team_placement
struct civ_map::@44::@46 server
enum map_generator generator
enum cmdlevel access_level
enum borders_mode borders
bool team_pooled_research
enum happyborders_type happyborders
enum diplomacy_mode diplomacy
enum trade_revenue_style trade_revenue_style
enum airlifting_style airlifting_style
enum ai_level skill_level
enum revolen_type revolentype
enum phase_mode_type phase_mode
enum caravan_bonus_style caravan_bonus_style
bool unreachable_protects
enum persistent_ready persistent_ready
enum victory_condition_type victory_conditions
char support_names[64][MAX_LEN_NAME]
char pretty_names[64][MAX_LEN_ENUM]
char category_names[256][MAX_LEN_NAME]
char pretty_names[64][MAX_LEN_ENUM]
char support_names[64][MAX_LEN_NAME]
char default_val[MAX_LEN_PACKET]
float seconds_to_phasedone
enum cmdlevel access_level_read
struct setting::@120::@126 bitwise
enum setting_default_level setdef
const char *const default_value
const int_validate_func_t validate
struct setting::@120::@125 enumerator
enum cmdlevel access_level_write
struct setting::@120::@122 boolean
const val_name_func_t name
const help_callback_func_t help_func
enum setting_default_level game_setdef
const enum_validate_func_t validate
struct setting::@120::@123 integer
struct setting::@120::@124 string
const action_callback_func_t action
enum setting_lock_level lock
const bool_validate_func_t validate
const string_validate_func_t validate
const bitwise_validate_func_t validate
const unsigned default_value
enum sset_category scategory
int fc_snprintf(char *str, size_t n, const char *format,...)
size_t fc_strlcpy(char *dest, const char *src, size_t n)
int fc_strcasecmp(const char *str0, const char *str1)
size_t fc_strlcat(char *dest, const char *src, size_t n)
int fc_strncasecmp(const char *str0, const char *str1, size_t n)
#define sz_strlcpy(dest, src)
#define terrain_type_iterate(_p)
#define terrain_type_iterate_end
#define terrain_has_flag(terr, flag)
void timer_destroy(struct timer *t)
void timer_start(struct timer *t)
void timer_stop(struct timer *t)
struct timer * timer_renew(struct timer *t, enum timer_timetype type, enum timer_use use, const char *name)
struct unit_type * get_role_unit(int role, int role_index)
#define uclass_index(_c_)
#define MAP_NATIVE_HEIGHT