Jump to content
Sign in to follow this  
SparkZ

Adding music to Zeus

Recommended Posts

Hello, I'm an advanced Game Master of Zeus and I'm having my own story going on with my clan, in our own server.

Now the soundtracks I'm using as Zeus are getting repetitive each "episode" we're doing. So I was searching the internet on how to add soundtracks to the "Play Music" module of Zeus in the server. Is there ANY way to do that? It would be so much cooler with epic music in the background while the players are playing through the episode.

Please help me out. I'm ready to do anything, however long it would take.

Cheers

~ SparkZ

Share this post


Link to post
Share on other sites

TAKE A LOOK AT THESE LINKS. ALL OF THEM REMAINED ALMOST UNASNWERED. THE ONLY THING WE KNOW IS "USE MODS"...GREAT!

WE WANT ANSWERS...THERE ISNT EVEN A MOD THAT ALLOWS YOU TO ADD MUSIC TO ZEUS...SERIOUSLY, SERVICE HERE IS LACKING...ALOT

http://gyazo.com/ccb47176fb08bb4b0826ce3fe5147687

http://gyazo.com/1c5f6a25c84a63aa38375e31c6946c40

http://gyazo.com/cea23727e9e34a11d73948982f16a432

http://gyazo.com/da3e78e04f2c2b3734ac11204bd89e08

Edited by R0adki11

Share this post


Link to post
Share on other sites
This mod add every arma soundtrack to zeus, take a look inside to see how it's done .

Share this post


Link to post
Share on other sites

Mods are usually made by people who want to add something to their game, and when completed they share it with the community. They don't do it to provide a service to you, and to say that "service here is lacking" is insulting.

http://forums.bistudio.com/forumdisplay.php?170-ARMA-3-ADDONS-Configs-amp-Scripting

Follow that link. Read some tutorials. Break open the game files and see how BI does it. Be the first person in the community to release a public Soundtrack Mod for Zeus using new tracks!

Share this post


Link to post
Share on other sites

SparkZ, you could go into the function view and search for the corresponding function and add it to your needs. The Zeus music module was never intended to use custom music, but still they offer you the whole code behind it.

Share this post


Link to post
Share on other sites

Well I've managed to get some soundtracks into my mission for use with triggers. But they still don't show up in Zeus. Is there another piece of code I can add into the description.ext or even the mission.sqm? This is the code in my description.ext so far.

(I saw the ALiVE mod adding soundtracks to Zeus but I can't look into their mod files sadly.)

};


class CfgMusic
{
tracks[]={};

class music1
       {
       name = "music1";
       sound[] = {"\music\phsr.ogg", db+0, 1.0};
       };
};

Share this post


Link to post
Share on other sites

"private ["_music","_start","_volume"];
_music = [_this,0,"",[""]] call bis_fnc_param;
_start = [_this,1,0,[0]] call bis_fnc_param;
_volume = [_this,2,musicvolume,[0]] call bis_fnc_param;

0 fademusic _volume;
playmusic [_music,_start];
true"

This is what I get when looking into the functions viewer at "playMusic". There's nothing I can use to add the songs sadly.

Neither here in "moduleSound"

_logic = _this select 0;
_units = _this select 1;
_activated = _this select 2;

if (_activated) then {
if (_logic call bis_fnc_isCuratorEditable) then {
	waituntil {!isnil {_logic getvariable "updated"} || isnull _logic};
};
if (isnull _logic) exitwith {};

_side = (_logic getvariable ["Side",5]) call bis_fnc_sidetype;
_target = _logic getvariable ["RscAttributeOwners",[_side]];
_sound = _logic getvariable ["RscAttributeSound",""];
_music = _logic getvariable ["RscAttributeMusic",""];
_radio = _logic getvariable ["RscAttributeRadio",""];

switch true do {
	case (_sound != ""): {
		[_sound,"bis_fnc_playsound",_target] call bis_fnc_mp;
	};
	case (_music != ""): {
		_musicVolume = _logic getvariable ["RscAttributeMusicVolume",musicvolume];
		[[_music,0,_musicVolume],"bis_fnc_playmusic",_target + allcurators] call bis_fnc_mp;
	};
	case (_radio != ""): {
		[[sideunknown,_radio],"bis_fnc_sayMessage",_target] call bis_fnc_mp;
	};
};
if (count objectcurators _logic > 0) then {deletevehicle _logic};
};

*sigh* I'm out of idea's...

Share this post


Link to post
Share on other sites

I figured it out and have made a tutorial explaining how you would do it. I can't post links yet, but if you would like to see it just seach "scravey" on youtube.

Goodluck, and I hope to see more music in the ARMA 3 future!

Share this post


Link to post
Share on other sites
I figured it out and have made a tutorial explaining how you would do it. I can't post links yet, but if you would like to see it just seach "scravey" on youtube.

Goodluck, and I hope to see more music in the ARMA 3 future!

https://www.youtube.com/watch?v=SufoXPZMR8o

Here is the video.

I knew about that way already. I wonder if it's only possible to add music via a mod. Actually it should be enough to also add cfGMusicClass and CfgMusic to your description.ext. That should basically have the same effect.

If I would only know where the module function loads the music from..

Share this post


Link to post
Share on other sites

Thank you very much Scravey and R3vo!

The video explains everything good. Thank you thank you thank you! :D You just saved my custom mp campaign lol XD

Share this post


Link to post
Share on other sites

Well after making a mod and such, the soundtracks do appear in Zeus, but when placing them, they don't play. Not even in the example play when just clicking on the song. And yes they are ogg. Did I do something wrong?

EDIT: Some more information http://gyazo.com/59f605869c534fa007cf86d7af6caf47

Does the path needs to be "iryf.ogg" or just "iryf" in my case? Cause it already shows .ogg at the VLC Media file (you can't see the .ogg but it's there)

Edited by SparkZ

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×