Jump to content

Shoutcast Radio


Recommended Posts

I setup a 3 Hours a day radio using www.spreaker.com with the intention of setting up a "Chernarus Radio" being broadcast from a base in game (Immersion factor only) mornings, evening and a midnight shift.

 

Was originally setup to encourage more players during the off-peak hours... and to add some more flavor to our servers/community.

 

Was awesome except the fact it was never used by my staff and one of the biggest waste of money I have spent to date..  

 

 

EDIT: Was used once..  http://www.spreaker.com/user/dayzmadhouse/just_another_day ... 

Link to comment
Share on other sites

Was never broadcast in-game unfortunately. Was looking at ways to setup it in-game but never got around to it.

 

EDIT: Wanted to make it not exclusive to game so people could listen at work, or on the way home on the bus/train/car...

Link to comment
Share on other sites

Hmm We run admin events on the server I play on. be cool to setup in game broadcasts over the In game radio. Have the players tune to a station to listen to the broadcast. Even if it is a pre-recorded Audio file. I think the settings of epoch this would fit well in the world.

Link to comment
Share on other sites

listening to it now at work. :)

 

The one thing I know the file has to be streamed in an .ogg format. Not sure how to do that yet ??

 

Edit: :Looking around. It seems this is the streaming software for Ogg Format

 

http://www.icecast.org/index.php

 

 

Anyone know how to setup the scroll mouse to bring up a menu called listen to Radio. and make it play a recorded .ogg file. I was thinking of editing http://opendayz.net/threads/player-scroll-menu-tutorial-pictures.11858/ script to play a recorded file in the mission file ..

 

 

I guess there is a new java script allowing arma to stream radio music. Anyone with a little coding background know how to set this up .

 

 

Been Messing around. I might have something that will work with the Scroll mouse. It will play at custom .ogg file in the mission file. If you place a large .ogg file this will make the mission file very large. But should work for short broadcasting info .. So you can turn this on for custom events or Easter Egg hunts or just leave it on to broadcast server news and rules or whatever. I will post the code I was messing with once I fully test it and feel it is working well. this In no way is my own coding ..Used other peaces of code to make this work.

 

To give you an idea on file size. A 34 min Audio file is 22 mb. This would have to be downloaded in the mission file to listen to it. I can not see players waiting for a 22 mb file to download. But if it was a min or two long I can see them waiting for a 4 mb file.

Link to comment
Share on other sites

That is cool But I was looking for more of a radio broadcast for like help.

 

I have coded something as a demo. I would like to link it to the in game Radio. Anyone with some coding background could you have a look at the code look and see if you can make it look for the radio in the toolbelt. If the radio is there then allow the listen to broadcast to show up in the player menu . This is my first time coding anything in arma. I would also like to figure out that java coding to link a shoutcast channel and have a menu screen to turn it off and on. Again this is my first time coding in arma and still very new to coding in general.

 

 Below is the link to the files I did. This is more for Player setup events or like on the server I play at they do Admin events. This could be a distress call or whatever, Kind of a way to make player controlled missions I guess.

 

Video Demo of it working .

 

http://www.youtube.com/watch?v=AIEPriKtkDM&feature=youtu.be

 

This Files below are worked off Bungle's Custom Chernarus Server Pack 1.2         

 

 Broadcasting Files: http://www.filefactory.com/file/6xny5nrfcckl/n/Broadcast.rar

 

Here is what I have added in the init.sqf at the bottom I added this

execVM "radio\initCarRadio.sqf";

in the description.ext just below

class RscPicture
{
	access=0;
	type=0;
	idc=-1;
	style=48;
	colorBackground[]={0,0,0,0};
	colorText[]={1,1,1,1};
	font="TahomaB";
	sizeEx=0;
	lineSpacing=0;
	text="";
};

I added this :

class CfgSounds
{
    sounds[] =
    {
    broadcast
    };
    class broadcast
    {
    name="broadcast";
    sound[]={radio\files\broadcast.ogg,0.9,1};
    titles[] = {};
    };
};

Then I added the Folder Radio and all the files .. try it out and let me know what you think

 

I used http://media.io/ to convert the files to Ogg.

Link to comment
Share on other sites

Yeah this was more for when your sitting around the campfire with nothing to do.. Not really an all the time thing.. 

 

Most games I disable music unless its triggered music that works with the game and not just a bunch of tracks thrown over the top.

 

Also prizes were going to be given away and like Dobroney stated its a great way to trigger and run events.. that or a Twitch stream I guess..

Link to comment
Share on other sites

Yeah this was more for when your sitting around the campfire with nothing to do.. Not really an all the time thing.. 

 

Most games I disable music unless its triggered music that works with the game and not just a bunch of tracks thrown over the top.

 

Also prizes were going to be given away and like Dobroney stated its a great way to trigger and run events.. that or a Twitch stream I guess..

 

Yeah that's cool man. Makes sense!

Link to comment
Share on other sites

I need some help with this

 

 

I have this to start the radio command

 

waitUntil {!isNil ("dayz_Totalzedscheck")};
sleep 4;
playsound "Broadcast";
 

 

 

what do I write to stop this from playing ..

 

Am looking here : http://community.bistudio.com/wiki/Category:Scripting_Commands for the command to stop the file from playing. Can not see it .. Maybe I missed it ..

 

 

Question would this command work for stopping the audio file

 

1 fadeSound 0 "Broadcast";
 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Advertisement
  • Discord

×
×
  • Create New...