Configuration with OpenTTD - Cannot edit OpenTTD [newgrf] section in openttd.cfg

System Information

Field Value
Operating System Linux - Ubuntu 24.04.2 on x86_64
Product AMP ‘Phobos’ v2.6.2.0 (Mainline)
Virtualization None
Application OpenTTD
Module GenericModule
Running in Container No
Current State Ready

Problem Description

Issue

Hi,
I’m trying to add FIRS newGRF extension into OpenTTD server.
There is no UI configuration for it, so I’ve tried to edit openttd.cfg file manually.
Unfortunately, this value is reset after server restarts:

[newgrf]
F1250009|B7682E1DA1CA2D2DE98CFDAA4CF9E1DF|firs.grf = 0 0 0 0 0 0 16 150 80 250 1

Later I even tried to use custom AMPTemplates (from my own fork wip: try to bring firs · mortiy/AMPTemplates@93633b2 · GitHub) with predefined values in openttdopenttd.cfg, but the values inside [newgrf] section are removed anyway.
Besides [newgrf] section, [ai_players] and [game_scripts] are also not configurable.

[ai_players]
none =
SimpleAI =
SimpleAI =
AdmiralAI =
AdmiralAI =
CityLifeAI =
none =
none =
none =
none =
none =
none =
none =
none =
none =

[game_scripts]
"Renewed Village Growth" = log_level=3

Reproduction Steps

  • Add firs.grf into config/newgrf folder
  • Edit openttd.cfg via Web UI
  • Restart server

Stop the server before editing configs

Are you using the AMP File Manager to edit?

1 Like

Amazing.
Yes, stopping the server before editing the file helped. :sweat_smile:

Any idea how to support editing that [newgrf] list in UI Editor?
I mean having at least multiline input which content will be written under [newgrf] section?

[newgrf]
F1250009|B7682E1DA1CA2D2DE98CFDAA4CF9E1DF|firs.grf = 3 0 0 0 0 0 16 150 80 250 1
CF6F0000|D4A07FD09EA013E83D3DB388A3F2043B|cf6f0000-ukrainian_town_names-1.0.tar/ukrainian_town_names.1.0/ukrainian_townnames.grf = 

Not possible given how the template is configured to write to the configs

1 Like