What is it? ETS2 Log to Coordinates (ETS2LTC) is a small project to both capture the location of ETS2's (and ATS's) cities and convert the information to easily readable JSON. Please bear in mind that this is not meant for a novice user, as it extensively uses hacks to work.
Please note that it uses some low-level keyboard emulation that has only been tested with a US international keyboard layout. If the key to open the console is not tilde (`), and underscore is not shift + dash, then chances are it will not work properly.
How it works:
ets2-city-coordinate-retriever.exe.config
and edit the settings. The city directory should point to the folder with all the city files ({cityname}.sii), debugMode shows the current city instead of a loading bar and the SleepMultiplier adjusts the time the script takes. More on this later.ets2-city-coordinate-retriever.exe
Once that part is done, we move on to the next.
ETS2 Log to Coordinates.exe.config
, edit it with the same city directory, the InputFile being the file you just created in step one and the outputfile to a file that will contain all JSON output.And there you have your JSON formatted city list with coordinates.