Home   Help Search Login Register  

Author Topic: Config for MG jeep  (Read 1914 times)

0 Members and 1 Guest are viewing this topic.

Serial Killer

  • Guest
Config for MG jeep
« on: 03 Oct 2005, 22:26:47 »
I made a jeep with MG and I want to test it in game, but I have no idea how to do a config for MG jeep. :o So, can anyone make me a config for it? :'(

Serial Killer

  • Guest
Re:Config for MG jeep
« Reply #1 on: 04 Oct 2005, 19:50:53 »
Ok, someone helped me in flashpoint1985 forums to make a config, but I keep getting an error: "Config srk_vehl\config.cpp: some input after EndOfFile."
Here's the whole config:

Quote
#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

#define private 0
#define protected 1
#define public 2

#define WeaponNoSlot 0
#define WeaponSlotPrimary 1
#define WeaponSlotSecondary 16
#define WeaponSlotItem 256
#define WeaponSlotBinocular 4096
#define WeaponHardMounted 65536

class CfgCloudlets
{
access=ReadAndCreate;
class Explosion
{
access = ReadOnlyVerified;
// single cloudlet parameters
cloudletDuration = 0.2; // time to live (not including fades)
cloudletAnimPeriod = 0.5; // animation speed
cloudletSize = 1.0;
cloudletAlpha = 1.0;
cloudletGrowUp = 0.05; // grow-up time
cloudletFadeIn = 0.01; // fade-in time
cloudletFadeOut = 0.2; // fade-out time
cloudletAccY = -0.2; // vertical acceleration
cloudletMinYSpeed = 0; // vertical speed range
cloudletMaxYSpeed = 6;
cloudletShape = "cl_fired";
cloudletColor[] = {1, 1, 1, 0};
// source parameters
interval = 0.001;
size = 4.0;
sourceSize = 3.0;
timeToLive = 0;

initT = 2500;
deltaT = -4000;
class Table
{
class T14 {maxT = 1400; color[] = {0.91, 0.5, 0.17, 0};}
class T15 {maxT = 1500; color[] = {1, 0.6, 0.2, 0};}
class T16 {maxT = 1600; color[] = {1, 0.71, 0.3, 0};}
class T17 {maxT = 1700; color[] = {0.98, 0.83, 0.41, 0};}
class T18 {maxT = 1800; color[] = {0.98, 0.91, 0.54, 0};}
class T19 {maxT = 1900; color[] = {0.98, 0.99, 0.6, 0};}
class T20 {maxT = 2000; color[] = {0.96, 0.99, 0.72, 0};}
class T21 {maxT = 2100; color[] = {1, 0.98, 0.91, 0};}
class T22 {maxT = 2200; color[] = {1, 1, 1, 0};}
}
};
};
#define CS_SPEED 0.8
class CraterSmoke1
{
access = ReadOnlyVerified;
interval = 0.05 / CS_SPEED;
cloudletAnimPeriod = 1 * CS_SPEED;
cloudletSize = 2.0;
cloudletAlpha = 1.0; // not used
cloudletGrowUp = 1.0 * CS_SPEED;
cloudletFadeIn = 0.1 * CS_SPEED;
cloudletDuration = 3.0 * CS_SPEED;
cloudletFadeOut = 1.5 * CS_SPEED;
cloudletAccY = -0.1;
cloudletMinYSpeed = 0.0 / CS_SPEED;
cloudletMaxYSpeed = 5.0 / CS_SPEED;
cloudletColor[] = {1, 1, 1, 0};
initT = 500;
deltaT = -50 * CS_SPEED;
class Table
{
class T0 {maxT = 0; color[] = {1, 1, 1, 0};}
class T1 {maxT = 500; color[] = {0.5, 0.5, 0.5, 0};}
}
cloudletShape = "cl_basic";
density = 1.0 / 0.7; // used for alpha
size = 1.0; // source size
timeToLive = 0.4 * CS_SPEED;
in = 0.0 * CS_SPEED;
out = 0.0 * CS_SPEED;
initYSpeed = 5.0 / CS_SPEED;
};
};
class CraterSmoke2
{
access = ReadOnlyVerified;
interval = 0.1 / CS_SPEED;
cloudletAnimPeriod = 1 * CS_SPEED;
cloudletSize = 2.0;
cloudletAlpha = 1.0; // not used
cloudletGrowUp = 1.0 * CS_SPEED;
cloudletFadeIn = 0.1 * CS_SPEED;
cloudletDuration = 2.5 * CS_SPEED;
cloudletFadeOut = 1.5 * CS_SPEED;
cloudletAccY = -0.1;
cloudletMinYSpeed = 0.0 / CS_SPEED;
cloudletMaxYSpeed = 2.0 / CS_SPEED;
cloudletColor[] = {1, 1, 1, 0};
initT = 0;
deltaT = 0 * CS_SPEED;
class Table
{
class T0 {maxT = 0; color[] = {1, 1, 1, 0};}
}
cloudletShape = "cl_basic";
density = 1.0 / 0.7; // used for alpha
size = 1.0; // source size
timeToLive = 1.0 * CS_SPEED;
in = 0.0 * CS_SPEED;
out = 2.0 * CS_SPEED;
initYSpeed = 0 / CS_SPEED;
};
};
class CraterSmoke3
{
access = ReadOnlyVerified;
interval = 0.1 / CS_SPEED;
cloudletAnimPeriod = 1 * CS_SPEED;
cloudletSize = 1.0;
cloudletAlpha = 0.3; // not used
cloudletGrowUp = 1.0 * CS_SPEED;
cloudletFadeIn = 0.5 * CS_SPEED;
cloudletDuration = 3 * CS_SPEED;
cloudletFadeOut = 1 * CS_SPEED;
cloudletAccY = -0.1 * CS_SPEED;
cloudletMinYSpeed = 0.0 / CS_SPEED;
cloudletMaxYSpeed = 5.0 / CS_SPEED;
cloudletColor[] = {1, 1, 1, 0};
initT = 500;
deltaT = -80 * CS_SPEED;
class Table
{
class T0 {maxT = 0; color[] = {1, 1, 1, 0};}
}
cloudletShape = "cl_basic";
density = 0.5 / 0.7; // used for alpha
size = 1.0; // source size
timeToLive = 2.0 * CS_SPEED;
in = 0.2 * CS_SPEED;
out = 0.0 * CS_SPEED;
initYSpeed = 5.0 / CS_SPEED;
};
};
class CraterDustSmall
{
access = ReadOnlyVerified;
interval = 0.01;
cloudletSize = 1; // not used
cloudletAlpha = 0.6;
cloudletDuration = 0.2;
cloudletAnimPeriod = 1;
cloudletGrowUp = 0.6;
cloudletFadeIn = 0;
cloudletFadeOut = 0.6;
cloudletAccY = -3.5;
cloudletMinYSpeed = -20;
cloudletMaxYSpeed = 10;
cloudletColor[] = {0.25, 0.23, 0.16, 0};
initT = 0;
deltaT = 0;
class Table
{
class T0 {maxT = 0; color[] = {1, 1, 1, 0};}
}
cloudletShape = "cl_basic";
size = 0.2;
sourceSize = 0.02;
};
};
class CraterBlood : CraterDustSmall
{
access = ReadOnlyVerified;
interval = 0.005;
cloudletAlpha = 0.5;
cloudletDuration = 0.1;
cloudletAnimPeriod = 1;
cloudletGrowUp = 0.3;
cloudletFadeIn = 0;
cloudletFadeOut = 0.3;
cloudletAccY = -1;
cloudletMinYSpeed = -10;
cloudletMaxYSpeed = 10;

cloudletShape = "cl_water";
cloudletColor[] = {0.35, 0.00, 0.05, 0};

size = 0.15;
sourceSize = 0.05;
};
};
class CraterDustBig : CraterDustSmall
{
access = ReadOnlyVerified;
cloudletDuration = 2;
cloudletGrowUp = 0.2;
cloudletFadeIn = 0.2;
cloudletFadeOut = 1.5;
cloudletAccY = -8;
cloudletMinYSpeed = -20;
cloudletMaxYSpeed = 10;
};
};
class CloudletsMissile
{
access = ReadOnlyVerified;
interval = 0.005;
cloudletSize = 3;
cloudletAlpha = 0.5;
cloudletDuration = 0.45;
cloudletAnimPeriod = 1;
cloudletGrowUp = 0.05;
cloudletFadeIn = 0.0;
cloudletFadeOut = 0.5;
cloudletAccY = 0;
cloudletMinYSpeed = -10;
cloudletMaxYSpeed = 10;
cloudletColor[] = {1, 1, 1, 0};
initT = 0;
deltaT = 0;
class Table
{
class T0 {maxT = 0; color[] = {1, 1, 1, 0};}
}
cloudletShape = "missileSmoke";
};
};
class CloudletsMissileManual: CloudletsMissile
{
cloudletSize = 0.5;
cloudletAlpha = 0.4;
};
};
class CloudletsScud: CloudletsMissile
{
cloudletSize = 8;
cloudletAlpha = 0.5;
cloudletColor[] = {1, 1, 1, 0};

cloudletFadeIn = 0;
cloudletDuration = 1.5;
cloudletFadeOut = 0.5;

cloudletGrowUp = 1;

cloudletAccY = 0;
cloudletMinYSpeed = -1000;
cloudletMaxYSpeed = 1000;

interval = 0.02;
size = 8.0;
sourceSize = 1.0;
};
};

