Garry's Mod

Garry's Mod

3D Stream Radio
Tämä keskustelu on lukittu
Grocel  [kehittäjä] 2.10.2017 klo 10.09
[Update] Major update January 2018 (Edit: 2018-01-26)
About
I was developing a new big update for the radio addon since December 2016. I rewrote large parts of the source code and I have still a lot of things to recode. This was needed because the code base got quite messy over the years. I wanted to add new things which also required a complete overhaul.

Change log
  • Major changes:
    • Replaced the GUI system by a faster and more organized one.
    • Redone the networking system to make the radio more consistent between players on a server.
    • Improved duplicater and save support so the state of the radio is always stored and restored correctly.
    • Redone the skinning system to match the new GUI system.
      • Added a new tool to load and save skins from/to files.
      • Replaced the old skin tool by a new skills tools that let you change the colors of GUI elements individually or globally.
    • Improved the usability of this addon in general.
    • Updated community playlists.

  • Minor changes:
    • Added buttons for pause/play, stop, next track, previous track.
    • Added a volume bar and volume buttons.
    • Added a bar to seek in the track.
    • Added buttons for Toolgun input and Wiremod input as separate "stations".
    • Added a button for refreshing.
    • Added tooltips for some buttons.
    • Improved the play time synchronization.
    • Changed the YouTube support to be disabled by default. You can enable it in the settings, but it is still not guaranteed to work and is so not officially supported! Use at your own risk.

  • Wiremod:
    • Added some Wire input and outputs.
    • Added an Wire input ('Master Radio') to allow synchronization between radios. So you can connect speakers to other radios now.

  • Other changes:
    • Many small changes and bugfixes.

  • Backward incompatibilities:
    • Radios in old dupes probably need to be replaced.
    • All custom skins made with the old skin system are lost.

Backward compatibility (about things that will break)
Unfortunately the update is not backward compatible with the old versions of this addon. These things will break:
  • All information about the state and settings of the radio inside dupes will be lost. The radio entity itself however will not need to be replaced. Other stuff inside the dupes are probably unaffacted.
  • All skins made with the old system will be lost.

The playlist files are unaffected, so they will work just fine.

I will not fix backward incompatibilities, as it would be a way to complex. I am not going to waste my time to develop some dirty workarounds to make those old and bad 5-minutes dupes work again.
Please don't get me wrong: I support dupes with my addons, but if they get in the way of making the addon better they need to adjust or die.

About YouTube:
This Update changed the YouTube support to be disabled by default. This can enabled by the user in the settings or in the help window. This will force the user to acknowledge that problems with the YouTube can not easily fixed by me. That's because it relies on three independent third party services.

Doing tests I noticed that the new YouTube converting system is still quite slow and a bit unreliable. That's also why I desided to disabled it by default.
Viimeisin muokkaaja on Grocel; 26.1.2018 klo 13.27
< >
Näytetään 1-15 / 20 kommentista
What is "SVN" stand for?
Grocel  [kehittäjä] 3.10.2017 klo 2.26 
SVN is Subversion-Management and was used quite often by the community to distribute addons. It's basically like Github, but older and less advanced.
I Hope It Comes "Quickly" Because Every Song I Put In Doesn't Work [Almost, But They Did Work Before]
Grocel  [kehittäjä] 17.11.2017 klo 12.09 
@Sajmonness
Don't use Youtube, the API is broken. Please read this: https://steamhost.cn/steamcommunity_com/workshop/filedetails/discussion/246756300/360671352684917592/

This is not fixable. Youtube converting will be removed from the radio.
Viimeisin muokkaaja on Grocel; 27.1.2018 klo 7.26
i would love to use dropbox instead of youtube but you have to do so much extra ♥♥♥♥ with the dropbox link its just not worth it
Viimeisin muokkaaja on SPONGEDOG001; 26.11.2017 klo 12.51
Grocel  [kehittäjä] 26.11.2017 klo 13.30 
Yeah, Im quite surprised that it even works at all. Dropbox does no longer give out permanent direct links to the puplic files.

You should also know that dropbox is not well suitable for streaming, as everytime you try to play a file it adds to your traffic volume of your dropbox account. If you get too much in a time period, your account will get disabled.

Secondly a proper drobbox support can not be added to this addon. The user would have to enter the username and passwort, which would have to be send to the server and other clients in order to play it for everyone (one of the points of this addon). You know that it would be a huge security issue.

