Jump to content
Sign in to follow this  
evil_brownie

M107 Sound Mod help

Recommended Posts

Hello everyone. Earlier today i had the idea to try and make a sound mod for the m107, but i've ran into a problem, i can't seem to load it properly :/

I have the sound files in .wss format, as they should be, but it seems my config has some issues, as the game doesn't load at all:

//M107 spec Sound Mod Test
//spec_m107.pbo

class Cfgpatches
{
class spec_m107
{
	units = {};
	weapons = {};
	requiredversion = 1.01;
	requiredaddons = {"CAWeapons"};
};
};
class rifle;
class cfgweapons
{
class m107: rifle
{
	drysound = {"\spec_m107\m107_fire",1.0,0.0,2500};
	reloadmagazinesound = {"\spec_m107\m107_reload",1.0,0.0,10};
	};
};

If anyone could help me fix it, it'd be very appreciated :)

Edited by Evil_Brownie

Share this post


Link to post
Share on other sites
Hello everyone. Earlier today i had the idea to try and make a sound mod for the m107, but i've ran into a problem, i can't seem to load it properly :/

I have the sound files in .wss format, as they should be, but it seems my config has some issues, as the game doesn't load at all:

//M107 spec Sound Mod Test
//spec_m107.pbo

class Cfgpatches
{
class spec_m107
{
	units = {};
	weapons = {};
	requiredversion = 1.01;
	requiredaddons = {"CAWeapons"};
};
};
class rifle;
class cfgweapons
{
class m107: rifle
{
	drysound = {"\spec_m107\m107_fire",1.0,0.0,2500};
	reloadmagazinesound = {"\spec_m107\m107_reload",1.0,0.0,10};
	};
};
};

If anyone could help me fix it, it'd be very appreciated :)

//M107 spec Sound Mod Test
//spec_m107.pbo

class Cfgpatches
{
class spec_m107
{
	units = {};
	weapons = {};
	requiredversion = 1.01;
	requiredaddons = {"CAWeapons"};
};
};
[color="Red"]class cfgweapons
{
       class rifle;[/color]
       class m107: rifle
       {
         drysound = {"\spec_m107\m107_fire",1.0,0.0,2500};
         reloadmagazinesound = {"\spec_m107\m107_reload",1.0,0.0,10};
       };
};

And be sure, that your path to sound files is correct.

Share this post


Link to post
Share on other sites

For some reason when i load arma it says:

config: some input after EndOfFile

pretty sure it has no other input other than that code.

Share this post


Link to post
Share on other sites
For some reason when i load arma it says:

config: some input after EndOfFile

pretty sure it has no other input other than that code.

Try remove all comments. And check bottom of file. Maybe you forget some brackets - }; Code which I place in previous post - works fine. I tested it right now.

Share this post


Link to post
Share on other sites

Thanks DAP. I was being rather thick for some reason but i have fixed it, it now works...sort of (still need to fix and tune the sounds a bit)

I had misplaced a couple of the "};" as you said, but i've fixed those and it now loads perfectly.

And on a FPDR note: I put the actual firing sound as the dry firing sound. How noobish of me xD

I'll edit this post as i get it working properly.

EDIT: Yup. Everything's working now. Once again, thanks DAP for your help ;)


class Cfgpatches
{
class spec_m107
{
	units[] = {};
	weapons[] = {};
	requiredversion = 1.01;
	requiredaddons[] = {"CAWeapons"};
};
};
class cfgweapons
{
class rifle;
class m107: rifle
{
	drysound[] ={"\spec_m107\m107_dry",1,1,10};
	reloadmagazinesound[] ={"\spec_m107\m107_reload",1,1,10};
		begin1[] ={"spec_m107\m107_fire",1,1,2500};
		soundbegin[] ={"begin1",1};
};
};

Edited by Evil_Brownie
Final edit

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  

×