class WeaponFireGun
{
access = ReadOnlyVerified;
// single cloudlet parameters
cloudletDuration = 0.2; // time to live (not including fades)
cloudletAnimPeriod = 1.0; // animation speed
cloudletSize = 1.0;
cloudletAlpha = 1.0;
cloudletGrowUp = 0.2; // grow-up time
cloudletFadeIn = 0.01; // fade-in time
cloudletFadeOut = 0.5; // fade-out time
cloudletAccY = 0; // vertical acceleration
cloudletMinYSpeed = -100; // vertical speed range
cloudletMaxYSpeed = 100;
cloudletShape = "cl_fired";
cloudletColor[] = {1, 1, 1, 0};
// source parameters
interval = 0.01;
size = 3;
sourceSize = 0.5;
timeToLive = 0;

initT = 4500;
deltaT = -3000;
class Table
{
class T0 {maxT = 0; color[] = {0.82, 0.95, 0.93, 0};}
class T1 {maxT = 200; color[] = {0.75, 0.77, 0.9, 0};}
class T2 {maxT = 400; color[] = {0.56, 0.62, 0.67, 0};}
class T3 {maxT = 600; color[] = {0.39, 0.46, 0.47, 0};}
class T4 {maxT = 800; color[] = {0.24, 0.31, 0.31, 0};}
class T5 {maxT = 1000; color[] = {0.23, 0.31, 0.29, 0};}
class T6 {maxT = 1500; color[] = {0.21, 0.29, 0.27, 0};}
class T7 {maxT = 2000; color[] = {0.19, 0.23, 0.21, 0};}
class T8 {maxT = 2300; color[] = {0.22, 0.19, 0.1, 0};}
class T9 {maxT = 2500; color[] = {0.35, 0.2, 0.02, 0};}
class T10 {maxT = 2600; color[] = {0.62, 0.29, 0.03, 0};}
class T11 {maxT = 2650; color[] = {0.59, 0.35, 0.05, 0};}
class T12 {maxT = 2700; color[] = {0.75, 0.37, 0.03, 0};}
class T13 {maxT = 2750; color[] = {0.88, 0.34, 0.03, 0};}
class T14 {maxT = 2800; color[] = {0.91, 0.5, 0.17, 0};}
class T15 {maxT = 2850; color[] = {1, 0.6, 0.2, 0};}
class T16 {maxT = 2900; color[] = {1, 0.71, 0.3, 0};}
class T17 {maxT = 2950; color[] = {0.98, 0.83, 0.41, 0};}
class T18 {maxT = 3000; color[] = {0.98, 0.91, 0.54, 0};}
class T19 {maxT = 3100; color[] = {0.98, 0.99, 0.6, 0};}
class T20 {maxT = 3300; color[] = {0.96, 0.99, 0.72, 0};}
class T21 {maxT = 3600; color[] = {1, 0.98, 0.91, 0};}
class T22 {maxT = 4200; color[] = {1, 1, 1, 0};}
}
};
};

