ets2-local-radio icon indicating copy to clipboard operation
ets2-local-radio copied to clipboard

Version 5 plans

Open Koenvh1 opened this issue 4 years ago • 20 comments

There are a couple of things I want to have done for a version ~~4~~ 5 of Local Radio. The main overarching goal is to rewrite the core of Local Radio to make it work more reliably. Adding new functionality is a nice bonus if it can be done easily, but that is not the aim at the moment. Local Radio has changed a lot throughout the years, and thus certain design decisions that made sense at the time no longer do currently. This should also make it easier to modify Local Radio later.

This is the list currently:

  • [x] Updating the styling to match the logo's
  • [ ] Adding support for one station being in multiple cities without showing up twice
  • [ ] Replacing the PeerJS system with a system handled by the server
  • [ ] Syncing the state between the web-frontend and the server
  • [ ] Making the web-frontend reactive
  • [ ] Using websockets for the communication between server and web-frontend
  • [ ] Adding better favourites support
  • [ ] Adding better proxy support
  • [x] Updating to a new version of the SCS SDK
  • [x] Switching to a different game overlay library
  • [ ] Making it easy to switch between versions of the cities/stations
  • [x] Fix HTTPS support for the server
  • [ ] Remove admin right requirement

If you have any wishes, feel free to let me know, although I will warn you in advance that I do not guarantee that I will implement it (I probably will not). However, I am looking for people who want to contribute to Local Radio. If you feel like doing some of the things above, or you propose something else, let me know. I do have some ideas about the items above (and there are some things to take into account that you might not expect), but nothing set in stone yet.

(As for when this will be done: no idea, probably 2022 or later.)

Koenvh1 avatar Aug 22 '21 12:08 Koenvh1

Step 2 is easy ;) just create a country, name it with radio name ex. "VOX FM" and then add cities where VOX FM is broadcasting in real life. I use this when i edit local radio for myself ;) ( It's switches auto. with no pop-up / white noise)

Escort95 avatar Aug 30 '21 20:08 Escort95

True, that is an ugly hack that works, but the entire point of version 4 is to get rid of those ugly hacks.

Koenvh1 avatar Aug 30 '21 20:08 Koenvh1

I would have an idea regarding the reception, the volume of the station would go and leave for white noise when the amount of static reaches 1.00, and between 0.50 and 0.85 the volume weakens more and more with variations So if I am in Spain, if I want to listen to a radio from Sweden the only thing I would hear would be only white noise I think this is possible

I increased the size of the area so that the reception is ok on a radius of ~ 20km SWR 3, for example, broadcast in southwestern Germany reaches as far as Bourges in France

Another thing that would be good, would be to add an option to display the radio and the signal at the bottom right (while remaining displayed) (which can be deactivated of course) It could be great to know the reception in real time without looking on the page (or if it is possible to add it on the mobile interface)

Also enable / disable the fact that the station changes automatically

ghost avatar Sep 11 '21 14:09 ghost

The first thing is already included - the volume does start fluctuating. It hides stations out of reach by default, but you can turn them on again by clicking the "Toggle show all" button on the bottom. Mind you, your browser might start slowing down to a crawl if you do so.

No plans for a permanent overlay - it will most likely interfere with other interface elements. Might add the current signal strength to the mobile interface.

You can already change the fact that it changes automatically by setting a really large threshold in the config.

Koenvh1 avatar Sep 14 '21 11:09 Koenvh1

Yes I noticed that by clicking on show all radios, it does not change automatically

It would be cool if it is possible to completely mute the volume of the radio once amount of static reaches 1.00 (and between 0.90 and 1.00 a very weak signal audio for a more natural death to the signal)

I would love to be able to integrate the signal strength (the 5 bars) on my stream, (the mobile version or player page with signal strengh add on the top) would be perfect for that Like this : image

Because on the main page as the radios change position when I drive it is impossible to frame the exact place (if you see what I mean)

ghost avatar Sep 14 '21 17:09 ghost

On the current version, is it possible to modify the value so that at 1.00 the volume drops to 0?

(I am really not familiar with the lines of codes ect)

I see some interesting lines on "Main.js" on "Local Radio \ web \ lib \ js"

image

If I want to keep it as currently from 0.45 (amount of static) it starts to fluctuate and that between 0.70 and 1.00 (amount of static) I want the volume to be much lower while still fluctuating automatically and past 1.00 there is no sound while keeping the white noise is it possible ?

"0.45" on the line corresponds to amount of static ? image

ghost avatar Sep 15 '21 02:09 ghost

I would like the following:

  • Option to keep a station fixed when you drive out of range. In some counties in the US, radio stations are horrible.
  • Native VR support maybe? ;-)

zflash avatar May 28 '22 09:05 zflash

please add support for macOS

ryanmsj avatar Jul 22 '22 07:07 ryanmsj

@ryanmsj Not possible currently due to a limitation in ETS2/ATS.

Koenvh1 avatar Jul 22 '22 13:07 Koenvh1

I would love an option to lock a station regardless of my location at the time. There are some cool radio stations that I would like to listen to regardless of the county I'm in. As soon as I'm fed up with that station, simple click and I'm back at the location oriented stations.

zflash avatar Aug 10 '22 10:08 zflash

@zflash What do you mean exactly? A set number of stations always available, or ensuring that the current station does not switch? I have been thinking about the latter, but have not come up with a nice approachable way to implement it without causing confusion.

Koenvh1 avatar Aug 12 '22 10:08 Koenvh1

@zflash What do you mean exactly? A set number of stations always available, or ensuring that the current station does not switch? I have been thinking about the latter, but have not come up with a nice approachable way to implement it without causing confusion.

For example. I'm a fan of rock and metal stations and there are some really good ones, so I favorite them. I would like to have an option to have an extra flag to specific stations that I can cycle through regardless of what state I'm in. Basically I want to listen to a small station from Cali when I'm in Idaho.

zflash avatar Aug 12 '22 12:08 zflash

@zflash Ah okay. I believe you can do that already using the global country. It was initially thought of for something like TruckersFM, but it works with any audio stream.

Koenvh1 avatar Aug 13 '22 09:08 Koenvh1

@Koenvh1 How can I use the global country? Is that a setting in the ini? Would be a lot cooler that with a simple click I could just keep a station locked until I unlock it.

zflash avatar Aug 17 '22 14:08 zflash

It is something that can be done using custom.js, e.g.:

stations["global"].push({
            name: "Station name",
            logo: "Logo URL",
            url: "Stream URL"
        });

The main issue with locking a couple of stations is that creating a list to pick from is difficult (as the number of available stations means that simply displaying them all will grind your web browser to a halt). Additionally, there is the question whether this should be ephemeral or a permanent thing that remains after reboots etc. Doing something permanently can already be done (admittedly, a button would be easier, but this is not too difficult either). Having something there temporarily is something I have been contemplating (e.g., you find a programme you like and want to hear the end of it).

Koenvh1 avatar Aug 18 '22 00:08 Koenvh1

@Koenvh1 A button for a temporary lock would be a welcome addition. If a permanent list of station you can rotate is a big issue, I would love just the lock function :)

zflash avatar Aug 20 '22 10:08 zflash

For v4, it would be so nice if there was the possibility that the audio of the current radio changes from Stereo to Mono as soon as the whitenoise becomes audible in order to give a more realistic look

In the genre when the whitenoise reaches 0.05) it switches to mono Here is a video to illustrate this ! (I purposely exaggerated the stereo for demonstration) https://www.youtube.com/watch?v=Uz82PzjpynI

For my part, I made sure that there is gradually no longer any sound of the current station as soon as the whitenoise reaches 0.90

From 0.20 it begins to fluctuate, at 0.40 much more, 0.60 even more, then at 0.80 it is difficult to listen to it

instead of the whitenoise .mp3 file I put the link to a stream that broadcasts a real radio on the neighboring frequency (current station = 95.6, neighboring radio = 95.7)

Here video of the plugin in action: https://www.youtube.com/watch?v=bDt6buU3GZw

Another thing that would be nice to do, when the truck is stationary, the random fluctuation effect stops, it would be active only when the truck is moving

JulienEREZ avatar Apr 20 '23 18:04 JulienEREZ

@JulienEREZ Not a bad idea - with the way it currently works it would be quite a feat to add though, but not impossible.

Koenvh1 avatar Apr 24 '23 22:04 Koenvh1