Feature: Configurable subsidy duration
[openttd-github.git] / src / table / settings / settings.ini
blob17a4b30258d933c14ec47d5c939f88f8598ec06c
1 ; This file is part of OpenTTD.
2 ; 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.
3 ; 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.
4 ; 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/>.
7 ; Settings as stored in the main configuration file ("openttd.cfg") and in the
8 ; savegame PATS chunk (if not flagged not to).
10 [pre-amble]
11 /* Begin - Callback Functions for the various settings */
12 static void v_PositionMainToolbar(int32 new_value);
13 static void v_PositionStatusbar(int32 new_value);
14 static void RedrawSmallmap(int32 new_value);
15 static void StationSpreadChanged(int32 new_value);
16 static void CloseSignalGUI(int32 new_value);
17 static void UpdateConsists(int32 new_value);
18 static void TrainAccelerationModelChanged(int32 new_value);
19 static void RoadVehAccelerationModelChanged(int32 new_value);
20 static void TrainSlopeSteepnessChanged(int32 new_value);
21 static void RoadVehSlopeSteepnessChanged(int32 new_value);
22 static void TownFoundingChanged(int32 new_value);
23 static void DifficultyNoiseChange(int32 new_value);
24 static void MaxNoAIsChange(int32 new_value);
25 static bool CheckRoadSide(int32 &new_value);
26 static bool CheckMaxHeightLevel(int32 &new_value);
27 static bool CheckFreeformEdges(int32 &new_value);
28 static void UpdateFreeformEdges(int32 new_value);
29 static bool CheckDynamicEngines(int32 &new_value);
30 static void StationCatchmentChanged(int32 new_value);
31 static void InvalidateCompanyLiveryWindow(int32 new_value);
32 static void InvalidateNewGRFChangeWindows(int32 new_value);
33 static void ZoomMinMaxChanged(int32 new_value);
34 static void SpriteZoomMinChanged(int32 new_value);
35 static void MaxVehiclesChanged(int32 new_value);
36 static void InvalidateShipPathCache(int32 new_value);
38 static bool ReplaceAsteriskWithEmptyPassword(std::string &newval);
39 static void UpdateClientConfigValues();
41 /* End - Callback Functions for the various settings */
43 /* Some settings do not need to be synchronised when playing in multiplayer.
44 * These include for example the GUI settings and will not be saved with the
45 * savegame.
46 * It is also a bit tricky since you would think that service_interval
47 * for example does not need to be synched. Every client assigns the
48 * service_interval value to the v->service_interval, meaning that every client
49 * assigns its own value. If the setting was company-based, that would mean that
50 * vehicles could decide on different moments that they are heading back to a
51 * service depot, causing desyncs on a massive scale. */
52 const SettingTable _settings{
53 [post-amble]
55 [templates]
56 SDTG_BOOL = SDTG_BOOL($name, $flags, $var, $def, $str, $strhelp, $strval, $pre_cb, $post_cb, $from, $to, $cat, $extra, $startup),
57 SDTG_VAR = SDTG_VAR($name, $type, $flags, $var, $def, $min, $max, $interval, $str, $strhelp, $strval, $pre_cb, $post_cb, $from, $to, $cat, $extra, $startup),
58 SDTG_OMANY = SDTG_OMANY($name, $type, $flags, $var, $def, $max, $full, $str, $strhelp, $strval, $pre_cb, $post_cb, $from, $to, $cat, $extra, $startup),
59 SDTC_BOOL = SDTC_BOOL( $var, $flags, $def, $str, $strhelp, $strval, $pre_cb, $post_cb, $from, $to, $cat, $extra, $startup),
60 SDTC_LIST = SDTC_LIST( $var, $type, $flags, $def, $from, $to, $cat, $extra, $startup),
61 SDTC_OMANY = SDTC_OMANY( $var, $type, $flags, $def, $max, $full, $str, $strhelp, $strval, $pre_cb, $post_cb, $from, $to, $cat, $extra, $startup),
62 SDTC_SSTR = SDTC_SSTR( $var, $type, $flags, $def, $length, $pre_cb, $post_cb, $from, $to, $cat, $extra, $startup),
63 SDTC_VAR = SDTC_VAR( $var, $type, $flags, $def, $min, $max, $interval, $str, $strhelp, $strval, $pre_cb, $post_cb, $from, $to, $cat, $extra, $startup),
64 SDT_BOOL = SDT_BOOL(GameSettings, $var, $flags, $def, $str, $strhelp, $strval, $pre_cb, $post_cb, $from, $to, $cat, $extra, $startup),
65 SDT_OMANY = SDT_OMANY(GameSettings, $var, $type, $flags, $def, $max, $full, $str, $strhelp, $strval, $pre_cb, $post_cb, $from, $to, $load, $cat, $extra, $startup),
66 SDT_SSTR = SDT_SSTR(GameSettings, $var, $type, $flags, $def, $pre_cb, $post_cb, $from, $to, $cat, $extra, $startup),
67 SDT_VAR = SDT_VAR(GameSettings, $var, $type, $flags, $def, $min, $max, $interval, $str, $strhelp, $strval, $pre_cb, $post_cb, $from, $to, $cat, $extra, $startup),
68 SDT_NULL = SDT_NULL( $length, $from, $to),
70 [validation]
71 SDTG_VAR = static_assert($max <= MAX_$type, "Maximum value for $var exceeds storage size");
72 SDTG_OMANY = static_assert($max <= MAX_$type, "Maximum value for $var exceeds storage size");
73 SDTC_OMANY = static_assert($max <= MAX_$type, "Maximum value for $var exceeds storage size");
74 SDTC_VAR = static_assert($max <= MAX_$type, "Maximum value for $var exceeds storage size");
75 SDT_OMANY = static_assert($max <= MAX_$type, "Maximum value for GameSettings.$var exceeds storage size");
76 SDT_VAR = static_assert($max <= MAX_$type, "Maximum value for GameSettings.$var exceeds storage size");
78 [defaults]
79 flags = SF_NONE
80 interval = 0
81 str = STR_NULL
82 strhelp = STR_CONFIG_SETTING_NO_EXPLANATION_AVAILABLE_HELPTEXT
83 strval = STR_NULL
84 pre_cb = nullptr
85 post_cb = nullptr
86 load = nullptr
87 from = SL_MIN_VERSION
88 to = SL_MAX_VERSION
89 cat = SC_ADVANCED
90 extra = 0
91 startup = false
95 ; Saved settings variables.
96 ; The next 18 entries are important for savegame compatibility. Do NOT remove those. See HandleOldDiffCustom() for more details.
97 [SDT_VAR]
98 var = difficulty.max_no_competitors
99 type = SLE_UINT8
100 from = SLV_97
101 def = 0
102 min = 0
103 max = MAX_COMPANIES - 1
104 interval = 1
105 post_cb = MaxNoAIsChange
106 cat = SC_BASIC
108 [SDT_VAR]
109 var = difficulty.competitor_start_time
110 type = SLE_UINT8
111 from = SLV_97
112 to = SLV_110
113 def = 2
114 min = 0
115 max = 3
117 [SDT_VAR]
118 var = difficulty.number_towns
119 type = SLE_UINT8
120 from = SLV_97
121 flags = SF_NEWGAME_ONLY
122 def = 2
123 min = 0
124 max = 4
125 interval = 1
126 strval = STR_NUM_VERY_LOW
127 cat = SC_BASIC
129 [SDT_VAR]
130 var = difficulty.industry_density
131 type = SLE_UINT8
132 from = SLV_97
133 flags = SF_GUI_DROPDOWN
134 def = ID_END - 1
135 min = 0
136 max = ID_END - 1
137 interval = 1
138 str = STR_CONFIG_SETTING_INDUSTRY_DENSITY
139 strhelp = STR_CONFIG_SETTING_INDUSTRY_DENSITY_HELPTEXT
140 strval = STR_FUNDING_ONLY
141 cat = SC_BASIC
143 [SDT_VAR]
144 var = difficulty.max_loan
145 type = SLE_UINT32
146 from = SLV_97
147 flags = SF_NEWGAME_ONLY | SF_SCENEDIT_TOO | SF_GUI_CURRENCY
148 def = 300000
149 min = 0
150 max = 2000000000
151 interval = 50000
152 str = STR_CONFIG_SETTING_MAXIMUM_INITIAL_LOAN
153 strhelp = STR_CONFIG_SETTING_MAXIMUM_INITIAL_LOAN_HELPTEXT
154 strval = STR_JUST_CURRENCY_LONG
155 cat = SC_BASIC
157 [SDT_VAR]
158 var = difficulty.initial_interest
159 type = SLE_UINT8
160 from = SLV_97
161 flags = SF_NEWGAME_ONLY | SF_SCENEDIT_TOO
162 def = 2
163 min = 2
164 max = 4
165 interval = 1
166 str = STR_CONFIG_SETTING_INTEREST_RATE
167 strhelp = STR_CONFIG_SETTING_INTEREST_RATE_HELPTEXT
168 strval = STR_CONFIG_SETTING_PERCENTAGE
170 [SDT_VAR]
171 var = difficulty.vehicle_costs
172 type = SLE_UINT8
173 from = SLV_97
174 flags = SF_NEWGAME_ONLY | SF_SCENEDIT_TOO | SF_GUI_DROPDOWN
175 def = 0
176 min = 0
177 max = 2
178 interval = 1
179 str = STR_CONFIG_SETTING_RUNNING_COSTS
180 strhelp = STR_CONFIG_SETTING_RUNNING_COSTS_HELPTEXT
181 strval = STR_SEA_LEVEL_LOW
182 cat = SC_BASIC
184 [SDT_VAR]
185 var = difficulty.competitor_speed
186 type = SLE_UINT8
187 from = SLV_97
188 flags = SF_GUI_DROPDOWN
189 def = 2
190 min = 0
191 max = 4
192 interval = 1
193 str = STR_CONFIG_SETTING_CONSTRUCTION_SPEED
194 strhelp = STR_CONFIG_SETTING_CONSTRUCTION_SPEED_HELPTEXT
195 strval = STR_AI_SPEED_VERY_SLOW
196 cat = SC_BASIC
198 [SDT_VAR]
199 var = difficulty.competitor_intelligence
200 type = SLE_UINT8
201 from = SLV_97
202 to = SLV_110
203 def = 0
204 min = 0
205 max = 2
207 [SDT_VAR]
208 var = difficulty.vehicle_breakdowns
209 type = SLE_UINT8
210 from = SLV_97
211 flags = SF_GUI_DROPDOWN
212 def = 1
213 min = 0
214 max = 2
215 interval = 1
216 str = STR_CONFIG_SETTING_VEHICLE_BREAKDOWNS
217 strhelp = STR_CONFIG_SETTING_VEHICLE_BREAKDOWNS_HELPTEXT
218 strval = STR_DISASTER_NONE
219 cat = SC_BASIC
221 [SDT_VAR]
222 var = difficulty.subsidy_multiplier
223 type = SLE_UINT8
224 from = SLV_97
225 flags = SF_GUI_DROPDOWN
226 def = 2
227 min = 0
228 max = 3
229 interval = 1
230 str = STR_CONFIG_SETTING_SUBSIDY_MULTIPLIER
231 strhelp = STR_CONFIG_SETTING_SUBSIDY_MULTIPLIER_HELPTEXT
232 strval = STR_SUBSIDY_X1_5
234 [SDT_VAR]
235 var = difficulty.subsidy_duration
236 type = SLE_UINT16
237 from = SLV_CUSTOM_SUBSIDY_DURATION
238 flags = SF_GUI_0_IS_SPECIAL
239 def = 1
240 min = 0
241 max = 5000
242 interval = 1
243 str = STR_CONFIG_SETTING_SUBSIDY_DURATION
244 strhelp = STR_CONFIG_SETTING_SUBSIDY_DURATION_HELPTEXT
245 strval = STR_CONFIG_SETTING_SUBSIDY_DURATION_VALUE
247 [SDT_VAR]
248 var = difficulty.construction_cost
249 type = SLE_UINT8
250 from = SLV_97
251 flags = SF_NEWGAME_ONLY | SF_SCENEDIT_TOO | SF_GUI_DROPDOWN
252 def = 0
253 min = 0
254 max = 2
255 interval = 1
256 str = STR_CONFIG_SETTING_CONSTRUCTION_COSTS
257 strhelp = STR_CONFIG_SETTING_CONSTRUCTION_COSTS_HELPTEXT
258 strval = STR_SEA_LEVEL_LOW
259 cat = SC_BASIC
261 [SDT_VAR]
262 var = difficulty.terrain_type
263 type = SLE_UINT8
264 from = SLV_97
265 flags = SF_GUI_DROPDOWN | SF_NEWGAME_ONLY
266 def = 1
267 min = 0
268 max = 5
269 interval = 1
270 str = STR_CONFIG_SETTING_TERRAIN_TYPE
271 strhelp = STR_CONFIG_SETTING_TERRAIN_TYPE_HELPTEXT
272 strval = STR_TERRAIN_TYPE_VERY_FLAT
273 cat = SC_BASIC
275 [SDT_VAR]
276 var = difficulty.quantity_sea_lakes
277 type = SLE_UINT8
278 from = SLV_97
279 flags = SF_NEWGAME_ONLY
280 def = 0
281 min = 0
282 max = 4
283 interval = 1
284 strval = STR_SEA_LEVEL_VERY_LOW
285 cat = SC_BASIC
287 [SDT_BOOL]
288 var = difficulty.economy
289 from = SLV_97
290 def = false
291 str = STR_CONFIG_SETTING_RECESSIONS
292 strhelp = STR_CONFIG_SETTING_RECESSIONS_HELPTEXT
294 [SDT_BOOL]
295 var = difficulty.line_reverse_mode
296 from = SLV_97
297 def = false
298 str = STR_CONFIG_SETTING_TRAIN_REVERSING
299 strhelp = STR_CONFIG_SETTING_TRAIN_REVERSING_HELPTEXT
301 [SDT_BOOL]
302 var = difficulty.disasters
303 from = SLV_97
304 def = false
305 str = STR_CONFIG_SETTING_DISASTERS
306 strhelp = STR_CONFIG_SETTING_DISASTERS_HELPTEXT
307 cat = SC_BASIC
309 [SDT_VAR]
310 var = difficulty.town_council_tolerance
311 type = SLE_UINT8
312 from = SLV_97
313 flags = SF_GUI_DROPDOWN
314 def = 0
315 min = 0
316 max = 2
317 interval = 1
318 str = STR_CONFIG_SETTING_CITY_APPROVAL
319 strhelp = STR_CONFIG_SETTING_CITY_APPROVAL_HELPTEXT
320 strval = STR_CITY_APPROVAL_PERMISSIVE
321 post_cb = DifficultyNoiseChange
323 [SDTG_VAR]
324 name = ""diff_level""
325 var = _old_diff_level
326 type = SLE_UINT8
327 flags = SF_NOT_IN_CONFIG
328 from = SLV_97
329 to = SLV_178
330 def = 3
331 min = 0
332 max = 3
333 cat = SC_BASIC
335 ; There are only 21 predefined town_name values (0-20), but you can have more with newgrf action F so allow
336 ; these bigger values (21-255). Invalid values will fallback to english on use and (undefined string) in GUI.
337 [SDT_OMANY]
338 var = game_creation.town_name
339 type = SLE_UINT8
340 from = SLV_97
341 flags = SF_NO_NETWORK
342 def = 0
343 max = 255
344 full = _town_names
345 cat = SC_BASIC
347 [SDT_OMANY]
348 var = game_creation.landscape
349 type = SLE_UINT8
350 from = SLV_97
351 flags = SF_GUI_DROPDOWN | SF_NEWGAME_ONLY
352 def = 0
353 max = 3
354 full = _climates
355 load = ConvertLandscape
356 str = STR_CONFIG_SETTING_LANDSCAPE
357 strhelp = STR_CONFIG_SETTING_LANDSCAPE_HELPTEXT
358 strval = STR_CHEAT_SWITCH_CLIMATE_TEMPERATE_LANDSCAPE
359 cat = SC_BASIC
361 ; Snow line (or snow_line_height * TILE_HEIGHT)
362 [SDT_NULL]
363 length = 1
364 from = SLV_97
365 to = SLV_164
367 [SDT_OMANY]
368 var = vehicle.road_side
369 type = SLE_UINT8
370 from = SLV_97
371 flags = SF_GUI_DROPDOWN | SF_NO_NETWORK
372 def = 1
373 max = 1
374 full = _roadsides
375 str = STR_CONFIG_SETTING_ROAD_SIDE
376 strhelp = STR_CONFIG_SETTING_ROAD_SIDE_HELPTEXT
377 strval = STR_GAME_OPTIONS_ROAD_VEHICLES_DROPDOWN_LEFT
378 pre_cb = CheckRoadSide
379 cat = SC_BASIC
381 ; Construction
383 [SDT_VAR]
384 var = construction.map_height_limit
385 type = SLE_UINT8
386 from = SLV_194
387 flags = SF_NEWGAME_ONLY | SF_SCENEDIT_TOO | SF_GUI_0_IS_SPECIAL
388 def = 0
389 min = MIN_MAP_HEIGHT_LIMIT
390 max = MAX_MAP_HEIGHT_LIMIT
391 interval = 1
392 str = STR_CONFIG_SETTING_MAP_HEIGHT_LIMIT
393 strhelp = STR_CONFIG_SETTING_MAP_HEIGHT_LIMIT_HELPTEXT
394 strval = STR_CONFIG_SETTING_MAP_HEIGHT_LIMIT_VALUE
395 pre_cb = CheckMaxHeightLevel
396 post_cb = [](auto) { InvalidateWindowClassesData(WC_SMALLMAP, 2); }
397 cat = SC_ADVANCED
399 [SDT_VAR]
400 var = game_creation.heightmap_height
401 type = SLE_UINT8
402 from = SLV_MAPGEN_SETTINGS_REVAMP
403 flags = SF_NEWGAME_ONLY
404 def = MAP_HEIGHT_LIMIT_AUTO_MINIMUM
405 min = MIN_HEIGHTMAP_HEIGHT
406 max = MAX_MAP_HEIGHT_LIMIT
407 interval = 1
409 [SDT_BOOL]
410 var = construction.build_on_slopes
411 flags = SF_NO_NETWORK
412 def = true
413 cat = SC_EXPERT
415 [SDT_VAR]
416 var = construction.command_pause_level
417 type = SLE_UINT8
418 from = SLV_154
419 flags = SF_GUI_DROPDOWN | SF_NO_NETWORK
420 def = 1
421 min = 0
422 max = 3
423 interval = 1
424 str = STR_CONFIG_SETTING_COMMAND_PAUSE_LEVEL
425 strhelp = STR_CONFIG_SETTING_COMMAND_PAUSE_LEVEL_HELPTEXT
426 strval = STR_CONFIG_SETTING_COMMAND_PAUSE_LEVEL_NO_ACTIONS
428 [SDT_VAR]
429 var = construction.terraform_per_64k_frames
430 type = SLE_UINT32
431 from = SLV_156
432 def = 64 << 16
433 min = 0
434 max = 1 << 30
435 interval = 1
436 cat = SC_EXPERT
438 [SDT_VAR]
439 var = construction.terraform_frame_burst
440 type = SLE_UINT16
441 from = SLV_156
442 def = 4096
443 min = 0
444 max = 1 << 15
445 interval = 1
446 cat = SC_EXPERT
448 [SDT_VAR]
449 var = construction.clear_per_64k_frames
450 type = SLE_UINT32
451 from = SLV_156
452 def = 64 << 16
453 min = 0
454 max = 1 << 30
455 interval = 1
456 cat = SC_EXPERT
458 [SDT_VAR]
459 var = construction.clear_frame_burst
460 type = SLE_UINT16
461 from = SLV_156
462 def = 4096
463 min = 0
464 max = 1 << 15
465 interval = 1
466 cat = SC_EXPERT
468 [SDT_VAR]
469 var = construction.tree_per_64k_frames
470 type = SLE_UINT32
471 from = SLV_175
472 def = 64 << 16
473 min = 0
474 max = 1 << 30
475 interval = 1
476 cat = SC_EXPERT
478 [SDT_VAR]
479 var = construction.tree_frame_burst
480 type = SLE_UINT16
481 from = SLV_175
482 def = 4096
483 min = 0
484 max = 1 << 15
485 interval = 1
486 cat = SC_EXPERT
488 [SDT_BOOL]
489 var = construction.autoslope
490 from = SLV_75
491 def = true
492 str = STR_CONFIG_SETTING_AUTOSLOPE
493 strhelp = STR_CONFIG_SETTING_AUTOSLOPE_HELPTEXT
494 cat = SC_EXPERT
496 [SDT_BOOL]
497 var = construction.extra_dynamite
498 def = true
499 str = STR_CONFIG_SETTING_EXTRADYNAMITE
500 strhelp = STR_CONFIG_SETTING_EXTRADYNAMITE_HELPTEXT
502 [SDT_VAR]
503 var = construction.max_bridge_length
504 type = SLE_UINT16
505 from = SLV_159
506 flags = SF_NO_NETWORK
507 def = 64
508 min = 1
509 max = MAX_MAP_SIZE
510 interval = 1
511 str = STR_CONFIG_SETTING_MAX_BRIDGE_LENGTH
512 strhelp = STR_CONFIG_SETTING_MAX_BRIDGE_LENGTH_HELPTEXT
513 strval = STR_CONFIG_SETTING_TILE_LENGTH
515 [SDT_VAR]
516 var = construction.max_bridge_height
517 type = SLE_UINT8
518 from = SLV_194
519 flags = SF_NO_NETWORK
520 def = 12
521 min = 1
522 max = MAX_TILE_HEIGHT
523 interval = 1
524 str = STR_CONFIG_SETTING_MAX_BRIDGE_HEIGHT
525 strhelp = STR_CONFIG_SETTING_MAX_BRIDGE_HEIGHT_HELPTEXT
526 strval = STR_JUST_COMMA
527 cat = SC_EXPERT
529 [SDT_VAR]
530 var = construction.max_tunnel_length
531 type = SLE_UINT16
532 from = SLV_159
533 flags = SF_NO_NETWORK
534 def = 64
535 min = 1
536 max = MAX_MAP_SIZE
537 interval = 1
538 str = STR_CONFIG_SETTING_MAX_TUNNEL_LENGTH
539 strhelp = STR_CONFIG_SETTING_MAX_TUNNEL_LENGTH_HELPTEXT
540 strval = STR_CONFIG_SETTING_TILE_LENGTH
542 # construction.longbridges
543 [SDT_NULL]
544 length = 1
545 to = SLV_159
547 [SDT_VAR]
548 var = construction.train_signal_side
549 type = SLE_UINT8
550 flags = SF_GUI_DROPDOWN | SF_NO_NETWORK
551 def = 1
552 min = 0
553 max = 2
554 str = STR_CONFIG_SETTING_SIGNALSIDE
555 strhelp = STR_CONFIG_SETTING_SIGNALSIDE_HELPTEXT
556 strval = STR_CONFIG_SETTING_SIGNALSIDE_LEFT
557 post_cb = [](auto) { MarkWholeScreenDirty(); }
558 cat = SC_BASIC
560 [SDT_BOOL]
561 var = station.never_expire_airports
562 flags = SF_NO_NETWORK
563 def = false
564 str = STR_CONFIG_SETTING_NEVER_EXPIRE_AIRPORTS
565 strhelp = STR_CONFIG_SETTING_NEVER_EXPIRE_AIRPORTS_HELPTEXT
567 [SDT_VAR]
568 var = economy.town_layout
569 type = SLE_UINT8
570 from = SLV_59
571 flags = SF_GUI_DROPDOWN
572 def = TL_ORIGINAL
573 min = TL_BEGIN
574 max = NUM_TLS - 1
575 interval = 1
576 str = STR_CONFIG_SETTING_TOWN_LAYOUT
577 strhelp = STR_CONFIG_SETTING_TOWN_LAYOUT_HELPTEXT
578 strval = STR_CONFIG_SETTING_TOWN_LAYOUT_DEFAULT
579 post_cb = TownFoundingChanged
581 [SDT_BOOL]
582 var = economy.allow_town_roads
583 from = SLV_113
584 flags = SF_NO_NETWORK
585 def = true
586 str = STR_CONFIG_SETTING_ALLOW_TOWN_ROADS
587 strhelp = STR_CONFIG_SETTING_ALLOW_TOWN_ROADS_HELPTEXT
589 [SDT_VAR]
590 var = economy.found_town
591 type = SLE_UINT8
592 from = SLV_128
593 flags = SF_GUI_DROPDOWN
594 def = TF_FORBIDDEN
595 min = TF_BEGIN
596 max = TF_END - 1
597 interval = 1
598 str = STR_CONFIG_SETTING_TOWN_FOUNDING
599 strhelp = STR_CONFIG_SETTING_TOWN_FOUNDING_HELPTEXT
600 strval = STR_CONFIG_SETTING_TOWN_FOUNDING_FORBIDDEN
601 post_cb = TownFoundingChanged
602 cat = SC_BASIC
604 [SDT_BOOL]
605 var = economy.allow_town_level_crossings
606 from = SLV_143
607 flags = SF_NO_NETWORK
608 def = true
609 str = STR_CONFIG_SETTING_ALLOW_TOWN_LEVEL_CROSSINGS
610 strhelp = STR_CONFIG_SETTING_ALLOW_TOWN_LEVEL_CROSSINGS_HELPTEXT
612 [SDT_VAR]
613 var = economy.town_cargogen_mode
614 type = SLE_UINT8
615 from = SLV_TOWN_CARGOGEN
616 flags = SF_GUI_DROPDOWN
617 def = TCGM_BITCOUNT
618 min = TCGM_BEGIN
619 max = TCGM_END - 1
620 interval = 1
621 str = STR_CONFIG_SETTING_TOWN_CARGOGENMODE
622 strhelp = STR_CONFIG_SETTING_TOWN_CARGOGENMODE_HELPTEXT
623 strval = STR_CONFIG_SETTING_TOWN_CARGOGENMODE_ORIGINAL
624 cat = SC_ADVANCED
626 ; link graph
628 [SDT_VAR]
629 var = linkgraph.recalc_interval
630 type = SLE_UINT16
631 from = SLV_183
632 def = 4
633 min = 2
634 max = 32
635 interval = 2
636 str = STR_CONFIG_SETTING_LINKGRAPH_INTERVAL
637 strval = STR_JUST_COMMA
638 strhelp = STR_CONFIG_SETTING_LINKGRAPH_INTERVAL_HELPTEXT
639 extra = offsetof(LinkGraphSettings, recalc_interval)
641 [SDT_VAR]
642 var = linkgraph.recalc_time
643 type = SLE_UINT16
644 from = SLV_183
645 def = 16
646 min = 1
647 max = 4096
648 interval = 1
649 str = STR_CONFIG_SETTING_LINKGRAPH_TIME
650 strval = STR_JUST_COMMA
651 strhelp = STR_CONFIG_SETTING_LINKGRAPH_TIME_HELPTEXT
652 extra = offsetof(LinkGraphSettings, recalc_time)
655 [SDT_VAR]
656 var = linkgraph.distribution_pax
657 type = SLE_UINT8
658 from = SLV_183
659 flags = SF_GUI_DROPDOWN
660 def = DT_MANUAL
661 min = DT_MIN
662 max = DT_MAX
663 interval = 1
664 str = STR_CONFIG_SETTING_DISTRIBUTION_PAX
665 strval = STR_CONFIG_SETTING_DISTRIBUTION_MANUAL
666 strhelp = STR_CONFIG_SETTING_DISTRIBUTION_PAX_HELPTEXT
667 extra = offsetof(LinkGraphSettings, distribution_pax)
670 [SDT_VAR]
671 var = linkgraph.distribution_mail
672 type = SLE_UINT8
673 from = SLV_183
674 flags = SF_GUI_DROPDOWN
675 def = DT_MANUAL
676 min = DT_MIN
677 max = DT_MAX
678 interval = 1
679 str = STR_CONFIG_SETTING_DISTRIBUTION_MAIL
680 strval = STR_CONFIG_SETTING_DISTRIBUTION_MANUAL
681 strhelp = STR_CONFIG_SETTING_DISTRIBUTION_MAIL_HELPTEXT
682 extra = offsetof(LinkGraphSettings, distribution_mail)
685 [SDT_VAR]
686 var = linkgraph.distribution_armoured
687 type = SLE_UINT8
688 from = SLV_183
689 flags = SF_GUI_DROPDOWN
690 def = DT_MANUAL
691 min = DT_MIN
692 max = DT_MAX
693 interval = 1
694 str = STR_CONFIG_SETTING_DISTRIBUTION_ARMOURED
695 strval = STR_CONFIG_SETTING_DISTRIBUTION_MANUAL
696 strhelp = STR_CONFIG_SETTING_DISTRIBUTION_ARMOURED_HELPTEXT
697 extra = offsetof(LinkGraphSettings, distribution_armoured)
700 [SDT_VAR]
701 var = linkgraph.distribution_default
702 type = SLE_UINT8
703 from = SLV_183
704 flags = SF_GUI_DROPDOWN
705 def = DT_MANUAL
706 min = DT_BEGIN
707 max = DT_MAX_NONSYMMETRIC
708 interval = 1
709 str = STR_CONFIG_SETTING_DISTRIBUTION_DEFAULT
710 strval = STR_CONFIG_SETTING_DISTRIBUTION_MANUAL
711 strhelp = STR_CONFIG_SETTING_DISTRIBUTION_DEFAULT_HELPTEXT
712 extra = offsetof(LinkGraphSettings, distribution_default)
715 [SDT_VAR]
716 var = linkgraph.accuracy
717 type = SLE_UINT8
718 from = SLV_183
719 def = 16
720 min = 2
721 max = 64
722 interval = 1
723 str = STR_CONFIG_SETTING_LINKGRAPH_ACCURACY
724 strval = STR_JUST_COMMA
725 strhelp = STR_CONFIG_SETTING_LINKGRAPH_ACCURACY_HELPTEXT
726 extra = offsetof(LinkGraphSettings, accuracy)
729 [SDT_VAR]
730 var = linkgraph.demand_distance
731 type = SLE_UINT8
732 from = SLV_183
733 def = 100
734 min = 0
735 max = 255
736 interval = 5
737 str = STR_CONFIG_SETTING_DEMAND_DISTANCE
738 strval = STR_CONFIG_SETTING_PERCENTAGE
739 strhelp = STR_CONFIG_SETTING_DEMAND_DISTANCE_HELPTEXT
740 extra = offsetof(LinkGraphSettings, demand_distance)
743 [SDT_VAR]
744 var = linkgraph.demand_size
745 type = SLE_UINT8
746 from = SLV_183
747 def = 100
748 min = 0
749 max = 100
750 interval = 5
751 str = STR_CONFIG_SETTING_DEMAND_SIZE
752 strval = STR_CONFIG_SETTING_PERCENTAGE
753 strhelp = STR_CONFIG_SETTING_DEMAND_SIZE_HELPTEXT
754 extra = offsetof(LinkGraphSettings, demand_size)
757 [SDT_VAR]
758 var = linkgraph.short_path_saturation
759 type = SLE_UINT8
760 from = SLV_183
761 def = 80
762 min = 0
763 max = 250
764 interval = 5
765 str = STR_CONFIG_SETTING_SHORT_PATH_SATURATION
766 strval = STR_CONFIG_SETTING_PERCENTAGE
767 strhelp = STR_CONFIG_SETTING_SHORT_PATH_SATURATION_HELPTEXT
768 extra = offsetof(LinkGraphSettings, short_path_saturation)
771 ; Vehicles
773 [SDT_VAR]
774 var = vehicle.train_acceleration_model
775 type = SLE_UINT8
776 flags = SF_GUI_DROPDOWN
777 def = 1
778 min = 0
779 max = 1
780 interval = 1
781 str = STR_CONFIG_SETTING_TRAIN_ACCELERATION_MODEL
782 strhelp = STR_CONFIG_SETTING_TRAIN_ACCELERATION_MODEL_HELPTEXT
783 strval = STR_CONFIG_SETTING_ORIGINAL
784 post_cb = TrainAccelerationModelChanged
786 [SDT_VAR]
787 var = vehicle.roadveh_acceleration_model
788 type = SLE_UINT8
789 from = SLV_139
790 flags = SF_GUI_DROPDOWN
791 def = 1
792 min = 0
793 max = 1
794 interval = 1
795 str = STR_CONFIG_SETTING_ROAD_VEHICLE_ACCELERATION_MODEL
796 strhelp = STR_CONFIG_SETTING_ROAD_VEHICLE_ACCELERATION_MODEL_HELPTEXT
797 strval = STR_CONFIG_SETTING_ORIGINAL
798 post_cb = RoadVehAccelerationModelChanged
800 [SDT_VAR]
801 var = vehicle.train_slope_steepness
802 type = SLE_UINT8
803 from = SLV_133
804 def = 3
805 min = 0
806 max = 10
807 interval = 1
808 str = STR_CONFIG_SETTING_TRAIN_SLOPE_STEEPNESS
809 strhelp = STR_CONFIG_SETTING_TRAIN_SLOPE_STEEPNESS_HELPTEXT
810 strval = STR_CONFIG_SETTING_PERCENTAGE
811 post_cb = TrainSlopeSteepnessChanged
812 cat = SC_EXPERT
814 [SDT_VAR]
815 var = vehicle.roadveh_slope_steepness
816 type = SLE_UINT8
817 from = SLV_139
818 def = 7
819 min = 0
820 max = 10
821 interval = 1
822 str = STR_CONFIG_SETTING_ROAD_VEHICLE_SLOPE_STEEPNESS
823 strhelp = STR_CONFIG_SETTING_ROAD_VEHICLE_SLOPE_STEEPNESS_HELPTEXT
824 strval = STR_CONFIG_SETTING_PERCENTAGE
825 post_cb = RoadVehSlopeSteepnessChanged
826 cat = SC_EXPERT
828 [SDT_BOOL]
829 var = pf.forbid_90_deg
830 def = false
831 str = STR_CONFIG_SETTING_FORBID_90_DEG
832 strhelp = STR_CONFIG_SETTING_FORBID_90_DEG_HELPTEXT
833 post_cb = InvalidateShipPathCache
834 cat = SC_EXPERT
836 [SDT_VAR]
837 var = vehicle.max_train_length
838 type = SLE_UINT8
839 from = SLV_159
840 def = 7
841 min = 1
842 max = 64
843 interval = 1
844 str = STR_CONFIG_SETTING_TRAIN_LENGTH
845 strhelp = STR_CONFIG_SETTING_TRAIN_LENGTH_HELPTEXT
846 strval = STR_CONFIG_SETTING_TILE_LENGTH
847 cat = SC_BASIC
849 ; vehicle.mammoth_trains
850 [SDT_NULL]
851 length = 1
852 to = SLV_159
854 [SDT_VAR]
855 var = vehicle.smoke_amount
856 type = SLE_UINT8
857 from = SLV_145
858 flags = SF_GUI_DROPDOWN
859 def = 1
860 min = 0
861 max = 2
862 str = STR_CONFIG_SETTING_SMOKE_AMOUNT
863 strhelp = STR_CONFIG_SETTING_SMOKE_AMOUNT_HELPTEXT
864 strval = STR_CONFIG_SETTING_NONE
866 ; order.gotodepot
867 [SDT_NULL]
868 length = 1
869 to = SLV_159
871 ; path finder
873 [SDT_BOOL]
874 var = pf.roadveh_queue
875 def = true
876 cat = SC_EXPERT
878 [SDT_BOOL]
879 var = pf.new_pathfinding_all
880 to = SLV_87
881 def = false
882 cat = SC_EXPERT
884 [SDT_BOOL]
885 var = pf.yapf.ship_use_yapf
886 from = SLV_28
887 to = SLV_87
888 def = false
889 cat = SC_EXPERT
891 [SDT_BOOL]
892 var = pf.yapf.road_use_yapf
893 from = SLV_28
894 to = SLV_87
895 def = true
896 cat = SC_EXPERT
898 [SDT_BOOL]
899 var = pf.yapf.rail_use_yapf
900 from = SLV_28
901 to = SLV_87
902 def = true
903 cat = SC_EXPERT
906 [SDT_VAR]
907 var = pf.pathfinder_for_trains
908 type = SLE_UINT8
909 from = SLV_87
910 flags = SF_GUI_DROPDOWN
911 def = 2
912 min = 1
913 max = 2
914 interval = 1
915 str = STR_CONFIG_SETTING_PATHFINDER_FOR_TRAINS
916 strhelp = STR_CONFIG_SETTING_PATHFINDER_FOR_TRAINS_HELPTEXT
917 strval = STR_CONFIG_SETTING_PATHFINDER_NPF
918 cat = SC_EXPERT
920 [SDT_VAR]
921 var = pf.pathfinder_for_roadvehs
922 type = SLE_UINT8
923 from = SLV_87
924 flags = SF_GUI_DROPDOWN
925 def = 2
926 min = 1
927 max = 2
928 interval = 1
929 str = STR_CONFIG_SETTING_PATHFINDER_FOR_ROAD_VEHICLES
930 strhelp = STR_CONFIG_SETTING_PATHFINDER_FOR_ROAD_VEHICLES_HELPTEXT
931 strval = STR_CONFIG_SETTING_PATHFINDER_NPF
932 cat = SC_EXPERT
934 [SDT_VAR]
935 var = pf.pathfinder_for_ships
936 type = SLE_UINT8
937 from = SLV_87
938 flags = SF_GUI_DROPDOWN
939 def = 2
940 min = 1
941 max = 2
942 interval = 1
943 str = STR_CONFIG_SETTING_PATHFINDER_FOR_SHIPS
944 strhelp = STR_CONFIG_SETTING_PATHFINDER_FOR_SHIPS_HELPTEXT
945 strval = STR_CONFIG_SETTING_PATHFINDER_NPF
946 post_cb = InvalidateShipPathCache
947 cat = SC_EXPERT
949 [SDT_BOOL]
950 var = vehicle.never_expire_vehicles
951 flags = SF_NO_NETWORK
952 def = false
953 str = STR_CONFIG_SETTING_NEVER_EXPIRE_VEHICLES
954 strhelp = STR_CONFIG_SETTING_NEVER_EXPIRE_VEHICLES_HELPTEXT
956 [SDT_VAR]
957 var = vehicle.max_trains
958 type = SLE_UINT16
959 def = 500
960 min = 0
961 max = 5000
962 str = STR_CONFIG_SETTING_MAX_TRAINS
963 strhelp = STR_CONFIG_SETTING_MAX_TRAINS_HELPTEXT
964 strval = STR_JUST_COMMA
965 post_cb = MaxVehiclesChanged
966 cat = SC_BASIC
968 [SDT_VAR]
969 var = vehicle.max_roadveh
970 type = SLE_UINT16
971 def = 500
972 min = 0
973 max = 5000
974 str = STR_CONFIG_SETTING_MAX_ROAD_VEHICLES
975 strhelp = STR_CONFIG_SETTING_MAX_ROAD_VEHICLES_HELPTEXT
976 strval = STR_JUST_COMMA
977 post_cb = MaxVehiclesChanged
978 cat = SC_BASIC
980 [SDT_VAR]
981 var = vehicle.max_aircraft
982 type = SLE_UINT16
983 def = 200
984 min = 0
985 max = 5000
986 str = STR_CONFIG_SETTING_MAX_AIRCRAFT
987 strhelp = STR_CONFIG_SETTING_MAX_AIRCRAFT_HELPTEXT
988 strval = STR_JUST_COMMA
989 post_cb = MaxVehiclesChanged
990 cat = SC_BASIC
992 [SDT_VAR]
993 var = vehicle.max_ships
994 type = SLE_UINT16
995 def = 300
996 min = 0
997 max = 5000
998 str = STR_CONFIG_SETTING_MAX_SHIPS
999 strhelp = STR_CONFIG_SETTING_MAX_SHIPS_HELPTEXT
1000 strval = STR_JUST_COMMA
1001 post_cb = MaxVehiclesChanged
1002 cat = SC_BASIC
1004 [SDTG_BOOL]
1005 name = nullptr
1006 flags = SF_NO_NETWORK
1007 var = _old_vds.servint_ispercent
1008 def = false
1009 to = SLV_120
1011 [SDTG_VAR]
1012 name = nullptr
1013 type = SLE_UINT16
1014 flags = SF_GUI_0_IS_SPECIAL
1015 var = _old_vds.servint_trains
1016 def = 150
1017 min = 5
1018 max = 800
1019 to = SLV_120
1021 [SDTG_VAR]
1022 name = nullptr
1023 type = SLE_UINT16
1024 flags = SF_GUI_0_IS_SPECIAL
1025 var = _old_vds.servint_roadveh
1026 def = 150
1027 min = 5
1028 max = 800
1029 to = SLV_120
1031 [SDTG_VAR]
1032 name = nullptr
1033 type = SLE_UINT16
1034 flags = SF_GUI_0_IS_SPECIAL
1035 var = _old_vds.servint_ships
1036 def = 360
1037 min = 5
1038 max = 800
1039 to = SLV_120
1041 [SDTG_VAR]
1042 name = nullptr
1043 type = SLE_UINT16
1044 flags = SF_GUI_0_IS_SPECIAL
1045 var = _old_vds.servint_aircraft
1046 def = 150
1047 min = 5
1048 max = 800
1049 to = SLV_120
1051 [SDT_BOOL]
1052 var = order.no_servicing_if_no_breakdowns
1053 def = true
1054 str = STR_CONFIG_SETTING_NOSERVICE
1055 strhelp = STR_CONFIG_SETTING_NOSERVICE_HELPTEXT
1057 [SDT_BOOL]
1058 var = vehicle.wagon_speed_limits
1059 flags = SF_NO_NETWORK
1060 def = true
1061 str = STR_CONFIG_SETTING_WAGONSPEEDLIMITS
1062 strhelp = STR_CONFIG_SETTING_WAGONSPEEDLIMITS_HELPTEXT
1063 post_cb = UpdateConsists
1065 [SDT_BOOL]
1066 var = vehicle.disable_elrails
1067 from = SLV_38
1068 flags = SF_NO_NETWORK
1069 def = false
1070 str = STR_CONFIG_SETTING_DISABLE_ELRAILS
1071 strhelp = STR_CONFIG_SETTING_DISABLE_ELRAILS_HELPTEXT
1072 post_cb = SettingsDisableElrail
1073 cat = SC_EXPERT
1075 [SDT_VAR]
1076 var = vehicle.freight_trains
1077 type = SLE_UINT8
1078 from = SLV_39
1079 flags = SF_NO_NETWORK
1080 def = 1
1081 min = 1
1082 max = 255
1083 interval = 1
1084 str = STR_CONFIG_SETTING_FREIGHT_TRAINS
1085 strhelp = STR_CONFIG_SETTING_FREIGHT_TRAINS_HELPTEXT
1086 strval = STR_JUST_COMMA
1087 post_cb = UpdateConsists
1089 ; order.timetabling
1090 [SDT_NULL]
1091 length = 1
1092 from = SLV_67
1093 to = SLV_159
1095 [SDT_VAR]
1096 var = vehicle.plane_speed
1097 type = SLE_UINT8
1098 from = SLV_90
1099 flags = SF_NO_NETWORK
1100 def = 4
1101 min = 1
1102 max = 4
1103 str = STR_CONFIG_SETTING_PLANE_SPEED
1104 strhelp = STR_CONFIG_SETTING_PLANE_SPEED_HELPTEXT
1105 strval = STR_CONFIG_SETTING_PLANE_SPEED_VALUE
1107 [SDT_BOOL]
1108 var = vehicle.dynamic_engines
1109 from = SLV_95
1110 flags = SF_NO_NETWORK
1111 def = true
1112 pre_cb = CheckDynamicEngines
1113 cat = SC_EXPERT
1115 [SDT_VAR]
1116 var = vehicle.plane_crashes
1117 type = SLE_UINT8
1118 from = SLV_138
1119 flags = SF_GUI_DROPDOWN
1120 def = 2
1121 min = 0
1122 max = 2
1123 interval = 1
1124 str = STR_CONFIG_SETTING_PLANE_CRASHES
1125 strhelp = STR_CONFIG_SETTING_PLANE_CRASHES_HELPTEXT
1126 strval = STR_CONFIG_SETTING_PLANE_CRASHES_NONE
1127 cat = SC_BASIC
1129 ; station.join_stations
1130 [SDT_NULL]
1131 length = 1
1132 to = SLV_159
1134 [SDTC_BOOL]
1135 var = gui.sg_full_load_any
1136 from = SLV_22
1137 to = SLV_93
1138 def = true
1140 [SDT_BOOL]
1141 var = order.improved_load
1142 flags = SF_NO_NETWORK
1143 def = true
1144 cat = SC_EXPERT
1146 [SDT_BOOL]
1147 var = order.selectgoods
1148 def = true
1149 cat = SC_EXPERT
1151 [SDTC_BOOL]
1152 var = gui.sg_new_nonstop
1153 from = SLV_22
1154 to = SLV_93
1155 def = false
1157 ; station.nonuniform_stations
1158 [SDT_NULL]
1159 length = 1
1160 to = SLV_159
1162 [SDT_VAR]
1163 var = station.station_spread
1164 type = SLE_UINT8
1165 def = 12
1166 min = 4
1167 max = 64
1168 str = STR_CONFIG_SETTING_STATION_SPREAD
1169 strhelp = STR_CONFIG_SETTING_STATION_SPREAD_HELPTEXT
1170 strval = STR_CONFIG_SETTING_TILE_LENGTH
1171 post_cb = StationSpreadChanged
1172 cat = SC_BASIC
1174 [SDT_BOOL]
1175 var = order.serviceathelipad
1176 def = true
1177 str = STR_CONFIG_SETTING_SERVICEATHELIPAD
1178 strhelp = STR_CONFIG_SETTING_SERVICEATHELIPAD_HELPTEXT
1179 cat = SC_EXPERT
1181 [SDT_BOOL]
1182 var = station.modified_catchment
1183 def = true
1184 str = STR_CONFIG_SETTING_CATCHMENT
1185 strhelp = STR_CONFIG_SETTING_CATCHMENT_HELPTEXT
1186 post_cb = StationCatchmentChanged
1187 cat = SC_EXPERT
1189 [SDT_BOOL]
1190 var = station.serve_neutral_industries
1191 def = true
1192 from = SLV_SERVE_NEUTRAL_INDUSTRIES
1193 str = STR_CONFIG_SETTING_SERVE_NEUTRAL_INDUSTRIES
1194 strhelp = STR_CONFIG_SETTING_SERVE_NEUTRAL_INDUSTRIES_HELPTEXT
1195 post_cb = StationCatchmentChanged
1197 [SDT_BOOL]
1198 var = order.gradual_loading
1199 from = SLV_40
1200 flags = SF_NO_NETWORK
1201 def = true
1202 cat = SC_EXPERT
1204 [SDT_BOOL]
1205 var = construction.road_stop_on_town_road
1206 from = SLV_47
1207 def = true
1208 str = STR_CONFIG_SETTING_STOP_ON_TOWN_ROAD
1209 strhelp = STR_CONFIG_SETTING_STOP_ON_TOWN_ROAD_HELPTEXT
1210 cat = SC_BASIC
1212 [SDT_BOOL]
1213 var = construction.road_stop_on_competitor_road
1214 from = SLV_114
1215 def = true
1216 str = STR_CONFIG_SETTING_STOP_ON_COMPETITOR_ROAD
1217 strhelp = STR_CONFIG_SETTING_STOP_ON_COMPETITOR_ROAD_HELPTEXT
1218 cat = SC_BASIC
1220 [SDT_BOOL]
1221 var = station.adjacent_stations
1222 from = SLV_62
1223 def = true
1224 cat = SC_EXPERT
1226 [SDT_BOOL]
1227 var = economy.station_noise_level
1228 from = SLV_96
1229 flags = SF_NO_NETWORK
1230 def = false
1231 str = STR_CONFIG_SETTING_NOISE_LEVEL
1232 strhelp = STR_CONFIG_SETTING_NOISE_LEVEL_HELPTEXT
1233 post_cb = [](auto new_value) { InvalidateWindowClassesData(WC_TOWN_VIEW, new_value); }
1235 [SDT_BOOL]
1236 var = station.distant_join_stations
1237 from = SLV_106
1238 def = true
1239 str = STR_CONFIG_SETTING_DISTANT_JOIN_STATIONS
1240 strhelp = STR_CONFIG_SETTING_DISTANT_JOIN_STATIONS_HELPTEXT
1241 post_cb = [](auto) { CloseWindowById(WC_SELECT_STATION, 0); }
1244 [SDT_BOOL]
1245 var = economy.inflation
1246 flags = SF_NO_NETWORK
1247 def = false
1248 str = STR_CONFIG_SETTING_INFLATION
1249 strhelp = STR_CONFIG_SETTING_INFLATION_HELPTEXT
1250 cat = SC_BASIC
1252 [SDT_VAR]
1253 var = construction.raw_industry_construction
1254 type = SLE_UINT8
1255 flags = SF_GUI_DROPDOWN
1256 def = 0
1257 min = 0
1258 max = 2
1259 str = STR_CONFIG_SETTING_RAW_INDUSTRY_CONSTRUCTION_METHOD
1260 strhelp = STR_CONFIG_SETTING_RAW_INDUSTRY_CONSTRUCTION_METHOD_HELPTEXT
1261 strval = STR_CONFIG_SETTING_RAW_INDUSTRY_CONSTRUCTION_METHOD_NONE
1262 post_cb = [](auto) { InvalidateWindowData(WC_BUILD_INDUSTRY, 0); }
1263 cat = SC_BASIC
1265 [SDT_VAR]
1266 var = construction.industry_platform
1267 type = SLE_UINT8
1268 from = SLV_148
1269 def = 1
1270 min = 0
1271 max = 4
1272 str = STR_CONFIG_SETTING_INDUSTRY_PLATFORM
1273 strhelp = STR_CONFIG_SETTING_INDUSTRY_PLATFORM_HELPTEXT
1274 strval = STR_CONFIG_SETTING_TILE_LENGTH
1275 cat = SC_EXPERT
1277 [SDT_BOOL]
1278 var = economy.multiple_industry_per_town
1279 def = false
1280 str = STR_CONFIG_SETTING_MULTIPINDTOWN
1281 strhelp = STR_CONFIG_SETTING_MULTIPINDTOWN_HELPTEXT
1283 [SDT_NULL]
1284 length = 1
1285 to = SLV_141
1287 [SDT_BOOL]
1288 var = economy.bribe
1289 def = true
1290 str = STR_CONFIG_SETTING_BRIBE
1291 strhelp = STR_CONFIG_SETTING_BRIBE_HELPTEXT
1292 post_cb = [](auto) { SetWindowClassesDirty(WC_TOWN_AUTHORITY); }
1293 cat = SC_BASIC
1295 [SDT_BOOL]
1296 var = economy.exclusive_rights
1297 from = SLV_79
1298 def = true
1299 str = STR_CONFIG_SETTING_ALLOW_EXCLUSIVE
1300 strhelp = STR_CONFIG_SETTING_ALLOW_EXCLUSIVE_HELPTEXT
1301 post_cb = [](auto) { SetWindowClassesDirty(WC_TOWN_AUTHORITY); }
1302 cat = SC_BASIC
1304 [SDT_BOOL]
1305 var = economy.fund_buildings
1306 from = SLV_165
1307 def = true
1308 str = STR_CONFIG_SETTING_ALLOW_FUND_BUILDINGS
1309 strhelp = STR_CONFIG_SETTING_ALLOW_FUND_BUILDINGS_HELPTEXT
1310 post_cb = [](auto) { SetWindowClassesDirty(WC_TOWN_AUTHORITY); }
1311 cat = SC_BASIC
1313 [SDT_BOOL]
1314 var = economy.fund_roads
1315 from = SLV_160
1316 def = true
1317 str = STR_CONFIG_SETTING_ALLOW_FUND_ROAD
1318 strhelp = STR_CONFIG_SETTING_ALLOW_FUND_ROAD_HELPTEXT
1319 post_cb = [](auto) { SetWindowClassesDirty(WC_TOWN_AUTHORITY); }
1320 cat = SC_BASIC
1322 [SDT_BOOL]
1323 var = economy.give_money
1324 from = SLV_79
1325 def = true
1326 str = STR_CONFIG_SETTING_ALLOW_GIVE_MONEY
1327 strhelp = STR_CONFIG_SETTING_ALLOW_GIVE_MONEY_HELPTEXT
1328 cat = SC_BASIC
1330 [SDT_VAR]
1331 var = game_creation.snow_line_height
1332 type = SLE_UINT8
1333 flags = SF_SCENEDIT_ONLY
1334 def = DEF_SNOWLINE_HEIGHT
1335 min = MIN_SNOWLINE_HEIGHT
1336 max = MAX_SNOWLINE_HEIGHT
1337 interval = 1
1338 str = STR_CONFIG_SETTING_SNOWLINE_HEIGHT
1339 strhelp = STR_CONFIG_SETTING_SNOWLINE_HEIGHT_HELPTEXT
1340 strval = STR_JUST_COMMA
1341 cat = SC_BASIC
1343 [SDT_VAR]
1344 var = game_creation.snow_coverage
1345 type = SLE_UINT8
1346 from = SLV_MAPGEN_SETTINGS_REVAMP
1347 flags = SF_NEWGAME_ONLY
1348 def = DEF_SNOW_COVERAGE
1349 min = 0
1350 max = 100
1351 interval = 10
1352 str = STR_CONFIG_SETTING_SNOW_COVERAGE
1353 strhelp = STR_CONFIG_SETTING_SNOW_COVERAGE_HELPTEXT
1354 strval = STR_CONFIG_SETTING_SNOW_COVERAGE_VALUE
1355 cat = SC_BASIC
1357 [SDT_VAR]
1358 var = game_creation.desert_coverage
1359 type = SLE_UINT8
1360 from = SLV_MAPGEN_SETTINGS_REVAMP
1361 flags = SF_NEWGAME_ONLY
1362 def = DEF_DESERT_COVERAGE
1363 min = 0
1364 max = 100
1365 interval = 10
1366 str = STR_CONFIG_SETTING_DESERT_COVERAGE
1367 strhelp = STR_CONFIG_SETTING_DESERT_COVERAGE_HELPTEXT
1368 strval = STR_CONFIG_SETTING_DESERT_COVERAGE_VALUE
1369 cat = SC_BASIC
1371 [SDT_NULL]
1372 length = 4
1373 to = SLV_144
1375 [SDT_VAR]
1376 var = game_creation.starting_year
1377 type = SLE_INT32
1378 def = DEF_START_YEAR
1379 min = MIN_YEAR
1380 max = MAX_YEAR
1381 interval = 1
1382 str = STR_CONFIG_SETTING_STARTING_YEAR
1383 strval = STR_JUST_INT
1384 cat = SC_BASIC
1386 [SDT_NULL]
1387 length = 4
1388 to = SLV_105
1390 [SDT_VAR]
1391 var = game_creation.ending_year
1392 type = SLE_INT32
1393 from = SLV_ENDING_YEAR
1394 flags = SF_GUI_0_IS_SPECIAL
1395 def = DEF_END_YEAR
1396 min = MIN_YEAR
1397 max = MAX_YEAR - 1
1398 interval = 1
1399 str = STR_CONFIG_SETTING_ENDING_YEAR
1400 strhelp = STR_CONFIG_SETTING_ENDING_YEAR_HELPTEXT
1401 strval = STR_CONFIG_SETTING_ENDING_YEAR_VALUE
1402 cat = SC_ADVANCED
1404 [SDT_VAR]
1405 var = economy.type
1406 type = SLE_UINT8
1407 flags = SF_GUI_DROPDOWN
1408 def = ET_SMOOTH
1409 min = ET_BEGIN
1410 max = ET_END - 1
1411 str = STR_CONFIG_SETTING_ECONOMY_TYPE
1412 strhelp = STR_CONFIG_SETTING_ECONOMY_TYPE_HELPTEXT
1413 strval = STR_CONFIG_SETTING_ECONOMY_TYPE_ORIGINAL
1414 post_cb = [](auto) { InvalidateWindowClassesData(WC_INDUSTRY_VIEW); }
1415 cat = SC_BASIC
1417 [SDT_BOOL]
1418 var = economy.allow_shares
1419 def = false
1420 str = STR_CONFIG_SETTING_ALLOW_SHARES
1421 strhelp = STR_CONFIG_SETTING_ALLOW_SHARES_HELPTEXT
1422 post_cb = [](auto) { InvalidateWindowClassesData(WC_COMPANY); }
1424 [SDT_VAR]
1425 var = economy.min_years_for_shares
1426 type = SLE_UINT8
1427 from = SLV_TRADING_AGE
1428 def = 6
1429 min = 0
1430 max = 255
1431 interval = 1
1432 str = STR_CONFIG_SETTING_MIN_YEARS_FOR_SHARES
1433 strhelp = STR_CONFIG_SETTING_MIN_YEARS_FOR_SHARES_HELPTEXT
1434 strval = STR_JUST_INT
1435 cat = SC_EXPERT
1437 [SDT_VAR]
1438 var = economy.feeder_payment_share
1439 type = SLE_UINT8
1440 from = SLV_134
1441 def = 75
1442 min = 0
1443 max = 100
1444 str = STR_CONFIG_SETTING_FEEDER_PAYMENT_SHARE
1445 strhelp = STR_CONFIG_SETTING_FEEDER_PAYMENT_SHARE_HELPTEXT
1446 strval = STR_CONFIG_SETTING_PERCENTAGE
1447 cat = SC_EXPERT
1449 [SDT_VAR]
1450 var = economy.town_growth_rate
1451 type = SLE_UINT8
1452 from = SLV_54
1453 flags = SF_GUI_DROPDOWN
1454 def = 2
1455 min = 0
1456 max = 4
1457 str = STR_CONFIG_SETTING_TOWN_GROWTH
1458 strhelp = STR_CONFIG_SETTING_TOWN_GROWTH_HELPTEXT
1459 strval = STR_CONFIG_SETTING_TOWN_GROWTH_NONE
1461 [SDT_VAR]
1462 var = economy.larger_towns
1463 type = SLE_UINT8
1464 from = SLV_54
1465 flags = SF_GUI_0_IS_SPECIAL
1466 def = 4
1467 min = 0
1468 max = 255
1469 interval = 1
1470 str = STR_CONFIG_SETTING_LARGER_TOWNS
1471 strhelp = STR_CONFIG_SETTING_LARGER_TOWNS_HELPTEXT
1472 strval = STR_CONFIG_SETTING_LARGER_TOWNS_VALUE
1474 [SDT_VAR]
1475 var = economy.initial_city_size
1476 type = SLE_UINT8
1477 from = SLV_56
1478 def = 2
1479 min = 1
1480 max = 10
1481 interval = 1
1482 str = STR_CONFIG_SETTING_CITY_SIZE_MULTIPLIER
1483 strhelp = STR_CONFIG_SETTING_CITY_SIZE_MULTIPLIER_HELPTEXT
1484 strval = STR_JUST_COMMA
1486 [SDT_BOOL]
1487 var = economy.mod_road_rebuild
1488 from = SLV_77
1489 def = true
1490 cat = SC_EXPERT
1492 ; previously ai-new setting.
1493 [SDT_NULL]
1494 length = 1
1495 to = SLV_107
1497 [SDT_OMANY]
1498 var = script.settings_profile
1499 type = SLE_UINT8
1500 from = SLV_178
1501 flags = SF_GUI_DROPDOWN
1502 def = SP_EASY
1503 min = SP_EASY
1504 max = SP_HARD
1505 full = _settings_profiles
1506 str = STR_CONFIG_SETTING_AI_PROFILE
1507 strhelp = STR_CONFIG_SETTING_AI_PROFILE_HELPTEXT
1508 strval = STR_CONFIG_SETTING_AI_PROFILE_EASY
1509 cat = SC_BASIC
1511 [SDT_BOOL]
1512 var = ai.ai_in_multiplayer
1513 def = true
1514 str = STR_CONFIG_SETTING_AI_IN_MULTIPLAYER
1515 strhelp = STR_CONFIG_SETTING_AI_IN_MULTIPLAYER_HELPTEXT
1516 cat = SC_BASIC
1518 [SDT_BOOL]
1519 var = ai.ai_disable_veh_train
1520 def = false
1521 str = STR_CONFIG_SETTING_AI_BUILDS_TRAINS
1522 strhelp = STR_CONFIG_SETTING_AI_BUILDS_TRAINS_HELPTEXT
1524 [SDT_BOOL]
1525 var = ai.ai_disable_veh_roadveh
1526 def = false
1527 str = STR_CONFIG_SETTING_AI_BUILDS_ROAD_VEHICLES
1528 strhelp = STR_CONFIG_SETTING_AI_BUILDS_ROAD_VEHICLES_HELPTEXT
1530 [SDT_BOOL]
1531 var = ai.ai_disable_veh_aircraft
1532 def = false
1533 str = STR_CONFIG_SETTING_AI_BUILDS_AIRCRAFT
1534 strhelp = STR_CONFIG_SETTING_AI_BUILDS_AIRCRAFT_HELPTEXT
1536 [SDT_BOOL]
1537 var = ai.ai_disable_veh_ship
1538 def = false
1539 str = STR_CONFIG_SETTING_AI_BUILDS_SHIPS
1540 strhelp = STR_CONFIG_SETTING_AI_BUILDS_SHIPS_HELPTEXT
1542 [SDT_VAR]
1543 var = script.script_max_opcode_till_suspend
1544 type = SLE_UINT32
1545 from = SLV_107
1546 flags = SF_NEWGAME_ONLY
1547 def = 10000
1548 min = 500
1549 max = 250000
1550 interval = 2500
1551 str = STR_CONFIG_SETTING_SCRIPT_MAX_OPCODES
1552 strhelp = STR_CONFIG_SETTING_SCRIPT_MAX_OPCODES_HELPTEXT
1553 strval = STR_JUST_COMMA
1554 cat = SC_EXPERT
1556 [SDT_VAR]
1557 var = script.script_max_memory_megabytes
1558 type = SLE_UINT32
1559 from = SLV_SCRIPT_MEMLIMIT
1560 flags = SF_NEWGAME_ONLY
1561 def = 1024
1562 min = 8
1563 max = 8192
1564 interval = 8
1565 str = STR_CONFIG_SETTING_SCRIPT_MAX_MEMORY
1566 strhelp = STR_CONFIG_SETTING_SCRIPT_MAX_MEMORY_HELPTEXT
1567 strval = STR_CONFIG_SETTING_SCRIPT_MAX_MEMORY_VALUE
1568 cat = SC_EXPERT
1571 [SDT_VAR]
1572 var = vehicle.extend_vehicle_life
1573 type = SLE_UINT8
1574 def = 0
1575 min = 0
1576 max = 100
1577 cat = SC_EXPERT
1579 [SDT_VAR]
1580 var = economy.dist_local_authority
1581 type = SLE_UINT8
1582 def = 20
1583 min = 5
1584 max = 60
1585 cat = SC_EXPERT
1587 [SDT_BOOL]
1588 var = pf.reverse_at_signals
1589 from = SLV_159
1590 def = false
1591 str = STR_CONFIG_SETTING_REVERSE_AT_SIGNALS
1592 strhelp = STR_CONFIG_SETTING_REVERSE_AT_SIGNALS_HELPTEXT
1594 [SDT_VAR]
1595 var = pf.wait_oneway_signal
1596 type = SLE_UINT8
1597 def = 15
1598 min = 2
1599 max = 255
1600 cat = SC_EXPERT
1602 [SDT_VAR]
1603 var = pf.wait_twoway_signal
1604 type = SLE_UINT8
1605 def = 41
1606 min = 2
1607 max = 255
1608 cat = SC_EXPERT
1610 [SDT_VAR]
1611 var = economy.town_noise_population[0]
1612 type = SLE_UINT16
1613 from = SLV_96
1614 def = 800
1615 min = 200
1616 max = 65535
1617 cat = SC_EXPERT
1619 [SDT_VAR]
1620 var = economy.town_noise_population[1]
1621 type = SLE_UINT16
1622 from = SLV_96
1623 def = 2000
1624 min = 400
1625 max = 65535
1626 cat = SC_EXPERT
1628 [SDT_VAR]
1629 var = economy.town_noise_population[2]
1630 type = SLE_UINT16
1631 from = SLV_96
1632 def = 4000
1633 min = 800
1634 max = 65535
1635 cat = SC_EXPERT
1637 [SDT_BOOL]
1638 var = economy.infrastructure_maintenance
1639 from = SLV_166
1640 def = false
1641 str = STR_CONFIG_SETTING_INFRASTRUCTURE_MAINTENANCE
1642 strhelp = STR_CONFIG_SETTING_INFRASTRUCTURE_MAINTENANCE_HELPTEXT
1643 post_cb = [](auto) { InvalidateWindowClassesData(WC_COMPANY_INFRASTRUCTURE); }
1644 cat = SC_BASIC
1647 [SDT_VAR]
1648 var = pf.wait_for_pbs_path
1649 type = SLE_UINT8
1650 from = SLV_100
1651 def = 30
1652 min = 2
1653 max = 255
1654 cat = SC_EXPERT
1656 [SDT_BOOL]
1657 var = pf.reserve_paths
1658 from = SLV_100
1659 def = false
1660 cat = SC_EXPERT
1662 [SDT_VAR]
1663 var = pf.path_backoff_interval
1664 type = SLE_UINT8
1665 from = SLV_100
1666 def = 20
1667 min = 1
1668 max = 255
1669 cat = SC_EXPERT
1672 ; Used to be pf.opf.pf_maxlength & pf.opf.pf_maxdepth
1673 [SDT_NULL]
1674 length = 3
1675 to = SLV_REMOVE_OPF
1678 [SDT_VAR]
1679 var = pf.npf.npf_max_search_nodes
1680 type = SLE_UINT
1681 def = 10000
1682 min = 500
1683 max = 100000
1684 cat = SC_EXPERT
1686 [SDT_VAR]
1687 var = pf.npf.npf_rail_firstred_penalty
1688 type = SLE_UINT
1689 def = 10 * NPF_TILE_LENGTH
1690 min = 0
1691 max = 100000
1692 cat = SC_EXPERT
1694 [SDT_VAR]
1695 var = pf.npf.npf_rail_firstred_exit_penalty
1696 type = SLE_UINT
1697 def = 100 * NPF_TILE_LENGTH
1698 min = 0
1699 max = 100000
1700 cat = SC_EXPERT
1702 [SDT_VAR]
1703 var = pf.npf.npf_rail_lastred_penalty
1704 type = SLE_UINT
1705 def = 10 * NPF_TILE_LENGTH
1706 min = 0
1707 max = 100000
1708 cat = SC_EXPERT
1710 [SDT_VAR]
1711 var = pf.npf.npf_rail_station_penalty
1712 type = SLE_UINT
1713 def = 1 * NPF_TILE_LENGTH
1714 min = 0
1715 max = 100000
1716 cat = SC_EXPERT
1718 [SDT_VAR]
1719 var = pf.npf.npf_rail_slope_penalty
1720 type = SLE_UINT
1721 def = 1 * NPF_TILE_LENGTH
1722 min = 0
1723 max = 100000
1724 cat = SC_EXPERT
1726 [SDT_VAR]
1727 var = pf.npf.npf_rail_curve_penalty
1728 type = SLE_UINT
1729 def = 1 * NPF_TILE_LENGTH
1730 min = 0
1731 max = 100000
1732 cat = SC_EXPERT
1734 [SDT_VAR]
1735 var = pf.npf.npf_rail_depot_reverse_penalty
1736 type = SLE_UINT
1737 def = 50 * NPF_TILE_LENGTH
1738 min = 0
1739 max = 100000
1740 cat = SC_EXPERT
1742 [SDT_VAR]
1743 var = pf.npf.npf_rail_pbs_cross_penalty
1744 type = SLE_UINT
1745 from = SLV_100
1746 def = 3 * NPF_TILE_LENGTH
1747 min = 0
1748 max = 100000
1749 cat = SC_EXPERT
1751 [SDT_VAR]
1752 var = pf.npf.npf_rail_pbs_signal_back_penalty
1753 type = SLE_UINT
1754 from = SLV_100
1755 def = 15 * NPF_TILE_LENGTH
1756 min = 0
1757 max = 100000
1758 cat = SC_EXPERT
1760 [SDT_VAR]
1761 var = pf.npf.npf_buoy_penalty
1762 type = SLE_UINT
1763 def = 2 * NPF_TILE_LENGTH
1764 min = 0
1765 max = 100000
1766 cat = SC_EXPERT
1768 [SDT_VAR]
1769 var = pf.npf.npf_water_curve_penalty
1770 type = SLE_UINT
1771 def = 1 * NPF_TILE_LENGTH
1772 min = 0
1773 max = 100000
1774 cat = SC_EXPERT
1776 [SDT_VAR]
1777 var = pf.npf.npf_road_curve_penalty
1778 type = SLE_UINT
1779 def = 1 * NPF_TILE_LENGTH
1780 min = 0
1781 max = 100000
1782 cat = SC_EXPERT
1784 [SDT_VAR]
1785 var = pf.npf.npf_crossing_penalty
1786 type = SLE_UINT
1787 def = 3 * NPF_TILE_LENGTH
1788 min = 0
1789 max = 100000
1790 cat = SC_EXPERT
1792 [SDT_VAR]
1793 var = pf.npf.npf_road_drive_through_penalty
1794 type = SLE_UINT
1795 from = SLV_47
1796 def = 8 * NPF_TILE_LENGTH
1797 min = 0
1798 max = 100000
1799 cat = SC_EXPERT
1801 [SDT_VAR]
1802 var = pf.npf.npf_road_dt_occupied_penalty
1803 type = SLE_UINT
1804 from = SLV_130
1805 def = 8 * NPF_TILE_LENGTH
1806 min = 0
1807 max = 100000
1808 cat = SC_EXPERT
1810 [SDT_VAR]
1811 var = pf.npf.npf_road_bay_occupied_penalty
1812 type = SLE_UINT
1813 from = SLV_130
1814 def = 15 * NPF_TILE_LENGTH
1815 min = 0
1816 max = 100000
1817 cat = SC_EXPERT
1819 [SDT_VAR]
1820 var = pf.npf.maximum_go_to_depot_penalty
1821 type = SLE_UINT
1822 from = SLV_131
1823 def = 20 * NPF_TILE_LENGTH
1824 min = 0
1825 max = 1000000
1826 cat = SC_EXPERT
1829 [SDT_BOOL]
1830 var = pf.yapf.disable_node_optimization
1831 from = SLV_28
1832 def = false
1833 cat = SC_EXPERT
1835 [SDT_VAR]
1836 var = pf.yapf.max_search_nodes
1837 type = SLE_UINT
1838 from = SLV_28
1839 def = 10000
1840 min = 500
1841 max = 1000000
1842 cat = SC_EXPERT
1844 [SDT_BOOL]
1845 var = pf.yapf.rail_firstred_twoway_eol
1846 from = SLV_28
1847 def = false
1848 cat = SC_EXPERT
1850 [SDT_VAR]
1851 var = pf.yapf.rail_firstred_penalty
1852 type = SLE_UINT
1853 from = SLV_28
1854 def = 10 * YAPF_TILE_LENGTH
1855 min = 0
1856 max = 1000000
1857 cat = SC_EXPERT
1859 [SDT_VAR]
1860 var = pf.yapf.rail_firstred_exit_penalty
1861 type = SLE_UINT
1862 from = SLV_28
1863 def = 100 * YAPF_TILE_LENGTH
1864 min = 0
1865 max = 1000000
1866 cat = SC_EXPERT
1868 [SDT_VAR]
1869 var = pf.yapf.rail_lastred_penalty
1870 type = SLE_UINT
1871 from = SLV_28
1872 def = 10 * YAPF_TILE_LENGTH
1873 min = 0
1874 max = 1000000
1875 cat = SC_EXPERT
1877 [SDT_VAR]
1878 var = pf.yapf.rail_lastred_exit_penalty
1879 type = SLE_UINT
1880 from = SLV_28
1881 def = 100 * YAPF_TILE_LENGTH
1882 min = 0
1883 max = 1000000
1884 cat = SC_EXPERT
1886 [SDT_VAR]
1887 var = pf.yapf.rail_station_penalty
1888 type = SLE_UINT
1889 from = SLV_28
1890 def = 10 * YAPF_TILE_LENGTH
1891 min = 0
1892 max = 1000000
1893 cat = SC_EXPERT
1895 [SDT_VAR]
1896 var = pf.yapf.rail_slope_penalty
1897 type = SLE_UINT
1898 from = SLV_28
1899 def = 2 * YAPF_TILE_LENGTH
1900 min = 0
1901 max = 1000000
1902 cat = SC_EXPERT
1904 [SDT_VAR]
1905 var = pf.yapf.rail_curve45_penalty
1906 type = SLE_UINT
1907 from = SLV_28
1908 def = 1 * YAPF_TILE_LENGTH
1909 min = 0
1910 max = 1000000
1911 cat = SC_EXPERT
1913 [SDT_VAR]
1914 var = pf.yapf.rail_curve90_penalty
1915 type = SLE_UINT
1916 from = SLV_28
1917 def = 6 * YAPF_TILE_LENGTH
1918 min = 0
1919 max = 1000000
1920 cat = SC_EXPERT
1922 [SDT_VAR]
1923 var = pf.yapf.rail_depot_reverse_penalty
1924 type = SLE_UINT
1925 from = SLV_28
1926 def = 50 * YAPF_TILE_LENGTH
1927 min = 0
1928 max = 1000000
1929 cat = SC_EXPERT
1931 [SDT_VAR]
1932 var = pf.yapf.rail_crossing_penalty
1933 type = SLE_UINT
1934 from = SLV_28
1935 def = 3 * YAPF_TILE_LENGTH
1936 min = 0
1937 max = 1000000
1938 cat = SC_EXPERT
1940 [SDT_VAR]
1941 var = pf.yapf.rail_look_ahead_max_signals
1942 type = SLE_UINT
1943 from = SLV_28
1944 def = 10
1945 min = 1
1946 max = 100
1947 cat = SC_EXPERT
1949 [SDT_VAR]
1950 var = pf.yapf.rail_look_ahead_signal_p0
1951 type = SLE_INT
1952 from = SLV_28
1953 def = 500
1954 min = -1000000
1955 max = 1000000
1956 cat = SC_EXPERT
1958 [SDT_VAR]
1959 var = pf.yapf.rail_look_ahead_signal_p1
1960 type = SLE_INT
1961 from = SLV_28
1962 def = -100
1963 min = -1000000
1964 max = 1000000
1965 cat = SC_EXPERT
1967 [SDT_VAR]
1968 var = pf.yapf.rail_look_ahead_signal_p2
1969 type = SLE_INT
1970 from = SLV_28
1971 def = 5
1972 min = -1000000
1973 max = 1000000
1974 cat = SC_EXPERT
1976 [SDT_VAR]
1977 var = pf.yapf.rail_pbs_cross_penalty
1978 type = SLE_UINT
1979 from = SLV_100
1980 def = 3 * YAPF_TILE_LENGTH
1981 min = 0
1982 max = 1000000
1983 cat = SC_EXPERT
1985 [SDT_VAR]
1986 var = pf.yapf.rail_pbs_station_penalty
1987 type = SLE_UINT
1988 from = SLV_100
1989 def = 8 * YAPF_TILE_LENGTH
1990 min = 0
1991 max = 1000000
1992 cat = SC_EXPERT
1994 [SDT_VAR]
1995 var = pf.yapf.rail_pbs_signal_back_penalty
1996 type = SLE_UINT
1997 from = SLV_100
1998 def = 15 * YAPF_TILE_LENGTH
1999 min = 0
2000 max = 1000000
2001 cat = SC_EXPERT
2003 [SDT_VAR]
2004 var = pf.yapf.rail_doubleslip_penalty
2005 type = SLE_UINT
2006 from = SLV_100
2007 def = 1 * YAPF_TILE_LENGTH
2008 min = 0
2009 max = 1000000
2010 cat = SC_EXPERT
2012 [SDT_VAR]
2013 var = pf.yapf.rail_longer_platform_penalty
2014 type = SLE_UINT
2015 from = SLV_33
2016 def = 8 * YAPF_TILE_LENGTH
2017 min = 0
2018 max = 20000
2019 cat = SC_EXPERT
2021 [SDT_VAR]
2022 var = pf.yapf.rail_longer_platform_per_tile_penalty
2023 type = SLE_UINT
2024 from = SLV_33
2025 def = 0 * YAPF_TILE_LENGTH
2026 min = 0
2027 max = 20000
2028 cat = SC_EXPERT
2030 [SDT_VAR]
2031 var = pf.yapf.rail_shorter_platform_penalty
2032 type = SLE_UINT
2033 from = SLV_33
2034 def = 40 * YAPF_TILE_LENGTH
2035 min = 0
2036 max = 20000
2037 cat = SC_EXPERT
2039 [SDT_VAR]
2040 var = pf.yapf.rail_shorter_platform_per_tile_penalty
2041 type = SLE_UINT
2042 from = SLV_33
2043 def = 0 * YAPF_TILE_LENGTH
2044 min = 0
2045 max = 20000
2046 cat = SC_EXPERT
2048 [SDT_VAR]
2049 var = pf.yapf.road_slope_penalty
2050 type = SLE_UINT
2051 from = SLV_33
2052 def = 2 * YAPF_TILE_LENGTH
2053 min = 0
2054 max = 1000000
2055 cat = SC_EXPERT
2057 [SDT_VAR]
2058 var = pf.yapf.road_curve_penalty
2059 type = SLE_UINT
2060 from = SLV_33
2061 def = 1 * YAPF_TILE_LENGTH
2062 min = 0
2063 max = 1000000
2064 cat = SC_EXPERT
2066 [SDT_VAR]
2067 var = pf.yapf.road_crossing_penalty
2068 type = SLE_UINT
2069 from = SLV_33
2070 def = 3 * YAPF_TILE_LENGTH
2071 min = 0
2072 max = 1000000
2073 cat = SC_EXPERT
2075 [SDT_VAR]
2076 var = pf.yapf.road_stop_penalty
2077 type = SLE_UINT
2078 from = SLV_47
2079 def = 8 * YAPF_TILE_LENGTH
2080 min = 0
2081 max = 1000000
2082 cat = SC_EXPERT
2084 [SDT_VAR]
2085 var = pf.yapf.road_stop_occupied_penalty
2086 type = SLE_UINT
2087 from = SLV_130
2088 def = 8 * YAPF_TILE_LENGTH
2089 min = 0
2090 max = 1000000
2091 cat = SC_EXPERT
2093 [SDT_VAR]
2094 var = pf.yapf.road_stop_bay_occupied_penalty
2095 type = SLE_UINT
2096 from = SLV_130
2097 def = 15 * YAPF_TILE_LENGTH
2098 min = 0
2099 max = 1000000
2100 cat = SC_EXPERT
2102 [SDT_VAR]
2103 var = pf.yapf.maximum_go_to_depot_penalty
2104 type = SLE_UINT
2105 from = SLV_131
2106 def = 20 * YAPF_TILE_LENGTH
2107 min = 0
2108 max = 1000000
2109 cat = SC_EXPERT
2111 [SDT_VAR]
2112 var = pf.yapf.ship_curve45_penalty
2113 type = SLE_UINT
2114 from = SLV_SHIP_CURVE_PENALTY
2115 def = 1 * YAPF_TILE_LENGTH
2116 min = 0
2117 max = 1000000
2118 cat = SC_EXPERT
2120 [SDT_VAR]
2121 var = pf.yapf.ship_curve90_penalty
2122 type = SLE_UINT
2123 from = SLV_SHIP_CURVE_PENALTY
2124 def = 6 * YAPF_TILE_LENGTH
2125 min = 0
2126 max = 1000000
2127 cat = SC_EXPERT
2130 [SDT_VAR]
2131 var = game_creation.land_generator
2132 type = SLE_UINT8
2133 from = SLV_30
2134 flags = SF_GUI_DROPDOWN | SF_NEWGAME_ONLY
2135 def = 1
2136 min = 0
2137 max = 1
2138 str = STR_CONFIG_SETTING_LAND_GENERATOR
2139 strhelp = STR_CONFIG_SETTING_LAND_GENERATOR_HELPTEXT
2140 strval = STR_CONFIG_SETTING_LAND_GENERATOR_ORIGINAL
2142 [SDT_VAR]
2143 var = game_creation.oil_refinery_limit
2144 type = SLE_UINT8
2145 from = SLV_30
2146 def = 32
2147 min = 12
2148 max = 128
2149 str = STR_CONFIG_SETTING_OIL_REF_EDGE_DISTANCE
2150 strval = STR_CONFIG_SETTING_TILE_LENGTH
2151 strhelp = STR_CONFIG_SETTING_OIL_REF_EDGE_DISTANCE_HELPTEXT
2153 [SDT_VAR]
2154 var = game_creation.tgen_smoothness
2155 type = SLE_UINT8
2156 from = SLV_30
2157 flags = SF_GUI_DROPDOWN | SF_NEWGAME_ONLY
2158 def = 1
2159 min = TGEN_SMOOTHNESS_BEGIN
2160 max = TGEN_SMOOTHNESS_END - 1
2161 str = STR_CONFIG_SETTING_ROUGHNESS_OF_TERRAIN
2162 strhelp = STR_CONFIG_SETTING_ROUGHNESS_OF_TERRAIN_HELPTEXT
2163 strval = STR_CONFIG_SETTING_ROUGHNESS_OF_TERRAIN_VERY_SMOOTH
2164 cat = SC_BASIC
2166 [SDT_VAR]
2167 var = game_creation.variety
2168 type = SLE_UINT8
2169 from = SLV_197
2170 flags = SF_GUI_DROPDOWN | SF_NEWGAME_ONLY
2171 def = 0
2172 min = 0
2173 max = 5
2174 str = STR_CONFIG_SETTING_VARIETY
2175 strhelp = STR_CONFIG_SETTING_VARIETY_HELPTEXT
2176 strval = STR_VARIETY_NONE
2178 [SDT_VAR]
2179 var = game_creation.generation_seed
2180 type = SLE_UINT32
2181 from = SLV_30
2182 def = GENERATE_NEW_SEED
2183 min = 0
2184 max = UINT32_MAX
2185 cat = SC_EXPERT
2187 [SDT_VAR]
2188 var = game_creation.tree_placer
2189 type = SLE_UINT8
2190 from = SLV_30
2191 flags = SF_GUI_DROPDOWN | SF_NEWGAME_ONLY | SF_SCENEDIT_TOO
2192 def = 2
2193 min = 0
2194 max = 2
2195 str = STR_CONFIG_SETTING_TREE_PLACER
2196 strhelp = STR_CONFIG_SETTING_TREE_PLACER_HELPTEXT
2197 strval = STR_CONFIG_SETTING_TREE_PLACER_NONE
2198 cat = SC_BASIC
2200 [SDT_VAR]
2201 var = game_creation.heightmap_rotation
2202 type = SLE_UINT8
2203 flags = SF_NOT_IN_SAVE | SF_NO_NETWORK_SYNC | SF_GUI_DROPDOWN
2204 def = 0
2205 min = 0
2206 max = 1
2207 str = STR_CONFIG_SETTING_HEIGHTMAP_ROTATION
2208 strval = STR_CONFIG_SETTING_HEIGHTMAP_ROTATION_COUNTER_CLOCKWISE
2209 cat = SC_BASIC
2211 [SDT_VAR]
2212 var = game_creation.se_flat_world_height
2213 type = SLE_UINT8
2214 flags = SF_NOT_IN_SAVE | SF_NO_NETWORK_SYNC
2215 def = 1
2216 min = 0
2217 max = 15
2218 str = STR_CONFIG_SETTING_SE_FLAT_WORLD_HEIGHT
2219 strval = STR_JUST_COMMA
2220 cat = SC_BASIC
2223 [SDT_VAR]
2224 var = game_creation.map_x
2225 type = SLE_UINT8
2226 flags = SF_NOT_IN_SAVE | SF_NO_NETWORK_SYNC
2227 def = 8
2228 min = MIN_MAP_SIZE_BITS
2229 max = MAX_MAP_SIZE_BITS
2230 cat = SC_BASIC
2232 [SDT_VAR]
2233 var = game_creation.map_y
2234 type = SLE_UINT8
2235 flags = SF_NOT_IN_SAVE | SF_NO_NETWORK_SYNC
2236 def = 8
2237 min = MIN_MAP_SIZE_BITS
2238 max = MAX_MAP_SIZE_BITS
2239 cat = SC_BASIC
2241 [SDT_BOOL]
2242 var = construction.freeform_edges
2243 from = SLV_111
2244 def = true
2245 pre_cb = CheckFreeformEdges
2246 post_cb = UpdateFreeformEdges
2247 cat = SC_EXPERT
2249 [SDT_VAR]
2250 var = game_creation.water_borders
2251 type = SLE_UINT8
2252 from = SLV_111
2253 def = 15
2254 min = 0
2255 max = 16
2257 [SDT_VAR]
2258 var = game_creation.custom_town_number
2259 type = SLE_UINT16
2260 from = SLV_115
2261 def = 1
2262 min = 1
2263 max = 5000
2264 cat = SC_BASIC
2266 [SDT_VAR]
2267 var = construction.extra_tree_placement
2268 type = SLE_UINT8
2269 from = SLV_132
2270 flags = SF_GUI_DROPDOWN
2271 def = 2
2272 min = 0
2273 max = 3
2274 str = STR_CONFIG_SETTING_EXTRA_TREE_PLACEMENT
2275 strhelp = STR_CONFIG_SETTING_EXTRA_TREE_PLACEMENT_HELPTEXT
2276 strval = STR_CONFIG_SETTING_EXTRA_TREE_PLACEMENT_NO_SPREAD
2277 cat = SC_BASIC
2279 [SDT_VAR]
2280 var = game_creation.custom_terrain_type
2281 type = SLE_UINT8
2282 from = SLV_MAPGEN_SETTINGS_REVAMP
2283 flags = SF_NEWGAME_ONLY
2284 def = MAP_HEIGHT_LIMIT_AUTO_MINIMUM
2285 min = MIN_CUSTOM_TERRAIN_TYPE
2286 max = MAX_MAP_HEIGHT_LIMIT
2287 interval = 1
2289 [SDT_VAR]
2290 var = game_creation.custom_sea_level
2291 type = SLE_UINT8
2292 from = SLV_149
2293 def = CUSTOM_SEA_LEVEL_MIN_PERCENTAGE
2294 min = CUSTOM_SEA_LEVEL_MIN_PERCENTAGE
2295 max = CUSTOM_SEA_LEVEL_MAX_PERCENTAGE
2296 cat = SC_BASIC
2298 [SDT_VAR]
2299 var = game_creation.min_river_length
2300 type = SLE_UINT8
2301 from = SLV_163
2302 def = 16
2303 min = 2
2304 max = 255
2305 cat = SC_EXPERT
2307 [SDT_VAR]
2308 var = game_creation.river_route_random
2309 type = SLE_UINT8
2310 from = SLV_163
2311 def = 5
2312 min = 1
2313 max = 255
2314 cat = SC_EXPERT
2316 [SDT_VAR]
2317 var = game_creation.amount_of_rivers
2318 type = SLE_UINT8
2319 from = SLV_163
2320 flags = SF_GUI_DROPDOWN | SF_NEWGAME_ONLY
2321 def = 2
2322 min = 0
2323 max = 3
2324 str = STR_CONFIG_SETTING_RIVER_AMOUNT
2325 strhelp = STR_CONFIG_SETTING_RIVER_AMOUNT_HELPTEXT
2326 strval = STR_RIVERS_NONE
2328 ; locale
2330 [SDT_OMANY]
2331 var = locale.currency
2332 type = SLE_UINT8
2333 from = SLV_97
2334 flags = SF_NO_NETWORK_SYNC
2335 def = 0
2336 max = CURRENCY_END - 1
2337 full = _locale_currencies
2338 post_cb = [](auto) { MarkWholeScreenDirty(); }
2339 cat = SC_BASIC
2341 [SDTG_OMANY]
2342 name = ""units""
2343 var = _old_units
2344 type = SLE_UINT8
2345 from = SLV_97
2346 to = SLV_184
2347 flags = SF_NOT_IN_CONFIG
2348 def = 1
2349 max = 2
2350 full = _locale_units
2351 post_cb = [](auto) { MarkWholeScreenDirty(); }
2352 cat = SC_BASIC
2354 [SDT_OMANY]
2355 var = locale.units_velocity
2356 type = SLE_UINT8
2357 from = SLV_184
2358 flags = SF_NO_NETWORK_SYNC | SF_GUI_DROPDOWN
2359 def = 1
2360 max = 3
2361 full = _locale_units
2362 post_cb = [](auto) { MarkWholeScreenDirty(); }
2363 cat = SC_BASIC
2364 str = STR_CONFIG_SETTING_LOCALISATION_UNITS_VELOCITY
2365 strhelp = STR_CONFIG_SETTING_LOCALISATION_UNITS_VELOCITY_HELPTEXT
2366 strval = STR_CONFIG_SETTING_LOCALISATION_UNITS_VELOCITY_IMPERIAL
2368 [SDT_OMANY]
2369 var = locale.units_power
2370 type = SLE_UINT8
2371 from = SLV_184
2372 flags = SF_NO_NETWORK_SYNC | SF_GUI_DROPDOWN
2373 def = 1
2374 max = 2
2375 full = _locale_units
2376 post_cb = [](auto) { MarkWholeScreenDirty(); }
2377 cat = SC_BASIC
2378 str = STR_CONFIG_SETTING_LOCALISATION_UNITS_POWER
2379 strhelp = STR_CONFIG_SETTING_LOCALISATION_UNITS_POWER_HELPTEXT
2380 strval = STR_CONFIG_SETTING_LOCALISATION_UNITS_POWER_IMPERIAL
2382 [SDT_OMANY]
2383 var = locale.units_weight
2384 type = SLE_UINT8
2385 from = SLV_184
2386 flags = SF_NO_NETWORK_SYNC | SF_GUI_DROPDOWN
2387 def = 1
2388 max = 2
2389 full = _locale_units
2390 post_cb = [](auto) { MarkWholeScreenDirty(); }
2391 cat = SC_BASIC
2392 str = STR_CONFIG_SETTING_LOCALISATION_UNITS_WEIGHT
2393 strhelp = STR_CONFIG_SETTING_LOCALISATION_UNITS_WEIGHT_HELPTEXT
2394 strval = STR_CONFIG_SETTING_LOCALISATION_UNITS_WEIGHT_IMPERIAL
2396 [SDT_OMANY]
2397 var = locale.units_volume
2398 type = SLE_UINT8
2399 from = SLV_184
2400 flags = SF_NO_NETWORK_SYNC | SF_GUI_DROPDOWN
2401 def = 1
2402 max = 2
2403 full = _locale_units
2404 post_cb = [](auto) { MarkWholeScreenDirty(); }
2405 cat = SC_BASIC
2406 str = STR_CONFIG_SETTING_LOCALISATION_UNITS_VOLUME
2407 strhelp = STR_CONFIG_SETTING_LOCALISATION_UNITS_VOLUME_HELPTEXT
2408 strval = STR_CONFIG_SETTING_LOCALISATION_UNITS_VOLUME_IMPERIAL
2410 [SDT_OMANY]
2411 var = locale.units_force
2412 type = SLE_UINT8
2413 from = SLV_184
2414 flags = SF_NO_NETWORK_SYNC | SF_GUI_DROPDOWN
2415 def = 2
2416 max = 2
2417 full = _locale_units
2418 post_cb = [](auto) { MarkWholeScreenDirty(); }
2419 cat = SC_BASIC
2420 str = STR_CONFIG_SETTING_LOCALISATION_UNITS_FORCE
2421 strhelp = STR_CONFIG_SETTING_LOCALISATION_UNITS_FORCE_HELPTEXT
2422 strval = STR_CONFIG_SETTING_LOCALISATION_UNITS_FORCE_IMPERIAL
2424 [SDT_OMANY]
2425 var = locale.units_height
2426 type = SLE_UINT8
2427 from = SLV_184
2428 flags = SF_NO_NETWORK_SYNC | SF_GUI_DROPDOWN
2429 def = 1
2430 max = 2
2431 full = _locale_units
2432 post_cb = [](auto) { MarkWholeScreenDirty(); }
2433 cat = SC_BASIC
2434 str = STR_CONFIG_SETTING_LOCALISATION_UNITS_HEIGHT
2435 strhelp = STR_CONFIG_SETTING_LOCALISATION_UNITS_HEIGHT_HELPTEXT
2436 strval = STR_CONFIG_SETTING_LOCALISATION_UNITS_HEIGHT_IMPERIAL
2438 [SDT_SSTR]
2439 var = locale.digit_group_separator
2440 type = SLE_STRQ
2441 from = SLV_118
2442 flags = SF_NO_NETWORK_SYNC
2443 def = nullptr
2444 post_cb = [](auto) { MarkWholeScreenDirty(); }
2445 cat = SC_BASIC
2447 [SDT_SSTR]
2448 var = locale.digit_group_separator_currency
2449 type = SLE_STRQ
2450 from = SLV_118
2451 flags = SF_NO_NETWORK_SYNC
2452 def = nullptr
2453 post_cb = [](auto) { MarkWholeScreenDirty(); }
2454 cat = SC_BASIC
2456 [SDT_SSTR]
2457 var = locale.digit_decimal_separator
2458 type = SLE_STRQ
2459 from = SLV_126
2460 flags = SF_NO_NETWORK_SYNC
2461 def = nullptr
2462 post_cb = [](auto) { MarkWholeScreenDirty(); }
2463 cat = SC_BASIC
2466 ;***************************************************************************
2467 ; Unsaved setting variables.
2469 [SDTC_OMANY]
2470 var = gui.autosave
2471 type = SLE_UINT8
2472 flags = SF_NOT_IN_SAVE | SF_NO_NETWORK_SYNC | SF_GUI_DROPDOWN
2473 def = 1
2474 max = 4
2475 full = _autosave_interval
2476 str = STR_CONFIG_SETTING_AUTOSAVE
2477 strhelp = STR_CONFIG_SETTING_AUTOSAVE_HELPTEXT
2478 strval = STR_GAME_OPTIONS_AUTOSAVE_DROPDOWN_OFF
2479 cat = SC_BASIC
2481 [SDTC_BOOL]
2482 var = gui.threaded_saves
2483 flags = SF_NOT_IN_SAVE | SF_NO_NETWORK_SYNC
2484 def = true
2485 cat = SC_EXPERT
2487 [SDTC_OMANY]
2488 var = gui.date_format_in_default_names
2489 type = SLE_UINT8
2490 flags = SF_NOT_IN_SAVE | SF_NO_NETWORK_SYNC | SF_GUI_DROPDOWN
2491 def = 2
2492 max = 2
2493 full = _savegame_date
2494 str = STR_CONFIG_SETTING_DATE_FORMAT_IN_SAVE_NAMES
2495 strhelp = STR_CONFIG_SETTING_DATE_FORMAT_IN_SAVE_NAMES_HELPTEXT
2496 strval = STR_CONFIG_SETTING_DATE_FORMAT_IN_SAVE_NAMES_LONG
2498 [SDTC_BOOL]
2499 var = gui.show_finances
2500 flags = SF_NOT_IN_SAVE | SF_NO_NETWORK_SYNC
2501 def = true
2502 str = STR_CONFIG_SETTING_SHOWFINANCES
2503 strhelp = STR_CONFIG_SETTING_SHOWFINANCES_HELPTEXT
2504 cat = SC_BASIC
2506 [SDTC_VAR]
2507 var = gui.auto_scrolling
2508 type = SLE_UINT8
2509 flags = SF_NOT_IN_SAVE | SF_NO_NETWORK_SYNC | SF_GUI_DROPDOWN
2510 def = 0
2511 min = 0
2512 max = 3
2513 str = STR_CONFIG_SETTING_AUTOSCROLL
2514 strhelp = STR_CONFIG_SETTING_AUTOSCROLL_HELPTEXT
2515 strval = STR_CONFIG_SETTING_AUTOSCROLL_DISABLED
2516 cat = SC_BASIC
2518 [SDTC_VAR]
2519 var = gui.scroll_mode
2520 type = SLE_UINT8
2521 flags = SF_NOT_IN_SAVE | SF_NO_NETWORK_SYNC | SF_GUI_DROPDOWN
2522 def = 0
2523 min = 0
2524 max = 3
2525 str = STR_CONFIG_SETTING_SCROLLMODE
2526 strhelp = STR_CONFIG_SETTING_SCROLLMODE_HELPTEXT
2527 strval = STR_CONFIG_SETTING_SCROLLMODE_DEFAULT
2528 cat = SC_BASIC
2530 [SDTC_BOOL]
2531 var = gui.smooth_scroll
2532 flags = SF_NOT_IN_SAVE | SF_NO_NETWORK_SYNC
2533 def = false
2534 str = STR_CONFIG_SETTING_SMOOTH_SCROLLING
2535 strhelp = STR_CONFIG_SETTING_SMOOTH_SCROLLING_HELPTEXT
2537 [SDTC_BOOL]
2538 var = gui.right_mouse_wnd_close
2539 flags = SF_NOT_IN_SAVE | SF_NO_NETWORK_SYNC
2540 def = false
2541 str = STR_CONFIG_SETTING_RIGHT_MOUSE_WND_CLOSE
2542 strhelp = STR_CONFIG_SETTING_RIGHT_MOUSE_WND_CLOSE_HELPTEXT
2543 cat = SC_BASIC
2545 ; We might need to emulate a right mouse button on mac
2546 [SDTC_VAR]
2547 ifdef = __APPLE__
2548 var = gui.right_mouse_btn_emulation
2549 type = SLE_UINT8
2550 flags = SF_NOT_IN_SAVE | SF_NO_NETWORK_SYNC | SF_GUI_DROPDOWN
2551 def = 0
2552 min = 0
2553 max = 2
2554 str = STR_CONFIG_SETTING_RIGHT_MOUSE_BTN_EMU
2555 strhelp = STR_CONFIG_SETTING_RIGHT_MOUSE_BTN_EMU_HELPTEXT
2556 strval = STR_CONFIG_SETTING_RIGHT_MOUSE_BTN_EMU_COMMAND
2557 cat = SC_BASIC
2559 [SDTC_BOOL]
2560 var = gui.measure_tooltip
2561 flags = SF_NOT_IN_SAVE | SF_NO_NETWORK_SYNC
2562 def = true
2563 str = STR_CONFIG_SETTING_MEASURE_TOOLTIP
2564 strhelp = STR_CONFIG_SETTING_MEASURE_TOOLTIP_HELPTEXT
2565 cat = SC_BASIC
2567 [SDTC_VAR]
2568 var = gui.errmsg_duration
2569 type = SLE_UINT8
2570 flags = SF_NOT_IN_SAVE | SF_NO_NETWORK_SYNC
2571 def = 5
2572 min = 0
2573 max = 20
2574 str = STR_CONFIG_SETTING_ERRMSG_DURATION
2575 strhelp = STR_CONFIG_SETTING_ERRMSG_DURATION_HELPTEXT
2576 strval = STR_CONFIG_SETTING_ERRMSG_DURATION_VALUE
2578 [SDTC_VAR]
2579 var = gui.hover_delay_ms
2580 type = SLE_UINT16
2581 flags = SF_NOT_IN_SAVE | SF_NO_NETWORK_SYNC | SF_GUI_0_IS_SPECIAL
2582 def = 250
2583 min = 50
2584 max = 6000
2585 interval = 50
2586 str = STR_CONFIG_SETTING_HOVER_DELAY
2587 strhelp = STR_CONFIG_SETTING_HOVER_DELAY_HELPTEXT
2588 strval = STR_CONFIG_SETTING_HOVER_DELAY_VALUE
2590 [SDTC_OMANY]
2591 var = gui.osk_activation
2592 type = SLE_UINT8
2593 flags = SF_NOT_IN_SAVE | SF_NO_NETWORK_SYNC
2594 str = STR_CONFIG_SETTING_OSK_ACTIVATION
2595 strhelp = STR_CONFIG_SETTING_OSK_ACTIVATION_HELPTEXT
2596 strval = STR_CONFIG_SETTING_OSK_ACTIVATION_DISABLED
2597 flags = SF_GUI_DROPDOWN
2598 full = _osk_activation
2599 def = 1
2600 min = 0
2601 max = 3
2602 cat = SC_BASIC
2604 [SDTC_VAR]
2605 var = gui.toolbar_pos
2606 type = SLE_UINT8
2607 flags = SF_NOT_IN_SAVE | SF_NO_NETWORK_SYNC | SF_GUI_DROPDOWN
2608 def = 1
2609 min = 0
2610 max = 2
2611 str = STR_CONFIG_SETTING_TOOLBAR_POS
2612 strhelp = STR_CONFIG_SETTING_TOOLBAR_POS_HELPTEXT
2613 strval = STR_CONFIG_SETTING_HORIZONTAL_POS_LEFT
2614 post_cb = v_PositionMainToolbar
2615 cat = SC_BASIC
2617 [SDTC_VAR]
2618 var = gui.statusbar_pos
2619 type = SLE_UINT8
2620 flags = SF_NOT_IN_SAVE | SF_NO_NETWORK_SYNC | SF_GUI_DROPDOWN
2621 def = 1
2622 min = 0
2623 max = 2
2624 str = STR_CONFIG_SETTING_STATUSBAR_POS
2625 strhelp = STR_CONFIG_SETTING_STATUSBAR_POS_HELPTEXT
2626 strval = STR_CONFIG_SETTING_HORIZONTAL_POS_LEFT
2627 post_cb = v_PositionStatusbar
2628 cat = SC_BASIC
2630 [SDTC_VAR]
2631 var = gui.window_snap_radius
2632 type = SLE_UINT8
2633 flags = SF_NOT_IN_SAVE | SF_NO_NETWORK_SYNC | SF_GUI_0_IS_SPECIAL
2634 def = 10
2635 min = 1
2636 max = 32
2637 str = STR_CONFIG_SETTING_SNAP_RADIUS
2638 strhelp = STR_CONFIG_SETTING_SNAP_RADIUS_HELPTEXT
2639 strval = STR_CONFIG_SETTING_SNAP_RADIUS_VALUE
2640 cat = SC_EXPERT
2642 [SDTC_VAR]
2643 var = gui.window_soft_limit
2644 type = SLE_UINT8
2645 flags = SF_NOT_IN_SAVE | SF_NO_NETWORK_SYNC | SF_GUI_0_IS_SPECIAL
2646 def = 20
2647 min = 5
2648 max = 255
2649 interval = 1
2650 str = STR_CONFIG_SETTING_SOFT_LIMIT
2651 strhelp = STR_CONFIG_SETTING_SOFT_LIMIT_HELPTEXT
2652 strval = STR_CONFIG_SETTING_SOFT_LIMIT_VALUE
2653 cat = SC_EXPERT
2655 [SDTC_VAR]
2656 var = gui.zoom_min
2657 type = SLE_UINT8
2658 flags = SF_NOT_IN_SAVE | SF_NO_NETWORK_SYNC | SF_GUI_DROPDOWN
2659 def = ZOOM_LVL_MIN
2660 min = ZOOM_LVL_MIN
2661 max = ZOOM_LVL_OUT_4X
2662 str = STR_CONFIG_SETTING_ZOOM_MIN
2663 strhelp = STR_CONFIG_SETTING_ZOOM_MIN_HELPTEXT
2664 strval = STR_CONFIG_SETTING_ZOOM_LVL_MIN
2665 post_cb = ZoomMinMaxChanged
2666 startup = true
2668 [SDTC_VAR]
2669 var = gui.zoom_max
2670 type = SLE_UINT8
2671 flags = SF_NOT_IN_SAVE | SF_NO_NETWORK_SYNC | SF_GUI_DROPDOWN
2672 def = ZOOM_LVL_MAX
2673 min = ZOOM_LVL_OUT_8X
2674 max = ZOOM_LVL_MAX
2675 str = STR_CONFIG_SETTING_ZOOM_MAX
2676 strhelp = STR_CONFIG_SETTING_ZOOM_MAX_HELPTEXT
2677 strval = STR_CONFIG_SETTING_ZOOM_LVL_OUT_2X
2678 post_cb = ZoomMinMaxChanged
2679 startup = true
2681 [SDTC_VAR]
2682 var = gui.sprite_zoom_min
2683 type = SLE_UINT8
2684 flags = SF_NOT_IN_SAVE | SF_NO_NETWORK_SYNC | SF_GUI_DROPDOWN
2685 def = ZOOM_LVL_MIN
2686 min = ZOOM_LVL_MIN
2687 max = ZOOM_LVL_OUT_4X
2688 str = STR_CONFIG_SETTING_SPRITE_ZOOM_MIN
2689 strhelp = STR_CONFIG_SETTING_SPRITE_ZOOM_MIN_HELPTEXT
2690 strval = STR_CONFIG_SETTING_SPRITE_ZOOM_LVL_MIN
2691 post_cb = SpriteZoomMinChanged
2693 [SDTC_BOOL]
2694 var = gui.population_in_label
2695 flags = SF_NOT_IN_SAVE | SF_NO_NETWORK_SYNC
2696 def = true
2697 str = STR_CONFIG_SETTING_POPULATION_IN_LABEL
2698 strhelp = STR_CONFIG_SETTING_POPULATION_IN_LABEL_HELPTEXT
2699 post_cb = [](auto) { UpdateAllTownVirtCoords(); }
2701 [SDTC_BOOL]
2702 var = gui.link_terraform_toolbar
2703 flags = SF_NOT_IN_SAVE | SF_NO_NETWORK_SYNC
2704 def = false
2705 str = STR_CONFIG_SETTING_LINK_TERRAFORM_TOOLBAR
2706 strhelp = STR_CONFIG_SETTING_LINK_TERRAFORM_TOOLBAR_HELPTEXT
2708 [SDTC_VAR]
2709 var = gui.smallmap_land_colour
2710 type = SLE_UINT8
2711 flags = SF_NOT_IN_SAVE | SF_NO_NETWORK_SYNC | SF_GUI_DROPDOWN
2712 def = 0
2713 min = 0
2714 max = 2
2715 str = STR_CONFIG_SETTING_SMALLMAP_LAND_COLOUR
2716 strhelp = STR_CONFIG_SETTING_SMALLMAP_LAND_COLOUR_HELPTEXT
2717 strval = STR_CONFIG_SETTING_SMALLMAP_LAND_COLOUR_GREEN
2718 post_cb = RedrawSmallmap
2720 [SDTC_VAR]
2721 var = gui.liveries
2722 type = SLE_UINT8
2723 flags = SF_NOT_IN_SAVE | SF_NO_NETWORK_SYNC | SF_GUI_DROPDOWN
2724 def = 2
2725 min = 0
2726 max = 2
2727 str = STR_CONFIG_SETTING_LIVERIES
2728 strhelp = STR_CONFIG_SETTING_LIVERIES_HELPTEXT
2729 strval = STR_CONFIG_SETTING_LIVERIES_NONE
2730 post_cb = InvalidateCompanyLiveryWindow
2732 [SDTC_VAR]
2733 var = gui.starting_colour
2734 type = SLE_UINT8
2735 flags = SF_NOT_IN_SAVE | SF_NO_NETWORK_SYNC | SF_GUI_DROPDOWN
2736 def = COLOUR_END
2737 min = 0
2738 max = COLOUR_END
2739 str = STR_CONFIG_SETTING_COMPANY_STARTING_COLOUR
2740 strhelp = STR_CONFIG_SETTING_COMPANY_STARTING_COLOUR_HELPTEXT
2741 strval = STR_COLOUR_DARK_BLUE
2743 [SDTC_BOOL]
2744 var = gui.auto_remove_signals
2745 flags = SF_NOT_IN_SAVE | SF_NO_NETWORK_SYNC
2746 def = false
2747 str = STR_CONFIG_SETTING_AUTO_REMOVE_SIGNALS
2748 strhelp = STR_CONFIG_SETTING_AUTO_REMOVE_SIGNALS_HELPTEXT
2749 cat = SC_ADVANCED
2751 [SDTC_BOOL]
2752 var = gui.prefer_teamchat
2753 flags = SF_NOT_IN_SAVE | SF_NO_NETWORK_SYNC
2754 def = false
2755 str = STR_CONFIG_SETTING_PREFER_TEAMCHAT
2756 strhelp = STR_CONFIG_SETTING_PREFER_TEAMCHAT_HELPTEXT
2757 cat = SC_BASIC
2759 [SDTC_VAR]
2760 var = gui.scrollwheel_scrolling
2761 type = SLE_UINT8
2762 flags = SF_NOT_IN_SAVE | SF_NO_NETWORK_SYNC | SF_GUI_DROPDOWN
2763 def = 0
2764 min = 0
2765 max = 2
2766 str = STR_CONFIG_SETTING_SCROLLWHEEL_SCROLLING
2767 strhelp = STR_CONFIG_SETTING_SCROLLWHEEL_SCROLLING_HELPTEXT
2768 strval = STR_CONFIG_SETTING_SCROLLWHEEL_ZOOM
2769 cat = SC_BASIC
2771 [SDTC_VAR]
2772 var = gui.scrollwheel_multiplier
2773 type = SLE_UINT8
2774 flags = SF_NOT_IN_SAVE | SF_NO_NETWORK_SYNC
2775 def = 5
2776 min = 1
2777 max = 15
2778 interval = 1
2779 str = STR_CONFIG_SETTING_SCROLLWHEEL_MULTIPLIER
2780 strhelp = STR_CONFIG_SETTING_SCROLLWHEEL_MULTIPLIER_HELPTEXT
2781 strval = STR_JUST_COMMA
2782 cat = SC_BASIC
2784 [SDTC_BOOL]
2785 var = gui.pause_on_newgame
2786 flags = SF_NOT_IN_SAVE | SF_NO_NETWORK_SYNC
2787 def = false
2788 str = STR_CONFIG_SETTING_PAUSE_ON_NEW_GAME
2789 strhelp = STR_CONFIG_SETTING_PAUSE_ON_NEW_GAME_HELPTEXT
2790 cat = SC_BASIC
2792 [SDTC_VAR]
2793 var = gui.advanced_vehicle_list
2794 type = SLE_UINT8
2795 flags = SF_NOT_IN_SAVE | SF_NO_NETWORK_SYNC | SF_GUI_DROPDOWN
2796 def = 1
2797 min = 0
2798 max = 2
2799 str = STR_CONFIG_SETTING_ADVANCED_VEHICLE_LISTS
2800 strhelp = STR_CONFIG_SETTING_ADVANCED_VEHICLE_LISTS_HELPTEXT
2801 strval = STR_CONFIG_SETTING_COMPANIES_OFF
2803 [SDTC_BOOL]
2804 var = gui.timetable_in_ticks
2805 flags = SF_NOT_IN_SAVE | SF_NO_NETWORK_SYNC
2806 def = false
2807 str = STR_CONFIG_SETTING_TIMETABLE_IN_TICKS
2808 strhelp = STR_CONFIG_SETTING_TIMETABLE_IN_TICKS_HELPTEXT
2809 post_cb = [](auto) { InvalidateWindowClassesData(WC_VEHICLE_TIMETABLE, VIWD_MODIFY_ORDERS); }
2810 cat = SC_EXPERT
2812 [SDTC_BOOL]
2813 var = gui.timetable_arrival_departure
2814 flags = SF_NOT_IN_SAVE | SF_NO_NETWORK_SYNC
2815 def = true
2816 str = STR_CONFIG_SETTING_TIMETABLE_SHOW_ARRIVAL_DEPARTURE
2817 strhelp = STR_CONFIG_SETTING_TIMETABLE_SHOW_ARRIVAL_DEPARTURE_HELPTEXT
2818 post_cb = [](auto) { InvalidateWindowClassesData(WC_VEHICLE_TIMETABLE, VIWD_MODIFY_ORDERS); }
2820 [SDTC_BOOL]
2821 var = gui.quick_goto
2822 flags = SF_NOT_IN_SAVE | SF_NO_NETWORK_SYNC
2823 def = true
2824 str = STR_CONFIG_SETTING_QUICKGOTO
2825 strhelp = STR_CONFIG_SETTING_QUICKGOTO_HELPTEXT
2826 cat = SC_BASIC
2828 [SDTC_VAR]
2829 var = gui.loading_indicators
2830 type = SLE_UINT8
2831 flags = SF_NOT_IN_SAVE | SF_NO_NETWORK_SYNC | SF_GUI_DROPDOWN
2832 def = 1
2833 min = 0
2834 max = 2
2835 str = STR_CONFIG_SETTING_LOADING_INDICATORS
2836 strhelp = STR_CONFIG_SETTING_LOADING_INDICATORS_HELPTEXT
2837 strval = STR_CONFIG_SETTING_COMPANIES_OFF
2838 post_cb = [](auto) { MarkWholeScreenDirty(); }
2839 cat = SC_BASIC
2841 [SDTC_VAR]
2842 var = gui.default_rail_type
2843 type = SLE_UINT8
2844 flags = SF_NOT_IN_SAVE | SF_NO_NETWORK_SYNC | SF_GUI_DROPDOWN
2845 def = 0
2846 min = 0
2847 max = 2
2848 str = STR_CONFIG_SETTING_DEFAULT_RAIL_TYPE
2849 strhelp = STR_CONFIG_SETTING_DEFAULT_RAIL_TYPE_HELPTEXT
2850 strval = STR_CONFIG_SETTING_DEFAULT_RAIL_TYPE_FIRST
2851 cat = SC_BASIC
2853 [SDTC_BOOL]
2854 var = gui.enable_signal_gui
2855 flags = SF_NOT_IN_SAVE | SF_NO_NETWORK_SYNC
2856 def = true
2857 str = STR_CONFIG_SETTING_ENABLE_SIGNAL_GUI
2858 strhelp = STR_CONFIG_SETTING_ENABLE_SIGNAL_GUI_HELPTEXT
2859 post_cb = CloseSignalGUI
2860 cat = SC_EXPERT
2862 [SDTC_VAR]
2863 var = gui.coloured_news_year
2864 type = SLE_INT32
2865 flags = SF_NOT_IN_SAVE | SF_NO_NETWORK_SYNC
2866 def = 2000
2867 min = MIN_YEAR
2868 max = MAX_YEAR
2869 interval = 1
2870 str = STR_CONFIG_SETTING_COLOURED_NEWS_YEAR
2871 strhelp = STR_CONFIG_SETTING_COLOURED_NEWS_YEAR_HELPTEXT
2872 strval = STR_JUST_INT
2873 cat = SC_EXPERT
2875 [SDTC_VAR]
2876 var = gui.drag_signals_density
2877 type = SLE_UINT8
2878 flags = SF_NOT_IN_SAVE | SF_NO_NETWORK_SYNC
2879 def = 4
2880 min = 1
2881 max = 20
2882 str = STR_CONFIG_SETTING_DRAG_SIGNALS_DENSITY
2883 strhelp = STR_CONFIG_SETTING_DRAG_SIGNALS_DENSITY_HELPTEXT
2884 strval = STR_CONFIG_SETTING_DRAG_SIGNALS_DENSITY_VALUE
2885 post_cb = [](auto) { InvalidateWindowData(WC_BUILD_SIGNAL, 0); }
2886 cat = SC_BASIC
2888 [SDTC_BOOL]
2889 var = gui.drag_signals_fixed_distance
2890 flags = SF_NOT_IN_SAVE | SF_NO_NETWORK_SYNC
2891 def = false
2892 str = STR_CONFIG_SETTING_DRAG_SIGNALS_FIXED_DISTANCE
2893 strhelp = STR_CONFIG_SETTING_DRAG_SIGNALS_FIXED_DISTANCE_HELPTEXT
2894 cat = SC_EXPERT
2896 [SDTC_VAR]
2897 var = gui.semaphore_build_before
2898 type = SLE_INT32
2899 flags = SF_NOT_IN_SAVE | SF_NO_NETWORK_SYNC
2900 def = 1950
2901 min = MIN_YEAR
2902 max = MAX_YEAR
2903 interval = 1
2904 str = STR_CONFIG_SETTING_SEMAPHORE_BUILD_BEFORE_DATE
2905 strhelp = STR_CONFIG_SETTING_SEMAPHORE_BUILD_BEFORE_DATE_HELPTEXT
2906 strval = STR_JUST_INT
2907 post_cb = ResetSignalVariant
2909 [SDTC_BOOL]
2910 var = gui.vehicle_income_warn
2911 flags = SF_NOT_IN_SAVE | SF_NO_NETWORK_SYNC
2912 def = true
2913 str = STR_CONFIG_SETTING_WARN_INCOME_LESS
2914 strhelp = STR_CONFIG_SETTING_WARN_INCOME_LESS_HELPTEXT
2915 cat = SC_BASIC
2917 [SDTC_VAR]
2918 var = gui.order_review_system
2919 type = SLE_UINT8
2920 flags = SF_NOT_IN_SAVE | SF_NO_NETWORK_SYNC | SF_GUI_DROPDOWN
2921 def = 2
2922 min = 0
2923 max = 2
2924 str = STR_CONFIG_SETTING_ORDER_REVIEW
2925 strhelp = STR_CONFIG_SETTING_ORDER_REVIEW_HELPTEXT
2926 strval = STR_CONFIG_SETTING_ORDER_REVIEW_OFF
2927 cat = SC_BASIC
2929 [SDTC_BOOL]
2930 var = gui.lost_vehicle_warn
2931 flags = SF_NOT_IN_SAVE | SF_NO_NETWORK_SYNC
2932 def = true
2933 str = STR_CONFIG_SETTING_WARN_LOST_VEHICLE
2934 strhelp = STR_CONFIG_SETTING_WARN_LOST_VEHICLE_HELPTEXT
2936 [SDTC_BOOL]
2937 var = gui.new_nonstop
2938 flags = SF_NOT_IN_SAVE | SF_NO_NETWORK_SYNC
2939 def = true
2940 str = STR_CONFIG_SETTING_NONSTOP_BY_DEFAULT
2941 strhelp = STR_CONFIG_SETTING_NONSTOP_BY_DEFAULT_HELPTEXT
2942 cat = SC_BASIC
2944 [SDTC_VAR]
2945 var = gui.stop_location
2946 type = SLE_UINT8
2947 flags = SF_NOT_IN_SAVE | SF_NO_NETWORK_SYNC | SF_GUI_DROPDOWN
2948 def = 2
2949 min = 0
2950 max = 2
2951 interval = 1
2952 str = STR_CONFIG_SETTING_STOP_LOCATION
2953 strhelp = STR_CONFIG_SETTING_STOP_LOCATION_HELPTEXT
2954 strval = STR_CONFIG_SETTING_STOP_LOCATION_NEAR_END
2955 cat = SC_BASIC
2957 [SDTC_BOOL]
2958 var = gui.keep_all_autosave
2959 flags = SF_NOT_IN_SAVE | SF_NO_NETWORK_SYNC
2960 def = false
2962 [SDTC_BOOL]
2963 var = gui.autosave_on_exit
2964 flags = SF_NOT_IN_SAVE | SF_NO_NETWORK_SYNC
2965 def = false
2966 cat = SC_BASIC
2968 [SDTC_BOOL]
2969 var = gui.autosave_on_network_disconnect
2970 flags = SF_NOT_IN_SAVE | SF_NO_NETWORK_SYNC
2971 def = true
2972 cat = SC_EXPERT
2974 [SDTC_VAR]
2975 var = gui.max_num_autosaves
2976 type = SLE_UINT8
2977 flags = SF_NOT_IN_SAVE | SF_NO_NETWORK_SYNC
2978 def = 16
2979 min = 0
2980 max = 255
2982 [SDTC_BOOL]
2983 var = gui.auto_euro
2984 flags = SF_NOT_IN_SAVE | SF_NO_NETWORK_SYNC
2985 def = true
2987 [SDTC_VAR]
2988 var = gui.news_message_timeout
2989 type = SLE_UINT8
2990 flags = SF_NOT_IN_SAVE | SF_NO_NETWORK_SYNC
2991 def = 2
2992 min = 1
2993 max = 255
2995 [SDTC_BOOL]
2996 var = gui.show_track_reservation
2997 flags = SF_NOT_IN_SAVE | SF_NO_NETWORK_SYNC
2998 def = true
2999 str = STR_CONFIG_SETTING_SHOW_TRACK_RESERVATION
3000 strhelp = STR_CONFIG_SETTING_SHOW_TRACK_RESERVATION_HELPTEXT
3001 post_cb = [](auto) { MarkWholeScreenDirty(); }
3002 cat = SC_BASIC
3004 [SDTC_VAR]
3005 var = gui.default_signal_type
3006 type = SLE_UINT8
3007 flags = SF_NOT_IN_SAVE | SF_NO_NETWORK_SYNC | SF_GUI_DROPDOWN
3008 def = 1
3009 min = 0
3010 max = 2
3011 interval = 1
3012 str = STR_CONFIG_SETTING_DEFAULT_SIGNAL_TYPE
3013 strhelp = STR_CONFIG_SETTING_DEFAULT_SIGNAL_TYPE_HELPTEXT
3014 strval = STR_CONFIG_SETTING_DEFAULT_SIGNAL_NORMAL
3015 cat = SC_BASIC
3017 [SDTC_VAR]
3018 var = gui.cycle_signal_types
3019 type = SLE_UINT8
3020 flags = SF_NOT_IN_SAVE | SF_NO_NETWORK_SYNC | SF_GUI_DROPDOWN
3021 def = 2
3022 min = 0
3023 max = 2
3024 interval = 1
3025 str = STR_CONFIG_SETTING_CYCLE_SIGNAL_TYPES
3026 strhelp = STR_CONFIG_SETTING_CYCLE_SIGNAL_TYPES_HELPTEXT
3027 strval = STR_CONFIG_SETTING_CYCLE_SIGNAL_NORMAL
3029 [SDTC_VAR]
3030 var = gui.station_numtracks
3031 type = SLE_UINT8
3032 flags = SF_NOT_IN_SAVE | SF_NO_NETWORK_SYNC
3033 def = 1
3034 min = 1
3035 max = 7
3037 [SDTC_VAR]
3038 var = gui.station_platlength
3039 type = SLE_UINT8
3040 flags = SF_NOT_IN_SAVE | SF_NO_NETWORK_SYNC
3041 def = 5
3042 min = 1
3043 max = 7
3044 cat = SC_BASIC
3046 [SDTC_BOOL]
3047 var = gui.station_dragdrop
3048 flags = SF_NOT_IN_SAVE | SF_NO_NETWORK_SYNC
3049 def = true
3050 cat = SC_BASIC
3052 [SDTC_BOOL]
3053 var = gui.station_show_coverage
3054 flags = SF_NOT_IN_SAVE | SF_NO_NETWORK_SYNC
3055 def = false
3056 cat = SC_BASIC
3058 [SDTC_BOOL]
3059 var = gui.persistent_buildingtools
3060 flags = SF_NOT_IN_SAVE | SF_NO_NETWORK_SYNC
3061 def = true
3062 str = STR_CONFIG_SETTING_PERSISTENT_BUILDINGTOOLS
3063 strhelp = STR_CONFIG_SETTING_PERSISTENT_BUILDINGTOOLS_HELPTEXT
3064 cat = SC_BASIC
3066 [SDTC_BOOL]
3067 var = gui.expenses_layout
3068 flags = SF_NOT_IN_SAVE | SF_NO_NETWORK_SYNC
3069 def = true
3070 str = STR_CONFIG_SETTING_EXPENSES_LAYOUT
3071 strhelp = STR_CONFIG_SETTING_EXPENSES_LAYOUT_HELPTEXT
3072 post_cb = [](auto) { MarkWholeScreenDirty(); }
3074 [SDTC_VAR]
3075 var = gui.station_gui_group_order
3076 type = SLE_UINT8
3077 flags = SF_NOT_IN_SAVE | SF_NO_NETWORK_SYNC
3078 def = 0
3079 min = 0
3080 max = 5
3081 interval = 1
3083 [SDTC_VAR]
3084 var = gui.station_gui_sort_by
3085 type = SLE_UINT8
3086 flags = SF_NOT_IN_SAVE | SF_NO_NETWORK_SYNC
3087 def = 0
3088 min = 0
3089 max = 3
3090 interval = 1
3092 [SDTC_VAR]
3093 var = gui.station_gui_sort_order
3094 type = SLE_UINT8
3095 flags = SF_NOT_IN_SAVE | SF_NO_NETWORK_SYNC
3096 def = 0
3097 min = 0
3098 max = 1
3099 interval = 1
3101 [SDTC_VAR]
3102 var = gui.missing_strings_threshold
3103 type = SLE_UINT8
3104 flags = SF_NOT_IN_SAVE | SF_NO_NETWORK_SYNC
3105 def = 25
3106 min = 1
3107 max = UINT8_MAX
3108 cat = SC_EXPERT
3110 [SDTC_VAR]
3111 var = gui.graph_line_thickness
3112 type = SLE_UINT8
3113 flags = SF_NOT_IN_SAVE | SF_NO_NETWORK_SYNC
3114 def = 3
3115 min = 1
3116 max = 5
3117 str = STR_CONFIG_SETTING_GRAPH_LINE_THICKNESS
3118 strhelp = STR_CONFIG_SETTING_GRAPH_LINE_THICKNESS_HELPTEXT
3119 strval = STR_JUST_COMMA
3120 post_cb = [](auto) { MarkWholeScreenDirty(); }
3122 [SDTC_BOOL]
3123 var = gui.show_newgrf_name
3124 flags = SF_NOT_IN_SAVE | SF_NO_NETWORK_SYNC
3125 def = false
3126 str = STR_CONFIG_SETTING_SHOW_NEWGRF_NAME
3127 strhelp = STR_CONFIG_SETTING_SHOW_NEWGRF_NAME_HELPTEXT
3128 post_cb = [](auto) { MarkWholeScreenDirty(); }
3129 cat = SC_ADVANCED
3131 ; For the dedicated build we'll enable dates in logs by default.
3132 [SDTC_BOOL]
3133 ifdef = DEDICATED
3134 var = gui.show_date_in_logs
3135 flags = SF_NOT_IN_SAVE | SF_NO_NETWORK_SYNC
3136 def = true
3138 [SDTC_BOOL]
3139 ifndef = DEDICATED
3140 var = gui.show_date_in_logs
3141 flags = SF_NOT_IN_SAVE | SF_NO_NETWORK_SYNC
3142 def = false
3144 [SDTC_VAR]
3145 var = gui.settings_restriction_mode
3146 type = SLE_UINT8
3147 flags = SF_NOT_IN_SAVE | SF_NO_NETWORK_SYNC
3148 def = 0
3149 min = 0
3150 max = 2
3152 [SDTC_VAR]
3153 var = gui.developer
3154 type = SLE_UINT8
3155 flags = SF_NOT_IN_SAVE | SF_NO_NETWORK_SYNC
3156 def = 1
3157 min = 0
3158 max = 2
3159 cat = SC_EXPERT
3161 [SDTC_BOOL]
3162 var = gui.newgrf_developer_tools
3163 flags = SF_NOT_IN_SAVE | SF_NO_NETWORK_SYNC
3164 def = false
3165 post_cb = InvalidateNewGRFChangeWindows
3166 cat = SC_EXPERT
3168 [SDTC_BOOL]
3169 var = gui.ai_developer_tools
3170 flags = SF_NOT_IN_SAVE | SF_NO_NETWORK_SYNC
3171 def = false
3172 post_cb = [](auto) { InvalidateWindowClassesData(WC_AI_SETTINGS); }
3173 cat = SC_EXPERT
3175 [SDTC_BOOL]
3176 var = gui.scenario_developer
3177 flags = SF_NOT_IN_SAVE | SF_NO_NETWORK_SYNC
3178 def = false
3179 post_cb = InvalidateNewGRFChangeWindows
3181 [SDTC_BOOL]
3182 var = gui.newgrf_show_old_versions
3183 flags = SF_NOT_IN_SAVE | SF_NO_NETWORK_SYNC
3184 def = false
3185 cat = SC_EXPERT
3187 [SDTC_VAR]
3188 var = gui.newgrf_default_palette
3189 type = SLE_UINT8
3190 flags = SF_NOT_IN_SAVE | SF_NO_NETWORK_SYNC | SF_GUI_DROPDOWN
3191 def = 1
3192 min = 0
3193 max = 1
3194 post_cb = UpdateNewGRFConfigPalette
3195 cat = SC_EXPERT
3197 [SDTC_VAR]
3198 var = gui.console_backlog_timeout
3199 type = SLE_UINT16
3200 flags = SF_NOT_IN_SAVE | SF_NO_NETWORK_SYNC
3201 def = 100
3202 min = 10
3203 max = 65500
3205 [SDTC_VAR]
3206 var = gui.console_backlog_length
3207 type = SLE_UINT16
3208 flags = SF_NOT_IN_SAVE | SF_NO_NETWORK_SYNC
3209 def = 100
3210 min = 10
3211 max = 65500
3213 [SDTC_VAR]
3214 var = gui.refresh_rate
3215 type = SLE_UINT16
3216 flags = SF_NOT_IN_SAVE | SF_NO_NETWORK_SYNC
3217 def = 60
3218 min = 10
3219 max = 1000
3220 cat = SC_EXPERT
3221 startup = true
3223 [SDTC_VAR]
3224 var = gui.fast_forward_speed_limit
3225 type = SLE_UINT16
3226 flags = SF_NOT_IN_SAVE | SF_NO_NETWORK_SYNC | SF_GUI_0_IS_SPECIAL | SF_NO_NETWORK
3227 def = 2500
3228 min = 0
3229 max = 50000
3230 interval = 10
3231 str = STR_CONFIG_SETTING_FAST_FORWARD_SPEED_LIMIT
3232 strhelp = STR_CONFIG_SETTING_FAST_FORWARD_SPEED_LIMIT_HELPTEXT
3233 strval = STR_CONFIG_SETTING_FAST_FORWARD_SPEED_LIMIT_VAL
3234 cat = SC_BASIC
3236 [SDTC_BOOL]
3237 var = sound.news_ticker
3238 flags = SF_NOT_IN_SAVE | SF_NO_NETWORK_SYNC
3239 def = true
3240 str = STR_CONFIG_SETTING_SOUND_TICKER
3241 strhelp = STR_CONFIG_SETTING_SOUND_TICKER_HELPTEXT
3243 [SDTC_BOOL]
3244 var = sound.news_full
3245 flags = SF_NOT_IN_SAVE | SF_NO_NETWORK_SYNC
3246 def = true
3247 str = STR_CONFIG_SETTING_SOUND_NEWS
3248 strhelp = STR_CONFIG_SETTING_SOUND_NEWS_HELPTEXT
3250 [SDTC_BOOL]
3251 var = sound.new_year
3252 flags = SF_NOT_IN_SAVE | SF_NO_NETWORK_SYNC
3253 def = true
3254 str = STR_CONFIG_SETTING_SOUND_NEW_YEAR
3255 strhelp = STR_CONFIG_SETTING_SOUND_NEW_YEAR_HELPTEXT
3257 [SDTC_BOOL]
3258 var = sound.confirm
3259 flags = SF_NOT_IN_SAVE | SF_NO_NETWORK_SYNC
3260 def = true
3261 str = STR_CONFIG_SETTING_SOUND_CONFIRM
3262 strhelp = STR_CONFIG_SETTING_SOUND_CONFIRM_HELPTEXT
3264 [SDTC_BOOL]
3265 var = sound.click_beep
3266 flags = SF_NOT_IN_SAVE | SF_NO_NETWORK_SYNC
3267 def = true
3268 str = STR_CONFIG_SETTING_SOUND_CLICK
3269 strhelp = STR_CONFIG_SETTING_SOUND_CLICK_HELPTEXT
3271 [SDTC_BOOL]
3272 var = sound.disaster
3273 flags = SF_NOT_IN_SAVE | SF_NO_NETWORK_SYNC
3274 def = true
3275 str = STR_CONFIG_SETTING_SOUND_DISASTER
3276 strhelp = STR_CONFIG_SETTING_SOUND_DISASTER_HELPTEXT
3278 [SDTC_BOOL]
3279 var = sound.vehicle
3280 flags = SF_NOT_IN_SAVE | SF_NO_NETWORK_SYNC
3281 def = true
3282 str = STR_CONFIG_SETTING_SOUND_VEHICLE
3283 strhelp = STR_CONFIG_SETTING_SOUND_VEHICLE_HELPTEXT
3285 [SDTC_BOOL]
3286 var = sound.ambient
3287 flags = SF_NOT_IN_SAVE | SF_NO_NETWORK_SYNC
3288 def = true
3289 str = STR_CONFIG_SETTING_SOUND_AMBIENT
3290 strhelp = STR_CONFIG_SETTING_SOUND_AMBIENT_HELPTEXT
3292 [SDTC_VAR]
3293 var = music.playlist
3294 type = SLE_UINT8
3295 flags = SF_NOT_IN_SAVE | SF_NO_NETWORK_SYNC
3296 def = 0
3297 min = 0
3298 max = 5
3299 interval = 1
3300 cat = SC_BASIC
3302 [SDTC_VAR]
3303 var = music.music_vol
3304 type = SLE_UINT8
3305 flags = SF_NOT_IN_SAVE | SF_NO_NETWORK_SYNC
3306 def = 50
3307 min = 0
3308 max = 127
3309 interval = 1
3310 cat = SC_BASIC
3312 [SDTC_VAR]
3313 var = music.effect_vol
3314 type = SLE_UINT8
3315 flags = SF_NOT_IN_SAVE | SF_NO_NETWORK_SYNC
3316 def = 100
3317 min = 0
3318 max = 127
3319 interval = 1
3320 cat = SC_BASIC
3322 [SDTC_LIST]
3323 var = music.custom_1
3324 type = SLE_UINT8
3325 flags = SF_NOT_IN_SAVE | SF_NO_NETWORK_SYNC
3326 def = nullptr
3327 cat = SC_BASIC
3329 [SDTC_LIST]
3330 var = music.custom_2
3331 type = SLE_UINT8
3332 flags = SF_NOT_IN_SAVE | SF_NO_NETWORK_SYNC
3333 def = nullptr
3334 cat = SC_BASIC
3336 [SDTC_BOOL]
3337 var = music.playing
3338 flags = SF_NOT_IN_SAVE | SF_NO_NETWORK_SYNC
3339 def = true
3340 cat = SC_BASIC
3342 [SDTC_BOOL]
3343 var = music.shuffle
3344 flags = SF_NOT_IN_SAVE | SF_NO_NETWORK_SYNC
3345 def = false
3346 cat = SC_BASIC
3348 [SDTC_OMANY]
3349 var = news_display.arrival_player
3350 type = SLE_UINT8
3351 flags = SF_NOT_IN_SAVE | SF_NO_NETWORK_SYNC | SF_GUI_DROPDOWN
3352 def = 2
3353 max = 2
3354 full = _news_display
3355 str = STR_CONFIG_SETTING_NEWS_ARRIVAL_FIRST_VEHICLE_OWN
3356 strhelp = STR_CONFIG_SETTING_NEWS_ARRIVAL_FIRST_VEHICLE_OWN_HELPTEXT
3357 strval = STR_CONFIG_SETTING_NEWS_MESSAGES_OFF
3359 [SDTC_OMANY]
3360 var = news_display.arrival_other
3361 type = SLE_UINT8
3362 flags = SF_NOT_IN_SAVE | SF_NO_NETWORK_SYNC | SF_GUI_DROPDOWN
3363 def = 1
3364 max = 2
3365 full = _news_display
3366 str = STR_CONFIG_SETTING_NEWS_ARRIVAL_FIRST_VEHICLE_OTHER
3367 strhelp = STR_CONFIG_SETTING_NEWS_ARRIVAL_FIRST_VEHICLE_OTHER_HELPTEXT
3368 strval = STR_CONFIG_SETTING_NEWS_MESSAGES_OFF
3370 [SDTC_OMANY]
3371 var = news_display.accident
3372 type = SLE_UINT8
3373 flags = SF_NOT_IN_SAVE | SF_NO_NETWORK_SYNC | SF_GUI_DROPDOWN
3374 def = 2
3375 max = 2
3376 full = _news_display
3377 str = STR_CONFIG_SETTING_NEWS_ACCIDENTS_DISASTERS
3378 strhelp = STR_CONFIG_SETTING_NEWS_ACCIDENTS_DISASTERS_HELPTEXT
3379 strval = STR_CONFIG_SETTING_NEWS_MESSAGES_OFF
3381 [SDTC_OMANY]
3382 var = news_display.company_info
3383 type = SLE_UINT8
3384 flags = SF_NOT_IN_SAVE | SF_NO_NETWORK_SYNC | SF_GUI_DROPDOWN
3385 def = 2
3386 max = 2
3387 full = _news_display
3388 str = STR_CONFIG_SETTING_NEWS_COMPANY_INFORMATION
3389 strhelp = STR_CONFIG_SETTING_NEWS_COMPANY_INFORMATION_HELPTEXT
3390 strval = STR_CONFIG_SETTING_NEWS_MESSAGES_OFF
3392 [SDTC_OMANY]
3393 var = news_display.open
3394 type = SLE_UINT8
3395 flags = SF_NOT_IN_SAVE | SF_NO_NETWORK_SYNC | SF_GUI_DROPDOWN
3396 def = 1
3397 max = 2
3398 full = _news_display
3399 str = STR_CONFIG_SETTING_NEWS_INDUSTRY_OPEN
3400 strhelp = STR_CONFIG_SETTING_NEWS_INDUSTRY_OPEN_HELPTEXT
3401 strval = STR_CONFIG_SETTING_NEWS_MESSAGES_OFF
3403 [SDTC_OMANY]
3404 var = news_display.close
3405 type = SLE_UINT8
3406 flags = SF_NOT_IN_SAVE | SF_NO_NETWORK_SYNC | SF_GUI_DROPDOWN
3407 def = 1
3408 max = 2
3409 full = _news_display
3410 str = STR_CONFIG_SETTING_NEWS_INDUSTRY_CLOSE
3411 strhelp = STR_CONFIG_SETTING_NEWS_INDUSTRY_CLOSE_HELPTEXT
3412 strval = STR_CONFIG_SETTING_NEWS_MESSAGES_OFF
3414 [SDTC_OMANY]
3415 var = news_display.economy
3416 type = SLE_UINT8
3417 flags = SF_NOT_IN_SAVE | SF_NO_NETWORK_SYNC | SF_GUI_DROPDOWN
3418 def = 2
3419 max = 2
3420 full = _news_display
3421 str = STR_CONFIG_SETTING_NEWS_ECONOMY_CHANGES
3422 strhelp = STR_CONFIG_SETTING_NEWS_ECONOMY_CHANGES_HELPTEXT
3423 strval = STR_CONFIG_SETTING_NEWS_MESSAGES_OFF
3425 [SDTC_OMANY]
3426 var = news_display.production_player
3427 type = SLE_UINT8
3428 flags = SF_NOT_IN_SAVE | SF_NO_NETWORK_SYNC | SF_GUI_DROPDOWN
3429 def = 1
3430 max = 2
3431 full = _news_display
3432 str = STR_CONFIG_SETTING_NEWS_INDUSTRY_CHANGES_COMPANY
3433 strhelp = STR_CONFIG_SETTING_NEWS_INDUSTRY_CHANGES_COMPANY_HELPTEXT
3434 strval = STR_CONFIG_SETTING_NEWS_MESSAGES_OFF
3436 [SDTC_OMANY]
3437 var = news_display.production_other
3438 type = SLE_UINT8
3439 flags = SF_NOT_IN_SAVE | SF_NO_NETWORK_SYNC | SF_GUI_DROPDOWN
3440 def = 0
3441 max = 2
3442 full = _news_display
3443 str = STR_CONFIG_SETTING_NEWS_INDUSTRY_CHANGES_OTHER
3444 strhelp = STR_CONFIG_SETTING_NEWS_INDUSTRY_CHANGES_OTHER_HELPTEXT
3445 strval = STR_CONFIG_SETTING_NEWS_MESSAGES_OFF
3447 [SDTC_OMANY]
3448 var = news_display.production_nobody
3449 type = SLE_UINT8
3450 flags = SF_NOT_IN_SAVE | SF_NO_NETWORK_SYNC | SF_GUI_DROPDOWN
3451 def = 0
3452 max = 2
3453 full = _news_display
3454 str = STR_CONFIG_SETTING_NEWS_INDUSTRY_CHANGES_UNSERVED
3455 strhelp = STR_CONFIG_SETTING_NEWS_INDUSTRY_CHANGES_UNSERVED_HELPTEXT
3456 strval = STR_CONFIG_SETTING_NEWS_MESSAGES_OFF
3458 [SDTC_OMANY]
3459 var = news_display.advice
3460 type = SLE_UINT8
3461 flags = SF_NOT_IN_SAVE | SF_NO_NETWORK_SYNC | SF_GUI_DROPDOWN
3462 def = 2
3463 max = 2
3464 full = _news_display
3465 str = STR_CONFIG_SETTING_NEWS_ADVICE
3466 strhelp = STR_CONFIG_SETTING_NEWS_ADVICE_HELPTEXT
3467 strval = STR_CONFIG_SETTING_NEWS_MESSAGES_OFF
3469 [SDTC_OMANY]
3470 var = news_display.new_vehicles
3471 type = SLE_UINT8
3472 flags = SF_NOT_IN_SAVE | SF_NO_NETWORK_SYNC | SF_GUI_DROPDOWN
3473 def = 2
3474 max = 2
3475 full = _news_display
3476 str = STR_CONFIG_SETTING_NEWS_NEW_VEHICLES
3477 strhelp = STR_CONFIG_SETTING_NEWS_NEW_VEHICLES_HELPTEXT
3478 strval = STR_CONFIG_SETTING_NEWS_MESSAGES_OFF
3480 [SDTC_OMANY]
3481 var = news_display.acceptance
3482 type = SLE_UINT8
3483 flags = SF_NOT_IN_SAVE | SF_NO_NETWORK_SYNC | SF_GUI_DROPDOWN
3484 def = 2
3485 max = 2
3486 full = _news_display
3487 str = STR_CONFIG_SETTING_NEWS_CHANGES_ACCEPTANCE
3488 strhelp = STR_CONFIG_SETTING_NEWS_CHANGES_ACCEPTANCE_HELPTEXT
3489 strval = STR_CONFIG_SETTING_NEWS_MESSAGES_OFF
3491 [SDTC_OMANY]
3492 var = news_display.subsidies
3493 type = SLE_UINT8
3494 flags = SF_NOT_IN_SAVE | SF_NO_NETWORK_SYNC | SF_GUI_DROPDOWN
3495 def = 1
3496 max = 2
3497 full = _news_display
3498 str = STR_CONFIG_SETTING_NEWS_SUBSIDIES
3499 strhelp = STR_CONFIG_SETTING_NEWS_SUBSIDIES_HELPTEXT
3500 strval = STR_CONFIG_SETTING_NEWS_MESSAGES_OFF
3502 [SDTC_OMANY]
3503 var = news_display.general
3504 type = SLE_UINT8
3505 flags = SF_NOT_IN_SAVE | SF_NO_NETWORK_SYNC | SF_GUI_DROPDOWN
3506 def = 2
3507 max = 2
3508 full = _news_display
3509 str = STR_CONFIG_SETTING_NEWS_GENERAL_INFORMATION
3510 strhelp = STR_CONFIG_SETTING_NEWS_GENERAL_INFORMATION_HELPTEXT
3511 strval = STR_CONFIG_SETTING_NEWS_MESSAGES_OFF
3513 [SDTC_VAR]
3514 var = gui.network_chat_box_width_pct
3515 type = SLE_UINT16
3516 flags = SF_NOT_IN_SAVE | SF_NO_NETWORK_SYNC
3517 def = 40
3518 min = 10
3519 max = 100
3520 cat = SC_EXPERT
3522 [SDTC_VAR]
3523 var = gui.network_chat_box_height
3524 type = SLE_UINT8
3525 flags = SF_NOT_IN_SAVE | SF_NO_NETWORK_SYNC
3526 def = 25
3527 min = 5
3528 max = 255
3529 cat = SC_EXPERT
3531 [SDTC_VAR]
3532 var = gui.network_chat_timeout
3533 type = SLE_UINT16
3534 flags = SF_NOT_IN_SAVE | SF_NO_NETWORK_SYNC
3535 def = 20
3536 min = 1
3537 max = 65535
3538 cat = SC_EXPERT
3540 [SDTC_VAR]
3541 var = network.sync_freq
3542 type = SLE_UINT16
3543 flags = SF_NOT_IN_SAVE | SF_NOT_IN_CONFIG | SF_NO_NETWORK_SYNC | SF_NETWORK_ONLY
3544 def = 100
3545 min = 0
3546 max = 100
3547 cat = SC_EXPERT
3549 [SDTC_VAR]
3550 var = network.frame_freq
3551 type = SLE_UINT8
3552 flags = SF_NOT_IN_SAVE | SF_NOT_IN_CONFIG | SF_NO_NETWORK_SYNC | SF_NETWORK_ONLY
3553 def = 0
3554 min = 0
3555 max = 100
3556 cat = SC_EXPERT
3558 [SDTC_VAR]
3559 var = network.commands_per_frame
3560 type = SLE_UINT16
3561 flags = SF_NOT_IN_SAVE | SF_NO_NETWORK_SYNC | SF_NETWORK_ONLY
3562 def = 2
3563 min = 1
3564 max = 65535
3565 cat = SC_EXPERT
3567 [SDTC_VAR]
3568 var = network.max_commands_in_queue
3569 type = SLE_UINT16
3570 flags = SF_NOT_IN_SAVE | SF_NO_NETWORK_SYNC | SF_NETWORK_ONLY
3571 def = 16
3572 min = 1
3573 max = 65535
3574 cat = SC_EXPERT
3576 [SDTC_VAR]
3577 var = network.bytes_per_frame
3578 type = SLE_UINT16
3579 flags = SF_NOT_IN_SAVE | SF_NO_NETWORK_SYNC | SF_NETWORK_ONLY
3580 def = 8
3581 min = 1
3582 max = 65535
3583 cat = SC_EXPERT
3585 [SDTC_VAR]
3586 var = network.bytes_per_frame_burst
3587 type = SLE_UINT16
3588 flags = SF_NOT_IN_SAVE | SF_NO_NETWORK_SYNC | SF_NETWORK_ONLY
3589 def = 256
3590 min = 1
3591 max = 65535
3592 cat = SC_EXPERT
3594 [SDTC_VAR]
3595 var = network.max_init_time
3596 type = SLE_UINT16
3597 flags = SF_NOT_IN_SAVE | SF_NO_NETWORK_SYNC | SF_NETWORK_ONLY
3598 def = 100
3599 min = 0
3600 max = 32000
3601 cat = SC_EXPERT
3603 [SDTC_VAR]
3604 var = network.max_join_time
3605 type = SLE_UINT16
3606 flags = SF_NOT_IN_SAVE | SF_NO_NETWORK_SYNC | SF_NETWORK_ONLY
3607 def = 500
3608 min = 0
3609 max = 32000
3611 [SDTC_VAR]
3612 var = network.max_download_time
3613 type = SLE_UINT16
3614 flags = SF_NOT_IN_SAVE | SF_NO_NETWORK_SYNC | SF_NETWORK_ONLY
3615 def = 1000
3616 min = 0
3617 max = 32000
3619 [SDTC_VAR]
3620 var = network.max_password_time
3621 type = SLE_UINT16
3622 flags = SF_NOT_IN_SAVE | SF_NO_NETWORK_SYNC | SF_NETWORK_ONLY
3623 def = 2000
3624 min = 0
3625 max = 32000
3627 [SDTC_VAR]
3628 var = network.max_lag_time
3629 type = SLE_UINT16
3630 flags = SF_NOT_IN_SAVE | SF_NO_NETWORK_SYNC | SF_NETWORK_ONLY
3631 def = 500
3632 min = 0
3633 max = 32000
3635 [SDTC_BOOL]
3636 var = network.pause_on_join
3637 flags = SF_NOT_IN_SAVE | SF_NO_NETWORK_SYNC | SF_NETWORK_ONLY
3638 def = true
3640 [SDTC_VAR]
3641 var = network.server_port
3642 type = SLE_UINT16
3643 flags = SF_NOT_IN_SAVE | SF_NO_NETWORK_SYNC | SF_NETWORK_ONLY
3644 def = NETWORK_DEFAULT_PORT
3645 min = 0
3646 max = 65535
3647 cat = SC_EXPERT
3649 [SDTC_VAR]
3650 var = network.server_admin_port
3651 type = SLE_UINT16
3652 flags = SF_NOT_IN_SAVE | SF_NO_NETWORK_SYNC | SF_NETWORK_ONLY
3653 def = NETWORK_ADMIN_PORT
3654 min = 0
3655 max = 65535
3656 cat = SC_EXPERT
3658 [SDTC_BOOL]
3659 var = network.server_admin_chat
3660 flags = SF_NOT_IN_SAVE | SF_NO_NETWORK_SYNC | SF_NETWORK_ONLY
3661 def = true
3662 cat = SC_EXPERT
3664 [SDTC_BOOL]
3665 var = network.server_advertise
3666 flags = SF_NOT_IN_SAVE | SF_NO_NETWORK_SYNC | SF_NETWORK_ONLY
3667 def = false
3669 [SDTC_SSTR]
3670 var = network.client_name
3671 type = SLE_STR
3672 length = NETWORK_CLIENT_NAME_LENGTH
3673 flags = SF_NOT_IN_SAVE | SF_NO_NETWORK_SYNC
3674 def = nullptr
3675 pre_cb = NetworkValidateClientName
3676 post_cb = NetworkUpdateClientName
3677 cat = SC_BASIC
3679 [SDTC_SSTR]
3680 var = network.server_password
3681 type = SLE_STR
3682 length = NETWORK_PASSWORD_LENGTH
3683 flags = SF_NOT_IN_SAVE | SF_NO_NETWORK_SYNC | SF_NETWORK_ONLY
3684 def = nullptr
3685 pre_cb = ReplaceAsteriskWithEmptyPassword
3686 post_cb = [](auto) { NetworkServerUpdateGameInfo(); }
3687 cat = SC_BASIC
3689 [SDTC_SSTR]
3690 var = network.rcon_password
3691 type = SLE_STR
3692 length = NETWORK_PASSWORD_LENGTH
3693 flags = SF_NOT_IN_SAVE | SF_NO_NETWORK_SYNC | SF_NETWORK_ONLY
3694 def = nullptr
3695 pre_cb = ReplaceAsteriskWithEmptyPassword
3696 cat = SC_BASIC
3698 [SDTC_SSTR]
3699 var = network.admin_password
3700 type = SLE_STR
3701 length = NETWORK_PASSWORD_LENGTH
3702 flags = SF_NOT_IN_SAVE | SF_NO_NETWORK_SYNC | SF_NETWORK_ONLY
3703 def = nullptr
3704 cat = SC_BASIC
3706 [SDTC_SSTR]
3707 var = network.default_company_pass
3708 type = SLE_STR
3709 length = NETWORK_PASSWORD_LENGTH
3710 flags = SF_NOT_IN_SAVE | SF_NO_NETWORK_SYNC
3711 def = nullptr
3713 [SDTC_SSTR]
3714 var = network.server_name
3715 type = SLE_STR
3716 length = NETWORK_NAME_LENGTH
3717 flags = SF_NOT_IN_SAVE | SF_NO_NETWORK_SYNC | SF_NETWORK_ONLY
3718 def = nullptr
3719 pre_cb = NetworkValidateServerName
3720 post_cb = [](auto) { UpdateClientConfigValues(); }
3721 cat = SC_BASIC
3723 [SDTC_SSTR]
3724 var = network.connect_to_ip
3725 type = SLE_STR
3726 length = 0
3727 flags = SF_NOT_IN_SAVE | SF_NO_NETWORK_SYNC
3728 def = nullptr
3730 [SDTC_SSTR]
3731 var = network.network_id
3732 type = SLE_STR
3733 length = NETWORK_SERVER_ID_LENGTH
3734 flags = SF_NOT_IN_SAVE | SF_NO_NETWORK_SYNC | SF_NETWORK_ONLY
3735 def = nullptr
3737 [SDTC_BOOL]
3738 var = network.autoclean_companies
3739 flags = SF_NOT_IN_SAVE | SF_NO_NETWORK_SYNC | SF_NETWORK_ONLY
3740 def = false
3742 [SDTC_VAR]
3743 var = network.autoclean_unprotected
3744 type = SLE_UINT8
3745 flags = SF_NOT_IN_SAVE | SF_NO_NETWORK_SYNC | SF_GUI_0_IS_SPECIAL | SF_NETWORK_ONLY
3746 def = 12
3747 min = 0
3748 max = 240
3750 [SDTC_VAR]
3751 var = network.autoclean_protected
3752 type = SLE_UINT8
3753 flags = SF_NOT_IN_SAVE | SF_NO_NETWORK_SYNC | SF_GUI_0_IS_SPECIAL | SF_NETWORK_ONLY
3754 def = 36
3755 min = 0
3756 max = 240
3758 [SDTC_VAR]
3759 var = network.autoclean_novehicles
3760 type = SLE_UINT8
3761 flags = SF_NOT_IN_SAVE | SF_NO_NETWORK_SYNC | SF_GUI_0_IS_SPECIAL | SF_NETWORK_ONLY
3762 def = 0
3763 min = 0
3764 max = 240
3766 [SDTC_VAR]
3767 var = network.max_companies
3768 type = SLE_UINT8
3769 flags = SF_NOT_IN_SAVE | SF_NO_NETWORK_SYNC | SF_NETWORK_ONLY
3770 def = 15
3771 min = 1
3772 max = MAX_COMPANIES
3773 post_cb = [](auto) { UpdateClientConfigValues(); }
3774 cat = SC_BASIC
3776 [SDTC_VAR]
3777 var = network.max_clients
3778 type = SLE_UINT8
3779 flags = SF_NOT_IN_SAVE | SF_NO_NETWORK_SYNC | SF_NETWORK_ONLY
3780 def = 25
3781 min = 2
3782 max = MAX_CLIENTS
3783 post_cb = [](auto) { UpdateClientConfigValues(); }
3784 cat = SC_BASIC
3786 [SDTC_VAR]
3787 var = network.max_spectators
3788 type = SLE_UINT8
3789 flags = SF_NOT_IN_SAVE | SF_NO_NETWORK_SYNC | SF_NETWORK_ONLY
3790 def = 15
3791 min = 0
3792 max = MAX_CLIENTS
3793 post_cb = [](auto) { UpdateClientConfigValues(); }
3794 cat = SC_BASIC
3796 [SDTC_VAR]
3797 var = network.restart_game_year
3798 type = SLE_INT32
3799 flags = SF_NOT_IN_SAVE | SF_NO_NETWORK_SYNC | SF_GUI_0_IS_SPECIAL | SF_NETWORK_ONLY
3800 def = 0
3801 min = MIN_YEAR
3802 max = MAX_YEAR
3803 interval = 1
3805 [SDTC_VAR]
3806 var = network.min_active_clients
3807 type = SLE_UINT8
3808 flags = SF_NOT_IN_SAVE | SF_NO_NETWORK_SYNC | SF_NETWORK_ONLY
3809 def = 0
3810 min = 0
3811 max = MAX_CLIENTS
3813 [SDTC_BOOL]
3814 var = network.reload_cfg
3815 flags = SF_NOT_IN_SAVE | SF_NO_NETWORK_SYNC | SF_NETWORK_ONLY
3816 def = false
3817 cat = SC_EXPERT
3819 [SDTC_SSTR]
3820 var = network.last_joined
3821 type = SLE_STR
3822 length = 0
3823 flags = SF_NOT_IN_SAVE | SF_NO_NETWORK_SYNC
3824 def = """"
3825 cat = SC_EXPERT
3827 [SDTC_BOOL]
3828 var = network.no_http_content_downloads
3829 flags = SF_NOT_IN_SAVE | SF_NO_NETWORK_SYNC
3830 def = false
3831 cat = SC_EXPERT