class WeaponFireMGun : WeaponFireGun
{
cloudletDuration = 0; // time to live (not including fades)
cloudletGrowUp = 0.06; // grow-up time
cloudletFadeIn = 0; // fade-in time
cloudletFadeOut = 0.12; // fade-out time

interval = 0.005;
size = 0.12;
sourceSize = 0.01;

initT = 3200;
deltaT = -4000;
};
};

class WeaponCloudsGun
{
access = ReadOnlyVerified;
// single cloudlet parameters
cloudletDuration = 0.3; // time to live (not including fades)
cloudletAnimPeriod = 1.0; // animation speed
cloudletSize = 1.0;
cloudletAlpha = 1.0;
cloudletGrowUp = 1; // grow-up time
cloudletFadeIn = 0.01; // fade-in time
cloudletFadeOut = 1; // fade-out time
cloudletAccY = 0.4; // vertical acceleration
cloudletMinYSpeed = 0.2; // vertical speed range
cloudletMaxYSpeed = 0.8;
cloudletShape = "cl_basic";
cloudletColor[] = {1, 1, 1, 0};
// source parameters
interval = 0.05;
size = 3;
sourceSize = 0.5;
timeToLive = 0;

initT = 0;
deltaT = 0;
class Table
{
class T0 {maxT = 0; color[] = {1, 1, 1, 0};}
}
};
};

