Jump to content
Sign in to follow this  
Tau Hammerhead

.model error

Recommended Posts

i was trying to use the search function but it wouldnt work so this will need to be quick, just a straight answer and the topic can be closed i think.

Ok the problem is that ofp wont play the mission, it says no entry ".model" error , how can i fix this, the models are all in the .pbo file and they are correctly linked but it just wont work, any solution?

Share this post


Link to post
Share on other sites
i was trying to use the search function but it wouldnt work so this will need to be quick, just a straight answer and the topic can be closed i think.

Ok the problem is that ofp wont play the mission, it says no entry ".model" error ,  how can i fix this, the models are all in the .pbo file and they are correctly linked but it just wont work, any solution?

Models in the PBO for the mission? I hope you mean something else, since models (addon pbo's) should be in the addon folder and not in be included in the mission-pbo.

When you get a '.model' error, you are missing an addon in your addon folder that is required for the mission (or for one of the addons included in your mission).

Share this post


Link to post
Share on other sites

no, the addons are in the addon folder, i meant on editor, but i have tried changing weapons for the units, it works for one but not the other two oddly. rock.gif

Share this post


Link to post
Share on other sites
no, the addons are in the addon folder, i meant on editor, but i have tried changing weapons for the units, it works for one but not the other two oddly. rock.gif

hehe, try checking your spelling.

Wouldn't be the first guy to make mistake there

edit;

hmm. Nope I just checked it, but that would give some other error.

Could you give me all the details about it and post what you wrote in the init field of the soldiers?

Share this post


Link to post
Share on other sites

In a little search I came up with this;

Quote[/b] ]B) you pointed a line in the config to a model <addon or bis>

that was not in the pbo or your addons folder.

If you made the addon yourself, you might want to check the cpp for errors.

Share this post


Link to post
Share on other sites

ok,here is the config of the unit that works:

Quote[/b] ] class combine_cop:SoldiereB

{

displayName="Combine Cop";

weapons[]={"Llama_M82","Binocular","NVGoggles","Throw",&quot

;Put"};

magazines[]={Llama_M82Mag, Llama_M82Mag,Llama_M82Mag,HandGrenade,HandGrenade,SmokeShell,Strokefist};

armor=10;

armorStructural=2.000000;

armorHead=0.500000;

armorBody=0.800000;

armorHands=0.400000;

armorLegs=0.600000;

model="\PC_SAS\combinecop.p3d";

};

and the one that says "no entry ".model".

Quote[/b] ] class combine_soldier:SoldiereB

{

displayName="Combine Soldier";

weapons[]={"AK47CS",,"Llama_M82","Binocular","NVGoggles",&qu

ot;Throw","Put"};

magazines[]={AK47CSmag,AK47CSmag,AK47CSmag,AK47CSmag,Llama_M82Mag,Llama_M82Mag,Llama_M82Mag,HandGrenad

e,HandGrenade,SmokeShell,Strokefist};

armor=15;

armorStructural=4.000000;

armorHead=0.800000;

armorBody=1.100000;

armorHands=0.700000;

armorLegs=1.000000;

model="\PC_SAS\combinesoldier.p3d";

};

I have tried all of the weapons on their own and they work, so i have no idea what it is

Share this post


Link to post
Share on other sites

Seems you've made some little errors in the config,

try this instead:

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

class combine_cop:SoldiereB

{

displayName="Combine Cop";

weapons[]={Llama_M82,Binocular,NVGoggles,Throw,Put};

magazines[]={Llama_M82Mag,Llama_M82Mag,Llama_M82Mag,HandGrenade,HandGrenade,SmokeShell,Strokefist};

armor=10;

armorStructural=2.000000;

armorHead=0.500000;

armorBody=0.800000;

armorHands=0.400000;

armorLegs=0.600000;

model="\PC_SAS\combinecop.p3d";

};

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

class combine_soldier:SoldiereB

{

displayName="Combine Soldier";

weapons[]={AK47CS,Llama_M82,Binocular,NVGoggles,Throw,Put};

magazines[]={AK47CSmag,AK47CSmag,AK47CSmag,AK47CSmag,Llama_M82Mag,Llama_M82Mag,Llama_M82Mag,HandGrenad

e,HandGrenade,SmokeShell,Strokefist};

armor=15;

armorStructural=4.000000;

armorHead=0.800000;

armorBody=1.100000;

armorHands=0.700000;

armorLegs=1.000000;

model="\PC_SAS\combinesoldier.p3d";

};

Share this post


Link to post
Share on other sites

Indeed, Locke is right.

One question;

I don't know the weapon "Llama_M82", but if this is an M82 sniperrifle, than you made an other mistake;

Two primary weapons on one soldier is not possible (AK47CS, Llama_M82)

Share this post


Link to post
Share on other sites

works now, thanks a bunch locke@Germany and Cpt Frostbite. So what waas wrong wiht the old config to make it not work ? rock.gif

Share this post


Link to post
Share on other sites
works now, thanks a bunch locke@Germany and Cpt Frostbite. So what waas wrong wiht the old config to make it not work ? rock.gif

compare these lines  wink_o.gif ;

old and new from cop;

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">weapons[]={"Llama_M82","Binocular","NVGoggles","Throw","

;Put"};

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">weapons[]={Llama_M82,Binocular,NVGoggles,Throw,Put};

old and new from soldier;

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">weapons[]={"AK47CS",,"Llama_M82","Binocular","NVGoggles",&qu

ot;Throw","Put"};

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">weapons[]={AK47CS,Llama_M82,Binocular,NVGoggles,Throw,Put};

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  

×