Home   Help Search Login Register  

Author Topic: Undefined Base Class 'BigShip' cpp thing  (Read 1695 times)

0 Members and 1 Guest are viewing this topic.

Wolf

  • Guest
Undefined Base Class 'BigShip' cpp thing
« on: 02 Oct 2002, 23:07:14 »
Alright, I made this Destroyer model, and I need to see it ingame to get the dimensions right.
This was just basic.
But when I start the game I get a
config bin cpp file, undefined base class 'BigShip' or 'ship'

class BigShip: Ship
class Ship: Iroquois
   {
      vehicleClass="Iroquois";
      scope=2;
      crew="SoldierWB";
      side=1;
      displayName="Iroquois";
      model="CAF_Iroquois.p3d";
      picture="im113";
      accuracy=0.500000;
      maxSpeed=50;
      transportSoldier=50;
      class TransportMagazines
      {
      };
      transportAmmo=10000000;
      transportVehiclesCount=15;
      cost=200000000;
      armor=10000;
      weapons[]={};
      magazines[]={};
   };

What's wrong here?
and how can I get it to work?
Thank you.

Eviscerator

  • Guest
Re:Undefined Base Class 'BigShip' cpp thing
« Reply #1 on: 03 Oct 2002, 00:04:13 »
well first off, theres a lot wrong with it, but paste your entire cfg vehicles and ill see if i can fix it

Wolf

  • Guest
Re:Undefined Base Class 'BigShip' cpp thing
« Reply #2 on: 03 Oct 2002, 00:38:41 »
ummm
Well, the above is all I was given to test the ship ingame.
There's nothing else.
I don't know anything about cpp files, this was given to me.
Do you know what I need to put in?
I don't need anything special for now, I just need to see it in the game.
« Last Edit: 03 Oct 2002, 00:39:37 by Wolf »

1B1KSniper

  • Guest
Re:Undefined Base Class 'BigShip' cpp thing
« Reply #3 on: 03 Oct 2002, 08:15:51 »
I corrected all the mistakes I saw.
class CfgVehicles
{
   class AllVehicles : All {};
   class ship : AllVehicles {};
   class BigShip : ship {};
   class Iriquois : BigShip
    {
        vehicleClass="Iroquois";
        scope=2;
        crew="SoldierWB";
        side=1;
        displayName="Iroquois";
        model="CAF_Iroquois.p3d";
        picture="im113";
        accuracy=0.500000;
        maxSpeed=50;
        transportSoldier=50;
        class TransportMagazines
        {
        };
          transportAmmo=10000000;
        transportVehiclesCount=15;
        cost=200000000;
        armor=10000;
        weapons[]={};
        magazines[]={};
  };  
};
See if it works.
« Last Edit: 03 Oct 2002, 08:18:50 by 1B1KSniper »

Eviscerator

  • Guest
Re:Undefined Base Class 'BigShip' cpp thing
« Reply #4 on: 03 Oct 2002, 08:37:53 »
er your going to need more than that in a cpp to make it work, open an addon with pbotool and have a look at its config

1B1KSniper

  • Guest
Re:Undefined Base Class 'BigShip' cpp thing
« Reply #5 on: 04 Oct 2002, 20:34:45 »
// some basic defines
#define TEast 0
#define TWest 1
#define TGuerrila 2
#define TCivilian 3
#define TSideUnknown 4
#define TEnemy 5
#define TFriendly 6
#define TLogic 7
 
#define true 1
#define false 0
 
// type scope
#define private 0
#define protected 1
#define public 2
 
class CfgPatches
{
 class Iroquois;
 {
  units[]={Iroquois};
  weapons[]={};
  requiredVersion = 1.46;
 };
};
class CfgVehicles
{
class AllVehicles : All {};
class ship : AllVehicles {};
class BigShip : ship {};
class Iriquois : BigShip
{
   vehicleClass="armored";
   scope=2;
   crew="SoldierWB";
   side=1;
   displayName="Iroquois";
   model="CAF_Iroquois.p3d";
   picture="im113";
   accuracy=0.500000;
   maxSpeed=50;
   transportSoldier=50;
   class TransportMagazines
   {
   };
   transportAmmo=10000000;
   transportVehiclesCount=15;
   cost=200000000;
   armor=10000;
   weapons[]={};
   magazines[]={};
   };
};
There's a complete one for you.
« Last Edit: 04 Oct 2002, 20:40:19 by 1B1KSniper »

1B1KSniper

  • Guest
Re:Undefined Base Class 'BigShip' cpp thing
« Reply #6 on: 04 Oct 2002, 20:42:11 »
Send me the .p3d and I can fix all the cpp mistakes for you.

Wolf

  • Guest
Re:Undefined Base Class 'BigShip' cpp thing
« Reply #7 on: 04 Oct 2002, 22:25:55 »
The problem has finally been solved by another member of the team, NAA Marine had got it working.

1B1KSniper

  • Guest
Re:Undefined Base Class 'BigShip' cpp thing
« Reply #8 on: 05 Oct 2002, 19:53:54 »
OK, Cool