Garry's Mod

Garry's Mod

3D Stream Radio
This topic has been locked
Lupin III Sep 25, 2019 @ 8:21pm
Stream Radio; Questions
Hello.

(I felt like starting a discussion this time; I didn’t think a comment containing this would be necessary).

I was actually wondering if it is possible to play or stream the contents of a server-sided playlist via URL by entering its path. Essentially, I want to create a car radio with a specific gui-less model, but I also want to take advantage of the in-vehicle and track-switching functionalities that the add-on only utilizes with gui-enabled models.

But I cannot seem to figure out the correct server-sided path for a multiplayer playlist to be entered without receiving an error, and I would like to spare myself the hassle of creating a Wiremod-based EGP GUI for a gui-less model. I would consider using master/slave radio synchronization too, but I only want to use one radio.

And, if playing or streaming the contents of server-sided playlists via URL is not possible, would there ever be a possibility of having an on-screen radio GUI (exactly like the existing one) to simply use with gui-less models instead?

Going back to the potential inconveniences of utilizing EGP GUIs for gui-less stream radio models:
Originally posted by Lupin III:
In the case of the creation of a car radio, I don’t think that using Wiremod to create a stream radio EGP GUI for a gui-less model would necessarily be viable, because a size conformity (warranting the usage of appropriately-sized entities) may be necessary to incorporate in order to appropriately reproduce a functioning car radio.

A nonconformity to an appropriate size may even make an EGP GUI radio inconvenient to use. I don’t even know if it is possible to create an on-screen stream radio GUI without an EGP, but I just thought that the availability of a particular functionality like this would be incredibly convenient to have within the stream radio add-on.

But, I don’t know if you are willing to accept any suggestions; I am only providing these based from the proposition of an idea I had. Even if you are unwilling to consider any of them, I still imagine that there would be some kind of difficulty in incorporating them; I understand that.

I have even consulted one of my friends who is familiar with Wiremod EGPs about this prospect. But, he has already informed me that he is not very familiar with the stream radio add-on itself, and that he was uncertain about the capability of Wiremod EGP’s usage within vehicles.

So now—at least for the time being—I am creating car radios by using appropriate gui-enabled entities, and experimenting with gui-less models via master/slave radio synchronization.
Last edited by Lupin III; Sep 26, 2019 @ 11:30am
< >
Showing 1-6 of 6 comments
Grocel  [developer] Sep 26, 2019 @ 11:39am 
The Stream URL input is for media and streams only. The radio can not transmit sounds directly from the server unless the server has a full streaming setup as such as internet radio stations do.

If you know how to use Wiremod you will understand this description:
https://steamcommunity.com/workshop/filedetails/discussion/246756300/359547436752763605/

You can code your own playlist system using E2 and EGPs or use the masterr/slave synchronization.

Changing the Stream URL to run serverside playlists is not doable with reasonable effort. A second Playlist input could be a better option. Time runs fast and I don't have much of it at the moment, so I can not do any promises on implementing such a feature any time soon. There is other stuff in regards of this addon on its way aswell.
Last edited by Grocel; Sep 26, 2019 @ 11:39am
Lupin III Oct 12, 2019 @ 10:08am 
Ah, I see then, and I do thank you for your response.

I do like the idea of the second playlist input option, though, and I do understand that you do not have very much time to spend incorporating any of these implementations; I do respect that sentiment, and I am not in any particular rush to see any forthcoming updates for this add-on.

After speaking with a friend, he was able to replicate a very basic representation of a stream radio UI with track manipulation capabilities via Wiremod EGP; minus the playlist skipping function, and he did denote that the existing Wiremod inputs did not actually include these options.

While playing online last night, I noticed that copying a stream radio that is playing from a server-sided playlist, with the Advanced Duplicator 2, will spawn an exact copy of it with a functioning playlist skipping capability, as well.

The copying function of the stream radio tool does not actually preserve the playlist skipping function when its settings are duplicated; does this mean, however, that the settings which are copied do not actually include the playlist skipping function? They are not present on stream radios that are duplicated.

Evidently, this setting is somehow perfectly retained and replicated when duplicating a stream radio with the Advanced Duplicator 2. If it were possible, I would edit the data of a saved stream radio duplication file in order to change only its model while preserving every other setting. May I ask where stream radio tool presets are currently saved? If applicable, I will still try to explore the possibilities of preserving a stream radio with playlist skipping capabilities while only modifying its model for my project in the meantime.
Grocel  [developer] Oct 12, 2019 @ 11:58am 
If you use Wiremod you can use your can code your own playlist, that is independet from this addon. Maybe I will add Inputs for playlist skipping (back and forth).

That the radio persists (saves) the internal playlist data on dupes is intended and is only restored on servers that allow custom URLs (exploit/trolling prevention). Custom URLs are allowed by default. It is to ensure that the radio does not break and works consistently to the original entity. The internal playlist is lost/overwritten if an other playlist is loaded or the Stream URL is changed from the outside (via tool or Wiremod).

The copying function of the tool can only copy the properties you can directly configure via that tool. You can not manpulate the internal playlist via the tool. The tool is designed to be consistant with many other GMod and Wiremod tools in its usage. So the internal playlist is not included by intention.

The other toolgun tools in the addon (which are for GUI coloring) work in a similar way.

All addon tools use the preset system that is provided via GMod's tool system. It behaves as like as all the other tools in the game. Manipulation is only recommend if you understand the file structure of the preset files. The preset system is not related to the duping functionalities of the game and will not change nor improve duplication behavour of the entities. These files must not change nor store properties that are not supported by the tool's GUI. However you can still remove properties that you don't need from the file. The tool will leave those unchanged when it loads the preset. Preset files are stored on the client side at:

garrysmod/settings/presets/streamradio/<number>-<preset-name>.txt
Last edited by Grocel; Oct 12, 2019 @ 12:18pm
bornaorange Nov 18, 2019 @ 1:22am 
Hey so i dont know if this is just a glitch for me but when i go to the radio spawner tool,the page where it says adjust volume and put in the link it's been blank for me for some time now could someone pls help me
Grocel  [developer] Nov 18, 2019 @ 7:07am 
Do you have a screenshot of your Problem?
Grocel  [developer] Jun 3, 2020 @ 7:37am 
@Lupin III: Locking as solved.
@bornaorange: Locking as invalid/bad reporting.
Last edited by Grocel; Jun 3, 2020 @ 7:38am
< >
Showing 1-6 of 6 comments
Per page: 1530 50