Open Xuth1 opened 1 year ago
I can confirm that what seems to be breaking everything is var country_properties
. I have been able to add a new town and a radio station to (the existing) Shetland just fine by simplifying it to the below - but as soon as I attempt to add a new country it all breaks.
Working config:
var cities_sfigc = [
{
"gameName": "sandness",
"realName": "Sandness",
"country": "shetland",
"x": "-31367.5",
"y": "112.867",
"z": "-76735.5"
},]
cities = cities.concat(cities_sfigc);
//New Custom Stations for SFIGC Compatibility
stations["shetland"].push({
name: "CBC Music 88.3",
logo: "https://cdn-profiles.tunein.com/s25274/images/logog.png",
url: "https://playerservices.streamtheworld.com/api/livestream-redirect/CBH_CBC_SC"
});
And by breaking, it undoes any other custom configurations - for example I've been using cities = cities.concat(cities_open_spaces);
as a bit of a Canary and it works with any configuration except when a new country is added, at which point all of the Open Spaces cities disappear too.
For example, I created a new country (canada) and 'moved' that same city and station from above, which worked under Shetland, over to Canada - and it breaks custom.js so that none of the changes append:
Broken simplified Config:
var country_properties = {
"canada": {
name: "Canada",
name_english: "Canada",
code: "ca",
relative_radius: 1,
},}
var cities_sfigc = [
{
"gameName": "sandness",
"realName": "Sandness",
"country": "canada",
"x": "-31367.5",
"y": "112.867",
"z": "-76735.5"
},]
cities = cities.concat(cities_sfigc);
cities = cities.concat(cities_open_spaces); //Open Spaces
//New Custom Stations for SFIGC Compatibility
stations["canada"].push({
name: "CBC Music 88.3",
logo: "https://cdn-profiles.tunein.com/s25274/images/logog.png",
url: "https://playerservices.streamtheworld.com/api/livestream-redirect/CBH_CBC_SC"
});
I've provided my custom.js
and logos if anyone is kind enough to help. In the meantime I'll continue playing around... I feel l like it's close!
Final update from me, apologies to potentially spam but I wanted to log this final piece of the puzzle:
From further experimentation I've now discovered that I can get a new nation to show up - but only in a very hacky way - if I fill custom.js
with the entire list of var country_properties
from the primary cities-ets2.js
and then enter the new country alphabetically within that list. Effectively replacing the original list wholesale.
By doing this ETS2 Local Radio will now do three things for me that it wasn't before:
Unfortunately - any new radio stations for the country still fail to show in the list. When you travel there (or expand all) that nation has no entries and it won't play anything. These are custom radio stations that work correctly if the country is changed to any of the existing ones.
Hi! I've attempted to customise my own set-up to include the nations and cities featured in the ETS2 mod 'SFIGC 0.7.2.' (Shetland, Faroe Isles, Greenland, Canada) which adds small parts of the aforementioned areas to the game.
Unfortunately, while the server and web UI loads fine with my custom.js - none of these new stations are appearing. I've 'expanded all' to check - and the last stations in the list are still the Japanese ones.
Anything I've not done right?
In Custom.js I have added:
Followed by:
And then the new stations (note, I also tried using
var stations_custom
method, but that also didn't work for me. The image locations are actually set to a local folder now as well, but still no luck.