Jump to content
Sign in to follow this  
wolfbite

Model special error

Recommended Posts

Sorry i put all this in but im stumped

Im getting a model special error... im just trying to try out putting on custom weapons... and using the bomb camera script any help would be greatly appreciated.

Quote[/b] ]class CfgPatches

{

class Wolfbite_mod

{

units[] = {WLFB_Ka50};

requiredVersion = 1.90;

};

};

class CfgSounds{};

class CfgRadio{};

class CfgModels

{

class Default{};

class Weapon: Default{};

class Vehicle: Default{};

class WLFB_Ka50: Vehicle

{

sectionsInherit="Vehicle";

sections[]=

{

"sklo predni p",

"sklo predni l",

"velka vrtule staticka",

"velka vrtule blur",

"mala vrtule staticka",

"mala vrtule blur"

};

};

};

class CfgAmmo {

class Default{};

class AT3:Default{};

class CarlGustav: AT3 {};

class kh25mp : CarlGustav

{

minRange=100;minRangeProbab=0.8;

midRange=600;midRangeProbab=1.0;

maxRange=2200;maxRangeProbab=1.0;

airLock=0;

irLock=1;

initTime=0.5;

ThrustTime=100:

maxspeed=900;

hit=200;indirectHit=90;indirectHitRange=4;

model="\WLFB-Ka-50\kh25mp.p3d";

proxyShape="\WLFB-Ka-50\kh25mp.p3d";

manualControl=0

maxControlRange=2000;

maneuvrability=80;

};

};

class CfgWeapons {

class Default{};

class LAWlauncher: Default{};

class CarlGustavLauncher : LAWLauncher{};

class AT3Launcher: CarlGustavLauncher{};

class HellfireLauncher: AT3Launcher{};

class MaverickLauncher:HellfireLauncher{};

class Kh25_launcher: MaverickLauncher

{

ammo=kh25mp;

displayName="KH-25 TV";

displayNameMagazine="KH-25 TV";

shortNameMagazine="Kh25";

magazine="kh25";

count=2;

model="\WLFB-Ka-50\kh25mp.p3d";

proxyShape="\WLFB-Ka-50\kh25mp.p3d";

canLock=2;

sound[]={Weapons\Missile,db+18,1};

aiRateOfFire=8;

aiRateOfFireDistance=3500;

};

};

class CfgVehicles

{

class All {};

class AllVehicles: All {};

class Air: AllVehicles {};

class Helicopter: Air {};

class WLFB_Ka50 : Helicopter

{

vehicleClass = "WolfBite Air";

displayName="KA-50 BLACK SHARK";

model=\WLFB-Ka-50\WLFB_Ka_50.p3d;

// General

side = 0; // East

nightVision=10;

accuracy=200;

cost=300000;

scope = 2;

extCameraPosition[]={0,3,-20};

icon="helicopter";

picture = "\Ka-52\icon";

// Weapon & Ammo

weapons[]={Kh25_launcher};

magazines[]={kh25mp};

// Hidden Selections

hiddenselections[]={};

// RADAR and AI detection

irTarget=1;

irScanRange=10000;

irScanGround=10000;

laserScanner=10000;

// Crew Setup

driveriscommander=1;

hasgunner=0;

driverAction = "ManActAH1Pilot";

driverOpticsModel = "optika_heli_gunner";

class ViewOpticsBase {};

class ViewOptics: ViewOpticsBase

{

initAngleX=0;

minAngleX=-15;

maxAngleX=0;

initAngleY=0;

minAngleY=-45;

maxAngleY=10;

initFov=0.50;

minFov=0.01;

maxFov=0.50;

};

// Turret setup

class TurretBase {};

class Turret: TurretBase

{

gunAxis="osahlavne";

turretAxis="osaveze";

gunBeg="usti hlavne";

gunEnd="konec hlavne";

soundServo[]={};

minElev=-45;

maxElev=2;

minTurn=-15;

maxTurn=0;

initTurn=0;

body="otocvez";

gun="otochlaven";

};

// Performance and Handling

maxSpeed = 350;

mainRotorSpeed = 5;

backRotorSpeed = 5;

steerAheadSimul = 2;

steerAheadPlan = 2;

minMainRotorDive = -5;

maxMainRotorDive = +5;

neutralMainRotorDive = 0;

minBackRotorDive = -5;

maxBackRotorDive = +5;

neutralBackRotorDive = 0;

// Sounds

hitSound1[]={"hitSound1",db+1,1};

hitSounds[]={"hitSound1",1};

soundEngine[]={"\Ka-52\sound\e_nrm_ot.ogg",db+2,1};

ejectSpeed[]={0,80,0};

gearRetracting =true;

type=VAir;

threat[]={0.2, 0.2, 0.2};

// Armour Setup - Damage Textures

armor=500;

armorAvionics=0.7;

armorVRotor=1.0;

armorHRotor=1.0;

armorMissiles=0.6;

armorGlass=0.5;

dammageHalf[]={};

dammageFull[]={};

// Controls and Displays dials

class IndicatorWatch

{

hour = "hour";

minute = "minute";

axis = "osa_time";

reversed = true;

};

class IndicatorAltBaro

{

selection = "alt";

axis = "osa_alt";

angle = -360;

min = 0;

max = 200;

};

class IndicatorAltRadar

{

selection = "nm_alt";

axis = "osa_nm_alt";

angle = -360;

min = 0;

max = 200;

};

class IndicatorSpeed

{

selection = "mph";

axis = "osa_mph";

angle = 360;

min = 0;

max = 180;

};

class IndicatorVertSpeed

{

selection = "vs";

axis = "osa_vs";

angle = -360;

min = 9;

max = -9;

};

class IndicatorCompass

{

selection = "kompas";

axis = "osa_kompas";

angle = 360;

min=-3.141593;

max=3.141593;

};

class IndicatorCompass2

{

selection="kompas2";

axis="osa_kompas2";

angle=360;

min=-3.141593;

max=3.141593;

};

class indicatorHorizont2

{

selection="horizont2";

axis="osa_horizont2";

angle=-360;

min=-3.141593;

max=3.141593;

};

animated =1;

class Animations {};

class UserActions {

class RKTCameraOn

{

displayName ="Bomb Camera On";

position = "doors";

radius =15;

condition = "player in this and !RKTWeaponCam";

statement = "RKTWeaponCam = true";

};

class RKTCameraOff

{

displayName ="Bomb Camera Off";

position = "doors";

radius =15;

condition = "player in this and RKTWeaponCam";

statement = "RKTWeaponCam = false";

};

};

class EventHandlers

{

killed="";

init ="RKTWeaponCam = false";

engine="";

incomingMissile = "";

GetIn = "";

GetOut = "";

fired="";

};

};

};

class CfgNonAIVehicles

{

class ProxyWeapon {};

class Proxykh25mp: ProxyWeapon

{

model="\WLFB-Ka-50\kh25mp.p3d"; simulation="maverickweapon";

};

};

This is still early on

Share this post


Link to post
Share on other sites

You've got an error in class CfgAmmo:

...

airLock=0;

irLock=1;

...

place an 'a' in front of irLock=1; and decide if you want to have it on or off. wink_o.gif

And another in CfgAmmo:

ThrustTime=100: <- replace it with a semicolon.

I've redone your config, fixed the above bugs, defined your KA50 as an helicopter and checked it with Vectorbosons config checker tool, no errors found.

You can grab it here: http://home.arcor.de/mrwolle/Wolfbite_config.zip

Give it a try and see if it gets you the thing working.

If you still get model special errors you need to check the .p3d files and also if the filenames in the config are correct.

Share this post


Link to post
Share on other sites

AFAIK:

irLock and airLock are both valid config entries.

An example from cfgAmmo - class Default:

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">

explosive=1;

irLock=0;

airLock=0;

laserLock=0;

manualControl=0;

Planck

Share this post


Link to post
Share on other sites

My bad, of course IRlock is a valid entry. banghead.gif

OK to my defense I must say it was early in the morning. smile_o.gif

Share this post


Link to post
Share on other sites

Thanks for the help dude... But im still getting the problem... im checking averything for like the 20th time to check what ive done... the worst thing is i know im gonna kicking myself when i find it lol

Share this post


Link to post
Share on other sites
Guest RKSL-Rock

Hey Wolfbite,