class WeaponCloudsMGun : WeaponCloudsGun
{
access = ReadOnlyVerified;

cloudletGrowUp = 0.05; // grow-up time
cloudletFadeIn = 0; // fade-in time
cloudletFadeOut = 0.1; // fade-out time
cloudletDuration = 0.05; // time to live (not including fades)

cloudletAlpha = 0.3;

cloudletAccY = 0; // vertical acceleration
cloudletMinYSpeed = -100; // vertical speed range
cloudletMaxYSpeed = 100;

interval = 0.02;
size = 0.3;
sourceSize = 0.02;
};
};


class CfgPatches
{
class srk_vehl
{
units[] = {srk_gjeep};
weapons[] = {};
requiredVersion = 1.91;
        requiredaddons[] = {"BIS_Resistance"};
};
};


class CfgVehicles
{
class All {};
class AllVehicles: All {};
class Land: AllVehicles {};
class LandVehicle: Land {};
class Car: LandVehicle {};
class Jeep : Car {};
class srk_gjeep: Jeep
{
displayName="FIA jeep";
model="\srk_vehl\srk_gjeep";
gunnerAction="ManActJeepGunner";
hasGunner=1;
castGunnerShadow=1;
ejectDeadGunner=1;
castDriverShadow=1;
driverIsCommander=1;
scope=2;
weapons[]={"Browning"};
magazines[]={"Browning"};
gunnerOpticsModel="optika_empty";
unitInfoType=unitinfosoldier;
transportSoldier=1;
};

class Turret
{
gunAxis="OsaHlavne";
turretAxis="OsaVeze";
soundServo[]={};
gunBeg="usti hlavne";
gunEnd="konec hlavne";
minElev=-5;
maxElev=40;
minTurn=-360;
maxTurn=360;
body="OtocVez";
gun="OtocHlaven";
};

class ViewGunner
{
initAngleX=5;
minAngleX=-30;
maxAngleX=30;
initAngleY=0;
minAngleY=0;
maxAngleY=0;
initFov=0.7;
minFov=0.42;
maxFov=0.85;
};
};
};

Help?
« Last Edit: 05 Oct 2005, 14:27:08 by Serial Killer »

Offline h-

  • OFPEC Site
  • Administrator
  • *****
  • Formerly HateR_Kint
    • OFPEC
Re:Config for MG jeep
« Reply #2 on: 05 Oct 2005, 19:09:31 »
In cases of 'input after EOF' check if there's a misconsistency with the opening and closing brackets...
{ = opening bracket
}; = closing bracket

Every opening bracket should have only one closing bracket, like:
Code: [Select]
class Jeep
{
stuff=blahblah;
};


The problem in this case might be this:
Code: [Select]
class srk_gjeep: Jeep
{
displayName="FIA jeep";
model="\srk_vehl\srk_gjeep";
gunnerAction="ManActJeepGunner";
hasGunner=1;
castGunnerShadow=1;
ejectDeadGunner=1;
castDriverShadow=1;
driverIsCommander=1;
scope=2;
weapons[]={"Browning"};
magazines[]={"Browning"};
gunnerOpticsModel="optika_empty";
unitInfoType=unitinfosoldier;
transportSoldier=1;
};
class Turret
{
gunAxis="OsaHlavne";
turretAxis="OsaVeze";
soundServo[]={};
gunBeg="usti hlavne";
gunEnd="konec hlavne";
minElev=-5;
maxElev=40;
minTurn=-360;
maxTurn=360;
body="OtocVez";
gun="OtocHlaven";
};

