tinboye

server side music

5 posts in this topic

So i am trying  to add music to my server, but i want to add it via server side.

I made the following:

@ambients\addons\ambients.pbo

inside the pbo i have config.cpp

and a folder called samples with all my ogg files

in the config.cpp

class CfgPatches {
	class ambients {
		units[] = {};
		weapons[] = {};
		requiredVersion = 0.1;
		requiredAddons[] = {};	
	};
};

class CfgMusic
{
	tracks[]={};

	class intro
	{
		name = "intro";
		sound[] = {"\ambients\samples\introSong.ogg", db+1,1}; 
	};
	
	class intro1
	{
		name = "intro1";
		sound[] = {"\ambients\samples\IntroSong1.ogg", db+1,1}; 
	};
	
	class intro2
	{
		name = "intro2";
		sound[] = {"\ambients\samples\IntroSong2.ogg", db+1,1}; 
	};
	
	class intro3
	{
		name = "intro3";
		sound[] = {"\ambients\samples\IntroSong3.ogg", db+1,1}; 
	};
	
	class intro4
	{
		name = "intro4";
		sound[] = {"\ambients\samples\IntroSong4.ogg", db+1,1}; 
	};
	
	class intro5
	{
		name = "intro5";
		sound[] = {"\ambients\samples\IntroSong5.ogg", db+1,1}; 
	};
	
	class intro6
	{
		name = "intro6";
		sound[] = {"\ambients\samples\IntroSong6.ogg", db+1,1}; 
	};
	
	class intro7
	{
		name = "intro7";
		sound[] = {"\ambients\samples\IntroSong7.ogg", db+1,1}; 
	};
	
	class intro8
	{
		name = "intro8";
		sound[] = {"\ambients\samples\IntroSong8.ogg", db+1,1}; 
	};
	
	class intro9
	{
		name = "intro9";
		sound[] = {"\ambients\samples\IntroSong9.ogg", db+1,1}; 
	};
	
	class intro10
	{
		name = "intro10";
		sound[] = {"\ambients\samples\IntroSong10.ogg", db+1,1}; 
	};
	
	class intro11
	{
		name = "intro11";
		sound[] = {"\ambients\samples\IntroSong11.ogg", db+1,1}; 
	};
	
	class intro12
	{
		name = "intro12";
		sound[] = {"\ambients\samples\IntroSong12.ogg", db+1,1}; 
	};
	
	class intro13
	{
		name = "intro13";
		sound[] = {"\ambients\samples\IntroSong13.ogg", db+1,1}; 
	};
	
	class intro14
	{
		name = "intro14";
		sound[] = {"\ambients\samples\IntroSong14.ogg", db+1,1}; 
	};
	
	class intro15
	{
		name = "intro15";
		sound[] = {"\ambients\samples\IntroSong15.ogg", db+1,1}; 
	};
	
	class intro16
	{
		name = "intro16";
		sound[] = {"\ambients\samples\IntroSong16.ogg", db+1,1}; 
	};
	
	class intro17
	{
		name = "intro17";
		sound[] = {"\ambients\samples\IntroSong17.ogg", db+1,1}; 
	};
	
	class intro18
	{
		name = "intro18";
		sound[] = {"\ambients\samples\IntroSong18.ogg", db+1,1}; 
	};
	
	class intro19
	{
		name = "intro19";
		sound[] = {"\ambients\samples\IntroSong19.ogg", db+1,1}; 
	};
	
	class intro20
	{
		name = "intro20";
		sound[] = {"\ambients\samples\IntroSong20.ogg", db+1,1}; 
	};
	
	class intro21
	{
		name = "intro21";
		sound[] = {"\ambients\samples\IntroSong21.ogg", db+1,1}; 
	};
		
	class intro22
	{
		name = "intro22";
		sound[] = {"\ambients\samples\IntroSong22.ogg", db+1,1}; 
	};
		
	class intro23
	{
		name = "intro23";
		sound[] = {"\ambients\samples\IntroSong23.ogg", db+1,1}; 
	};
		
	class intro24
	{
		name = "intro24";
		sound[] = {"\ambients\samples\IntroSong24.ogg", db+1,1}; 
	};
		
	class intro25
	{
		name = "intro25";
		sound[] = {"\ambients\samples\IntroSong25.ogg", db+1,1}; 
	};
		
