Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

custom.js to include big radius #108

Open
kimbon30 opened this issue Sep 3, 2020 · 4 comments
Open

custom.js to include big radius #108

kimbon30 opened this issue Sep 3, 2020 · 4 comments

Comments

@kimbon30
Copy link

kimbon30 commented Sep 3, 2020

As you know, the ETS2 in-game radio player does not support m3u8 streams which is annoying (out of curiosity, off-topic question: only if you know, is there a way to edit game code to include the codec locally btw?). I've tried all sorts, including a restream through VLC, but I do want a solution that works in-game, not by alt+tabbing. Therefore, I am very grateful for your Local Radio plugin, which works incredibly well; however it gave me an idea to customize it.

I'm trying to figure out if I can add a custom list with a big radius, covering all of the map that replaces the stations-europe.js list ? is this possible ? I presume custom.js just adds new radio stations alongside stations-europe.js. I saw you can overwrite settings.

/*
 * You can overwrite settings from the config.js file like this:
 * g_skinConfig["radius"] = 10000;
 */

what's the maximum value for radius you can safely use ?

@Koenvh1
Copy link
Owner

Koenvh1 commented Sep 3, 2020

If you just want to replace the stations with your own list that are available everywhere, then adding something like

var stations = {
  "global": [
    {
      name: "",
      logo: "",
      url: ""
    },
  ]
}

should already do the trick (with your own stations of course).

@Polanium
Copy link

Polanium commented Jan 7, 2021

I dont get any changes in the settings, customs and cities files to work

@kimbon30
Copy link
Author

@Koenvh1 What does the “radius” config setting do? Can the radius of how far a radio is available outside of a given country be increased?

@Koenvh1
Copy link
Owner

Koenvh1 commented Oct 2, 2022

@kamil1995b The radius determines the base radius (the max distance you have reception from a city). When you look at the coverage map (http://localradio.koenvh.nl/map.html), increasing it would make every circle bigger (and thus where you can hear each station). The effective radius of each circle is the product of the base radius, the country radius, and the city radius, so depending on what you want to do you have some more knobs you can turn.

If you set the base radius from 7500 to 10000, the radius will be 33% bigger (and the resulting coverage area ~77% bigger).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants