Commits · tecnagamer/BeamNG.Earth | Trylle
PublicSyncedPull mirror status: ok Commits on Mon, Nov 16, 2026
Where you left off keeps the car's heading (the user, 2026-11-15: "also save and load your cars rotation"): beamngEarth_lastpos.json gains heading (degrees clockwise from true north at the car, 0.1 degree; core.carHeading), saved with the place while driving, at level end and game close; the start's teleport to it sets the car facing that way (core.headingDir through the new anchor's north, placePlayer once; floorCheck keeps the car's own). The server's start place reads lat/lon as before. Tests: test_places (saved, rounded, wrapped, none for a teleport / NaN), test_core_stubbed (placed and read back agree at 64 N, 20 km from the anchor). CHANGELOG 1.10.1
Commits on Sun, Nov 15, 2026
Launch modes: the game copy and how it starts are settled before anything starts (gameinstall.py, the user's go 2026-11-15; research .claude/work/codex-launch-without-steam-2026-11-15.md, plan steps 1-4). Copies found in order: --game-dir, the saved choice (revalidated), BeamNG's INI installPath / registry key (rootpath first), Steam's libraries, the Epic Games Launcher's manifests (%ProgramData%\Epic\EpicGamesLauncher\Data\Manifests\*.item: JSON, matched by the app's names, files checked), then the folder question; the store is what the copy is (steam / epic / other). Several copies: the player picks once (kept; --choose-game asks again; no console: the first, said). One launch setting, app.json launchMode, written only by the launcher (--launch auto|steam|direct, the chooser's question), never by the game's settings page (PR #1309's polling wrote an absent value back). auto (default) = a Steam copy through Steam exactly as before, an Epic copy directly, an own folder from its folder as before. direct: Windows <root>\Bin64\BeamNG.drive.x64.exe -nosteam -userpath <base> [-gfx only when asked], Linux <root>/BinLinux/BeamNG.drive.x64 -nosteam -userpath <base> with the gcpatch preload, Steam's launch options and the Steam runtime files as before but no Steam ids and no Steam client needed; never falls back to Steam: a missing program or an early exit is said with the store's advice and the app stops. Steam Deck Game Mode and the Windows build under Proton start as before. BeamMP stays independent (--no-launch; on Windows a direct start names the same user folder to it with --user-path); Linux copies outside a Steam library: BeamMP needs a Steam library for now, single player works. README updated. Tests: tests/test_gameinstall.py (fake INI / registry / manifests / libraries, commands per mode and system, setting persistence, BeamMP, Steam default unchanged); StartOrderTest patches resolve_launch. Restart world server: only the game can ask, and asking too often never leaves a stopped server (Codex review of 8e712c75, both findings): a 'server_restart' is honoured only on the connection that said the game's hello (it holds its stream lease) and with the key the server writes at each start in the game's own temp/beamngEarth/restart.key (0600; srvrestart.write_key, core.restartKey: a stray local client or another user's process knows neither; refused before any yes); the supervisor hands its restarts so far to each server (BNGEARTH_RESTART_TIMES, time.time()) and the server refuses the request its supervisor would not honour (budget_refusal: "try again in N min", the server keeps running; times only age out, so the supervisor deciding later never refuses what the server allowed). start.py now applies Ground grid as the launcher does (srvrestart.apply_ground, a fresh environment per start: server_env), and the hello's groundGrid is the square in force (heightmap.SQUARE), not the file's wish; settings forced by hand in the server's environment (a BNE_* switch, BNGE_GROUND_SQUARE, BNGE_SERVER_CORES, BNE_3DMR, --nice, a dev's BNGE_SERVER_ENV) go out as hello.startFixed and are never offered (a restart would not change them). Tests first-hand for both: a stray client without hello / without the key refused while the game's own request works (test_srvrestart SessionTest, ServerSideTest), the sixth request in ten minutes refused by the server (LimiterTest.test_server_side_budget), start.py's restarted server with BNGE_GROUND_SQUARE=2 and the reported grid from the square in force; protocol table (server_restart.key, hello.startFixed); test_core_robustness 6b (no key: nothing sent; the key sent), test_srvrestart.lua (fixed never pending) BeamMP leave: the player's own BeamNG.Earth switched back on by a core_jobsystem job armed by the player's copy when BeamMP turns it off in a session (core.lua onModDeactivated, before the code swap), so it works whatever copy the server sent (the user, 2026-11-15 on 1.10.1: "when i left the server it disabled the mod", a third-party server's 1.10.0 copy). Root cause (the user's beamng.log + BeamMP/game source): 1.10.0's restoreTick ran in core's onUpdate after the menu early return; leaving through the level's end (Esc > Main menu: onClientEndMission -> MPCoreNetwork.leaveServer(false)) had already reset st, so it never ran; deleteMod leaves the session copy's Lua loaded but that code can't be fixed. The job polls BeamMP's session each frame only while armed, switches ours on at the first frame after the session (before BeamMP's 0.5 s Lua reload on "Leave"), retries up to 3 times; the leave hook and a load in a session arm it too; never outside a session (MPCoreNetwork calls leaveServer at every level end: a copy the player turned off stays off). test_mpleave.lua: stand-ins of core_modmanager / MPModManager / MPCoreNetwork / core_jobsystem with the real modScript and codeswap: 1.10.0 bug reproduced, then old 1.10.0 / 1.8 / own / no server copy, Esc and Leave (+ Lua reload, a 2 s frame), rejoin, player-off. Restart world server from the settings page without closing the game (the user, 2026-11-15: "For any options that require a server restart can we add a button to restart the server without having to close beamng"): the server's hello names the start-time values of the settings it reads only at a start (srvrestart.start_view: the Experimental switches, Ground grid, CPU cores, priority, 3dmr.eu models; Max RAM from memwatch's restart; the cache folder picked for the next start) and whether a supervisor restarts it (BNGEARTH_RESTARTABLE, not a BNE_* key); the page shows "Restart world server" when one differs (earthRestart.js, srvrestart.lua pending); the mod's new 'server_restart' (protocol table) is answered, then the server closes its connections, network and cache (main_async's finally), stops its workers, runs its exit handlers and exits with code 85 (srvrestart.finish; a 25 s guard); launcher.RestartingServer / start.py start it again with the same options and the settings read anew (experimental_env, ground square, cache folder), Linux leftovers of the old group killed, the port waited for, at most 5 restarts in 10 minutes, a crash or a stop never restarted; the mod holds the car from the server's yes (simhold: in BeamMP our car only), lets go for the resync's commit, releases once the resync committed and the road tiles round the car are in (or after 60 s), every phase time-limited; the banner says "Restarting the world server", not "Lost". Notes on the restart-needing settings point at the button; README. Tests: test_srvrestart.py (view, hand-over, limiter, child-process clean exit, request/serve, launcher and start.py loops), protocol table + session refusal, test_srvrestart.lua, test_core_robustness 6b (the whole restart against a fake server), test_restart_box.mjs; quality gate lists them Experimental settings page (the user, 2026-11-15: "add the toggles for the features that can only be enabled via environment variables"; the French / European scenery as one toggle): 24 switches, all off by default, each the server's BNE_* build switches (server/experimental.py FEATURES): Road signs (the hidden roadSigns made real: off by default, settings VERSION 3, a version-2 file's true was the hidden default, the server reads it so too), Dutch road signs, French and European road scenery (BNE_EU_ROAD_DETAILS + BNE_FR_ROADS + BNE_FR_HOUSES), guard rails at drops, widened entrances, right of way by road class, bumpy roads, rough dirt roads, tyre polish / crack networks / manholes, road steepness limit, road surface from aerial photos, rougher land, rock faces in cuts, tunnel lids, more undersea tunnels, AI through tunnels, solid rails, catenary, grouped level crossings, rail tunnels, rounded rail curves, closed 3D models, detailed Canadian lidar, the older world while rebuilding.
Commits on Sat, Nov 14, 2026