A specialized diagnostic plugin for American Truck Simulator and Euro Truck Simulator 2 that identifies the source (Mod or DLC) of the current map sector. It features an advanced Map Seam Detector to visualize transitions between different map mods.
This project demonstrates advanced reverse engineering techniques for the game's Virtual File System (VFS):
- VFS Pool Iteration: Scanning Mod, SCS, and Base pools to resolve file priority.
- Reverse Priority Identification: Implementing "Winner-takes-all" logic to find the active sector override.
- Dynamic Sector Mapping: Real-time calculation of map coordinates into the game's 5120x5120 sector grid.
- Pattern-based Memory Discovery: Finding VFS sentinels and map path pointers without hardcoded addresses.
- Sector Winner Identification: Instantly reveals which mod or DLC "owns" the sector you are currently in.
- Full Archive Stack: Lists every single archive (SCS or Mod) that contains the current sector file.
- 4-Way Seam Detector: Scans North, South, East, and West neighbors to find transitions between mods.
- Visual Status Indicators:
[SAME]: Neighbor belongs to the same mod.[BASE]: Neighbor is part of the original game or official DLC.[SEAM]: Neighbor belongs to a different mod (Seam detected!).[VOID]: Neighboring sector is empty (Edge of the map).
- Universal Map Support: Automatically detects map names (usa, europe, promods, etc.) directly from memory.
If you find this tool useful for map development or mod troubleshooting, consider supporting us on Patreon.
This is a standard CMake project. To build it from source:
- Clone this repository.
- Ensure you have CMake and Visual Studio (MSVC) installed.
- Create a
builddirectory. - Run
cmake ..and thencmake --build ..
You must have the SPF Framework installed.
- Download the latest release.
- Copy the
SPF_MapOriginfolder into\bin\win_x64\plugins\spfPlugins\.
- Start the game and drive to any location.
- Press
Ctrl + F11to trigger the Origin Report. - Check the Log: Open
Documents\American Truck Simulator\game.log.txt(or the in-game console) to see the detailed report, including the active winner and the seam detector results.
This project was created using the SPF-Framework, the foundation for modern plugin development in ATS/ETS2.
