BeamNG.Earth README

The project's README from github.com/TecnaGamer/BeamNG.Earth. As one markdown file: README.md.

BeamNG.Earth

A 1:1 scale, streamed Earth for BeamNG.drive: drive anywhere on the planet on real elevation data and satellite imagery, with distance-based level of detail and the real curvature of the Earth.

TLDR: a streamed, 1:1 scale Earth for BeamNG.drive (beta).

Download (BeamNG.Earth 1.11.0 beta; all releases: latest release):

Your system Download (direct) Then
Windows PC BeamNG.Earth-1.11.0-beta.exe Start Steam, double-click it (if Windows warns: More info, then Run anyway), keep the console window open.
Linux PC or Steam Deck (Desktop Mode) BeamNG.Earth-1.11.0-beta-x86_64.AppImage Start Steam, make it executable (chmod +x), run it.
Hosting a BeamMP server BeamNG.Earth-BeamMP-Server-1.11.0-beta.zip Unzip into your server and add BeamMP's own server program from their releases.

Not sure? Windows: the .exe. Linux or Steam Deck: the .AppImage. Then in the game: Freeroam, pick the BeamNG.Earth level. Step by step: Install and play. Help: discord.gg/tgf (#beamng-earth). All files: the release page.

Install: run the download; it installs the mod and starts the server and the game (Install and play). Chat and help: discord.gg/tgf, #beamng-earth. Support: Ko-fi or Patreon.

Status: beta (see VERSION). Tested on BeamNG.drive 0.40.6 on Linux (Vulkan); the Steam Deck was last tested on 0.40.3. See docs/ROADMAP.md for what is coming.

Community: join the TGForever Discord, discord.gg/tgf, and head to the #beamng-earth channel to chat about the mod, get help, report bugs, help with its development, and get an IP to join a BeamMP.Earth server (see Multiplayer).

Help with multiplayer comes from the TGForever Discord too. BeamNG.Earth isn't like a normal BeamNG mod (it runs its own app next to the game), so if something isn't working with BeamMP, it's almost certainly a BeamNG.Earth problem, not a BeamMP one. Please don't contact the BeamMP team or open BeamMP support tickets about it.

You can help support development by reporting issues, contributing code and sending pull requests, or donating on Ko-fi or Patreon. Thank You!

Features (working today)

The world

Time, weather and physics

Driving and traffic

Multiplayer (BeamMP, in testing)

Map and navigation

Interface and tools

How it works

Install and play

You need: BeamNG.drive (tested with 0.40.x) on Steam, free disk space for the map download cache (it grows as you visit places, up to 20 GB by default; Settings > Storage > "Cache size limit" takes any size in GB, 0 for no limit), and an internet connection (the map is downloaded while you play).

  1. Download the file for your system from the Releases page:
    • Windows: BeamNG.Earth-<version>.exe. Windows may warn about an unknown app: More info > Run anyway.
    • Linux: BeamNG.Earth-<version>-x86_64.AppImage. Make it executable (right-click > Properties > "Allow executing", or chmod +x).
  2. Run it (with Steam running). A console window opens (like BeamMP's launcher); it copies the mod into the game, starts the world server and starts BeamNG.drive. Closing the game stops the server.
    • Linux, native game: started with the engine patches (tools/gcpatch: grass kept across block moves, steady game speed (dtsmooth: no catch-up burst after a hitch), shorter ground block swaps (terfast), lighter frames after a swap (texkeep: unchanged ground textures kept)) already applied, no Steam launch options needed. On Windows the launcher applies dtsmooth and terfast to the running game. The patches find the engine's code by its instructions, so a game update that leaves those functions as they were keeps them; a patch that does not apply (a game update changed its code) is named in the launcher's window and in a warning in the game, and the game runs without it.
    • Linux, Windows build under Proton: the AppImage sees the Proton setting and starts that build through Steam (the server runs natively). The .exe also works inside the game's Proton prefix (for example with protontricks' launcher).
    • Linux, Steam as a Flatpak (or snap): the mod goes into the game's folder inside the Flatpak (~/.var/app/com.valvesoftware.Steam/...) and the game starts through Steam (without the grass patch).
    • The Windows build shows BeamNG's launch options dialog (renderer, safe mode) as usual; --gfx dx11 / --gfx vk / --gfx dx12 skip it with that renderer.
  3. Play: in the game, go to Freeroam and pick the BeamNG.Earth level. A welcome page explains the basics the first time. Press M for the world map: search a place or an address, right-click to teleport, left-click to set a GPS route, and Autodrive to let the car drive it.

From the source instead (any system with Python 3.10+): download this project (the green Code button > Download ZIP) and unzip it. Install once (and after each update): double-click run_server.bat (Windows) or run python3 install.py (Linux). Then start the server with run_server.bat / ./run_server.sh, keep its window open, and start the game yourself. Or run python3 launcher.py, which also starts the game like the downloads do.

Updating: the mod tells you in game when a newer version is on GitHub. Download the new file and run it (from the source: unzip it over the old folder and run the installer again).

Development builds (pre-releases): every change pushed to the dev branch is built automatically and published as a GitHub pre-release named after the beta it follows, with a build number (for example 1.7.2-beta.dev.37). They have the newest fixes and features, but they are built from the development branch and not thoroughly tested: expect bugs, and things may change or break from one build to the next. The beta releases are the tested ones. A development build says so in game, and its update check offers the next development build (or the next beta, if that is newer); a beta only ever offers betas. Only the newest three development builds are kept on the releases page as their own pre-releases; older ones (the last 60) stay downloadable from one release, Development builds (archive), whose page lists them newest first with their Windows and Linux files.

Uninstalling: delete the beamng_earth folder in <BeamNG user folder>/current/mods/unpacked/ and the downloaded file (or this folder); the map cache is .cache/beamng-earth in your home folder (~/.cache/beamng-earth on Linux, C:\Users\<you>\.cache\beamng-earth on Windows).

The map cache on another drive: in the game, settings page > Download cache > Cache folder: Change... opens your system's folder window, or type or paste a folder and press Use. Or start the app once with --cache-dir PATH (e.g. a shortcut to BeamNG.Earth-<version>.exe --cache-dir "D:\BeamNG.Earth cache"). It is used from the next start and remembered; default goes back. Move the old cache folder there first to keep what is already downloaded.

Deleting the whole map cache: start the app once with --clear-cache. Its folders are moved aside at once and deleted in the background while you play (no long wait for the many small files). The in-game Clear cache button keeps the area around you.

Cars or the ground black from orbit (the 3D map), Linux: the game may keep an old compiled copy of the sky shader the app patches. When the app starts the native Linux game itself, it adds -noLoadShaderCache (the start's "Shader cache" line then says so; it does not check what the game did with it). In one test (one PC, Vulkan) the game then compiled its shaders for that start and loaded about 3 s slower. This should help in some cases; it is not confirmed to fix it. Starts through Steam (including the app's fallback to Steam), a Flatpak / snap Steam, the Windows build under Proton and Windows don't get it. If you already put -noLoadShaderCache in the game's Steam launch options, the native game the app starts gets it twice (the app passes your launch options on); whether the game minds is untested.

BeamNG.drive installed somewhere else (not in a Steam library the app finds, e.g. another launcher): the app also looks where BeamNG itself records its folder and, on Windows, in the Epic Games Launcher's list of installed games. Not found anywhere: the app asks where it is the first time (Enter opens your system's folder window, or type or paste the folder) and remembers it; --game-dir PATH sets it too, --game-dir default forgets it. Several copies (Steam and Epic Games, say): the app asks once which one to start and remembers it; --choose-game asks again. An Epic Games copy starts directly (see below); a copy in a folder of your own starts from its folder. On Linux, BeamMP's launcher finds the game only in Steam's libraries, so BeamMP isn't started with a copy outside them (single player works as usual).

