🚂 WePlay: Trains Get Radar
No more trains disappearing into the dark! 🌑 Every locomotive now charts the map around it like a radar, so your rail network lights up as trains run. Watch your trains roll across the map instead of vanishing into the fog of war 👀
Mysterious trains? 🕵️ Not anymore. See what's happening at that faraway outpost, spot biters near your tracks 👾, and watch new rail lines appear on the map as your trains explore them.
🔍 How it works
- 📡 Every locomotive charts the area around itself. That's a 5×5 chunk area by default, the same as a vanilla radar's nearby coverage.
- 🏃 Moving trains chart the whole stretch of track they cover, so there are no gaps even at full speed.
- 🅿️ Parked trains refresh on a slower timer (every 30 seconds by default) or not at all, your choice.
- 🎥 Following a train in remote view? It charts ahead of itself, so your view never runs off the edge of the map.
- 🔌 No equipment, no power, no research. Just place a locomotive and go!
⚡ Built for big rail networks
- 🚀 Tested on a Space Exploration save with hundreds of trains: 0.02 ms per tick.
- 🤝 Trains share the work. Chunks charted recently by any train are skipped, so a busy station full of trains costs about the same as a single train.
- 📊 Work is spread across ticks. Locomotives are scanned a few at a time, so even hundreds of trains won't cause lag spikes.
- 👻 No hidden entities. No radars stuck to your trains, no surprise entities, nothing to clean up.
- 💤 Parked trains barely cost anything, and most trains spend most of their time parked at stations.
⚙️ Settings (change mid-game!)
- Radar radius: 0 to 8 chunks (default 2). 0 charts only the chunk the train is in.
- Scan interval: how often each train is checked, in ticks (default 120). Moving trains chart everything they passed since the last check.
- Parked train refresh: how often stopped trains refresh, in seconds (default 30, 0 = never).
- Charting mode: Explore and refresh keeps the map around your rails up to date. Explore only just reveals new ground, for an even lighter footprint once your network is mapped.
🧩 Compatibility
- ✅ Works with modded locomotives, including ones created by other mods' scripts (shuttle and taxi mods).
- ✅ Works in vanilla, Space Age and Space Exploration, with no Space Age requirement. Every planet's trains keep that planet's map up to date.
- ✅ Safe to add to an existing save. It finds all your locomotives when it loads.
- 👥 Multiplayer friendly: each train charts for its own force.
🛠️ For modders
A remote interface is included:
- remote.call("WePlayTrainsGetRadar", "count") returns how many locomotives are tracked.
- remote.call("WePlayTrainsGetRadar", "rebuild") forces a full rescan.
💬 Ideas or requests? Drop them in the Discussion tab!
🎒 Pairs well with
WePlay: Cartographer Equipment: a backpack radar that charts the map around you as you explore! 📡
WePlay: Taxi Train: a half-size taxi locomotive that gets radar too! 🚕
More WePlay mods: more trains, equipment, and quality-of-life goodies! 🚂✨