• 3D Stream Radio
    65 replies, posted
[QUOTE=MattJeanes;44695536]What's gm_bass2 used for on the server?[/QUOTE] It's used for the advanced Wiremod outputs, like the FFT spectrum and the meta data.
[QUOTE=DEFCON1;44693933]*bugs*[/QUOTE] It should be fine with this update now.
Indeed ;) Now if you could just fix the little bug with the "wire button": when spawning that E2 on the radio, it should change the button state to "wired", and the opposite, when removing the E2 it should change to "unwired". Not really important but still it's a bug. Edit: and the Loop input doesn't seem to be working?
[QUOTE=DEFCON1;44707797]wire button[/QUOTE] Well if I would fix that then that bug with not working wirelink would reappear, because wirelink doesn't connect a wire to a radio and there seems no way to detect a wirelink connection. Press reload with the wiring toolgun make it "unwired" again. [QUOTE=DEFCON1;44707797]Loop input[/QUOTE] You need to restart the stream to get the loop state changed as written in the OP. I can fix it if [URL="https://github.com/Facepunch/garrysmod-issues/issues/1066"]this gets applied[/URL], but that could takes months, because the development of GMod seems being slow again.
I can't seem to add m3u files (they dont show up) and no matter which .pls file I add ( made sure to rename to *_pls.txt ) it can't connect. The streams work fine for me on my desktop though. am i doing something wrong?
You need the rename *.m3u files to *_m3u.txt. You place them in \data\streamradio\playlists like you do with the *_pls.txt files.
I like the new model ;)
There are some more models planned. You can use any model now, but you would have to control it via the tool or via Wiremod, because not supported (aka not in the tool's list) models will not have a display. It might be useful for speakers or something.
Talking about speakers, here is a suggestion: Would it be possible to have a wiremod input "speakers", an array of entities that we could link to the radio and those linked entities would all play the current radio stream, but without having to redownload the stream for each of those speakers, just playing one stream at different positions. What do you think?
[QUOTE=DEFCON1;45482498]Talking about speakers, here is a suggestion: Would it be possible to have a wiremod input "speakers", an array of entities that we could link to the radio and those linked entities would all play the current radio stream, but [B]without having to redownload [/B]the stream for each of those speakers, just playing one stream at different positions. What do you think?[/QUOTE] Impossible. A stream can be played only from one position. So far I know it GMod's BASS doesn't even support it.
I just released an update some of you may like: [QUOTE] The radio can play local files now. To use this the URLs should look like these: "music/hl1_song10.mp3" or "file://music/hl1_song10.mp3" They are relative to GMod's sound folder and are supporting mounted content. [/QUOTE]
Because of many requests in the workshop I have added a Youtube support in this update. [QUOTE] - Fixed a rare Lua error - The radio faces you on spawn now. - Added a limited Youtube support: Enter the Youtube URL and the radio will play it, if the video is converted already. But if not then you have convert manually it first. The radio will give you instructions in the console in this case. It uses the [URL="http://youtubeinmp3.com/api/"]YoutubeInMP3 API[/URL] [/QUOTE] If the radio doesn't like the link you will get one of these: [IMG]http://puu.sh/aX8Xy/2c2b30f99e.png[/IMG] Also people seem to be not very willing to post in this thread, but I still would like to post the updates, so sorry for my self replays/bumps.
Thanks for those features, however with that file:// thing, it seem that it can only play .mp3 files. .wav files ( for example "file://music/hl2_ambient_1.wav" ) doesn't work. Is it possible that you make them work ? I will try the youtube thing soon ;)
Could you add a radio to vehicles (like with Mx Radio)? I do realize that you don't use a GUI window but an integrated screen on the radio, so I would suggest adding one on the jeep itself, and making it react to user clicks and not the "e" button... Not only would you not need to spawn a radio and weld it but you don't have to exit the car to use it. Oh by the way, is there a key bind for using the menu on the radio (separate from "e" of course)? That would allow you to use it while in the car. While I'm at it, what's the console name (used for binding) of left/right/middle click? Anyhow, lots of questions, suggestions, and blabber on my part, and great work on yours!
[QUOTE=DEFCON1;45730950]Thanks for those features, however with that file:// thing, it seem that it can only play .mp3 files. .wav files ( for example "file://music/hl2_ambient_1.wav" ) doesn't work. Is it possible that you make them work ? I will try the youtube thing soon ;)[/QUOTE] As I PM'd to you, BASS doesn't like wav files with auto loop in them and I can't fix it. I don't even think the GMod devs can. [QUOTE=Olius;45741609]Could you add a radio to vehicles (like with Mx Radio)? I do realize that you don't use a GUI window but an integrated screen on the radio, so I would suggest adding one on the jeep itself, and making it react to user clicks and not the "e" button... Not only would you not need to spawn a radio and weld it but you don't have to exit the car to use it. Oh by the way, is there a key bind for using the menu on the radio (separate from "e" of course)? That would allow you to use it while in the car. While I'm at it, what's the console name (used for binding) of left/right/middle click? Anyhow, lots of questions, suggestions, and blabber on my part, and great work on yours![/QUOTE] I like the idea to have a car radio and I hope to be able to implement it someday. You can't rebind the radio click. It's bound to "e" (the use key), because the radio is controlled via the entities use event. For now you can use Wiremod to get a working car radio. It would be kind of tricky somehow, though.
[QUOTE=Grocel;45741975]I like the idea to have a car radio and I hope to be able to implement it someday. You can't rebind the radio click. It's bound to "e" (the use key), because the radio is controlled via the entities use event. For now you can use Wiremod to get a working car radio. It would be kind of tricky somehow, though.[/QUOTE] Yeah I thought about that, but I'm not really a Wiremod guru... Anyhow I'll look into that. You should take a look at your competitor ([url]http://www.steamcommunity.com/sharedfiles/filedetails/?id=164070103[/url]), because I personally think that the features he has are the ones that are missing on yours, and vice-versa. Maybe cooperate with him?
Ok I did it! It works fine but you have to rewire the radio to the wire mod elements when you use the advanced duplicator. I'll post the vid tomorrow if I can manage to record it with my 5 year old computer...
Well he uses a drama GUI which is making car radios easy, but I want the radio to have everything on the model. What features from the Mx Radio are you messing? I would like to add a playlist editor for admins later on. I will check the wire duplicating stuff.
No problems for me with wire things after duplicating (but, I don't actually wire to the radio, as said earlier I only do wireless things with E2) I also made a airboat with a radio, you can change stations with numpad + and -, toggle radio on/off with numpad *... And I plan to add a EGP HUD so that you can see the list of station and the one currently playing :)
[QUOTE=Olius;45741609]Could you add a radio to vehicles?[...][/QUOTE] As requested you can use the radio in vehicles now: [QUOTE] - You can control the radio from a vehicle now. Click (+Attack1) to use while in a vehicle. - Fixed duping bugs. - Added option to show a cursor and to allow radio using with +Attack1 (Left Mouse) instead of +Use (E). [/QUOTE] There isn't a way to rebind it yet, maybe I will add it later. [QUOTE=Olius;45746367]A bug with advanced duplicator.[...][/QUOTE] It should be fine now.
I have brought in something useful this weekend I hope: [QUOTE] - Added a playlist editor for admins. It allows editing the server playlist in-game from the client. You will find it in the settings. - Some minor changes. [/QUOTE] [IMG]http://puu.sh/bzaYy/ae2cddd81c.png[/IMG] This should making playlists easier now. I'm planning to add more playlist formats too later. Currently supported are *.pls and *.m3u. Edit: Fixed the editor being broken. Edit2: As requested an update. [QUOTE] - Added a way to disable the 3D sound of a single or all radios to make the sound louder. There is is wire input/output for that too. - You can rebind the keys that triggers a click on the radio GUI now. - You can control the radio also from a camera now. - Fixed some Lua errors. [/QUOTE] Finally that rebinding thing for the radio GUI is done as requested by Olius now. You will find it in the settings. Edit3: A new update with some more neat stuff: [QUOTE] - Added new playlists. ("sv_streamradio_rebuildplaylists" to apply) - Changed the radio to fall back to non-3D sound if 3D doesn't work. - Added *.json and *.vdf (KeyValues) formats. - Added support for the MX-Radio playlist. - Added URL checker to the corresponding text fields. - Added button to open a sound browser for local files. You need Wiremod for this. [/QUOTE] I got Fragradio to work, but it just plays non-3D, because some file formats don't seem to like it.
I have a little suggestion, an extra option for the tool. Okay so basically there is currently an option to 'Disable Display' well what if you need the display (to show what's playing + spectrum) but don't want people dicking around with your radio by using it etc.. It would be a cool addition for a 'Disable input' or similar so it can only be controlled via Wiremod.
Sure, I like the idea and implemented it: [QUOTE]- Added a way to disable the radio controlling, it is useful for locking the radio to a stream. Wiremod controlling is not affected.[/QUOTE] If you use a CPPI controlled prop protection, you can limit the usage to certain persons too.
I just added Soundcloud support for the radio after a request. The API they have is pretty nice. Edit: I added some functions for developers that will make things a lot more easier for toolgun-less RP gamemodes. [QUOTE] - Added an API for addon or gamemode developers. API Functions so far: bool StreamRadioLib.EditRadio( Entity Radio [, table settings] ) Entity StreamRadioLib.SpawnRadio( [Player player [, string model [, Vector pos [, Angle ang [, table settings]]]]] ) bool StreamRadioLib.IsValidRadioSettings( any settings ) More detailed infos in [url=http://xp-dev.com/svn/2d3d_Browser/lua/streamradio_core/api.lua]lua/streamradio_core/api.lua.[/url] Please report any issues with it and give me suggestions. - The menu content is no longer networked when the GUI is disabled. - Fixed the radio repeating itself like a broken record while in-menu in single player.[/QUOTE]
Hi there, It seems that range (radius) doens't work on our DarkRP Server. It's quite annoying as the sound doesn't cover the whole nightclub. Any idea on how to fix it ?
If the radio is to quiet you can disable 3D sound on that radio. Also the range is limited to the client's cl_streamradio_mutedistance setting which is set to 2000 units by default. The 3D sound being quiet is something I can not fix as it is a limitation of the Bass API built into GMod. Use multiple radios/speakers and/or disabled 3D sound to fix it.
When you say they can play local files, does this mean the files are streamed to listeners, or that the client needs to have them as well?
For playing local files, the client needs them too.
:snip: Wrong thread.
Can you play dropbox files? like raw download links
Sorry, you need to Log In to post a reply to this thread.