Skip to content
This repository has been archived by the owner on Apr 9, 2021. It is now read-only.

JAGFx/ETS2-City-Coordinate-Retriever

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

91 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ETS2 Log to Coordinates

This project was deprecated, please use this project instead

Note

This is a fork of this project: Koenvh1/ETS2-City-Coordinate-Retriever

About

This project allow you to do:

  • Retrieve the in game coordinate
  • Retrieve the companies placed in each cities
  • Generate JSON file with this information

What is it ?

TODO

Supported game and / or maps mods

Currently, only ETS2 and ATS vanilla maps

Requirements

TODO

Installation

TODO

How to use ?

Production

You can get or import the json files from the dist/ folder. See Dist files section to know more.

Developement

To generate the JSON files, you need to follow this step:

  • Get or extract the cities files for ETS ou ATS (See Raw data section)
  • Run the coradinateRetriever exe (See Projects section)
  • Run the jsonGenerator exe (See Projects section)
  • Use the JSON files (See Dist files section)

Please read the section corresponding of each step.

Raw data

There are placed in raw/ directory

TODO

Projects

There are placed in projects/ directory

Two project for two things:

  • coradinateRetriever: Generate a file with the cities coordinates. (Use the goto command from the ETS2/ATS game)
  • jsonGenerator: Generate json files with the concatened data of cities list, companies list and cities coordinates.

Dist files

There are placed in dist/ directory

A city example data

{
  "felixstowe": {
    "gameName": "felixstowe",
    "realName": "Felixstowe",
    "country": "uk",
    "companies": {
      "tree_et": {
        "gameName": "tree_et",
        "realName": "Tree-ET"
      },
      "lkwlog": {
        "gameName": "lkwlog",
        "realName": "LkwLog GmbH"
      },
      "tradeaux": {
        "gameName": "tradeaux",
        "realName": "Tradeaux"
      }
    },
    "x": "-31664.6",
    "y": "101.398",
    "z": "-13837.2"
  }
}

A company example data

{
  "spinelli": {
    "gameName": "spinelli",
    "realName": "Spinelli"
  }
}

Licence

Under the MIT License

© JAGFx - [email protected]