Files
@ r18008:ce1722c7e707
Branch filter:
Location: cpp/openttd-patchpack/source/src/table/gameopt_settings.ini - annotation
r18008:ce1722c7e707
5.4 KiB
text/x-ini
(svn r22827) -Codechange: pass the/a more proper sub directory when opening (some) files instead of the default one
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 | r17443:173f9abb35c4 r17443:173f9abb35c4 r17443:173f9abb35c4 r17443:173f9abb35c4 r17443:173f9abb35c4 r17443:173f9abb35c4 r17443:173f9abb35c4 r17443:173f9abb35c4 r17412:1ff79f20974f r17412:1ff79f20974f r17412:1ff79f20974f r17412:1ff79f20974f r17412:1ff79f20974f r17412:1ff79f20974f r17412:1ff79f20974f r17412:1ff79f20974f r17412:1ff79f20974f r17412:1ff79f20974f r17412:1ff79f20974f r17412:1ff79f20974f r17412:1ff79f20974f r17412:1ff79f20974f r17412:1ff79f20974f r17412:1ff79f20974f r17412:1ff79f20974f r17412:1ff79f20974f r17412:1ff79f20974f r17412:1ff79f20974f r17412:1ff79f20974f r17412:1ff79f20974f r17412:1ff79f20974f r17412:1ff79f20974f r17412:1ff79f20974f r17412:1ff79f20974f r17412:1ff79f20974f r17412:1ff79f20974f r17412:1ff79f20974f r17412:1ff79f20974f r17446:7ac9e3a36ab8 r17433:64e2236354f0 r17446:7ac9e3a36ab8 r17446:7ac9e3a36ab8 r17446:7ac9e3a36ab8 r17433:64e2236354f0 r17412:1ff79f20974f r17430:f19b6938f22a r17430:f19b6938f22a r17430:f19b6938f22a r17430:f19b6938f22a r17430:f19b6938f22a r17446:7ac9e3a36ab8 r17430:f19b6938f22a r17430:f19b6938f22a r17432:2b9064a79edc r17432:2b9064a79edc r17430:f19b6938f22a r17430:f19b6938f22a r17412:1ff79f20974f r17412:1ff79f20974f r17412:1ff79f20974f r17412:1ff79f20974f r17412:1ff79f20974f r17412:1ff79f20974f r17435:5574ebefe58a r17412:1ff79f20974f r17412:1ff79f20974f r17412:1ff79f20974f r17412:1ff79f20974f r17412:1ff79f20974f r17412:1ff79f20974f r17412:1ff79f20974f r17412:1ff79f20974f r17412:1ff79f20974f r17412:1ff79f20974f r17412:1ff79f20974f r17412:1ff79f20974f r17412:1ff79f20974f r17435:5574ebefe58a r17412:1ff79f20974f r17412:1ff79f20974f r17412:1ff79f20974f r17412:1ff79f20974f r17412:1ff79f20974f r17412:1ff79f20974f r17412:1ff79f20974f r17412:1ff79f20974f r17412:1ff79f20974f r17412:1ff79f20974f r17412:1ff79f20974f r17412:1ff79f20974f r17412:1ff79f20974f r17412:1ff79f20974f r17412:1ff79f20974f r17412:1ff79f20974f r17412:1ff79f20974f r17412:1ff79f20974f r17412:1ff79f20974f r17412:1ff79f20974f r17412:1ff79f20974f r17435:5574ebefe58a r17412:1ff79f20974f r17412:1ff79f20974f r17412:1ff79f20974f r17412:1ff79f20974f r17412:1ff79f20974f r17412:1ff79f20974f r17412:1ff79f20974f r17412:1ff79f20974f r17435:5574ebefe58a r17412:1ff79f20974f r17412:1ff79f20974f r17412:1ff79f20974f r17412:1ff79f20974f r17412:1ff79f20974f r17412:1ff79f20974f r17412:1ff79f20974f r17412:1ff79f20974f r17412:1ff79f20974f r17412:1ff79f20974f r17412:1ff79f20974f r17412:1ff79f20974f r17412:1ff79f20974f r17412:1ff79f20974f r17412:1ff79f20974f r17412:1ff79f20974f r17412:1ff79f20974f r17412:1ff79f20974f r17412:1ff79f20974f r17412:1ff79f20974f r17412:1ff79f20974f r17412:1ff79f20974f r17412:1ff79f20974f r17412:1ff79f20974f r17412:1ff79f20974f r17412:1ff79f20974f r17412:1ff79f20974f r17412:1ff79f20974f r17412:1ff79f20974f r17412:1ff79f20974f r17412:1ff79f20974f r17433:64e2236354f0 r17412:1ff79f20974f r17412:1ff79f20974f r17412:1ff79f20974f r17433:64e2236354f0 r17412:1ff79f20974f r17412:1ff79f20974f r17412:1ff79f20974f r17435:5574ebefe58a r17412:1ff79f20974f r17412:1ff79f20974f r17412:1ff79f20974f r17412:1ff79f20974f r17412:1ff79f20974f r17412:1ff79f20974f r17412:1ff79f20974f r17412:1ff79f20974f r17412:1ff79f20974f r17412:1ff79f20974f r17412:1ff79f20974f r17412:1ff79f20974f r17412:1ff79f20974f r17412:1ff79f20974f | ; $Id$
;
; This file is part of OpenTTD.
; OpenTTD is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 2.
; OpenTTD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
; See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with OpenTTD. If not, see <http://www.gnu.org/licenses/>.
;
[pre-amble]
static const uint GAME_DIFFICULTY_NUM = 18;
static uint16 _old_diff_custom[GAME_DIFFICULTY_NUM];
/* Most of these strings are used both for gameopt-backward compatability
* and the settings tables. The rest is here for consistency. */
static const char *_locale_currencies = "GBP|USD|EUR|YEN|ATS|BEF|CHF|CZK|DEM|DKK|ESP|FIM|FRF|GRD|HUF|ISK|ITL|NLG|NOK|PLN|RON|RUR|SIT|SEK|YTL|SKK|BRL|EEK|custom";
static const char *_locale_units = "imperial|metric|si";
static const char *_town_names = "english|french|german|american|latin|silly|swedish|dutch|finnish|polish|slovak|norwegian|hungarian|austrian|romanian|czech|swiss|danish|turkish|italian|catalan";
static const char *_climates = "temperate|arctic|tropic|toyland";
static const char *_autosave_interval = "off|monthly|quarterly|half year|yearly";
static const char *_roadsides = "left|right";
static const char *_savegame_date = "long|short|iso";
#ifdef ENABLE_NETWORK
static const char *_server_langs = "ANY|ENGLISH|GERMAN|FRENCH|BRAZILIAN|BULGARIAN|CHINESE|CZECH|DANISH|DUTCH|ESPERANTO|FINNISH|HUNGARIAN|ICELANDIC|ITALIAN|JAPANESE|KOREAN|LITHUANIAN|NORWEGIAN|POLISH|PORTUGUESE|ROMANIAN|RUSSIAN|SLOVAK|SLOVENIAN|SPANISH|SWEDISH|TURKISH|UKRAINIAN|AFRIKAANS|CROATIAN|CATALAN|ESTONIAN|GALICIAN|GREEK|LATVIAN";
#endif /* ENABLE_NETWORK */
static const SettingDesc _gameopt_settings[] = {
/* In version 4 a new difficulty setting has been added to the difficulty settings,
* town attitude towards demolishing. Needs special handling because some dimwit thought
* it funny to have the GameDifficulty struct be an array while it is a struct of
* same-sized members
* XXX - To save file-space and since values are never bigger than about 10? only
* save the first 16 bits in the savegame. Question is why the values are still int32
* and why not byte for example?
* 'SLE_FILE_I16 | SLE_VAR_U16' in "diff_custom" is needed to get around SlArray() hack
* for savegames version 0 - though it is an array, it has to go through the byteswap process */
[post-amble]
};
[templates]
SDTG_GENERAL = SDTG_GENERAL($name, $sdt_cmd, $sle_cmd, $type, $flags, $guiflags, $var, $length, $def, $min, $max, $interval, $full, $str, $strval, $proc, $from, $to),
SDT_NULL = SDT_NULL($length, $from, $to),
SDTC_OMANY = SDTC_OMANY( $var, $type, $flags, $guiflags, $def, $max, $full, $str, $strval, $proc, $from, $to),
SDT_OMANY = SDT_OMANY($base, $var, $type, $flags, $guiflags, $def, $max, $full, $str, $strval, $proc, $from, $to, $load),
SDT_VAR = SDT_VAR($base, $var, $type, $flags, $guiflags, $def, $min, $max, $interval, $str, $strval, $proc, $from, $to),
SDT_END = SDT_END()
[defaults]
flags = 0
guiflags = 0
interval = 0
str = STR_NULL
strval = STR_NULL
proc = NULL
load = NULL
from = 0
to = SL_MAX_VERSION
[SDTG_GENERAL]
name = ""diff_custom""
sdt_cmd = SDT_INTLIST
sle_cmd = SL_ARR
type = SLE_FILE_I16 | SLE_VAR_U16
flags = SLF_NOT_IN_CONFIG
var = _old_diff_custom
length = 17
def = 0
min = 0
max = 0
full = NULL
to = 3
[SDTG_GENERAL]
name = ""diff_custom""
sdt_cmd = SDT_INTLIST
sle_cmd = SL_ARR
type = SLE_UINT16
flags = SLF_NOT_IN_CONFIG
var = _old_diff_custom
length = 18
def = 0
min = 0
max = 0
full = NULL
from = 4
##
[SDT_VAR]
base = GameSettings
var = difficulty.diff_level
type = SLE_UINT8
def = 3
min = 0
max = 3
[SDT_OMANY]
base = GameSettings
var = locale.currency
type = SLE_UINT8
flags = SLF_NO_NETWORK_SYNC
def = 0
max = CUSTOM_CURRENCY_ID
full = _locale_currencies
[SDT_OMANY]
base = GameSettings
var = locale.units
type = SLE_UINT8
flags = SLF_NO_NETWORK_SYNC
def = 1
max = 2
full = _locale_units
# There are only 21 predefined town_name values (0-20), but you can have more with newgrf action F so allow
# these bigger values (21-255). Invalid values will fallback to english on use and (undefined string) in GUI.
[SDT_OMANY]
base = GameSettings
var = game_creation.town_name
type = SLE_UINT8
def = 0
max = 255
full = _town_names
[SDT_OMANY]
base = GameSettings
var = game_creation.landscape
type = SLE_UINT8
def = 0
max = 3
full = _climates
load = ConvertLandscape
[SDT_VAR]
base = GameSettings
var = game_creation.snow_line
type = SLE_UINT8
def = DEF_SNOWLINE_HEIGHT * TILE_HEIGHT
min = MIN_SNOWLINE_HEIGHT * TILE_HEIGHT
max = MAX_SNOWLINE_HEIGHT * TILE_HEIGHT
[SDT_NULL]
length = 1
to = 22
[SDTC_OMANY]
var = gui.autosave
type = SLE_UINT8
from = 23
flags = SLF_NOT_IN_SAVE | SLF_NO_NETWORK_SYNC
def = 1
max = 4
full = _autosave_interval
[SDT_OMANY]
base = GameSettings
var = vehicle.road_side
type = SLE_UINT8
def = 1
max = 1
full = _roadsides
[SDT_END]
|