Home   Help Search Login Register  

Author Topic: Problems with config...  (Read 1585 times)

0 Members and 1 Guest are viewing this topic.

Serial Killer

  • Guest
Problems with config...
« 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!

Offline remcen

  • Contributing Member
  • **
  • a.k.a. hottentotten_mike
    • IM:UC
Re:Problems with config...
« Reply #1 on: 02 Mar 2005, 16:02:38 »
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.
« Last Edit: 02 Mar 2005, 16:07:06 by remcen »
we're looking for members: IM:UC MOD

Serial Killer

  • Guest
Re:Problems with config...
« Reply #2 on: 02 Mar 2005, 17:05:06 »
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!    

Code: [Select]
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 ???
« Last Edit: 02 Mar 2005, 17:16:13 by Serial Killer »

Offline remcen

  • Contributing Member
  • **
  • a.k.a. hottentotten_mike
    • IM:UC
Re:Problems with config...
« Reply #3 on: 02 Mar 2005, 17:36:16 »
two open brackets at the beginning of the class??
we're looking for members: IM:UC MOD

Serial Killer

  • Guest
Re:Problems with config...
« Reply #4 on: 02 Mar 2005, 18:54:29 »
Uhm... What do you mean? Can you write the fixed version for me?

Offline oyman

  • Members
  • *
  • king of pings
Re:Problems with config...
« Reply #5 on: 02 Mar 2005, 18:54:47 »
this is your problem
Code: [Select]
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
Code: [Select]
class bundesoficerneu:Officerw
   {
      vehicleclass="Polska mod: Infantry";
      displayName="Bundeswehra Komando HK36";
      sensitivity=2;
      accuracy=2;
      model="\vmod\bundescom";
      weapons[]={"Throw","Put","g36a","NVGoggles"};
« Last Edit: 02 Mar 2005, 18:56:59 by oyman »

Serial Killer

  • Guest
Re:Problems with config...
« Reply #6 on: 02 Mar 2005, 18:56:09 »
Oh man, I didn't saw it! :-[ Thanks a lot!