This addon will never support media that is behind passcodes or account credentials.
Viimeisin muokkaaja on Grocel; 27.1.2018 klo 7.27
Grocel  [kehittäjä] 3.12.2017 klo 3.53 
I found an alternative Youtube converter service that is also quite fast, I will add it into the radio if it works. But youtube support will be an opt-in feature that forces the user, when being enabled, to acknowledge that youtube is not offically supported and can break anytime.

Hopefully this will reduce those "how mk yt work???" comments I'm getting all the time.
Viimeisin muokkaaja on Grocel; 3.12.2017 klo 3.58
Fwuso 26.1.2018 klo 11.01 
If you didn't alredy notice, it's a bit broken and giving errors on startup

[localplayer] Lua Error:

[ERROR] lua/weapons/gmod_tool/stools/streamradio_gui_color_individual.lua:72: attempt to index field 'Tool' (a nil value)
1. unknown - lua/weapons/gmod_tool/stools/streamradio_gui_color_individual.lua:72
2. include - [C]:-1
3. unknown - gamemodes/sandbox/entities/weapons/gmod_tool/stool.lua:139
4. include - [C]:-1
5. unknown - gamemodes/sandbox/entities/weapons/gmod_tool/shared.lua:321
6. include - [C]:-1
7. unknown - gamemodes/sandbox/entities/weapons/gmod_tool/cl_init.lua:10
Viimeisin muokkaaja on Fwuso; 26.1.2018 klo 11.02
Grocel  [kehittäjä] 26.1.2018 klo 11.33 
I can not reproduce that error. But thanks for reporting. :)
Does the server also have the Update? If not it should be applied there aswell.
Viimeisin muokkaaja on Grocel; 26.1.2018 klo 11.44
Just started up my server and it downloaded the new update for streamradio and when upon selecting the tool this happened

[ERROR] lua/streamradio_core/client/cl_vgui.lua:137: attempt to call method 'SetPlaceholderText' (a nil value)
1. Init - lua/streamradio_core/client/cl_vgui.lua:137
2. Create - lua/includes/extensions/client/panel/scriptedpanels.lua:37
3. AddURLTextEntry - lua/streamradio_core/tool.lua:310
4. BuildToolPanel - lua/weapons/gmod_tool/stools/streamradio.lua:87
5. func - lua/streamradio_core/tool.lua:384
6. unknown - lua/streamradio_core/timer.lua:36

Timer Failed! [3DStreamRadio_Timer_ToolReload_streamradio][@lua/streamradio_core/timer.lua (line 35)]
Player [1][Authentic Fluffy Ken The Third] ERR: lua/streamradio_core/client/cl_vgui.lua:137: attempt to call method 'SetPlaceholderText' (a nil value)
1. Init - lua/streamradio_core/client/cl_vgui.lua:137
2. Create - lua/includes/extensions/client/panel/scriptedpanels.lua:37
3. AddURLTextEntry - lua/streamradio_core/tool.lua:310
4. BuildToolPanel - lua/weapons/gmod_tool/stools/streamradio.lua:87
5. func - lua/streamradio_core/tool.lua:384
6. unknown - lua/streamradio_core/timer.lua:36
[Fri Jan 26 13:58:26 2018] <STEAM_0:0:17522161> Authentic Fluffy Ken The Third used tool "streamradio"

however streamradio your works just fine
the error only happens when I start the server up
Grocel  [kehittäjä] 26.1.2018 klo 12.12 
Your GMod is outdated. The function SetPlaceholderText was added in the latest gmod update from December 2017.
the funny thing is my server told me it was on the latest version

however when doing an update it realizes it's not

everything is fixed now

so thanks
Grocel  [kehittäjä] 26.1.2018 klo 12.36 
Well I was talking about the GMod client as it was a client side error. But thanks for reporting anyway. :)
Fwuso 26.1.2018 klo 12.44 
Grocel lähetti viestin:
Your GMod is outdated. The function SetPlaceholderText was added in the latest gmod update from December 2017.
Yeah sorry the problem was on my end I forgot that I had some conflicting addon stuff
Grocel  [kehittäjä] 26.1.2018 klo 13.10 
@Fwusha, @Authentic Fluffy Ken The Third:
So these errors will not happen again. After that fix I made, the tools will not load. Instead their panels will describe what's wrong.
Viimeisin muokkaaja on Grocel; 26.1.2018 klo 13.11
< >
Näytetään 1-15 / 20 kommentista
Sivua kohden: 1530 50