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 != nullptr) { \
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 }; \
324 N_(
"Generator's choice"));
326 N_(
"One player per continent"));
328 N_(
"Two or three players per continent"));
330 N_(
"All players on a single continent"));
332 N_(
"Depending on size of continents"));
343 switch (team_placement) {
347 N_(
"As close as possible"));
349 N_(
"On the same continent"));
351 N_(
"Horizontal placement"));
353 N_(
"Vertical placement"));
364 switch (persistent_ready) {
368 N_(
"As long as connected"));
414 N_(
"See everything inside borders"));
416 N_(
"Borders expand to unknown, revealing tiles"));
427 switch (trait_dist) {
456 switch (happyborders) {
473 N_(
"Only allowed between human players"));
520 switch (revolentype) {
550 N_(
"Allows units to be airlifted from allied cities"));
552 N_(
"Allows units to be airlifted to allied cities"));
554 N_(
"Unlimited units from source city"));
556 N_(
"Unlimited units to destination city"));
570 "PLAYER",
N_(
"All players alternate movement"));
599#ifdef FREECIV_HAVE_LIBZ
602#ifdef FREECIV_HAVE_LIBBZ2
606#ifdef FREECIV_HAVE_LIBLZMA
609#ifdef FREECIV_HAVE_LIBZSTD
671 _(
"This setting controls whether players may make "
672 "moves at the same time during a turn. Change "
673 "in setting takes effect next turn. Currently, at least "
674 "to the end of this turn, mode is \"%s\"."),
691 "Currently this setting is being overridden by an "
692 "old scenario or savegame, which has set the absolute "
693 "number of huts to %d. Explicitly set this setting "
694 "again to make it take effect instead."),
700 return pset->extra_help;
712 if (*
pset->boolean.pvalue) {
724 const char *msg =
aifill(*
pset->integer.pvalue);
726 log_normal(
_(
"Warning: aifill not met: %s."), msg);
728 _(
"Warning: aifill not met: %s."), msg);
739 if (pplayer->nation !=
nullptr) {
758 _(
"Warning: not enough nations in this nation set "
759 "for all current players."));
787 if (*
pset->boolean.pvalue) {
789 if (
is_human(pplayer) && !pplayer->is_connected) {
804 int timeout = *
pset->integer.pvalue;
822 int timeout = *
pset->integer.pvalue;
898 log_warn(
_(
"Failed to update default AI type."));
918 _(
"Invalid save name definition: '%s' "
919 "(resolves to '%s')."), value,
buf);
937 _(
"You cannot disable the map generator."));
944 _(
"You cannot require a map generator "
945 "when a map is loaded."));
961 _(
"Invalid score name definition: '%s'."), value);
984 _(
"Demography string validation failed at character: "
985 "'%c'. Try \"/help demography\"."), value[error]);
1002 ?
nullptr :
"save interval");
1004 }
else if (!(value & (1 <<
AS_TIMER))
1035 for (
i = 0;
i <
len;
i++) {
1037 if (
strchr(
"HhAadbOo", value[
i])) {
1051 _(
"Allowed take string validation failed at "
1052 "character: '%c'. Try \"/help allowtake\"."),
1079 for (
i = 0;
i <
len;
i++) {
1080 if (
strchr(
"cwxksfdDaA", value[
i])) {
1086 _(
"Starting units string validation failed at "
1087 "character '%c'. Try \"/help startunits\"."),
1106 _(
"The first starting unit must be native to at "
1107 "least one \"Starter\" terrain. "
1108 "Try \"/help startunits\"."));
1125 _(
"Cannot set endturn earlier than current turn."));
1139 _(
"Number of players (%d) is higher than requested "
1149 _(
"Requested value (%d) is greater than number of "
1150 "available start positions (%d). Keeping old value."),
1166 if (
strlen(value) == 0) {
1173 _(
"Unknown nation set \"%s\". See '%slist nationsets' "
1174 "for possible values."), value, caller ?
"/" :
"");
1187 && value < 30 && value != 0) {
1189 _(
"You are not allowed to set timeout values less "
1190 "than 30 seconds."));
1198 _(
"For autogames ('timeout' = -1) 'unitwaittime' "
1199 "should be deactivated (= 0)."));
1208 _(
"'timeout' can not be lower than 3/2 of the "
1209 "'unitwaittime' setting (= %d). Please change "
1225 && value < 30 && value != 0) {
1227 _(
"You are not allowed to set timeout values less "
1228 "than 30 seconds."));
1244 _(
"For autogames ('timeout' = -1) 'unitwaittime' "
1245 "should be deactivated (= 0)."));
1252 _(
"'unitwaittime' has to be lower than 2/3 of the "
1253 "'timeout' setting (= %d). Please change 'timeout' "
1272 _(
"For an isometric or hexagonal map the ysize must be "
1290 _(
"The map size (%d * %d = %d) must be larger than "
1296 _(
"The map size (%d * %d = %d) must be lower than "
1315 _(
"The map size (%d * %d = %d) must be larger than "
1321 _(
"The map size (%d * %d = %d) must be lower than "
1326 && value % 2 != 0) {
1330 _(
"For an isometric or hexagonal map the ysize must be "
1345 && ((value & (
TF_ISO)) != 0 || (value & (
TF_HEX)) != 0)
1350 _(
"For an isometric or hexagonal map the ysize must be "
1362 if ((value & (
TF_ISO)) != 0
1363 || (value & (
TF_HEX)) != 0) {
1366 _(
"Freeciv-web doesn't support this topology."));
1382 _(
"No such AI type loaded."));
1399 if ((value & (
WRAP_Y)) != 0) {
1402 _(
"Freeciv-web doesn't support this map wrap."));
1425 _(
"No nations in the currently loaded ruleset have "
1426 "associated colors."));
1432#define GEN_BOOL(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, nullptr, SST_BOOL, \
1438 .boolean = {&value, _default, func_validate, bool_name, \
1439 FALSE} INIT_BRACE_END , func_action, FALSE, .ruleset_settable = TRUE},
1441#define GEN_INT(name, value, sclass, scateg, slevel, al_read, al_write, \
1442 short_help, extra_help, func_help, \
1443 func_validate, func_action, \
1444 _min, _max, _default) \
1445 {name, sclass, al_read, al_write, short_help, extra_help, func_help, \
1446 SST_INT, scateg, slevel, \
1448 .integer = {(int *) &value, _default, _min, _max, func_validate, \
1449 0} INIT_BRACE_END, \
1450 func_action, FALSE, .ruleset_settable = TRUE},
1452#define GEN_STRING(name, value, sclass, scateg, slevel, al_read, al_write, \
1453 short_help, extra_help, func_validate, func_action, \
1455 {name, sclass, al_read, al_write, short_help, extra_help, nullptr, \
1456 SST_STRING, scateg, slevel, \
1458 .string = {value, _default, sizeof(value), func_validate, ""} \
1460 func_action, FALSE, .ruleset_settable = TRUE},
1462#define GEN_STRING_NRS(name, value, sclass, scateg, slevel, al_read, al_write, \
1463 short_help, extra_help, func_validate, func_action, \
1465 {name, sclass, al_read, al_write, short_help, extra_help, nullptr, \
1466 SST_STRING, scateg, slevel, \
1468 .string = {value, _default, sizeof(value), func_validate, ""} \
1470 func_action, FALSE, .ruleset_settable = FALSE},
1472#define GEN_ENUM(name, value, sclass, scateg, slevel, al_read, al_write, \
1473 short_help, extra_help, func_help, func_validate, \
1474 func_action, func_name, _default) \
1475 { name, sclass, al_read, al_write, short_help, extra_help, func_help, \
1476 SST_ENUM, scateg, slevel, \
1478 .enumerator = { &value, sizeof(value), _default, \
1480 (val_name_func_t) func_name, 0 } INIT_BRACE_END, \
1481 func_action, FALSE, .ruleset_settable = TRUE},
1483#define GEN_BITWISE(name, value, sclass, scateg, slevel, al_read, al_write, \
1484 short_help, extra_help, func_validate, func_action, \
1485 func_name, _default) \
1486 { name, sclass, al_read, al_write, short_help, extra_help, nullptr, \
1487 SST_BITWISE, scateg, slevel, \
1489 .bitwise = { (unsigned *) (void *) &value, _default, func_validate, \
1490 func_name, 0 } INIT_BRACE_END, \
1491 func_action, FALSE, .ruleset_settable = TRUE},
1501 N_(
"Map size definition"),
1507 N_(
"Chooses the method used to define the map size. Other options "
1508 "specify the parameters for each method.\n"
1509 "- \"Number of tiles\" (FULLSIZE): Map area (option 'size').\n"
1510 "- \"Tiles per player\" (PLAYER): Number of (land) tiles per "
1511 "player (option 'tilesperplayer').\n"
1512 "- \"Width and height\" (XYSIZE): Map width and height in "
1513 "tiles (options 'xsize' and 'ysize')."),
nullptr,
1518 N_(
"Map area (in thousands of tiles)"),
1524 N_(
"This value is used to determine the map area.\n"
1525 " size = 4 is a normal map of 4,000 tiles (default)\n"
1526 " size = 20 is a huge map of 20,000 tiles\n"
1527 "For this option to take effect, the \"Map size definition\" "
1528 "option ('mapsize') must be set to \"Number of tiles\" "
1529 "(FULLSIZE)."),
nullptr,
nullptr,
nullptr,
1534 N_(
"Number of (land) tiles per player"),
1540 N_(
"This value is used to determine the map dimensions. It "
1541 "calculates the map size at game start based on the number "
1542 "of players and the value of the setting 'landmass'.\n"
1543 "For this option to take effect, the \"Map size definition\" "
1544 "option ('mapsize') must be set to \"Tiles per player\" "
1551 N_(
"Map width in tiles"),
1557 N_(
"Defines the map width.\n"
1558 "For this option to take effect, the \"Map size definition\" "
1559 "option ('mapsize') must be set to \"Width and height\" "
1565 N_(
"Map height in tiles"),
1571 N_(
"Defines the map height.\n"
1572 "For this option to take effect, the \"Map size definition\" "
1573 "option ('mapsize') must be set to \"Width and height\" "
1583 N_(
"Freeciv-web maps are always two-dimensional.\n"),
1586 N_(
"Freeciv maps are always two-dimensional. "
1587 "Individual tiles may "
1588 "be rectangular or hexagonal, with either an overhead "
1589 "(\"classic\") or isometric alignment.\n"
1590 "To play with a particular topology, clients will need a "
1591 "matching tileset.\n"
1592 "Overhead rectangular: Isometric rectangular:\n"
1593 " _________ /\\/\\/\\/\\/\\\n"
1594 " |_|_|_|_|_| /\\/\\/\\/\\/\\/\n"
1595 " |_|_|_|_|_| \\/\\/\\/\\/\\/\\\n"
1596 " |_|_|_|_|_| /\\/\\/\\/\\/\\/\n"
1597 " \\/\\/\\/\\/\\/\n"
1599 " /\\/\\/\\/\\/\\/\\ _ _ _ _ _\n"
1600 " | | | | | | | / \\_/ \\_/ \\_/ \\_/ \\\n"
1601 " \\/\\/\\/\\/\\/\\/\\"
1602 " \\_/ \\_/ \\_/ \\_/ \\_/\n"
1603 " | | | | | | | / \\_/ \\_/ \\_/ \\_/ \\\n"
1604 " \\/\\/\\/\\/\\/\\/"
1605 " \\_/ \\_/ \\_/ \\_/ \\_/\n"),
1614 N_(
"Freeciv-web maps may wrap "
1615 "at the east-west directions to form a flat map or a "
1619 N_(
"Freeciv maps may wrap at "
1620 "the north-south and east-west directions to form a flat "
1621 "map, a cylinder, or a torus (donut)."),
1627 N_(
"Method used to generate map"),
1633 N_(
"Specifies the algorithm used to generate the map. If the "
1634 "default value of the 'startpos' option is used, then the "
1635 "chosen generator chooses an appropriate 'startpos' setting; "
1636 "otherwise, the generated map tries to accommodate the "
1637 "chosen 'startpos' setting.\n"
1638 "- \"Scenario map\" (SCENARIO): indicates a pre-generated map. "
1639 "By default, if the scenario does not specify start positions, "
1640 "they will be allocated depending on the size of continents.\n"
1641 "- \"Fully random height\" (RANDOM): generates maps with a "
1642 "number of equally spaced, relatively small islands. By default, "
1643 "start positions are allocated depending on continent size.\n"
1644 "- \"Pseudo-fractal height\" (FRACTAL): generates Earthlike "
1645 "worlds with one or more large continents and a scattering of "
1646 "smaller islands. By default, players are all placed on a "
1647 "single continent.\n"
1648 "- \"Island-based\" (ISLAND): generates 'fair' maps with a "
1649 "number of similarly-sized and -shaped islands, each with "
1650 "approximately the same ratios of terrain types. By default, "
1651 "each player gets their own island.\n"
1652 "- \"Fair islands\" (FAIR): generates the exact copy of the "
1653 "same island for every player or every team.\n"
1654 "- \"Fracture map\" (FRACTURE): generates maps from a fracture "
1655 "pattern. Tends to place hills and mountains along the edges "
1656 "of the continents.\n"
1657 "If the requested generator is incompatible with other server "
1658 "settings, the server may fall back to another generator."),
1664 N_(
"Method used to choose start positions"),
1670 N_(
"The method used to choose where each player's initial units "
1671 "start on the map. (For scenarios which include pre-set "
1672 "start positions, this setting is ignored.)\n"
1673 "- \"Generator's choice\" (DEFAULT): the start position "
1674 "placement will depend on the map generator chosen. See the "
1675 "'generator' setting.\n"
1676 "- \"One player per continent\" (SINGLE): one player is "
1677 "placed on each of a set of continents of approximately "
1678 "equivalent value (if possible).\n"
1679 "- \"Two or three players per continent\" (2or3): similar "
1680 "to SINGLE except that two players will be placed on each "
1681 "continent, with three on the 'best' continent if there is an "
1682 "odd number of players.\n"
1683 "- \"All players on a single continent\" (ALL): all players "
1684 "will start on the 'best' available continent.\n"
1685 "- \"Depending on size of continents\" (VARIABLE): players "
1686 "will be placed on the 'best' available continents such that, "
1687 "as far as possible, the number of players on each continent "
1688 "is proportional to its value.\n"
1689 "If the server cannot satisfy the requested setting due to "
1690 "there being too many players for continents, it may fall "
1691 "back to one of the others. (However, map generators try to "
1692 "create the right number of continents for the choice of this "
1693 "'startpos' setting and the number of players, so this is "
1694 "unlikely to occur.)"),
1699 N_(
"Method used for placement of team mates"),
1705 N_(
"After start positions have been generated thanks to the "
1706 "'startpos' setting, this setting controls how the start "
1707 "positions will be assigned to the different players of the "
1709 "- \"Disabled\" (DISABLED): the start positions will be "
1710 "randomly assigned to players, regardless of teams.\n"
1711 "- \"As close as possible\" (CLOSEST): players will be "
1712 "placed as close as possible, regardless of continents.\n"
1713 "- \"On the same continent\" (CONTINENT): if possible, place "
1714 "all players of the same team onto the same "
1715 "island/continent.\n"
1716 "- \"Horizontal placement\" (HORIZONTAL): players of the same "
1717 "team will be placed horizontally.\n"
1718 "- \"Vertical placement\" (VERTICAL): players of the same "
1719 "team will be placed vertically."),
1725 N_(
"Presence of 1x1 islands"),
1726 N_(
"This setting controls whether the map generator is allowed "
1727 "to make islands of one only tile size."),
nullptr,
nullptr,
1733 N_(
"Whether the poles are separate continents"),
1734 N_(
"If this setting is disabled, the continents may attach to "
1739 N_(
"How much the land at the poles is flattened"),
1741 N_(
"Controls how much the height of the poles is flattened "
1742 "during map generation, preventing a diversity of land "
1743 "terrain there. 0 is no flattening, 100 is maximum "
1744 "flattening. Only affects the 'RANDOM' and 'FRACTAL' "
1745 "map generators."),
nullptr,
1752 N_(
"Northernmost latitude"),
1755 N_(
"Combined with 'southlatitude', controls what climatic "
1756 "zones exist on the map. Higher values are further north, "
1757 "lower values are further south.\n"
1759 "1000 and -1000 gives a full planetary map.\n"
1760 "1000 and 0 gives only a northern hemisphere.\n"
1761 " 500 and 500 gives a map with the same middle-latitude "
1762 "climate everywhere.\n"
1763 " 300 and -300 gives an equatorial map.\n"
1765 "In rulesets that support it, latitude may also have certain "
1766 "effects during gameplay."),
nullptr,
1773 N_(
"Southernmost latitude"),
1776 N_(
"Combined with 'northlatitude', controls what climatic "
1777 "zones exist on the map. Higher values are further north, "
1778 "lower values are further south.\n"
1780 "1000 and -1000 gives a full planetary map.\n"
1781 "1000 and 0 gives only a northern hemisphere.\n"
1782 " 500 and 500 gives a map with the same middle-latitude "
1783 "climate everywhere.\n"
1784 " 300 and -300 gives an equatorial map.\n"
1786 "In rulesets that support it, latitude may also have certain "
1787 "effects during gameplay."),
nullptr,
1795 N_(
"Average temperature of the planet"),
1796 N_(
"Small values will give a cold map, while larger values will "
1797 "give a hotter map.\n"
1799 "100 means a very dry and hot planet with no polar arctic "
1800 "zones, only tropical and dry zones.\n"
1801 " 70 means a hot planet with little polar ice.\n"
1802 " 50 means a temperate planet with normal polar, cold, "
1803 "temperate, and tropical zones; a desert zone overlaps "
1804 "tropical and temperate zones.\n"
1805 " 30 means a cold planet with small tropical zones.\n"
1806 " 0 means a very cold planet with large polar zones and no "
1808 nullptr,
nullptr,
nullptr,
1814 N_(
"Percentage of the map that is land"),
1815 N_(
"This setting gives the approximate percentage of the map "
1816 "that will be made into land."),
nullptr,
nullptr,
nullptr,
1822 N_(
"Amount of hills/mountains"),
1823 N_(
"Small values give flat maps, while higher values give a "
1824 "steeper map with more hills and mountains."),
1825 nullptr,
nullptr,
nullptr,
1831 N_(
"Amount of water on landmasses"),
1832 N_(
"Small values mean lots of dry, desert-like land; "
1833 "higher values give a wetter map with more swamps, "
1834 "jungles, and rivers."),
nullptr,
nullptr,
nullptr,
1839 N_(
"Global warming"),
1840 N_(
"If turned off, global warming will not occur "
1841 "as a result of pollution. This setting does not "
1842 "affect pollution."),
nullptr,
nullptr,
1847 N_(
"Global warming percent"),
1848 N_(
"This is a multiplier for the rate of accumulation of global "
1849 "warming."),
nullptr,
nullptr,
nullptr,
1856 N_(
"Nuclear winter"),
1857 N_(
"If turned off, nuclear winter will not occur "
1858 "as a result of nuclear war."),
nullptr,
nullptr,
1863 N_(
"Nuclear winter percent"),
1864 N_(
"This is a multiplier for the rate of accumulation of nuclear "
1865 "winter."),
nullptr,
nullptr,
nullptr,
1877 N_(
"Map generation random seed"),
1878 N_(
"The same seed will always produce the same map; "
1879 "for zero (the default) a seed will be generated randomly, "
1880 "based on gameseed. If also gameseed is zero, "
1881 "the map will be completely random."),
1882 nullptr,
nullptr,
nullptr,
1897 N_(
"Game random seed"),
1898 N_(
"For zero (the default) a seed will be chosen based "
1899 "on system entropy or, failing that, the current time."),
1900 nullptr,
nullptr,
nullptr,
1905 N_(
"Amount of \"special\" resource tiles"),
1906 N_(
"Special resources improve the basic terrain type they "
1907 "are on. The server variable's scale is parts per "
1908 "thousand."),
nullptr,
nullptr,
nullptr,
1913 N_(
"Amount of huts (bonus extras)"),
1914 N_(
"Huts are tile extras that usually may be investigated by "
1916 "The server variable's scale is huts per thousand tiles."),
1922 N_(
"Amount of animals"),
1923 N_(
"Number of animals initially created on terrains "
1924 "defined for them in the ruleset (if the ruleset supports it). "
1925 "The server variable's scale is animals per "
1926 "thousand tiles."),
nullptr,
nullptr,
nullptr,
1935 N_(
"Minimum number of players"),
1936 N_(
"There must be at least this many players (connected "
1937 "human players) before the game can start."),
1938 nullptr,
nullptr,
nullptr,
1943 N_(
"Maximum number of players"),
1944 N_(
"The maximal number of human and AI players who can be in "
1945 "the game. When this number of players are connected in "
1946 "the pregame state, any new players who try to connect "
1947 "will be rejected.\n"
1948 "When playing a scenario which defines player start positions, "
1949 "this setting cannot be set to greater than the number of "
1950 "defined start positions."),
1956 N_(
"Limited number of AI players"),
1957 N_(
"If set to a positive value, then AI players will be "
1958 "automatically created or removed to keep the total "
1959 "number of players at this amount. As more players join, "
1960 "these AI players will be replaced. When set to zero, "
1961 "all AI players will be removed."),
1967 N_(
"When the Readiness of a player gets autotoggled off"),
1968 N_(
"In pre-game, usually when new players join or old ones leave, "
1969 "those who have already accepted game to start by toggling \"Ready\" "
1970 "get that autotoggled off in the changed situation. This setting "
1971 "can be used to make readiness more persistent."),
1978 N_(
"Set of nations to choose from"),
1980 N_(
"Controls the set of nations allowed in the game. The "
1981 "choices are defined by the ruleset.\n"
1982 "Only nations in the set selected here will be allowed in "
1983 "any circumstances, including new players and civil war; "
1984 "small sets may thus limit the number of players in a game.\n"
1985 "If this is left blank, the ruleset's default nation set is "
1987 "See '/list nationsets' for possible choices for the "
1988 "currently loaded ruleset."),
1994 N_(
"Event cache for this number of turns"),
1995 N_(
"Event messages are saved for this number of turns. A value of "
1996 "0 deactivates the event cache."),
2003 N_(
"Size of the event cache"),
2004 N_(
"This defines the maximal number of events in the event cache."),
2011 N_(
"Save chat messages in the event cache"),
2012 N_(
"If turned on, chat messages will be saved in the event "
2018 N_(
"Print turn and time for each cached event"),
2020 N_(
"If turned on, all cached events will be marked by the turn "
2021 "and time of the event like '(T2 - 15:29:52)'."),
2030 N_(
"List of players' initial units"),
2031 N_(
"This should be a string of characters, each of which "
2032 "specifies a unit role. The first character must be native to "
2033 "at least one \"Starter\" terrain. The characters and their "
2035 " c = City founder (eg., Settlers)\n"
2036 " w = Terrain worker (eg., Engineers)\n"
2037 " x = Explorer (eg., Explorer)\n"
2038 " k = Gameloss (eg., King)\n"
2039 " s = Diplomat (eg., Diplomat)\n"
2040 " f = Ferryboat (eg., Trireme)\n"
2041 " d = Ok defense unit (eg., Warriors)\n"
2042 " D = Good defense unit (eg., Phalanx)\n"
2043 " a = Fast attack unit (eg., Horsemen)\n"
2044 " A = Strong attack unit (eg., Catapult)\n"),
2050 N_(
"Whether player starts with a city"),
2051 N_(
"If this is set, game will start with player's first "
2052 "city already founded to starting location."),
2058 N_(
"Area where initial units are located"),
2059 N_(
"This is the radius within "
2060 "which the initial units are dispersed."),
2061 nullptr,
nullptr,
nullptr,
2067 N_(
"Starting gold per player"),
2068 N_(
"At the beginning of the game, each player is given this "
2069 "much gold."),
nullptr,
nullptr,
nullptr,
2075 N_(
"Starting infrapoints per player"),
2076 N_(
"At the beginning of the game, each player is given this "
2077 "many infrapoints."),
nullptr,
nullptr,
nullptr,
2083 N_(
"Number of initial techs per player"),
2086 N_(
"At the beginning of the game, each player is given this "
2087 "many technologies. The technologies chosen are random for "
2088 "each player. Depending on the value of tech_cost_style in "
2089 "the ruleset, a big value for 'techlevel' can make the next "
2090 "techs really expensive."),
nullptr,
nullptr,
nullptr,
2096 N_(
"Technology cost multiplier percentage"),
2097 N_(
"This affects how quickly players can research new "
2098 "technology. All tech costs are multiplied by this amount "
2099 "(as a percentage). The base tech costs are determined by "
2100 "the ruleset or other game settings."),
2106 N_(
"Allow researching multiple technologies"),
2107 N_(
"Allows switching to any technology without wasting old "
2108 "research. Bulbs are never transferred to new technology. "
2109 "Techpenalty options are ineffective after enabling that "
2110 "option."),
nullptr,
nullptr,
2115 N_(
"Percentage penalty when changing tech"),
2116 N_(
"If you change your current research technology, and you have "
2117 "positive research points, you lose this percentage of those "
2118 "research points. This does not apply when you have just gained "
2119 "a technology this turn."),
nullptr,
nullptr,
nullptr,
2125 N_(
"Chance to lose a technology while receiving it"),
2126 N_(
"The chance that learning a technology by treaty or theft "
2133 N_(
"Chance to lose a technology while giving it"),
2134 N_(
"The chance that your civilization will lose a technology if "
2135 "you teach it to someone else by treaty, or if it is stolen "
2142 N_(
"Tech leakage percent"),
2143 N_(
"The rate of the tech leakage. This multiplied by the "
2144 "percentage of players who know the tech tell which "
2145 "percentage of tech's bulb cost gets leaked each turn. "
2146 "This setting has no effect if the ruleset has disabled "
2153 N_(
"Team pooled research"),
2154 N_(
"If this setting is turned on, then the team mates will share "
2155 "the science research. Else, every player of the team will "
2156 "have to make its own."),
2161 N_(
"Penalty when getting tech from treaty"),
2162 N_(
"For each technology you gain from a diplomatic treaty, you "
2163 "lose research points equal to this percentage of the cost to "
2164 "research a new technology. If this is non-zero, you can end up "
2165 "with negative research points."),
2166 nullptr,
nullptr,
nullptr,
2172 N_(
"Penalty when getting gold from treaty"),
2173 N_(
"When transferring gold in diplomatic treaties, this percentage "
2174 "of the agreed sum is lost to both parties; it is deducted from "
2175 "the donor but not received by the recipient."),
2176 nullptr,
nullptr,
nullptr,
2182 N_(
"Probability of gold loss during inciting revolt"),
2183 N_(
"When unit trying to incite revolt is eliminated, half of the gold "
2184 "(or quarter, if unit was caught), prepared to bribe citizens, "
2185 "can be lost or captured by enemy."),
2186 nullptr,
nullptr,
nullptr,
2192 N_(
"Probability of gold capture during inciting revolt"),
2193 N_(
"When unit trying to incite revolt is eliminated and lose its "
2194 "gold, there is chance that this gold would be captured by "
2195 "city defender. Transfer tax would be applied, though. "
2196 "This setting is irrelevant, if incite_gold_loss_chance is zero."),
2197 nullptr,
nullptr,
nullptr,
2203 N_(
"Penalty when getting tech from conquering"),
2204 N_(
"For each technology you gain by conquering an enemy city, you "
2205 "lose research points equal to this percentage of the cost to "
2206 "research a new technology. If this is non-zero, you can end up "
2207 "with negative research points."),
2208 nullptr,
nullptr,
nullptr,
2214 N_(
"Penalty when getting a free tech"),
2217 N_(
"For each technology you gain \"for free\" (other than "
2218 "covered by 'diplcost' or 'conquercost': for instance, from huts "
2219 "or from Great Library effects), you lose research points "
2220 "equal to this percentage of the cost to research a new "
2221 "technology. If this is non-zero, you can end up "
2222 "with negative research points."),
2223 nullptr,
nullptr,
nullptr,
2228 N_(
"Research point debt threshold for losing tech"),
2229 N_(
"When you have negative research points, and your shortfall is "
2230 "greater than this percentage of the cost of your current "
2231 "research, you forget a technology you already knew.\n"
2232 "The special value -1 prevents loss of technology regardless of "
2233 "research points."),
2234 nullptr,
nullptr,
nullptr,
2240 N_(
"Research points restored after losing a tech"),
2241 N_(
"When you lose a technology due to a negative research balance "
2242 "(see 'techlossforgiveness'), this percentage of its research "
2243 "cost is credited to your research balance (this may not be "
2244 "sufficient to make it positive).\n"
2245 "The special value -1 means that your research balance is always "
2246 "restored to zero, regardless of your previous shortfall."),
2247 nullptr,
nullptr,
nullptr,
2254 N_(
"Food required for a city to grow"),
2255 N_(
"This is the base amount of food required to grow a city. "
2256 "This value is multiplied by another factor that comes from "
2257 "the ruleset and is dependent on the size of the city."),
2258 nullptr,
nullptr,
nullptr,
2263 N_(
"Percentage food lost when city can't grow"),
2264 N_(
"If a city would expand, but it can't because it lacks some "
2265 "prerequisite (traditionally an Aqueduct or Sewer System), "
2266 "this is the base percentage of its foodbox that is lost "
2267 "each turn; the penalty may be reduced by buildings or other "
2268 "circumstances, depending on the ruleset."),
2269 nullptr,
nullptr,
nullptr,
2276 N_(
"Multiplier percentage for production costs"),
2277 N_(
"This affects how quickly units and buildings can be "
2278 "produced. The base costs are multiplied by this value (as "
2280 nullptr,
nullptr,
nullptr,
2291 N_(
"Minimum city size to get full trade"),
2294 N_(
"There is a trade penalty in all cities smaller than this. "
2295 "The penalty is 100% (no trade at all) for sizes up to "
2296 "'notradesize', and decreases gradually to 0% (no penalty "
2297 "except the normal corruption) for size='fulltradesize'. "
2298 "See also 'notradesize'."),
nullptr,
nullptr,
nullptr,
2304 N_(
"Maximum size of a city without trade"),
2307 N_(
"Cities do not produce any trade at all unless their size "
2308 "is larger than this amount. The produced trade increases "
2309 "gradually for cities larger than 'notradesize' and smaller "
2310 "than 'fulltradesize'. See also 'fulltradesize'."),
2311 nullptr,
nullptr,
nullptr,
2317 N_(
"How largely trade distance is relative to world size"),
2320 N_(
"When determining trade between cities, the distance factor "
2321 "can be partly or fully relative to world size. This setting "
2322 "determines how big percentage of the bonus calculation is "
2323 "relative to world size, and how much only absolute distance "
2325 nullptr,
nullptr,
nullptr,
2332 N_(
"Minimum distance between cities"),
2333 N_(
"When a player attempts to found a new city, it is prevented "
2334 "if the distance from any existing city is less than this "
2335 "setting. For example, when this setting is 3, there must be "
2336 "at least two clear tiles in any direction between all existing "
2337 "cities and the new city site. A value of 1 removes any such "
2338 "restriction on city placement."),
2339 nullptr,
nullptr,
nullptr,
2345 N_(
"Technology trading"),
2346 N_(
"If turned off, trading technologies in the diplomacy dialog "
2347 "is not allowed."),
nullptr,
nullptr,
2353 N_(
"If turned off, trading gold in the diplomacy dialog "
2354 "is not allowed."),
nullptr,
nullptr,
2360 N_(
"If turned off, trading cities in the diplomacy dialog "
2361 "is not allowed."),
nullptr,
nullptr,
2366 N_(
"Caravan bonus style"),
2367 N_(
"The formula for the bonus when a caravan enters a city. "
2368 "CLASSIC bonuses are proportional to distance and trade "
2369 "of source and destination with multipliers for overseas and "
2370 "international destinations. LOGARITHMIC bonuses are "
2371 "proportional to log^2(distance + trade)."),
2377 N_(
"Trade revenue style"),
2378 N_(
"The formula for the trade a city receives from a trade route. "
2379 "CLASSIC revenues are given by the sum of the two city sizes "
2380 "plus the distance between them, with multipliers for overseas "
2381 "and international routes. "
2382 "SIMPLE revenues are proportional to the average trade of the "
2389 N_(
"Minimum distance for trade routes"),
2390 N_(
"In order for two cities in the same civilization to establish "
2391 "a trade route, they must be at least this far apart on the "
2392 "map. For square grids, the distance is calculated as "
2393 "\"Manhattan distance\", that is, the sum of the displacements "
2394 "along the x and y directions."),
nullptr,
nullptr,
nullptr,
2401 N_(
"Number of turns between rapture effect"),
2402 N_(
"Sets the number of turns between rapture growth of a city. "
2403 "If set to n a city will grow after celebrating for n+1 "
2405 nullptr,
nullptr,
nullptr,
2412 N_(
"Frequency of disasters"),
2413 N_(
"Affects how often random disasters happen to cities, "
2414 "if any are defined by the ruleset. The relative frequency "
2415 "of disaster types is set by the ruleset. Zero prevents "
2416 "any random disasters from occurring."),
2417 nullptr,
nullptr,
nullptr,
2423 N_(
"AI trait distribution method"),
2424 N_(
"How trait values are given to AI players."),
2430 N_(
"Chance for conquered building destruction"),
2431 N_(
"When a player conquers a city, each city improvement has this "
2432 "percentage chance to be destroyed."),
nullptr,
nullptr,
nullptr,
2437 N_(
"Chance of moving into tile after attack"),
2438 N_(
"If set to 0, combat is Civ1/2-style (when you attack, "
2439 "you remain in place). If set to 100, attacking units "
2440 "will always move into the tile they attacked when they win "
2441 "the combat (and no enemy units remain in the tile). If "
2442 "set to a value between 0 and 100, this will be used as "
2443 "the percent chance of \"occupying\" territory."),
2444 nullptr,
nullptr,
nullptr,
2450 N_(
"Turn on/off server-side autoattack"),
2451 N_(
"If set to on, units with moves left will automatically "
2452 "consider attacking enemy units that move adjacent to them."),
2458 N_(
"Do all units in tile die with defender"),
2459 N_(
"If this is enabled, each time a defender unit loses in combat, "
2460 "and is not inside a city or suitable base, all units in the same "
2461 "tile are destroyed along with the defender. If this is disabled, "
2462 "only the defender unit is destroyed."),
2467 N_(
"Reduce city population after attack"),
2468 N_(
"This flag indicates whether a city's population is reduced "
2469 "after a successful attack by an enemy unit. If this is "
2470 "disabled, population is never reduced. Even when this is "
2471 "enabled, only some units may kill citizens."),
2476 N_(
"Slowly kill units without home cities (e.g., starting units)"),
2477 N_(
"If greater than 0, then every unit without a homecity will "
2478 "lose hitpoints each turn. The number of hitpoints lost is "
2479 "given by 'killunhomed' percent of the hitpoints of the unit "
2480 "type. At least one hitpoint is lost every turn until the "
2481 "death of the unit."),
2488 N_(
"National borders"),
2489 N_(
"If this is not disabled, then any land tiles around a "
2490 "city or border-claiming extra (like the classic ruleset's "
2491 "Fortress base) will be owned by that nation. "
2492 "SEE_INSIDE and EXPAND makes everything inside a player's "
2493 "borders visible at once. ENABLED will, in some rulesets, "
2494 "grant the same visibility if certain conditions are met."),
2500 N_(
"Units inside borders cause no unhappiness"),
2501 N_(
"If this is set, units will not cause unhappiness when "
2502 "inside your borders, or even allies borders, depending "
2503 "on value."),
nullptr,
nullptr,
nullptr,
2509 N_(
"Ability to do diplomacy with other players"),
2510 N_(
"This setting controls the ability to do diplomacy with "
2516 N_(
"Allowed city names"),
2520 N_(
"- \"No restrictions\" (NO_RESTRICTIONS): players can have "
2521 "multiple cities with the same names.\n"
2522 "- \"Unique to a player\" (PLAYER_UNIQUE): one player can't "
2523 "have multiple cities with the same name.\n"
2524 "- \"Globally unique\" (GLOBAL_UNIQUE): all cities in a game "
2525 "have to have different names.\n"
2526 "- \"No city name stealing\" (NO_STEALING): like "
2527 "\"Globally unique\", but a player isn't allowed to use a "
2528 "default city name of another nation unless it is a default "
2529 "for their nation also."),
2535 N_(
"How to pick player colors"),
2540 N_(
"This setting determines how player colors are chosen. Player "
2541 "colors are used in the Nations report, for national borders on "
2542 "the map, and so on.\n"
2543 "- \"Per-player, in order\" (PLR_ORDER): colors are assigned to "
2544 "individual players in order from a list defined by the "
2546 "- \"Per-player, random\" (PLR_RANDOM): colors are assigned "
2547 "to individual players randomly from the set defined by the "
2549 "- \"Set manually\" (PLR_SET): colors can be set with the "
2550 "'playercolor' command before the game starts; these are not "
2551 "restricted to the ruleset colors. Any players for which no "
2552 "color is set when the game starts get a random color from the "
2554 "- \"Per-team, in order\" (TEAM_ORDER): colors are assigned to "
2555 "teams from the list in the ruleset. Every player on the same "
2556 "team gets the same color.\n"
2557 "- \"Per-nation, in order\" (NATION_ORDER): if the ruleset "
2558 "defines a color for a player's nation, the player takes that "
2559 "color. Any players whose nations don't have associated colors "
2560 "get a random color from the list in the ruleset.\n"
2561 "Regardless of this setting, individual player colors can be "
2562 "changed after the game starts with the 'playercolor' command."),
2582 N_(
"Barbarian appearance frequency"),
2585 N_(
"This setting controls how frequently the barbarians appear "
2586 "in the game. See also the 'onsetbarbs' setting."),
2593 N_(
"Barbarian onset turn"),
2594 N_(
"Barbarians will not appear before this turn."),
2595 nullptr,
nullptr,
nullptr,
2601 N_(
"Way to determine revolution length"),
2602 N_(
"Which method is used in determining how long period of anarchy "
2603 "lasts when changing government. The actual value is set with "
2604 "'revolen' setting. The 'quickening' methods depend on how "
2605 "many times any player has changed to this type of government "
2606 "before, so it becomes easier to establish a new system of "
2607 "government if it has been done before."),
2614 N_(
"Length of revolution"),
2615 N_(
"When changing governments, a period of anarchy will occur. "
2616 "Value of this setting, used the way 'revolentype' setting "
2617 "dictates, defines the length of the anarchy."),
2618 nullptr,
nullptr,
nullptr,
2624 N_(
"Whether to enable fog of war"),
2625 N_(
"If this is enabled, only those units and cities within "
2626 "the vision range of your own units and cities will be "
2627 "revealed to you. You will not see new cities or terrain "
2628 "changes in tiles not observed."),
2633 N_(
"Whether fog of war applies to border changes"),
2634 N_(
"If this setting is enabled, players will not be able "
2635 "to see changes in tile ownership if they do not have "
2636 "direct sight of the affected tiles. Otherwise, players "
2637 "can see any or all changes to borders as long as they "
2638 "have previously seen the tiles."),
2648 N_(
"This setting affects airlifting units between cities. It "
2649 "can be a set of the following values:\n"
2650 "- \"Allows units to be airlifted from allied cities\" "
2652 "- \"Allows units to be airlifted to allied cities\" "
2654 "- \"Unlimited units from source city\" (SRC_UNLIMITED): "
2655 "airlifting from a city doesn't reduce the "
2656 "airlifted counter. It depends on the ruleset whether "
2657 "this is possible even with zero airlift capacity.\n"
2658 "- \"Unlimited units to destination city\" "
2659 "(DEST_UNLIMITED): airlifting to a city doesn't "
2660 "reduce the airlifted counter. It depends on the ruleset "
2661 "whether this is possible even with zero airlift capacity."),
2668 N_(
"Base chance for diplomats and spies to succeed"),
2669 N_(
"The base chance of a spy returning from a successful mission and "
2670 "the base chance of success for diplomats and spies for most "
2671 "aggressive mission types. Not all the mission types use diplchance "
2672 "as a base chance – a ruleset can even say that no action at all does. "
2673 "Unit Bribing, and Unit Sabotaging never do. "
2674 "Non-aggressive missions typically have no base chance "
2675 "at all, but always success."),
2676 nullptr,
nullptr,
nullptr,
2682 N_(
"What kinds of victories are possible"),
2688 N_(
"This setting controls how game can be won. One can always "
2689 "win by conquering entire planet, but other victory conditions "
2690 "can be enabled or disabled:\n"
2691 "- \"Spacerace\" (SPACERACE): Spaceship is built and travels to "
2693 "- \"Allied\" (ALLIED): After defeating enemies, all remaining "
2694 "players are allied.\n"
2695 "- \"Culture\" (CULTURE): Player meets ruleset defined cultural "
2696 "domination criteria.\n"
2697 "- \"World Peace\" (WORLDPEACE): There's no wars in the world for "
2698 "the specified amount of turns.\n"),
2704 N_(
"Should the game end if the spaceship arrives?"),
2705 N_(
"If this option is turned on, the game will end with the "
2706 "arrival of a spaceship at Alpha Centauri."),
2712 N_(
"Percentage to multiply spaceship travel time by"),
2713 N_(
"This percentage is multiplied onto the time it will take for "
2714 "a spaceship to arrive at Alpha Centauri."),
2715 nullptr,
nullptr,
nullptr,
2722 N_(
"Minimum number of cities for civil war"),
2723 N_(
"A civil war is triggered when a player has at least this "
2724 "many cities and the player's capital is captured. If "
2725 "this option is set to the maximum value, civil wars are "
2726 "turned off altogether."),
nullptr,
nullptr,
nullptr,
2733 N_(
"Restrict the use of the infrastructure for enemy units"),
2734 N_(
"If this option is enabled, the use of roads and rails "
2735 "will be restricted for enemy units."),
nullptr,
nullptr,
2741 N_(
"Does unreachable unit protect reachable ones"),
2742 N_(
"This option controls whether tiles with both unreachable "
2743 "and reachable units can be attacked. If disabled, any "
2744 "tile with reachable units can be attacked. If enabled, "
2745 "tiles with an unreachable unit in them cannot be attacked. "
2746 "Some units in some rulesets may override this, never "
2747 "protecting reachable units on their tile."),
2753 N_(
"Turns until player contact is lost"),
2754 N_(
"Players may meet for diplomacy this number of turns "
2755 "after their units have last met, even when they do not have "
2756 "an embassy. If set to zero, then players cannot meet unless "
2757 "they have an embassy."),
2758 nullptr,
nullptr,
nullptr,
2765 N_(
"Rebuild palace whenever capital is conquered"),
2766 N_(
"If this is turned on, when the capital is conquered the "
2767 "palace is automatically rebuilt for free in another randomly "
2768 "chosen city. This is significant because the technology "
2769 "requirement for building a palace will be ignored. (In "
2770 "some rulesets, buildings other than the palace are affected "
2771 "by this setting.)"),
2777 N_(
"Give caught units a homecity"),
2780 N_(
"If unset, caught units will have no homecity and will be "
2781 "subject to the 'killunhomed' option."),
2787 N_(
"Whether to use natural city names"),
2788 N_(
"If enabled, the default city names will be determined based "
2789 "on the surrounding terrain."),
2795 N_(
"Whether to enable citizen migration"),
2798 N_(
"This is the master setting that controls whether citizen "
2799 "migration is active in the game. If enabled, citizens may "
2800 "automatically move from less desirable cities to more "
2801 "desirable ones. The \"desirability\" of a given city is "
2802 "calculated from a number of factors. In general larger "
2803 "cities with more income and improvements will be preferred. "
2804 "Citizens will never migrate out of the capital, or cause "
2805 "a wonder to be lost by disbanding a city. A number of other "
2806 "settings control how migration behaves:\n"
2807 " 'mgr_turninterval' - How often citizens try to migrate.\n"
2808 " 'mgr_foodneeded' - Whether destination food is checked.\n"
2809 " 'mgr_distance' - How far citizens will migrate.\n"
2810 " 'mgr_worldchance' - Chance for inter-nation migration.\n"
2811 " 'mgr_nationchance' - Chance for intra-nation migration."),
2817 N_(
"Number of turns between migrations from a city"),
2819 N_(
"This setting controls the number of turns between migration "
2820 "checks for a given city. The interval is calculated from "
2821 "the founding turn of the city. So for example if this "
2822 "setting is 5, citizens will look for a suitable migration "
2823 "destination every five turns from the founding of their "
2824 "current city. Migration will never occur the same turn "
2825 "that a city is built. This setting has no effect unless "
2826 "migration is enabled by the 'migration' setting."),
2827 nullptr,
nullptr,
nullptr,
2834 N_(
"Whether migration is limited by food"),
2836 N_(
"If this setting is enabled, citizens will not migrate to "
2837 "cities which would not have enough food to support them. "
2838 "This setting has no effect unless migration is enabled by "
2839 "the 'migration' setting."),
nullptr,
nullptr,
2845 N_(
"Maximum distance citizens may migrate"),
2847 N_(
"This setting controls how far citizens may look for a "
2848 "suitable migration destination when deciding which city "
2849 "to migrate to. The value is added to the candidate target "
2850 "city's radius and compared to the distance between the "
2851 "two cities. If the distance is lower or equal, migration "
2852 "is possible. (So with a setting of 0, citizens will only "
2853 "consider migrating if their city's center is within the "
2854 "destination city's working radius.) This setting has no "
2855 "effect unless migration is enabled by the 'migration' "
2863 N_(
"Percent probability for migration within the same nation"),
2865 N_(
"This setting controls how likely it is for citizens to "
2866 "migrate between cities owned by the same player. Zero "
2867 "indicates migration will never occur, 100 means that "
2868 "migration will always occur if the citizens find a suitable "
2869 "destination. This setting has no effect unless migration "
2870 "is activated by the 'migration' setting."),
2871 nullptr,
nullptr,
nullptr,
2878 N_(
"Percent probability for migration between foreign cities"),
2880 N_(
"This setting controls how likely it is for migration "
2881 "to occur between cities owned by different players. "
2882 "Zero indicates migration will never occur, 100 means "
2883 "that citizens will always migrate if they find a suitable "
2884 "destination. This setting has no effect if migration is "
2885 "not enabled by the 'migration' setting."),
2886 nullptr,
nullptr,
nullptr,
2899 N_(
"Players that users are allowed to take"),
2902 N_(
"This should be a string of characters, each of which "
2903 "specifies a type or status of a civilization (player).\n"
2904 "Clients will only be permitted to take or observe those "
2905 "players which match one of the specified letters. This "
2906 "only affects future uses of the \"take\" or \"observe\" "
2907 "commands; it is not retroactive. The characters and their "
2909 " o,O = Global observer\n"
2910 " b = Barbarian players\n"
2911 " d = Dead players\n"
2912 " a,A = AI players\n"
2913 " h,H = Human players\n"
2914 "The first description on this list which matches a "
2915 "player is the one which applies. Thus 'd' does not "
2916 "include dead barbarians, 'a' does not include dead AI "
2917 "players, and so on. Upper case letters apply before "
2918 "the game has started, lower case letters afterwards.\n"
2919 "Each character above may be followed by one of the "
2920 "following numbers to allow or restrict the manner "
2922 "(none) = Controller allowed, observers allowed, "
2923 "can displace connections. (Displacing a connection means "
2924 "that you may take over a player, even when another user "
2925 "already controls that player.)\n"
2926 " 1 = Controller allowed, observers allowed, "
2927 "can't displace connections;\n"
2928 " 2 = Controller allowed, no observers allowed, "
2929 "can displace connections;\n"
2930 " 3 = Controller allowed, no observers allowed, "
2931 "can't displace connections;\n"
2932 " 4 = No controller allowed, observers allowed"),
2938 N_(
"Whether AI-status toggles with connection"),
2939 N_(
"If enabled, AI status is turned off when a player "
2940 "connects, and on when a player disconnects."),
2945 N_(
"Turn the game ends"),
2946 N_(
"The game will end at the end of the given turn."),
2952 N_(
"Reveal the map"),
2958 N_(
"If \"Reveal map at game start\" (START) is set, the "
2959 "initial state of the entire map will be known to all "
2960 "players from the start of the game, although it may "
2961 "still be fogged (depending on the 'fogofwar' setting). "
2962 "If \"Unfog map for dead players\" (DEAD) is set, dead "
2963 "players can see the entire map, if they are alone in "
2969 N_(
"Maximum seconds per turn"),
2974 N_(
"If all players have not hit \"Turn Done\" before this "
2975 "time is up, then the turn ends automatically. Zero "
2976 "means there is no timeout. In servers compiled with "
2977 "debugging, a timeout of -1 sets the autogame test mode. "
2978 "Only connections with hack level access may set the "
2979 "timeout to fewer than 30 seconds. Use this with the "
2980 "command \"timeoutincrease\" to have a dynamic timer. "
2981 "The first turn is treated as a special case and is controlled "
2982 "by the 'first_timeout' setting."),
2988 N_(
"First turn timeout"),
2991 N_(
"If greater than 0, T1 will last for 'first_timeout' seconds.\n"
2992 "If set to 0, T1 will not have a timeout.\n"
2993 "If set to -1, the special treatment of T1 will be disabled.\n"
2994 "See also 'timeout'."),
3001 N_(
"Timeout at least n seconds when enemy moved"),
3002 N_(
"Any time a unit moves while in sight of an enemy player, "
3003 "the remaining timeout is increased to this value."),
3004 nullptr,
nullptr,
nullptr,
3010 N_(
"Minimum time between unit actions over turn change"),
3013 N_(
"This setting gives the minimum amount of time in seconds "
3014 "between unit moves and other significant actions (such as "
3015 "building cities) after a turn change occurs. For example, "
3016 "if this setting is set to 20 and a unit moves 5 seconds "
3017 "before the turn change, it will not be able to move or act "
3018 "in the next turn for at least 15 seconds. This value is "
3019 "limited to a maximum value of 2/3 'timeout'."),
3029 N_(
"Control of simultaneous player/team phases"),
3030 N_(
"This setting controls whether players may make "
3031 "moves at the same time during a turn. Change "
3032 "in setting takes effect next turn."),
3038 N_(
"Seconds to let a client's network connection block"),
3039 N_(
"If a network connection is blocking for a time greater than "
3040 "this value, then the connection is closed. Zero "
3041 "means there is no timeout (although connections will be "
3042 "automatically disconnected eventually)."),
3043 nullptr,
nullptr,
nullptr,
3048 N_(
"Max seconds for network buffers to drain"),
3049 N_(
"The server will wait for up to the value of this "
3050 "parameter in seconds, for all client connection network "
3051 "buffers to unblock. Zero means the server will not "
3052 "wait at all."),
nullptr,
nullptr,
nullptr,
3057 N_(
"Seconds between PINGs"),
3058 N_(
"The server will poll the clients with a PING request "
3059 "each time this period elapses."),
nullptr,
nullptr,
nullptr,
3065 N_(
"Time to cut a client"),
3066 N_(
"If a client doesn't reply to a PING in this time the "
3067 "client is disconnected."),
nullptr,
nullptr,
nullptr,
3073 N_(
"Keep client IP hidden"),
3074 N_(
"Don't tell client IP address to other clients. Server operator "
3075 "can still see it. Also, changing this setting cannot do anything "
3076 "to the information already sent before."),
3082 N_(
"Turn-blocking game play mode"),
3083 N_(
"If this is turned on, the game turn is not advanced "
3084 "until all players have finished their turn, including "
3085 "disconnected players."),
3091 N_(
"Fixed-length turns play mode"),
3094 N_(
"If this is turned on the game turn will not advance "
3095 "until the timeout has expired, even after all players "
3096 "have clicked on \"Turn Done\"."),
3097 nullptr,
nullptr,
FALSE)
3102 N_(
"Number of cities in Top Cities report"),
3103 N_(
"How many cities should the Top Cities report contain? "
3104 "If this is zero, Top Cities report is not available "
3105 "at all."),
nullptr,
nullptr,
nullptr,
3112 N_(
"What is in the Demographics report"),
3115 N_(
"This should be a string of characters, each of which "
3116 "specifies the inclusion of a line of information "
3117 "in the Demographics report.\n"
3118 "The characters and their meanings are:\n"
3119 " N = include Population\n"
3120 " P = include Production\n"
3121 " A = include Land Area\n"
3122 " L = include Literacy\n"
3123 " R = include Research Speed\n"
3124 " S = include Settled Area\n"
3125 " E = include Economics\n"
3126 " M = include Military Service\n"
3127 " O = include Pollution\n"
3128 " C = include Culture\n"
3129 "Additionally, the following characters control whether "
3130 "or not certain columns are displayed in the report:\n"
3131 " q = display \"quantity\" column\n"
3132 " r = display \"rank\" column\n"
3133 " b = display \"best nation\" column\n"
3134 "The order of characters is not significant, but "
3135 "their capitalization is."),
3140 N_(
"Turns per auto-save"),
3144 N_(
"How many turns elapse between automatic game saves. This "
3145 "setting only has an effect when the 'autosaves' setting "
3146 "includes \"New turn\"."),
nullptr,
nullptr,
nullptr,
3151 N_(
"Minutes per auto-save"),
3155 N_(
"How many minutes elapse between automatic game saves. "
3156 "Unlike other save types, this save is only meant as backup "
3157 "for computer memory, and it always uses the same name, older "
3158 "saves are not kept. This setting only has an effect when the "
3159 "'autosaves' setting includes \"Timer\"."),
3160 nullptr,
nullptr,
nullptr,
3166 N_(
"Which savegames are generated automatically"),
3172 N_(
"This setting controls which autosave types get generated:\n"
3173 "- \"New turn\" (TURN): Save when turn begins, once every "
3174 "'saveturns' turns.\n"
3175 "- \"Game over\" (GAMEOVER): Final save when game ends.\n"
3176 "- \"No player connections\" (QUITIDLE): "
3177 "Save before server restarts due to lack of players.\n"
3178 "- \"Server interrupted\" (INTERRUPT): Save when server "
3179 "quits due to interrupt.\n"
3180 "- \"Timer\" (TIMER): Save every 'savefrequency' minutes."),
3186 N_(
"Whether to do saving in separate thread"),
3189 N_(
"If this is turned in, compressing and saving the actual "
3190 "file containing the game situation takes place in "
3191 "the background while game otherwise continues. This way "
3192 "users are not required to wait for the save to finish."),
3197 N_(
"Savegame compression level"),
3199 N_(
"If non-zero, saved games will be compressed depending on the "
3200 "'compresstype' setting. Larger values will give better "
3201 "compression but take longer."),
3202 nullptr,
nullptr,
nullptr,
3208 N_(
"Savegame compression algorithm"),
3209 N_(
"Compression library to use for savegames."),
3215 N_(
"Definition of the save file name"),
3220 N_(
"Within the string the following custom formats are "
3224 " %T = <turn-number>\n"
3225 " %Y = <game-year>\n"
3227 "Example: 'freeciv-T%04T-Y%+05Y-%R' => "
3228 "'freeciv-T0100-Y00001-manual'\n"
3230 "Be careful to use at least one of %T and %Y, else newer "
3231 "savegames will overwrite old ones. If none of the formats "
3232 "is used '-T%04T-Y%05Y-%R' is appended to the value of "
3243 N_(
"Whether to log player statistics"),
3246 N_(
"If this is turned on, player statistics are appended to "
3247 "the file defined by the option 'scorefile' every turn. "
3248 "These statistics can be used to create power graphs after "
3254 N_(
"Scorelog level"),
3255 N_(
"Whether scores are logged for all players including AIs, "
3256 "or only for human players."),
nullptr,
nullptr,
nullptr,
3263 N_(
"Name for the score log file"),
3265 N_(
"The default name for the score log file is "
3266 "'freeciv-score.log'."),
3273 N_(
"Maximum number of connections to the server per host"),
3274 N_(
"New connections from a given host will be rejected if "
3275 "the total number of connections from the very same host "
3276 "equals or exceeds this value. A value of 0 means that "
3277 "there is no limit, at least up to the maximum number of "
3278 "connections supported by the server."),
3279 nullptr,
nullptr,
nullptr,
3286 N_(
"Time before a kicked user can reconnect"),
3289 N_(
"Gives the time in seconds before a user kicked using the "
3290 "\"kick\" command may reconnect. Changing this setting will "
3291 "affect users kicked in the past."),
3292 nullptr,
nullptr,
nullptr,
3298 N_(
"Time in seconds that a single lua script can run before it gets "
3299 "forcibly terminated."),
nullptr,
nullptr,
nullptr,
3304 N_(
"Metaserver info line"),
3305 N_(
"User defined metaserver info line. For most of the time "
3306 "a user defined metamessage will be used instead of an "
3307 "automatically generated message. "
3308 "Set to empty (\"\", not \"empty\") to always use an "
3309 "automatically generated meta server message."),
3314 N_(
"Level of new AIs"),
3315 N_(
"Difficulty level of any AI players to be created now on. "
3316 "Changing value of this setting does not affect "
3317 "existing players."),
nullptr,
nullptr,
nullptr,
3322 N_(
"Default AI type"),
3323 N_(
"Name of the default AI type. New AI players will be "
3324 "created with that type by default. Changing this "
3325 "setting does not affect existing AI players."),
3385 return pset->short_help;
3394 if (!constant &&
pset->help_func !=
nullptr) {
3398 return _(
pset->extra_help);
3414 return pset->slevel;
3422 return pset->scategory;
3434 switch (
pset->sclass) {
3443 _(
"The setting '%s' can't be modified after the map "
3479 _(
"The setting '%s' can't be modified after the game "
3490 log_error(
"Wrong class variant for setting %s (%d): %d.",
3509 _(
"You are not allowed to change the setting '%s'."),
3514 switch (
pset->lock) {
3520 _(
"The setting '%s' is locked by the ruleset."),
3526 _(
"The setting '%s' is locked by admin."),
3608 const char *prefix,
int *pvalue,
3626 _(
"\"%s\" prefix is ambiguous. Candidates are: %s."),
3642 _(
"No match for \"%s\"."), prefix);
3650 bool value,
bool pretty,
3680 _(
"This setting is not a boolean."));
3689 && (
pset->boolean.validate ==
nullptr
3722 return *
pset->boolean.pvalue;
3747 ((
const struct setting *) data)->boolean.name(val);
3749 return (
name !=
nullptr ?
name->support :
nullptr);
3756 int value,
bool pretty,
3769 return pset->integer.min_value;
3778 return pset->integer.max_value;
3795 *
pset->integer.pvalue = val;
3811 _(
"This setting is not an integer."));
3817 _(
"Value out of range: %d (min: %d; max: %d)."),
3818 val,
pset->integer.min_value,
pset->integer.max_value);
3822 return (!
pset->integer.validate
3834 return *
pset->integer.pvalue;
3841 const char *
value,
bool pretty,
3882 _(
"This setting is not a string."));
3886 if (
strlen(val) >=
pset->string.value_size) {
3888 _(
"String value too long (max length: %lu)."),
3889 (
unsigned long)
pset->string.value_size);
3893 return (!
pset->string.validate
3905 return pset->string.value;
3923 if (
ret !=
nullptr) {
3928 return (
name !=
nullptr ?
name->support :
nullptr);
3942 if (
name ==
nullptr) {
3945 return _(
name->pretty);
3947 return name->support;
3987 _(
"This setting is not an enumerator."));
3996 && (
pset->enumerator.validate ==
nullptr
4006 switch (
pset->enumerator.store_size) {
4042 switch (
pset->enumerator.store_size) {
4044 val = *((
int *)
pset->enumerator.pvalue);
4047 val = *((
char *)
pset->enumerator.pvalue);
4050 val = *((
short *)
pset->enumerator.pvalue);
4053 log_error(
"Illegal enum store size %d, can't read value",
pset->enumerator.store_size);
4081 log_error(
"Illegal enumerator value size %d for %s",
4082 pset->enumerator.store_size, val);
4124 return (
name !=
nullptr ?
name->support :
nullptr);
4139 if (
name ==
nullptr) {
4142 return _(
name->pretty);
4144 return name->support;
4152 unsigned value,
bool pretty,
4166 if ((1 <<
bit) & value) {
4195 if ((1 <<
bit) & value) {
4196 if (
'\0' !=
buf[0]) {
4229 _(
"This setting is not a bitwise."));
4246 if (p ==
nullptr &&
'\0' ==
buf[0] && 0 == *
pint_val) {
4255 }
while (p !=
nullptr);
4257 return (
pset->bitwise.validate ==
nullptr
4305 return *
pset->bitwise.pvalue;
4318 switch (
pset->stype) {
4339 log_error(
"%s(): Setting \"%s\" (nb %d) not handled in switch statement.",
4354 switch (
pset->stype) {
4375 log_error(
"%s(): Setting \"%s\" (nb %d) not handled in switch statement.",
4385 switch (
pset->stype) {
4387 (*
pset->boolean.pvalue) =
pset->boolean.default_value;
4390 (*
pset->integer.pvalue) =
pset->integer.default_value;
4394 pset->string.value_size);
4400 (*
pset->bitwise.pvalue) =
pset->bitwise.default_value;
4415 if (
pset->action !=
nullptr) {
4455 log_error(
"unknown unsettable setting in '%s': %s",
4465 if (
pset->ruleset_settable) {
4491 const char *
name,
const char *path,
4506 if (
pset ==
nullptr || !
pset->ruleset_settable) {
4515 switch (
pset->stype) {
4525 "%s.value", path)) {
4532 if (val != *
pset->boolean.pvalue) {
4533 if (
pset->boolean.validate ==
nullptr
4536 *
pset->boolean.pvalue = val;
4537 log_normal(
_(
"Ruleset: '%s' has been set to %s."),
4554 }
else if (val != *
pset->integer.pvalue) {
4557 log_normal(
_(
"Ruleset: '%s' has been set to %s."),
4571 if (val ==
nullptr) {
4574 }
else if (0 !=
strcmp(val,
pset->string.value)) {
4577 log_normal(
_(
"Ruleset: '%s' has been set to %s."),
4593 "%s.value", path)) {
4594 log_error(
"Can't read value for setting '%s': %s",
4597 if (
pset->enumerator.validate ==
nullptr
4601 log_normal(
_(
"Ruleset: '%s' has been set to %s."),
4617 "%s.value", path)) {
4618 log_error(
"Can't read value for setting '%s': %s",
4620 }
else if (val != *
pset->bitwise.pvalue) {
4621 if (
pset->bitwise.validate ==
nullptr
4622 ||
pset->bitwise.validate((
unsigned) val,
nullptr,
4624 *
pset->bitwise.pvalue = val;
4625 log_normal(
_(
"Ruleset: '%s' has been set to %s."),
4649 log_normal(
_(
"Ruleset: '%s' has been locked by the ruleset."),
4663 return (*
pset->boolean.pvalue !=
pset->boolean.default_value);
4665 return (*
pset->integer.pvalue !=
pset->integer.default_value);
4667 return (0 !=
strcmp(
pset->string.value,
pset->string.default_value));
4671 return (*
pset->bitwise.pvalue !=
pset->bitwise.default_value);
4677 log_error(
"%s(): Setting \"%s\" (nb %d) not handled in switch statement.",
4695 return pset->rslock;
4749 pset->boolean.game_value = *
pset->boolean.pvalue;
4753 pset->integer.game_value = *
pset->integer.pvalue;
4758 pset->string.game_value
4760 *
sizeof(
pset->string.game_value));
4763 pset->string.value_size);
4771 pset->bitwise.game_value = *
pset->bitwise.pvalue;
4849 log_error(
"Error restoring setting '%s' to the value from game start: "
4952 "%s.gamestart_valid",
section);
4970 log_verbose(
"Can't read the number of settings in the save file.");
4990 switch (
pset->stype) {
5002 if (val != *
pset->boolean.pvalue) {
5005 && (
pset->boolean.validate ==
nullptr
5008 *
pset->boolean.pvalue = val;
5009 log_normal(
_(
"Savegame: '%s' has been set to %s."),
5013 log_error(
"Savegame: error restoring '%s' . (%s)",
5017 log_normal(
_(
"Savegame: '%s' explicitly set to value same as default."),
5034 if (val != *
pset->integer.pvalue) {
5037 && (
pset->integer.validate ==
nullptr
5040 *
pset->integer.pvalue = val;
5041 log_normal(
_(
"Savegame: '%s' has been set to %s."),
5045 log_error(
"Savegame: error restoring '%s' . (%s)",
5049 log_normal(
_(
"Savegame: '%s' explicitly set to value same as default."),
5061 if (val ==
nullptr) {
5070 log_normal(
_(
"Savegame: '%s' has been set to %s."),
5074 log_error(
"Savegame: error restoring '%s' . (%s)",
5078 log_normal(
_(
"Savegame: '%s' explicitly set to value same as default."),
5100 && (
pset->enumerator.validate ==
nullptr
5104 log_normal(
_(
"Savegame: '%s' has been set to %s."),
5108 log_error(
"Savegame: error restoring '%s' . (%s)",
5112 log_normal(
_(
"Savegame: '%s' explicitly set to value same as default."),
5131 if (val != *
pset->bitwise.pvalue) {
5134 && (
pset->bitwise.validate ==
nullptr
5137 *
pset->bitwise.pvalue = val;
5138 log_normal(
_(
"Savegame: '%s' has been set to %s."),
5142 log_error(
"Savegame: error restoring '%s' . (%s)",
5146 log_normal(
_(
"Savegame: '%s' explicitly set to value same as default."),
5162 switch (
pset->stype) {
5164 pset->boolean.game_value =
5170 pset->integer.game_value =
5178 "%s.set%d.gamestart",
5180 pset->string.value_size);
5184 pset->enumerator.game_value =
5187 &info,
"%s.set%d.gamestart",
section,
i);
5191 pset->bitwise.game_value =
5194 &info,
"%s.set%d.gamestart",
section,
i);
5205 "%s.set%d.gamesetdef",
section,
i);
5210 log_error(
"Setting %s has invalid gamesetdef value %s",
5243 log_debug(
"No saved settings from the game start available.");
5326#define PACKET_COMMON_INIT(packet, pset, pconn) \
5327 memset(&packet, 0, sizeof(packet)); \
5328 packet.id = setting_number(pset); \
5329 packet.is_visible = setting_is_visible(pset, pconn); \
5330 packet.is_changeable = setting_is_changeable(pset, pconn, nullptr, 0); \
5331 packet.initial_setting = game.info.is_new_game; \
5332 packet.setdef = setting_get_setdef(pset);
5342 packet.
val = *
pset->boolean.pvalue;
5356 packet.
val = *
pset->integer.pvalue;
5412 packet.
val = *
pset->bitwise.pvalue;
5561 "Invalid setting level for '%s' (%s).",
5659 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 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)
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,...)
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 support_names[64][MAX_LEN_NAME]
char pretty_names[64][MAX_LEN_ENUM]
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