Home   Help Search Login Register  

Author Topic: config help  (Read 1373 times)

0 Members and 1 Guest are viewing this topic.

repta

  • Guest
config help
« on: 27 Jul 2005, 03:22:35 »
i keep having the error message "/config.cpp/CfgVehicles.OfficerE: undefined base class 'SoldierEB'" i dont know what im doing wrong. this is what i have for my Cfg Vehicles

class CfgVehicles
{
   class All{};
   class AllVehicles: All{};
   class Land: AllVehicles{};
   class Man: Land{};
   class Soldier: Man{};
   class SoldierWB: Soldier{};
   class SoldierWG: SoldierWB{};
   class SoldierWMG: SoldierWB{};
   class SoldierWLAW: SoldierWB{};
   class SoldierWAT: SoldierWLAW{};
   class SoldierWAA: SoldierWLAW{};
   class SoldierWMortar: SoldierWG{};
   class OfficerWNight: SoldierWB{};
   class SoldierWSniper: SoldierWB{};
   class OfficerE: SoldierEB{};
   class SoldierEMedic: SoldierEB{};
   class SoldierEB: SoldierEB{};
   class SoldierEG: SoldierEB{};
   class SoldierEMG: SoldierEB{};
   class SoldierELAW: SoldierEB{};
   class SoldierEAT: SoldierELAW{};
   class SoldierEAA: SoldierELAW{};
   class SoldierEMortar: SoldierEG{};
   class OfficerENight: SoldierEB{};
   class SoldierESniper: SoldierEB{};

Offline oyman

  • Members
  • *
  • king of pings
Re:config help
« Reply #1 on: 27 Jul 2005, 05:09:41 »
it would maybe be good to post the whole config so we know if you are trying to make a US or RUS soldier ;)


hmm, got nothing better to do so i sorted out the stuff, no garuntees that it will work since there are so many classes :-\

Code: [Select]
class CfgVehicles
{
   class All{};
   class AllVehicles: All{};
   class Land: AllVehicles{};
   class Man: Land{};
   class Soldier: Man{};
   class SoldierWB: Soldier{};
   class SoldierWG: SoldierWB{};
   class SoldierWMG: SoldierWG{};
   class SoldierWLAW: SoldierWMG{};
   class SoldierWAT: SoldierWLAW{};
   class SoldierWAA: SoldierWAT{};
   class SoldierWMortar: SoldierWAA{};
   class OfficerWNight: SoldierWMortar{};
   class SoldierWSniper: OfficerWNight{};
   class OfficerE: SoldierWSniper{};
   class SoldierEMedic: OfficerE{};
   class SoldierEB: SoldierEMedic{};
   class SoldierEG: SoldierEB{};
   class SoldierEMG: SoldierEG{};
   class SoldierELAW: SoldierEMG{};
   class SoldierEAT: SoldierELAW{};
   class SoldierEAA: SoldierEAT{};
   class SoldierEMortar: SoldierEAA{};
   class OfficerENight: SoldierEMortar{};
   class SoldierESniper: OfficerENight{};
« Last Edit: 27 Jul 2005, 05:22:36 by oyman »

Offline Triggerhappy

  • Contributing Member
  • **
  • Llama, it's what's for dinner.
Re:config help
« Reply #2 on: 27 Jul 2005, 05:17:29 »
i think the problem is earlier on... that you aren't defining soldierEB. thus the error

Offline Chris Death

  • Former Staff
  • ****
  • Finally Death's gonna get ya
    • OFPEC
Re:config help
« Reply #3 on: 27 Jul 2005, 14:00:38 »
Yep - Triggerhappy is right,

you didn't define SoldierEB before you defined OfficerE and
furthermore; you define SoldierEB later but wrong:

Quote
class SoldierEB: SoldierEB{};

This line doesn't make sense  ;)

You need to define SoldierEB earlier and correct and that's it.

~S~ CD
Dont argue with idiots....they will bring you down to their level and beat you there with experience.

How to use Waypoint type Scripted

Lean Bear

  • Guest
Re:config help
« Reply #4 on: 28 Jul 2005, 13:49:50 »
I believe soldierEB inherits from the same class as soldierWB.

That would make it be defined as:

SoldierEB: Soldier {};