Gmod radio sent

[release]

http://www.garrysmod.org/img/dl/42057_1.jpg

[tab]Name:[/tab] Gmod radio sent

[tab]Version:[/tab] 2.0 Major update

[tab]Description:[/tab] An addon with Gmod Radio Sent. Plays random music when it is turned On!

[tab]Requirements:[/tab] Brains

[tab]Download:[/tab] http://www.garrysmod.org/img/?t=dll&id=42057

[tab]Fix:[/tab] Removed with unknown reason.

[tab]Information:[/tab]
After all bugfixes, finally!
This is a first major release of my Gmod radio sent.

New version changes:
-Completely fixed sound playing bugs
-Added 5 new music
-Removed 2 stupid music
-Made music louder

Short information:
Gmod Radio Sent in addon format with custom mp3 music.

Information:
I made a lot of lua modifications and now it:
Plays random music when it is turned On!
Can be turned off permamently by using pistol!
After the music ends it starts another one!
Doesen’t need Portal to work as it uses citizenradio model!
Can be modified by adding your own music to sound in gmod!
When you use it it tells you when it is ON by printing messages!
No more music bugs!
Completely fixed autoplay!
Too bad it can’t swim, and do not try to teach it!
Plays music louder to keep you warmer company!

This version contains lower quality music for 2 reason
-First they take less HD and can be downloaded fast when joining server with this.
-Second it may be illegal to put full quality music here

So here is current music list:
Still alive, (old)
Bananasphone, (old)
Saves my life, (removed)
Firestarter, (removed)
Redflag, (old)
Bullet, (old)
Memory, (new)
Kinslayer, (new)
Renegade, (new)
Shout, (new)
Paint it black. (new)

So there is 9 different music, but if you are willing to add your favorite music, you can PM me at FP or send me e-mail: creec_dx@hotmail.com

Remember, this is not originally made by me, this was made by Jeffrey032
and it still has some old lua code by Jeffrey and much is made by me.

By creec
[/release]

PSPS:


**THANK YOU, A LOT OF DOWNLOADS!

**

Yay!

Thank you so much.

:'D

No problem, report any bugs to discussion thread, but i hope there isn’t any.

You should put “Never Gonna Give You Up” in it. :smiley:

Oh! Have random GladOS Dialect come in between each song, like a commercial.

That would defeat the point of:

Also, as you can add songs to it, you could do that yourself.

How? It doesn’t require portal but it plays “Still Alive” From the end of Portal. It’s not that hard to find the sound files.

Still Alive is not from portal, it’s just in portal game ending as main background song. :slight_smile:

And the idea to have dialect is really easy to make if someone would find some useful ones.

How can i edit the .lua because i backed it up before i changed it and i added .txt and end but not i can’t change it back to .lua can you help?

Yeah i had this problem sometimes, you can simply open it with text editor, then when you are saving it do this:

  1. choose “Save as…”
  2. set it name to “init.lua”
  3. set filetype to “All files”
  4. save file

Huh?
Sent’s are serverside not clientside

Edit:

NOT LEGAL!!!
You’ve copied the portal still alive song.

Yes, Gmod radio sent is supposed to be serverside.

The Gmod clientside radio sent is shared, so its client and server side and uses HL2 music.
GET IT HERE: http://forums.facepunchstudios.com/showthread.php?t=535462

Yes it has Portal - still alive, but it is lower quality and used only for own fun.

If it is illegal i can remove it if you want. :slight_smile:

How do you make it play your own song’s?

Oh No! :open_mouth:

There is all you need in the Sounds/Music folder of addon.
Short info/example to add your own music.

I do not understand how to put your own custom music in.

Let me help a bit.

Lets make example for adding “music.mp3”

First you need to put your music.mp3 into “sound/music”

Then open txt file that can be found in “sound/music”
There is example code for custom music, like this:



	{
		Snd = Sound( "music/*YOUR CUSTOM MUSIC*.mp3" ),
		Dur = *YOUR CUSTOM MUSIC DURATION IN SECONDS - REMEMBER 2.05 IS NOT 205 ITS 60*2+5=125*
	},

In our example i make it look like this:

	{
		Snd = Sound( "music/music.mp3" ),
		Dur = 60 -- duration in seconds
	},


Then open your lua/entities/radiox/init.lua

Then i only copy the code above here:



local MUSIC = 
{	
*HERE*
	{
		Snd = Sound( "music/bullet.mp3" ),
		Dur = 198
	},

	{
		Snd = Sound( "music/redflag.mp3" ),
		Dur = 223
	},

	{
		Snd = Sound( "music/bannanasphone.mp3" ),
		Dur = 174
	},

	{
		Snd = Sound( "music/firestarter.mp3" ),
		Dur = 67
	},

	{
		Snd = Sound("music/stillalive.mp3"),
		Dur = 241
	},

	{
		Snd = Sound( "music/savesmylife.mp3" ),
		Dur = 65
	}
}


After putting this example code in it, it should look like this:



local MUSIC = 
{	
	{
		Snd = Sound( "music/music.mp3" ),  -- our example code
		Dur = 60 -- duration in seconds -- our example code
	},

	{
		Snd = Sound( "music/bullet.mp3" ),
		Dur = 198
	},

	{
		Snd = Sound( "music/redflag.mp3" ),
		Dur = 223
	},

	{
		Snd = Sound( "music/bannanasphone.mp3" ),
		Dur = 174
	},

	{
		Snd = Sound( "music/firestarter.mp3" ),
		Dur = 67
	},

	{
		Snd = Sound("music/stillalive.mp3"),
		Dur = 241
	},

	{
		Snd = Sound( "music/savesmylife.mp3" ),
		Dur = 65
	}
}


Save.

You have added custom music!

If you still have problems, i can add music you want for you.
I only need to know full name of your music and duration.

:slight_smile:

If you add custom music can the other players hear the music then ?

I’m sorry for not answering for so long i was setting up my new pc :).

Back to topic: NO, players withouth this addon and your custom music can’t hear it.

Use this instead: http://forums.facepunchstudios.com/showthread.php?t=534238
AHH: Remember this entity is serverside not clientside, sorry for my misspellings from past.

You should make like band-themed radios that have a cool skin and play a certain band’s songs. I suggest starting with Audioslave and make a firey skin :D.

Released new version with some fixes and improved code.

Haven’t tested yet, but i think you like to test stuff!

Enjoy people!

Edit:

New version changes:

  • Added textprint function to console and Radio user that helps putting radio On/Off
  • Made proper music autoplay
  • Fixed some bugs with music loop