🚂 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 through live map view 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 every 2 seconds.
- 🅿️ Parked trains refresh on a slower timer (every 30 seconds by default) or not at all, your choice.
- 🔌 No equipment, no power, no research. Just place a locomotive and go!
⚡ Built for big rail networks
- 🤝 Trains share the work. Chunks charted recently 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 moving trains chart, in ticks (default 120).
- Parked train refresh: how often stopped trains refresh, in seconds (default 30, 0 = never).
🧩 Compatibility
- ✅ Works with modded locomotives, including ones created by other mods' scripts (shuttle and taxi mods).
- ✅ Works in vanilla and Space Age, with no Space Age requirement.
- ✅ 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.
🎒 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! 🚕