Just found you email in my box...first off are you doing this for OFP or ArmA?

Re the "modelspecial" error... this is generally cuased by typos when calling a model.

Look for all the lines that reference a model and make sure they are all set out right. Its also worth trying to tidy up exising stuff like so:

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">model=\WLFB-Ka-50\WLFB_Ka_50.p3d;

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">model="\WLFB-Ka-50\WLFB_Ka_50.p3d";

Also make sure that the models are actually in the folders you are refering to in the config!

If you email me the model etc I'll take a look at this and at the same time sort that rotor issue for you too.

All the best

Rock

Share this post


Link to post
Share on other sites

Try this one anyway, hopefully it will work without the modelspecial error.

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">

class CfgPatches

{

class WLFB-Ka-50

{

units[] = {WLFB_Ka50};

requiredVersion = 1.90;

};

};

class CfgSounds {};

class CfgRadio {};

class CfgModels

{

class Default {};

class Weapon: Default {};

class Helicopter

{

sectionsInherit="Vehicle";

sections[]={"sklo predni p","sklo predni l","velka vrtule staticka",

"velka vrtule blur","mala vrtule staticka","mala vrtule blur"};

};

class WLFB_Ka_50: Helicopter {};

class kh25mp: Weapon {};

};

class CfgAmmo

{

class Default {};

class AT3:Default {};

class CarlGustav: AT3 {};

class kh25mp : CarlGustav

{

minRange=100;minRangeProbab=0.8;

midRange=600;midRangeProbab=1.0;

maxRange=2200;maxRangeProbab=1.0;

airLock=0;

irLock=1;

initTime=0.5;

ThrustTime=100:

maxspeed=900;

hit=200;indirectHit=90;indirectHitRange=4;

model="\WLFB-Ka-50\kh25mp.p3d";

proxyShape="\WLFB-Ka-50\kh25mp.p3d";

manualControl=0

maxControlRange=2000;

maneuvrability=80;

};

};

class CfgWeapons

{

class Default{};

class LAWlauncher: Default {};

class CarlGustavLauncher : LAWLauncher {};

class AT3Launcher: CarlGustavLauncher {};

class HellfireLauncher: AT3Launcher {};

class MaverickLauncher:HellfireLauncher {};

class Kh25_launcher: MaverickLauncher

{

ammo=kh25mp;

displayName="KH-25 TV";

displayNameMagazine="KH-25 TV";

shortNameMagazine="Kh25";

magazine="kh25";

count=2;

model="\WLFB-Ka-50\kh25mp.p3d";

proxyShape="\WLFB-Ka-50\kh25mp.p3d";

canLock=2;

sound[]={Weapons\Missile,db+18,1};

aiRateOfFire=8;

aiRateOfFireDistance=3500;

};

};

class CfgVehicles

