• RadioMod
    16 replies, posted
Hey I'm new here and I made "my" first little Tool for GMod10. It's a RadioMod which plays 8 kickass songs. This Mod is based on Sakarias's EasyEngine Mod. I just made a single radio out of the whole Mod. So please don't thank me, thank Sakarias. It's a standalone new addon now, called "RadioMod". You can download it here: [url]http://www.garrysmod.org/downloads/?a=view&id=69923[/url] You can add your favourite music in the Mod if you want to. Just replace the musicfiles called 1 to 8 with your music. But rename your mp3's in "1" , "2" , "3" etc. Put 'em into "RadioMod / sound / Radio_Mod_Sounds / Radio / custom" Have fun with it! Date of creation: 06/06/09 Version: 1.0 Report bugs please if there would be some.
So all you did was edit sakrais' easy engine radio? I'm not totally positive if it is release worthy farther than garrysmod.org.
[QUOTE=Kwigg;15431552]So all you did was edit sakrais' easy engine radio? I'm not totally positive if it is release worthy farther than garrysmod.org.[/QUOTE] Hey Kwigg, I'm new with Lua etc. for me it was a positive experience to create an "own" modification. I was looking a long time for a simple Radio-Tool, so I found EE-Mod with this old loop radio and the radio electro. I thought about making a small standalone radiotool out of it. I surely had to edit most of the Lua files. That was a "just" a first practice for me to make something like this. I'm quiet interested in making original own Lua files even Addons. So please don't see it that critical, sakarias got all the credits.. ah - edit: Before I'll forget it, is there any good editor or any good tutorials for creating lua / addons etc.? I rly wanna learn more.
[QUOTE=theprophet;15432190] Before I'll forget it, is there any good editor or any good tutorials for creating lua / addons etc.? I really want to learn more.[/QUOTE] The Gmod lua wiki is very handy. Link: [url]http://wiki.garrysmod.com/?title=Main_Page[/url] Just search for on the lua wiki if you need some help understanding the syntax. I recommend that you use Notepad++. Link: [url]http://notepad-plus.sourceforge.net/uk/site.htm[/url]
Thank you Sak for the Links. I'm a little bit bleak now, that no one is interested in testing the Mod or something..
Well at least it's a bit easier than the other radio mod. Thanks.
I downloaded your AddOn an put it In my AddOn Folder. Then I wanted to add my own, custom songs and so i puted 8 songs named 1,2,3,4,5,6,7 and 8 in the right Folder. But InGame the Sounds still are the shitty original sounds :[ PS: I have Engine Mod, where the Radio is in too.
Check if its the right folder, be 100% , its the folder where the other songs are in. Then just replace them with you mp3s. Be sure the songs are .mp3 not .wav, mpeg etc. etc. Should work. (I know lots of ppl where it works fine)
Looks cool... I'll have to try it maybe...
When or [b][i]IF[/i][/b] you learn LUA better, could you make it easier to choose songs? Like when you press E a menu comes out that shows the songs, and you can choose one?
[QUOTE=Hakita;16424721]When or [b][i]IF[/i][/b] you learn LUA better, could you make it easier to choose songs? Like when you press E a menu comes out that shows the songs, and you can choose one?[/QUOTE] Yep. He could actually use the code i have used to make the instructions manual in engine mod 09.
If anyone would like to, I can send you a replacement lua file so that you can play more than 8 songs. Send me a PM if that's the case.
official v.2.0 is in planning: - derma dpanel menu for choosing / playing & stop songs - more songs with higher quality than [I]32kb/s[/I] (will raise the filesize) - clientside stopbutton - [B]maybe[/B] integrated webradio-chooser - [B]maybe[/B] new model / texture
Hi. The first songs works well, but the others songs not. The console says this in this songs: [img]http://img444.imageshack.us/img444/489/radiomod.png[/img] Because is that? Thanks.
[QUOTE=JoRg;20556840]Hi. The first songs works well, but the others songs not. The console says this in this songs: [img]http://img444.imageshack.us/img444/489/radiomod.png[/img] Because is that? Thanks.[/QUOTE] First thing is, if you want to add more than 8 songs, you have to edit the script by hand, which could result in more errors. The errormessage in your console says that the songs have a sample rate of 48000 kHz, I think it's only possible to play 44 kHz songs ingame. Use Google finding out how to change 48 kHz to 44 kHz, and change it, otherwise use 44 kHz songs only if you have some.. you can find the kHz rate when you click on properties (right mouse on the mp3) and then in the tab called fileinfo or something. when youre done with converting 48 kHz to 44 kHz, and if you still want to have 26 songs in your RadioMod you need to change the script itself goto radiomod - lua - entities - sent_Radio3 - init.lua and add the additional songs.
Ammm, now i understand... I can change to 44 kHz with a program i have. Really, thanks for your explanation ;)
How come the radio is a white wire box? am i missing textures?
Sorry, you need to Log In to post a reply to this thread.