Koenvh1 / ets2-local-radio

Radio from wherever you are in ETS2/ATS
https://koenvh.nl/projects/ets2-local-radio
Mozilla Public License 2.0
217 stars 40 forks source link

Add or create new country #141

Open furgalof opened 3 years ago

furgalof commented 3 years ago

Hi i have a problem i dont know where create or add new country. I want to create the same as germany-munchen, in the Czech Republic= Czech [Brno] I will be happy if you help and write

Koenvh1 commented 3 years ago

You can add those to the custom.js file. Take a look at https://github.com/Koenvh1/ets2-local-radio/blob/master/web/cities/cities-ets2.js for the exact structure of the objects. You would first need to add a new country to the country_properties, e.g.

country_properties["czech-brno"] = { ... }

and then you would have to add Brno as a new city that belongs to country czech-brno.

cities.push({ ... });

That should work, and will allow you to add stations to czech-brno. Do note that you need at least one station for each country you add - countries without stations can cause issues.