{

class All {};

class AllVehicles: All {};

class Air: AllVehicles {};

class Helicopter: Air {};

class WLFB_Ka50 : Helicopter

{

vehicleClass = "WolfBite Air";

displayName="KA-50 BLACK SHARK";

model=\WLFB-Ka-50\WLFB_Ka_50.p3d;

// General

side = 0; // East

nightVision=10;

accuracy=200;

cost=300000;

scope = 2;

extCameraPosition[]={0,3,-20};

icon="helicopter";

picture = "\Ka-52\icon";

// Weapon & Ammo

weapons[]={Kh25_launcher};

magazines[]={kh25mp};

// Hidden Selections

hiddenselections[]={};

// RADAR and AI detection

irTarget=1;

irScanRange=10000;

irScanGround=10000;

laserScanner=10000;

// Crew Setup

driveriscommander=1;

hasgunner=0;

driverAction = "ManActAH1Pilot";

driverOpticsModel = "optika_heli_gunner";

class ViewOpticsBase {};

class ViewOptics: ViewOpticsBase

{

initAngleX=0;

minAngleX=-15;

maxAngleX=0;

initAngleY=0;

minAngleY=-45;

maxAngleY=10;

initFov=0.50;

minFov=0.01;

maxFov=0.50;

};

// Turret setup

class TurretBase {};

class Turret: TurretBase

{

gunAxis="osahlavne";

turretAxis="osaveze";

gunBeg="usti hlavne";

gunEnd="konec hlavne";

soundServo[]={};

minElev=-45;

maxElev=2;

minTurn=-15;

maxTurn=0;

initTurn=0;

body="otocvez";

gun="otochlaven";

};

// Performance and Handling

maxSpeed = 350;

mainRotorSpeed = 5;

backRotorSpeed = 5;

steerAheadSimul = 2;

steerAheadPlan = 2;

minMainRotorDive = -5;

maxMainRotorDive = +5;

neutralMainRotorDive = 0;

minBackRotorDive = -5;

maxBackRotorDive = +5;

neutralBackRotorDive = 0;

// Sounds

hitSound1[]={"hitSound1",db+1,1};

hitSounds[]={"hitSound1",1};

soundEngine[]={"\Ka-52\sound\e_nrm_ot.ogg",db+2,1};

ejectSpeed[]={0,80,0};

gearRetracting =true;

type=VAir;

threat[]={0.2, 0.2, 0.2};

// Armour Setup - Damage Textures

armor=500;

armorAvionics=0.7;

armorVRotor=1.0;

armorHRotor=1.0;

armorMissiles=0.6;

armorGlass=0.5;

dammageHalf[]={};

dammageFull[]={};

// Controls and Displays dials

class IndicatorWatch

{

hour = "hour";

minute = "minute";

axis = "osa_time";

reversed = true;

};

class IndicatorAltBaro

{

selection = "alt";

axis = "osa_alt";

angle = -360;

min = 0;

max = 200;

};

class IndicatorAltRadar

{

selection = "nm_alt";

axis = "osa_nm_alt";

angle = -360;

min = 0;

max = 200;

};

class IndicatorSpeed

{

selection = "mph";

axis = "osa_mph";

angle = 360;

min = 0;

max = 180;

};

class IndicatorVertSpeed

{

selection = "vs";

axis = "osa_vs";

angle = -360;

min = 9;

max = -9;

};

class IndicatorCompass

{

selection = "kompas";

axis = "osa_kompas";

angle = 360;

min=-3.141593;

max=3.141593;

};

class IndicatorCompass2

{

selection="kompas2";

axis="osa_kompas2";

angle=360;

min=-3.141593;

max=3.141593;

};

class indicatorHorizont2

{

selection="horizont2";

axis="osa_horizont2";

angle=-360;

min=-3.141593;

max=3.141593;

};

animated =1;

class Animations {};

class UserActions

{

class RKTCameraOn

{

displayName ="Bomb Camera On";

position = "doors";

radius =15;

condition = "player in this and !RKTWeaponCam";

statement = "RKTWeaponCam = true";

};

class RKTCameraOff

{

displayName ="Bomb Camera Off";

position = "doors";

radius =15;

condition = "player in this and RKTWeaponCam";

statement = "RKTWeaponCam = false";

};

};

class EventHandlers

{

killed="";

init ="RKTWeaponCam = false";

engine="";

incomingMissile = "";

GetIn = "";

GetOut = "";

fired="";

};

};

};

class CfgNonAIVehicles

{

class ProxyWeapon {};

class Proxykh25mp: ProxyWeapon

{

model="\WLFB-Ka-50\kh25mp.p3d";

simulation="maverickweapon";

};

};

Planck

Share this post


Link to post
Share on other sites
Sorry i put all this in but im stumped

Im getting a model special error... im just trying to try out putting on custom weapons... and using the bomb camera script any help would be greatly appreciated.

...Code sample...

This is still early on.

Hi planck, I did have the model error problem too(on some addons like the first John doe), sometime this problem is because you are missing a needed addon. Or, it might be a problem with the .p3d file. Not the original one, in the .pbo. Problem occur when compressing files in .pbo. Try remake the .pbo and try again running it or find the needed addons.

Scripting look ok.

Hope will help you !

Pillum wink_o.gif

Share this post


Link to post
Share on other sites

Thanks for the try at helping me Pillum, unfortunately, because of language we maybe misunderstand.

I am trying to help wolfbite, who has the problem, I actually don't have a problem, except for paying bills confused_o.gif ..........

Anyway, it is appreciated that you were trying to help someone anyway. wink_o.gif

Planck

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×