class ViewGunner
{
initAngleX=5;
minAngleX=-30;
maxAngleX=30;
initAngleY=0;
minAngleY=0;
maxAngleY=0;
initFov=0.7;
minFov=0.42;
maxFov=0.85;
};
};
};
The srk_gjeep class is closed by a closing bracket and still there's the Turret and viewgunner defined which should be in the the srk_gjeep class...

That's just something that I noticed right off, there might be more..
Project MCAR   ---   Northern Fronts   ---   Emitter 3Ditor
INFORMATIVE THREAD TITLES PLEASE. "PLEASE HELP" IS NOT ONE..
Chuck Norris can divide by zero.

Serial Killer

  • Guest
Re:Config for MG jeep
« Reply #3 on: 06 Oct 2005, 14:04:10 »
I got it working by deleting a big part of the config. Here's my current config for the jeep:

Quote
#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

#define private 0
#define protected 1
#define public 2

#define WeaponNoSlot 0
#define WeaponSlotPrimary 1
#define WeaponSlotSecondary 16
#define WeaponSlotItem 256
#define WeaponSlotBinocular 4096
#define WeaponHardMounted 65536


class CfgPatches
{
class srk_vehl
{
units[] = {srk_gjeep};
weapons[] = {};
requiredVersion = 1.91;
       requiredaddons[] = {"BIS_Resistance"};
};
};


class CfgVehicles
{
class All {};
class AllVehicles: All {};
class Land: AllVehicles {};
class LandVehicle: Land {};
class Car: LandVehicle {};
class Jeep : Car {};
class srk_gjeep: Jeep
{
displayName="FIA jeep";
model="\srk_vehl\srk_gjeep";
gunnerAction="ManActJeepGunner";
hasGunner=1;
castGunnerShadow=1;
ejectDeadGunner=1;
castDriverShadow=1;
driverIsCommander=1;
scope=2;
weapons[]={"Browning"};
magazines[]={"Browning"};
gunnerOpticsModel="optika_empty";
unitInfoType=unitinfosoldier;
transportSoldier=1;
};

class Turret
{
gunAxis="OsaHlavne";
turretAxis="OsaVeze";
soundServo[]={};
gunBeg="usti hlavne";
gunEnd="konec hlavne";
minElev=-5;
maxElev=40;
minTurn=-360;
maxTurn=360;
body="OtocVez";
gun="OtocHlaven";
};

class ViewGunner
{
initAngleX=5;
minAngleX=-30;
maxAngleX=30;
initAngleY=0;
minAngleY=0;
maxAngleY=0;
initFov=0.7;
minFov=0.42;
maxFov=0.85;
};
};
};

But I saw very, very much things to fix on the model. If you could help me with these, I would be very thankful. :)

- I can't turn around and shoot with the MG.
- I can't see the shadow of the jeep.
- I can't kill the gunner.
- Jeep's lights are always on, even when it's day.
- I get an error: No entry 'config.bin/CfgVehicles/Turret.scope', but the jeep is still working.

Offline h-

  • OFPEC Site
  • Administrator
  • *****
  • Formerly HateR_Kint
    • OFPEC
Re:Config for MG jeep
« Reply #4 on: 06 Oct 2005, 16:36:38 »
Quote
- I get an error: No entry 'config.bin/CfgVehicles/Turret.scope', but the jeep is still working
So you completely ignored what I posted... ::)
Re-read and you will se why that happens..

Removing the cloudlets part obviously suggests that it had faults if it 'fixed' things..

Quote
- Jeep's lights are always on, even when it's day.
You need to have class CfgModels in your config...
Do a search for more details if you want..
Code: [Select]
class CfgModels
{
   class Default {};
   class Vehicle: Default {};
   class Car: Vehicle {};
     class yourvehiclesp3dname: Car {};
};


As for the rest, read tutorials, like the ones here
« Last Edit: 06 Oct 2005, 16:44:46 by HateR_Kint »
Project MCAR   ---   Northern Fronts   ---   Emitter 3Ditor
INFORMATIVE THREAD TITLES PLEASE. "PLEASE HELP" IS NOT ONE..
Chuck Norris can divide by zero.

Serial Killer

  • Guest
Re:Config for MG jeep
« Reply #5 on: 09 Oct 2005, 01:35:25 »
Hey thanks. :D I'll ask more questions about this if I get more.