OFPEC Forum
Addons & Mods Depot => OFP - Addons & Mods General => Topic started by: Wolf 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.
-
well first off, theres a lot wrong with it, but paste your entire cfg vehicles and ill see if i can fix it
-
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.
-
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.
-
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
-
// 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.
-
Send me the .p3d and I can fix all the cpp mistakes for you.
-
The problem has finally been solved by another member of the team, NAA Marine had got it working.
-
OK, Cool