Starting without Steam (--launch direct, remembered; --launch steam or --launch auto goes back): the app starts the game's own program with -nosteam and the same user folder (-userpath), so the mod, the map cache and your settings stay the same, and Steam doesn't need to be running. Windows: Bin64\BeamNG.drive.x64.exe (BeamNG's launch options window is skipped; --gfx still picks a renderer); Linux: the native BinLinux/BeamNG.drive.x64. Steam's overlay, Steam Input and play time aren't available this way. BeamMP still starts with the game. On a Steam Deck in Game Mode, and for the Windows build under Proton, the game starts as before. The default (auto) starts a Steam copy through Steam as before.

More detail (traffic, the status bar, reporting problems, troubleshooting): docs/QUICKSTART.md.

Developer setup

Rail-crossing props can be regenerated with python3 tools/build_rail_crossing_props.py; their lettering uses the bundled DejaVu Sans Bold font on every platform.

python3 install.py also works from a checkout (mod copy, .venv, then python3 start.py); by hand:

  1. Python 3.10+ with the packages in server/requirements.txt. The server needs its Rust module: the checkout carries it built for Linux x86-64 (server/earthfast.abi3.so) and Windows (server/earthfast.pyd); after changing native/earthfast, or on another system, build it with python3 tools/build_native.py (Rust's cargo; --windows cross-builds the .pyd with cargo-zigbuild).
  2. Copy (or sync) mod/beamng_earth/ to <BeamNG user folder>/current/mods/unpacked/beamng_earth/.
  3. Start the server: python3 server/earthd.py
  4. Start BeamNG.drive and load the BeamNG.Earth level. The mod connects to the server and streams the world; the status bar at the top shows where you are and the loading, M opens the world map (search, teleport, GPS routes, Autodrive).

Player downloads: python3 tools/build_app.py builds this system's AppImage / .exe (PyInstaller; see its docstring; for the .exe run tools/build_bootloader.py first: a bootloader built from source, fewer antivirus false positives); GitHub Actions (.github/workflows/release.yml) builds both and publishes the release v<VERSION> whenever main gets a VERSION without one. Release zip of the source: python3 tools/package.py.

Tests: cd server && python3 -m unittest discover -s tests -t tests and cd mod/tests && for f in test_*.lua; do luajit $f; done (no luajit: pip install lupa, then python3 tools/run_lua_tests.py).

For native thread-crash diagnostics without starting the game, see the isolated stress runner.

Multiplayer (BeamMP)

BeamNG.Earth runs on BeamMP servers (in testing): drive the real world together.

Support for BeamNG.Earth on BeamMP comes from us, not from BeamMP. For questions or help with joining or hosting a BeamNG.Earth server, join the TGForever Discord: discord.gg/tgf. BeamNG.Earth isn't like a normal BeamNG mod: it needs its own app running next to the game. If something isn't working, it's almost certainly a BeamNG.Earth problem, not a BeamMP one, so please don't contact the BeamMP team or open BeamMP support tickets when you run into trouble getting BeamNG.Earth to work with BeamMP.

BeamNG.Earth servers are hidden from players who don't run BeamNG.Earth. BeamMP can't install BeamNG.Earth for a player who joins, because it needs its own app (a launcher and a world server that builds the world on each player's computer). So BeamMP's own server list never shows these servers. Players with the BeamNG.Earth app find them in the BeamNG.Earth category of BeamMP's server browser, or join by Direct Connect.

Joining a server

  1. Start the BeamNG.Earth app (the same version as the server's). It starts BeamMP with the game: the official BeamMP launcher, unchanged (BeamMP's code is AGPL-3.0, github.com/BeamMP). If BeamMP isn't installed, the app asks once: Yes / No / Don't ask again / Have it already (the last one asks where your launcher is: Enter opens your system's file window, or type or paste the path; --beammp-launcher PATH sets it too, and it is kept for the next starts). To change it later: settings page > Multiplayer > BeamMP launcher.
    • Windows: Yes downloads BeamMP's official launcher from BeamMP's GitHub releases (checked against the checksum BeamMP publishes; Windows Firewall then asks once whether it may use the network: allow it).
    • Linux and Steam Deck: BeamMP publishes no Linux download, so Yes builds its launcher on your computer from BeamMP's source, the newest version that passed BeamMP's own tests, in an Ubuntu container (podman or docker: SteamOS has podman; about a minute on a Steam Deck). A launcher you built yourself is used when found (a BeamMP-Launcher folder in your home folder or one folder down, e.g. ~/Games/BeamMP-Launcher, or ~/.local/share; or answer "Have it already", or set BEAMMP_LAUNCHER).
    • The setting Start BeamMP with BeamNG.Earth (Pause menu > BeamNG.Earth > Multiplayer) turns this off or back on; --no-beammp starts the game without BeamMP once. If BeamMP is not ready within 30 seconds the app stops it and carries on in single player (--beammp-wait SECONDS waits longer, up to 600).
  2. In the game: main menu > More > BeamMP, log in (an account or a guest).
  3. Pick the BeamNG.Earth category in BeamMP's server browser: the servers running BeamNG.Earth (search, filters, favorites and details as for the other servers), the official server at the top. They are listed only there, for players who have BeamNG.Earth. A private server: Direct Connect with its address (the TGForever Discord server has some). Every player needs the BeamNG.Earth app running: each builds the world on their own computer. (Starting the BeamMP launcher yourself first still works: the app then starts just the world server.)

Leaving a server turns BeamNG.Earth back on (joining one switches your other mods off).

You are sent to where the others are. Cars show in the right place in everyone's world; other players show on the world map (M) as green arrows; players far away (another country) are hidden until you meet. A far player's car isn't even loaded on your computer until it comes within about 15 miles (then it appears with its latest parts and paint, by BeamMP's own spawn queue settings), so far players spawning or changing cars don't freeze your game. Crash damage: a crash you watch keeps the damage your own game worked out; a car that crashed out of your sight takes on its owner's damage (broken parts and dents) once it comes within about 0.6 miles.

Each player's app builds the world around them on their own computer. Sharing the work (in testing): the BeamMP server keeps what its players build of the slowest part of the world, the road levelling plans of each map area (compressed, a few hundred KB each), and sends it to every player who comes there later, this session or the next. A player near the others gets much of it from the server instead of building it, which is quickest on slower computers. It all goes through the BeamMP connection itself, nothing to set up or forward, and only between players running the same BeamNG.Earth version with the same settings. A server can also hold baked packs of whole areas (put .bnge files in Resources/Server/BeamNGEarth/bake/), and the machine running the server can build ahead of the players itself (the share helper, below).

Hosting a server: download BeamNG.Earth-BeamMP-Server-<version>.zip from the Releases page and follow the guide inside (BeamNG.Earth-README.md). In short: unzip it into a BeamMP server's folder, set Map = "/levels/beamng_earth/info.json" in ServerConfig.toml, forward the server's port (TCP and UDP) for players over the internet, and start it (its log shows [BeamNG.Earth] plugin loaded). Which list it is on: Private = false with your AuthKey puts it on the BeamNG.Earth list (the in-game category) and the plugin keeps it off BeamMP's own public list, so players without BeamNG.Earth never see it; Private = true, or no AuthKey: on no list, players use Direct Connect. The plugin lists the server once a minute with curl (Linux, and Windows 10 and later). Update the server zip with every release: it carries the mod the server sends to players. The server's time and weather for everyone (G.TIME: real or a fixed / running time such as '20:30'; G.WEATHER: real, real-host (everyone gets the weather where the longest-joined player is) or a preset such as clear, overcast, rain, heavyrain, storm, fog, snow, blizzard) are set near the top of Resources/Server/BeamNGEarth/main.lua. The server needs no world data and little CPU. From the source, python3 tools/package.py --beammp builds the same zip. The releases carry only that zip: get the BeamMP server program itself from BeamMP's own releases. With Docker: ghcr.io/tecnagamer/beamng.earth-server:<version>, BeamMP's server with the plugin in a container (tools/build_host.py builds it), set up through its environment (BEAMMP_AUTH_KEY, BEAMMP_NAME, BNGE_WEATHER, ...; see "Docker" in the server zip's guide, beammp/README.md).

The server keeps its players' shared world building in Resources/Server/BeamNGEarth/store (up to G.SHARE_STORE_MB, 2 GB by default; the pieces used longest ago go first) and sends at most G.SHARE_OUT_KBPS (1 MB/s) of it, both near the top of main.lua. Share helper (in testing): to let the server's machine build ahead of its players, run BeamNG.Earth's world server next to it, from the source: python3 server/sharehelper.py --share-dir <BeamMP server>/Resources/Server/BeamNGEarth --cache <a folder for its map data> --procs 4. It needs the same BeamNG.Earth version as the players and a few GB of disk for each area.

Usage statistics (telemetry)

To see how many people play and how hard we are pushing the free map-data services we rely on, the world server sends a small anonymous report every 5 minutes: a random install id (created on your machine; no name, account or hardware id), the app version and operating system, whether the game is connected, whether it is a BeamMP session, and how many requests went to each data source (with their errors and rate limits). With Performance data ticked it also sends the game's frame rate and hitches, how well the world keeps up, your CPU / GPU model and settings, and error codes. No positions or places are sent. The collector looks up your country from the connection's address and does not keep the address.

The public numbers (players online, peaks, history, countries with at least 5 players) are at https://earth.tgforever.net/players, and the performance numbers (groups of at least 5 players) at https://earth.tgforever.net/performance.

Nothing is sent until you choose. The welcome screen asks first, with a main switch and two parts (performance data, network load); how the boxes start depends on your computer's time zone (nothing ticked in the EU and some other places). Change it any time in BeamNG.Earth's settings page, Interface (from the next report on), or set the environment variable BNE_TELEMETRY=off before starting BeamNG.Earth. Reports are never sent in offline mode (--offline). Every field, why we want it and what happens to it: TELEMETRY.md.

Sending a report to the developers

The in-game reporter (Ctrl+Shift+E; Ctrl+Shift+Y records a 30 s performance profile) saves each report in your BeamNG user folder (beamngEarth/reports/). After saving, Send to the developers opens a window that lists exactly what would be sent, with the files to read, and nothing is sent until you click Send there:

User names, home folders, e-mail and IP addresses are removed from all of it, also from the copy kept on your computer. Reports are sent privately to the BeamNG.Earth developers (the project's own server, earth.tgforever.net) and are not published; they are kept 90 days. A random install id (no name or account) goes with each report so reports from one computer can be told apart. Sending is your choice each time, so it works with the usage statistics off too. The send runs in the background, is retried, and a report not sent yet goes at the next start; the window then shows a short report id (like K7QD-3M9X) to quote on Discord or GitHub. Open GitHub issue page still opens a ready-to-post public issue if you prefer that. Details: TELEMETRY.md.

Data sources and attribution

The repository contains only code; all map data is downloaded at runtime and cached locally.

License

Code: MIT, see LICENSE. BeamNG.drive is a trademark of BeamNG GmbH; this is an unofficial fan project and contains no BeamNG assets.

BeamNG.Earth (TecnaGamer/BeamNG.Earth)

geospatial
Searching Database…

What is this?BeamNG.Earth is a mod for BeamNG.drive that streams a 1:1 scale model of the real planet into the game, using real elevation data and satellite/aerial imagery with distance-based level of detail and real Earth curvature.
Is this a game mod or a standalone app?It's a BeamNG.drive mod paired with a small local Python companion server. The mod loads terrain inside the game while the server downloads elevation/imagery and streams it over a local socket, since the game's Lua can't reach the internet itself.
How do I install and start playing?Download the launcher for your OS from the Releases page (.exe on Windows, .AppImage on Linux), run it with Steam running — it copies the mod into the game, starts the world server and launches BeamNG.drive; then pick the BeamNG.Earth level in Freeroam. You can also run from source with 'python3 install.py' and 'runserver.bat'/'./runserver.sh'.
Do I need BeamNG.drive and Python to use it?You need an existing BeamNG.drive install on Steam (tested with 0.39.x) and free disk space for the map cache; running it from source instead of the prebuilt launcher additionally requires Python 3.10+ with the packages in server/requirements.txt.
Is this finished and stable, or still rough?It's labeled beta and has only been tested on BeamNG.drive 0.39.4 on Linux/Vulkan; features like high-speed streaming, real view distance, roads, water, navigation, traffic and cities are still listed as upcoming in the roadmap.
Can I play without an internet connection?You need internet the first time you visit an area since terrain streams live, but once tiles are cached you can replay those same areas offline from the download cache, which is capped at a configurable 5-50 GB.
What's the deal with the license, since it uses real map data?The mod's own code is MIT licensed, but some downloaded imagery like the 2023 Sentinel-2 cloudless release is only available under a non-commercial CC BY-NC-SA license, and this is an unofficial fan project containing no BeamNG assets.
Does traffic AI actually work on these real-world roads?Yes — the mod builds BeamNG's road graph from the real roads around you, including lanes, speed limits and traffic signals, so the stock AI, traffic and police systems work on it.
Does the in-game weather match real conditions?Yes, it pulls live weather from Open-Meteo for your current location (clouds, wind, rain/snow, temperature) and sets the sun/moon position from the real time zone and clock, feeding it through BeamNG's own weather system.
Where does the map data come from?Elevation comes from national lidar datasets and Copernicus 30m data, imagery from open state/national orthophotos and Sentinel-2 cloudless, and roads/buildings from Overture Maps and OpenStreetMap, with full credits in CREDITS.md.
Creator
TecnaGamer
Size
1.5 GB
Stars
2.3K
Age
1mo
Commits · 90 Days