Raised This Month: $32 Target: $400
 8% 

[ANY] Radio v2.0.0.8 FINAL (21/08/2017)


Post New Thread Reply   
 
Thread Tools Display Modes
dubbeh
Senior Member
Join Date: Jul 2007
Old 12-26-2016 , 10:18   Re: [ANY] Radio v2.0.0.5 (20/12/2016)
Reply With Quote #501

radioshoutcast.txt is auto-updated weekly, if you want something close to that, then you'll have to do a bit of custom list creation.

Your best bet is to create a custom station list called either shoutcastcustom.txt (This will load alongside ShoutCast mode in the base menu - Under Custom Stations) or radiovolume.txt (Which is the stations utilising a volume wrapper).

Using my site radio.dubbeh.net it's quite easy to find that info.

Navigate to https://radio.dubbeh.net/index.php?sid=1576 with your web browser.

Now you need to view the page-source and look for this piece of code:
Code:
$(document).ready(function()
{
    var stream = {title: "Dance Wave!",
                  mp3: "http://stream.dancewave.online:8080/dance.mp3"},
}
The mp3: is most important bit, just copy and past that into a new file called radiovolume.txt

so it ends up looking something like this:
Code:
"Radio Stations"
{
    "Off Page" "about:blank"
    "Volume Wrapper" "https://radio.dubbeh.net/rvw.html"
    "Volume Track Query" "https://radio.dubbeh.net/trackquery.php"
    "Use Genres" "0"

    "Dance Wave! 128k MP3"
    {
        "Stream URL" "http://stream.dancewave.online:8080/dance.mp3"
    }

    "Sleep Radio Stream 128k MP3"
    {
        "Stream URL" "http://37.59.28.208:8722/stream/;"
    }
}
Also, did the Sleep Radio using the same method as above. You can now either save this as radiovolume.txt or shoutcastcustom.txt depending on config type:

sm_radio_play_type - 1/3 - "Play type for Radio, 1 = Direct, 2 = Volume Wrapper, 3 = ShoutCast Powered"
sm_radio_shoutcast_custom - 0/1 - Append custom stations using the wrapper page under ShoutCast mode from shoutcastcustom.txt

Keeping ShoutCast Stations with a custom stations menu:

sm_radio_play_type "3"
sm_radio_shoutcast_custom "1"

Keeps the list of ShoutCast stations in a seperate menu but has a new "Custom Stations" menu for server admins to add what they want. Loaded from "addons/sourcemod/configs/shoutcastcustom.txt".

Dropping ShoutCast Stations and using Volume Wrapper Mode:
Another option without ShoutCast included and only them two stations from the list above:
sm_radio_play_type "2" - This ignores the sm_radio_shoutcast_custom setting, because ShoutCast mode is turned off. Stations are loaded from "addons/sourcemod/configs/radiovolume.txt" and using the standard volume wrapper page.

It's really easy to setup once you understand the settings options and if you're still confused, give me a shout on whisper and I'll try to explain more.

Note with Audio still playing on disconnect:
There's no way in the Source Engine to really issue a server command reliably for a client pre-disconnecting to stop the station playing.
Will need to type "!roff" to stop the audio playing, more of a problem in CS:GO than anything else and the way stations need to be loaded using a silent MOTD (Blame Hidden-Path).
__________________
SM Plugins - dubbeh.net - Plugin requests are welcome
dubbeh is offline
dubbeh
Senior Member
Join Date: Jul 2007
Old 12-31-2016 , 08:27   Re: [ANY] Radio v2.0.0.6 (31/12/2016)
Reply With Quote #502

This is a small error fix release that includes improved cookie handling to avoid any possible conflicts - especially when switching between play types that share the same station ID.
Added another extra check to station storage and changed the way IsValid returns the values - Fixes a small error log.

2.0.0.6 - Changelog:
  • Improved cookie handling when changing play types
  • Extra checks added to the station storage - Fixes a small log error

Latest version can be downloaded from the base post or auto-updated with Updater.

Happy new year and hope you have a good holidays!
__________________
SM Plugins - dubbeh.net - Plugin requests are welcome

Last edited by dubbeh; 12-31-2016 at 08:28.
dubbeh is offline
bukil
Junior Member
Join Date: Jul 2008
Old 01-04-2017 , 02:53   Re: [ANY] Radio v2.0.0.6 (31/12/2016)
Reply With Quote #503

I'm unable to successfully recompile the plugin due to:

- error 147: new-style declarations (steamworks.inc)
- error 147: new-style declarations (menu_handlers.inc)

"#pragma newdecls required" is already commented out in the sp file.

23:46:02 Metamod:Source Version Information
Metamod:Source version 1.11.0-dev+998
Plugin interface version: 15:14
SourceHook version: 5:5
Loaded As: Valve Server Plugin
Compiled on: Sep 24 2015 20:12:12
Built from: https://github.com/alliedmodders/met...commit/ebf29da
Build ID: 998:ebf29da
http://www.metamodsource.net/

23:46:26 SourceMod Version Information:
SourceMod Version: 1.8.0.5928
SourcePawn Engine: SourcePawn 1.8, jit-x86 (build 1.8.0.592
SourcePawn API: v1 = 4, v2 = 11
Compiled on: Aug 6 2016 1424
Built from: https://github.com/alliedmodders/sou...commit/28e57b2
Build ID: 5928:28e57b2
http://www.sourcemod.net/

It has been a habit of mine to recompile plugins I use for my server to the latest sourcemod. Based on my experience, I don't get any errors when I do the above.

Any advice?
bukil is offline
dubbeh
Senior Member
Join Date: Jul 2007
Old 01-04-2017 , 05:40   Re: [ANY] Radio v2.0.0.6 (31/12/2016)
Reply With Quote #504

Hey,

You actually reminded me that i forgot to add the updated include file for Updater by GoD-Tony. Put a post up on the plugin thread for it.

Follow these steps and hopefully it should work out the box.

Make sure you have the required plugins:
SteamWorks by KyleS - https://forums.alliedmods.net/showthread.php?t=229556
Updater by GoD-Tony - https://forums.alliedmods.net/showthread.php?t=169095
Multi Colors by Bara - https://github.com/Bara20/Multi-Colors

Then you also need to grab updated includes for a couple of plugins:
steamworks.inc - Updated for new style decals here
updater.inc - Updated for same as above here

Hopefully once you've done that, everything should compile fine.

If it's still not working - feel free to post back or send me a private message.
__________________
SM Plugins - dubbeh.net - Plugin requests are welcome
dubbeh is offline
bukil
Junior Member
Join Date: Jul 2008
Old 01-16-2017 , 01:12   Re: [ANY] Radio v2.0.0.6 (31/12/2016)
Reply With Quote #505

This recently stopped working. This is the error I get when I chose a radio station:

- Error: Stationd ID not found in the database.

No matter which station I choose. That error comes up. Any ideas?

Updater.smx is functioning properly.
bukil is offline
dubbeh
Senior Member
Join Date: Jul 2007
Old 01-16-2017 , 10:42   Re: [ANY] Radio v2.0.0.6 (31/12/2016)
Reply With Quote #506

Hey,

Currently in the process of fixing this. Got a feeling it might be the ShoutCast API handling way too many requests and returning 404's (Even having 10 retry attempts seems to be too few).

Running the cron job right now and hopefully everything is ready in 3-4 hours.

Will keep everyone updated in this post.

Edit:
Everything is looking good after the cronjob - you can wait for the playlist to auto-update or use "sm_radio_force_download" and reload the map.
__________________
SM Plugins - dubbeh.net - Plugin requests are welcome

Last edited by dubbeh; 01-16-2017 at 14:34. Reason: Fixed stations list
dubbeh is offline
mustafaneta
Junior Member
Join Date: Dec 2016
Old 02-06-2017 , 19:53   Re: [ANY] Radio v2.0.0.6 (31/12/2016)
Reply With Quote #507

ı have plugin old version
volume add plz

http://images.akamai.steamuserconten...E1747A63A17FF/
mustafaneta is offline
dubbeh
Senior Member
Join Date: Jul 2007
Old 02-07-2017 , 07:11   Re: [ANY] Radio v2.0.0.6 (31/12/2016)
Reply With Quote #508

Hey, Just made a guide for this today.

https://dubbeh.net/2017/02/how-to-ad...s-from-tunein/

I don't think i have all the time in the world to fill everyones requests with custom stations xD. That should make things a lot easier.
__________________
SM Plugins - dubbeh.net - Plugin requests are welcome
dubbeh is offline
mustafaneta
Junior Member
Join Date: Dec 2016
Old 02-07-2017 , 09:44   Re: [ANY] Radio v2.0.0.6 (31/12/2016)
Reply With Quote #509

Quote:
Originally Posted by dubbeh View Post
Hey, Just made a guide for this today.

https://dubbeh.net/2017/02/how-to-ad...s-from-tunein/

I don't think i have all the time in the world to fill everyones requests with custom stations xD. That should make things a lot easier.
Okey , But

"Station ID" "?" ??? where is station id ?


http://radyo.dogannet.tv/slowturk Station ID ?
http://yasamhosting.com472/ Station ID ?
http://dinle.arabeskradyo.biz:2011/; Station ID ?
http://17773.live.streamtheworld.com690/SUPER_FM_SC Station ID ?

----------------------------------------------------------------------------------------------------------


"Radio Stations"
{
"Off Page" "about:blank"
"Volume Wrapper" "https://dubbeh.net/sm/rvw.html"
"Shoutcast Player" "https://radio.dubbeh.net/index.php"
"Volume Track Query" "https://radio.dubbeh.net/trackquery.php"
"Use Genres" "0"


"Slow Turk"
{
"Station ID" "1" >>>>>>> ?
"Stream URL" "http://radyo.dogannet.tv/slowturk"
}
"Slow Turk"
{
"Station ID" "2" >>>>>>> ?
"Stream URL" "http://yasamhosting.com472/"
}

}

Last edited by mustafaneta; 02-07-2017 at 09:54.
mustafaneta is offline
mustafaneta
Junior Member
Join Date: Dec 2016
Old 02-07-2017 , 10:48   Re: [ANY] Radio v2.0.0.6 (31/12/2016)
Reply With Quote #510

Quote:
Originally Posted by dubbeh View Post
Hey, Just made a guide for this today.

https://dubbeh.net/2017/02/how-to-ad...s-from-tunein/

I don't think i have all the time in the world to fill everyones requests with custom stations xD. That should make things a lot easier.
where is the volume setting ? radio_2006

http://images.akamai.steamuserconten...B863200256B12/
mustafaneta is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 00:14.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode