Add UUID to Train Stops (with toolbar button)
Note: I just built this mod after running into issues when porting my LTN setup to Factorio 2.0. Because I had accidentally copied the same station names across different blueprints, trains sometimes ended up at the wrong stop picking up the wrong material. Since I didn’t want to manually rename hundreds of stations, I made this tool to quickly give them unique names.
📖 Overview
Tired of trains mixing up your stations because they share the same name? This mod solves that by giving every train stop a unique, persistent UUID. Perfect for large bases where duplicate names can cause chaos.
With a single click or hotkey, you can batch-rename any selection of train stops (or even the entire map) in seconds. Since LTN (or any other train logic mod) doesn’t care about the actual names, UUIDs keep everything unique and reliable without extra effort.
This mod helps you uniquely identify train stops by automatically tagging them with a persistent UUID (Universally Unique Identifier).
Why?
- No more confusing duplicate names when managing large train networks.
- Guaranteed unique identifiers for all your stops, even when names are similar.
- Quick batch renaming: apply UUIDs to all stops at once or only to those you select.
It’s especially useful for mega-bases and logistics-heavy setups (such as LTN users) where station uniqueness is critical.
✨ Features
- 🛠️ Toolbar shortcut button: Quickly activate the renaming tool.
- ⌨️ Hotkey (CTRL+U): Instantly spawn the selection tool without touching the toolbar.
- 🔲 Selection tool: Draw a box (normal or ALT) around train stops to assign fresh UUIDs.
- 🌍 Command support: Admins can mass-apply UUIDs to all train stops in the map.
- ⚡ Smart filtering: Depots (stations containing "depot") are skipped automatically.
- 📢 Feedback messages: Displays how many stops were renamed.
🕹️ How to Use
1. Toolbar Button
- Click the UUID Tagging shortcut in your top toolbar.
- A selection tool will appear in your cursor.
- Drag over train stops (normal or ALT selection).
- Their names will be replaced with unique UUIDs.
- A message will tell you how many stops were processed.
2. Hotkey (CTRL+U)
- Press CTRL+U at any time.
- This spawns the same selection tool directly into your cursor.
- Works just like the toolbar button but even faster.
3. Admin Command
For large multiplayer or mega-bases:
```text
/graille-train-batch-renamer