#1522

Fix the map not opening (syntax error in earthSettingsStore.js)

OpenS-moreowants to merge intofrom

Fixes #1521

167cd1fb added the Road surface overlay and New sidewalks toggles inside the Revamped roads entry, before its note: RESTART_NOTE }, line. That left the Revamped roads object unclosed, so earthSettingsStore.js no longer parses. Everything that imports it fails to load: the big map (M) and the BeamNG.Earth pause-menu tab. The game log shows:

BeamNG.Earth: map route failed SyntaxError: Error transforming /ui/ui-vue/mods/beamngEarth/earthSettingsStore.js: Unexpected token, expected "(" (94:11)
Route not found: beamngEarthMap

This puts the note line back on Revamped roads and gives each of the two new toggles its own restart note. No other changes.

Tested: node --input-type=module --check passes on the file. In game on dev.554 with the fixed file, the UI reloads without the error and the BeamNG.Earth map module registers again.

Activity

2
S-moreo12h ago

The failing check is regression (windows-latest), which fails only in test_restart.SessionAdoptionTest.test_sweep_rechecks_ownership_after_listing (['20261010-120000-bbbb'] != []). I think it's unrelated to this PR. That test was added in 932a62c2 and covers the server's session sweep. This PR only touches earthSettingsStore.js. The test passes on Ubuntu, and it passes for me on Linux on this branch too, so it looks like a Windows timing issue in the new test.