All guides

Weather for map authors

How to group a map's spawnpoints and produce an openomsi_weather.cfg file.

  1. Find your map's global.cfg: OMSI folder → maps/<map name>/global.cfg. Just open it in the editor; nothing is changed.
  2. Open the weather editor and drag global.cfg into it. UTF-16, UTF-8 and Windows-1250 encodings are supported.
  3. Group the spawnpoints. If the names refer to real places (e.g. Praha,Ládví), tick “Spawnpoints use real place names” and use Split by place. Groups are formed by the part before the first comma, ignoring case and diacritics. Otherwise select points manually and assign them to a group.
  4. Verify the GPS. Enter lat;lon with a decimal point, e.g. 50.0755;14.4378, or use the optional “Find GPS” and confirm the right candidate. In-game X/Y are not geographic and the editor does not convert them. A name alone is not enough: Chlum or Doksy exist in several places. Check the position on a map and use the centre of the correct town.
  5. Reduce the number of locations if needed: neighbouring villages can share one area. The editor shows the number of real API locations, i.e. distinct coordinates.
  6. Export openomsi_weather.cfg and save it in the same folder beside global.cfg. Regular OMSI ignores this file and the map loads as before. After editing the file the map must be reloaded.

An approximate town centre is not the exact position of every spawnpoint. For regional weather it is enough.

The file format is described upstream in docs/WEATHER_REGIONS.md.

Map 400

For map 400 (v1.5.2) the editor offers a ready-made preset with 14 areas. Spawnpoints are read from your own global.cfg; the site contains no map data. The preset is not applied to another map merely because of similar names.