OFPEC Forum
Addons & Mods Depot => OFP - Addons & Mods General => Topic started by: Serial Killer on 02 Mar 2005, 15:18:00
-
I have a problems with a LARGE config file.. When I start the game, computer says something like Encountered instead of "=" but I don't remember correctly.. :'( If you know how to fix bugs like this and you need that config file, please contact me! If you don't need the config file, just say your answer by replying on this topic. Thanks!
-
you have a syntax error somewhere in your config: ofp expects a character that just isn't there ;)
fortunately ofp gives you a little hint in the errosr message. it normally reads something like error in ...\...\config.bin\class cfgvehicles. encountered 'xyz' instead of 'abc'.
restart ofp, read the error message and search that part of the config (in my example the cfgVehicles part). it's normally an error like a komma instead of a semicolon, etc. so check your config carefully. if the error message reads ... encounered 'c' instead of ';' you most certainly missed a semicolon, c might be every letter here.
edit: after reading your post a second time i would say you missed a '=' somewhere as it clearly reads in the error message. now read the part of the config where the error is supposed to be and check every line where the should be a '=' somewhere, namely all arrays like wound-definitions, hiddenselections, weapons/magazine definitions, etc.
-
Here's the error... vilasconfig\config.cpp/CfgVehicles/bundesoficerneu.': '{' encountered instead of '=' so, what I have to search from that config..? Oh, and what I have to fix from it? ;D
Edit: I found the error!
class bundesoficerneu:Officerw{
{
vehicleclass="Polska mod: Infantry";
displayName="Bundeswehra Komando HK36";
sensitivity=2;
accuracy=2;
model="\vmod\bundescom";
weapons[]={"Throw","Put","g36a","NVGoggles"};
The error starts after when I putted that vehicleclass on it.. What's wrong with that vehicleclass ???
-
two open brackets at the beginning of the class??
-
Uhm... What do you mean? Can you write the fixed version for me?
-
this is your problem
class bundesoficerneu:Officerw{ <---------
{
vehicleclass="Polska mod: Infantry";
displayName="Bundeswehra Komando HK36";
sensitivity=2;
accuracy=2;
model="\vmod\bundescom";
weapons[]={"Throw","Put","g36a","NVGoggles"};remove it so it looks like this
class bundesoficerneu:Officerw
{
vehicleclass="Polska mod: Infantry";
displayName="Bundeswehra Komando HK36";
sensitivity=2;
accuracy=2;
model="\vmod\bundescom";
weapons[]={"Throw","Put","g36a","NVGoggles"};
-
Oh man, I didn't saw it! :-[ Thanks a lot!