Jump to content
Sign in to follow this  
-=anders=-

What is wrong with my config?

Recommended Posts

Hi guys!

I have some serious problems getting in the new weapons of OA into vopsounds2.2 wich I've added my own sounds into.

When I start the game it tells me this:

arma2error.jpg

My code/config looks like this:

http://img541.imageshack.us/img541/1473/arma2error2.jpg

I took the code from the "acex_sm_c_sound_wep_rifle.pbo".

As I said, I rlly need an explanation for how to make correct inputs to use certain weapons from like OA...

All other values or codes works perfectly except the M16 reloadsounds wich automatically plays the original reloadsound even if I've forced it to play from my PBO with the other gunsounds.

Thx,

/Anders

Share this post


Link to post
Share on other sites

As the error says, you didn't preloaded class "single" from which you inherit the other classes.

Share this post


Link to post
Share on other sites
Myke;1692318']As the error says' date=' you didn't preloaded class "single" from which you inherit the other classes.[/quote']

Okey, hmm. Can you plz specify, cause I'm not that good at coding. :rolleyes:

[EDIT]

HELP!!!

[EDIT]

Ok, now it says: Some input after EndOfFile

What the heck does that mean?

Edited by -=anders=-

Share this post


Link to post
Share on other sites

If you want to create a new class based on a existing, you have to "preload" this class in the config.

As example:

class cfgVehicles {
   class plane;
   class MyAwesomePlane: plane {
         ...
         config stuff here

This preloads tha class "plane" on which i can base my own class then. You are not loading class "single" in the appropriate place.

Ok, now it says: Some input after EndOfFile

Means you have a }; somewhere where it shouldn't be.

Upload your entire config to www.pastebin.com

Don't even think of posting it in here. ;)

Share this post


Link to post
Share on other sites
Myke;1692522']If you want to create a new class based on a existing' date=' you have to "preload" this class in the config.

As example:

class cfgVehicles {
   class plane;
   class MyAwesomePlane: plane {
         ...
         config stuff here

This preloads tha class "plane" on which i can base my own class then. You are not loading class "single" in the appropriate place.

Means you have a }; somewhere where it shouldn't be.

Upload your entire config to [url']www.pastebin.com[/url]

Don't even think of posting it in here. ;)

Thx for trying to help me out here mate.

Here is the entire config from vopsound2.2 wich I've edited. (I'm gonna put in my own name of the soundpack when all sounds are changed from me).

http://pastebin.com/9Sam4Wym

But it's only the SCAR part wich I've copied from ACEX_SM config, that has delivered these startup errors.

After I get that darn weapon to work, I'm gonna continue with the rest of the new weapons added in OA.

My first goal was to add reloadsounds to all weapons wich wasn't there before. That has worked very well.

I hope you guyscan help me out. I sat many hours yesterday, changing the config with no results. :( But I'm no giving up this shit. :cool:

Share this post


Link to post
Share on other sites

Starting Line 323:

class EGLMMuzzle: M203Muzzle {

begin1 = {""\Vops_s_Guns\m203_s.wss", 0.100000, 0.900000, 100};

soundBegin = {"begin1", 1};

};

There's a qote to much ! Should look like:
class EGLMMuzzle: M203Muzzle {

begin1 = {"\Vops_s_Guns\m203_s.wss", 0.100000, 0.900000, 100};

soundBegin = {"begin1", 1};

};

Here is the corrected Pastebin link: http://pastebin.com/HaAueuLV

Tip: choose "C++" for Syntax highlightning. Not ideal, but better than nothing!

Share this post


Link to post
Share on other sites

Thx for the tip guys!!! I actually have Notepad++. Dunno why I haven't used it. :D Ill try i later. :)

Edited by -=anders=-

Share this post


Link to post
Share on other sites

Ok, now I tried both or your configs and its still complaining about the Some input after EndOfFile

Im about to explode!!!

Share this post


Link to post
Share on other sites

edit: ignore this post, that was just awkward indenting I spotted.

Share this post


Link to post
Share on other sites

Sorry... can't find any error....

ConfigCheck from Notepad++ Plugin can't find an error too...

Don't have more ideas.

Share this post


Link to post
Share on other sites

Ok, thx for trying...

So I lost my hope in editing the vopsound mod, so I went over to edit the acex_sm sounds instead...

And...................... Same damn crap happens!!!!!!!!! Is it totaly impossible to edit existing mods?????????

Heres how the acex_sm rifle config looks like with the error "Some input after end of file":

http://pastebin.com/29c8SS6D

---------- Post added at 10:32 PM ---------- Previous post was at 08:55 PM ----------

Okey, I tried binPBO personal edition now and packed the PBO.

Then I look in the log file it say this:

File c:\users\anders\desktop\acex_sounds\acex_sm_c_sound_wep_rifle\config.cpp, line 3: '/CfgPatches/acex_sm_c_sound_wep_rifle.units': Missing ';' prior '}'
File c:\users\anders\desktop\acex_sounds\acex_sm_c_sound_wep_rifle\config.cpp, line 4: '/CfgPatches.weapons': Missing ';' prior '}'
File c:\users\anders\desktop\acex_sounds\acex_sm_c_sound_wep_rifle\config.cpp, line 6: '.requiredAddons': Missing ';' prior '}'
Config : some input after EndOfFile.
Error 3 while parsing
Error in config c:\users\anders\desktop\acex_sounds\acex_sm_c_sound_wep_rifle\config.cpp
File c:\users\anders\desktop\acex_sounds\acex_sm_c_sound_wep_rifle\config.cpp, line 3: '/CfgPatches/acex_sm_c_sound_wep_rifle.units': Missing ';' prior '}'
File c:\users\anders\desktop\acex_sounds\acex_sm_c_sound_wep_rifle\config.cpp, line 4: '/CfgPatches.weapons': Missing ';' prior '}'
File c:\users\anders\desktop\acex_sounds\acex_sm_c_sound_wep_rifle\config.cpp, line 6: '.requiredAddons': Missing ';' prior '}'
Config : some input after EndOfFile.
Error 3 while parsing
Error in config c:\users\anders\desktop\acex_sounds\acex_sm_c_sound_wep_rifle\config.cpp
Cannot load font core\data\fonts\lucidaconsoleb8
Fonts file \core\data\fonts\lucidaConsoleB8 not found
Cannot load font core\data\fonts\lucidaconsoleb11
Fonts file \core\data\fonts\lucidaConsoleB11 not found

And im currently using this config now:

http://pastebin.com/8HJ3hv9F

Edited by -=anders=-

Share this post


Link to post
Share on other sites

Think you have a lot af errors....

Your config:

class CfgPatches {

   class acex_sm_c_sound_wep_rifle {
       units = {};
       weapons = {};
       requiredVersion = 1.010000;
       requiredAddons = {"acex_sm_main", "CAWeapons", "CAWeapons_AK", "CAWeapons_Colt1911", "CAWeapons2", "CAweapons_m107", "CAWeapons_DMR", "CAWeapons2_RPG18", "CAweapons_ksvk", "acex_sm_s_wep_rifle"};
       version = "1.5.0.50";
   };
};

But it should be:

class CfgPatches {

   class acex_sm_c_sound_wep_rifle {
       units[color=Red][][/color] = [color=SeaGreen]{}[/color];
       weapons[color=Red][][/color] = [color=SeaGreen]{}[/color];
       requiredVersion = 1.010000;
       requiredAddons[color=Red][][/color] = [color=SeaGreen]{[/color]"acex_sm_main", "CAWeapons", "CAWeapons_AK",  "CAWeapons_Colt1911", "CAWeapons2", "CAweapons_m107", "CAWeapons_DMR",  "CAWeapons2_RPG18", "CAweapons_ksvk", "acex_sm_s_wep_rifle"[color=SeaGreen]}[/color];
       version = "1.5.0.50";
   };
};

As far as I know, every line with an array Value ( the {} (marked green) after = ), the "VariableName" has to marked as Array with "[]" (marked red) at the end of the variableName.

And this matches to the error messages in the RPT file (shortend):

File  c:\users\anders\desktop\acex_sounds\acex_sm_c_sound_wep_rifle\config.cpp
 line 3: '/CfgPatches/acex_sm_c_sound_wep_rifle.[color=Red]units[/color]': Missing ';' prior '}'
 line 4: '/CfgPatches.[color=Red]weapons[/color]': Missing ';' prior '}'
 line 6: '.[color=Red]requiredAddons[/color]': Missing ';' prior '}'

And your config has tons of lines where the [] are missing.

Maybe you should change your "unbin"-Tool !?!?!?

Or didn't you unbin the file ?

Edited by HeliJunkie

Share this post


Link to post
Share on other sites
Think you have a lot af errors....

Your config:

class CfgPatches {

   class acex_sm_c_sound_wep_rifle {
       units = {};
       weapons = {};
       requiredVersion = 1.010000;
       requiredAddons = {"acex_sm_main", "CAWeapons", "CAWeapons_AK", "CAWeapons_Colt1911", "CAWeapons2", "CAweapons_m107", "CAWeapons_DMR", "CAWeapons2_RPG18", "CAweapons_ksvk", "acex_sm_s_wep_rifle"};
       version = "1.5.0.50";
   };
};

But it should be:

class CfgPatches {

   class acex_sm_c_sound_wep_rifle {
       units[color=Red][][/color] = [color=SeaGreen]{}[/color];
       weapons[color=Red][][/color] = [color=SeaGreen]{}[/color];
       requiredVersion = 1.010000;
       requiredAddons[color=Red][][/color] = [color=SeaGreen]{[/color]"acex_sm_main", "CAWeapons", "CAWeapons_AK",  "CAWeapons_Colt1911", "CAWeapons2", "CAweapons_m107", "CAWeapons_DMR",  "CAWeapons2_RPG18", "CAweapons_ksvk", "acex_sm_s_wep_rifle"[color=SeaGreen]}[/color];
       version = "1.5.0.50";
   };
};

As far as I know, every line with an array Value ( the {} (marked green) after = ), the "VariableName" has to marked as Array with "[]" (marked red) at the end of the variableName.

And this matches to the error messages in the RPT file (shortend):

File  c:\users\anders\desktop\acex_sounds\acex_sm_c_sound_wep_rifle\config.cpp
 line 3: '/CfgPatches/acex_sm_c_sound_wep_rifle.[color=Red]units[/color]': Missing ';' prior '}'
 line 4: '/CfgPatches.[color=Red]weapons[/color]': Missing ';' prior '}'
 line 6: '.[color=Red]requiredAddons[/color]': Missing ';' prior '}'

And your config has tons of lines where the [] are missing.

Maybe you should change your "unbin"-Tool !?!?!?

Or didn't you unbin the file ?

Ahhh, ok.... Well I used ArmAUnbin.exe... Maybe that's a shitty tool. What's the best out there to unbin?

---------- Post added at 08:00 AM ---------- Previous post was at 07:07 AM ----------

[EDIT]

Yes!!! Finally it worked!!!!! It was the damn Armaunbin.exe that fucked it up... I used kegetys Unrap now and tha made the config files end up correctly in the folder! Thank god for that!!! In 2 days I've been struggling with this and it just had to do with the damn tool for config.bin.

Share this post


Link to post
Share on other sites
Ahhh, ok.... Well I used ArmAUnbin.exe... Maybe that's a shitty tool. What's the best out there to unbin?

---------- Post added at 08:00 AM ---------- Previous post was at 07:07 AM ----------

[EDIT]

Yes!!! Finally it worked!!!!! It was the damn Armaunbin.exe that fucked it up... I used kegetys Unrap now and tha made the config files end up correctly in the folder! Thank god for that!!! In 2 days I've been struggling with this and it just had to do with the damn tool for config.bin.

Yes, I use kegetys unrap too and never had any problem.

Good to hear that it works now!:bounce3:

Share this post


Link to post
Share on other sites

I think it was just the classic case of extra control characters at the end of the original file created by ArmaUnbin.exe that gave you that Some input after EndOfFile error. If you switch on Show All Characters in Notepad++ my guess is there's a NUL character at the end of the non working file.

But whatever it's working now. Good for you. Good luck with your mod.

Share this post


Link to post
Share on other sites

Hey thx mate.. Yeah, noow, the real fun job begin... All condigs are set...

When you create your own soundmod, Can I just rename all folders in config, and the modname, and go from there???

How do I bisign all my PBO's afterwards?

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  

×