BeamNG - Update map

I’m looking for a way to update/change map of BeamNG from a script when using “Custom” map. From what I can see during testing, the “Map” property of ServerConfig.toml is updated when I exit the Custom Map Name field in the config-page. However, when I update directly in the ServerConfig.toml file and save, the changes is not reflected in the config-page.

Is there any smart trick to be able to update the toml file directly and get that reflected into the configpage?
If I restart the server after updating in the toml file, the map is overwritten with what is in the config in AMP config-page.

//Morten

You would need to use the AMP API to configure the setting if you want to do it by script

If editing the file manually, you can now import the file into the AMP settings from the instance file manager - right click and import. Update your instance from the main instances page in AMP to get this change applied

I managed to figure it out togheter with ChatGPT and a few hours of reading logs.

First, I stop ADS01, then update the ServerConfig.toml file.

Then I need to fix permisions and then start up again ADS01 and restart the BeamMP instance.

Still some more testing to do but at least this updates the toml file like if it is done from the webpage.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.