	class intro26
	{
		name = "intro26";
		sound[] = {"\ambients\samples\IntroSong26.ogg", db+1,1}; 
	};
	
////////////////////////////////////////////////////////
// Action //////////////////////////////////////////////
////////////////////////////////////////////////////////	
	class action
	{
		name = "action";
		sound[] = {"\ambients\samples\actionSong.ogg", db+1,1}; 
	};
	
	class action1
	{
		name = "action1";
		sound[] = {"\ambients\samples\actionSong1.ogg", db+1,1}; 
	};
	
	class action2
	{
		name = "action2";
		sound[] = {"\ambients\samples\actionSong2.ogg", db+1,1}; 
	};
	
	class action3
	{
		name = "action3";
		sound[] = {"\ambients\samples\actionSong3.ogg", db+1,1}; 
	};	
	
	class action4
	{
		name = "action4";
		sound[] = {"\ambients\samples\actionSong4.ogg", db+1,1}; 
	};
	
	class action5
	{
		name = "action5";
		sound[] = {"\ambients\samples\actionSong5.ogg", db+1,1}; 
	};
		
	class action6
	{
		name = "action6";
		sound[] = {"\ambients\samples\actionSong6.ogg", db+1,1}; 
	};	
		
	class action7
	{
		name = "action7";
		sound[] = {"\ambients\samples\actionSong7.ogg", db+1,1}; 
	};
	

////////////////////////////////////////////////////////
// Ambients ////////////////////////////////////////////
////////////////////////////////////////////////////////	
	class suspense0 
	{
		name = "suspense0";
		sound[] = {"\ambients\samples\suspense0.ogg", db+1,1};
		
	};

	class suspense1 
	{
		name = "suspense1";
		sound[] = {"\ambients\samples\suspense1.ogg", db+1,1};
		
	};

	class suspense2 
	{
		name = "suspense2";
		sound[] = {"\ambients\samples\suspense2.ogg", db+1,1};
		
	};

	class suspense3 
	{
		name = "suspense3";
		sound[] = {"\ambients\samples\suspense3.ogg", db+1,1};
		
	};

	class suspense4 
	{
		name = "suspense4";
		sound[] = {"\ambients\samples\suspense4.ogg", db+1,1};
		
	};

	class suspense5 
	{
		name = "suspense5";
		sound[] = {"\ambients\samples\suspense5.ogg", db+1,1};
		
	};

	class suspense6 
	{
		name = "suspense6";
		sound[] = {"\ambients\samples\suspense6.ogg", db+1,1};
		
	};

	class suspense7 
	{
		name = "suspense7";
		sound[] = {"\ambients\samples\suspense7.ogg", db+1,1};
		
	};

	class suspense8 
	{
		name = "suspense8";
		sound[] = {"\ambients\samples\suspense8.ogg", db+1,1};
		
	};

	class suspense9 
	{
		name = "suspense9";
		sound[] = {"\ambients\samples\suspense9.ogg", db+1,1};
		
	};

	class suspense10 {
		name = "suspense10";
		sound[] = {"\ambients\samples\suspense10.ogg", db+1,1};
		
	};

	class suspense11 
	{
		name = "suspense11";
		sound[] = {"\ambients\samples\suspense11.ogg", db+1,1};
		
	};

	class suspense12 
	{
		name = "suspense12";
		sound[] = {"\ambients\samples\suspense12.ogg", db+1,1};
		
	};
	
};

i added all these classes into my config.cpp under class CfgExileMusic

i added @ambients into the server start parms as well as startup parms for playing the game.

but no music plays

am i missing a step or 2?

Edited by tinboye

Share this post


Link to post
Share on other sites

All the music has to be in the Mission file, the player actually has to download it if you want them to hear it. I wouldn't go for it, at that point your mission size is going to be HUGE.

Edited by BossMannAU

Share this post


Link to post
Share on other sites
Advertisement

I would have players download the modpack with the music, enable it on client side. i just need to know why its not working atm.

I have it on server side, and client side as a mod, but the music is not playing. so i am obviously missing something. There is over 50mb in music, i do not want to have to download that everytime i load the mission. Server is small, not expecting alot of players. just a few friends. so i would give them a link to download the mod.

Share this post


Link to post
Share on other sites

Just add it to the mission file bro.  As long as you are not changing your mission file alot you only need to download it when there is changes. It saves the mission files into your appdata

Share this post


Link to post
Share on other sites
Advertisement

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

  • Recently Browsing   0 members

    No registered users viewing this page.