Jump to content
Sign in to follow this  
TheRedBaron

Model not loading in game

Recommended Posts

I make a simple coke machine addon but Its not showing up in the game. It is giving me no error messages and my other custom addons work. I figure its a problem with my config but I cant find it. the folder of the addon before pboing was coke and the p3d is coke.p3d:

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

{

class Crate

{

units[] = {Crate};

weapons[] = {};

requiredVersion = 1.0;

};

};

class CfgVehicles

{

class All {};

class Static: All {};

class Building: Static {};

class NonStrategic: Building {};

class TargetTraining: NonStrategic {};

class TargetGrenade: TargetTraining {};

class Crate: TargetGrenade

{

model="\coke\coke";

armor=20000;

scope=2;

displayName="cstm_coke";

}

}

Share this post


Link to post
Share on other sites

Two questions

Is the word "cstm_coke" coming up in the objects list in editor?

And

Have you set the land contact points?

Share this post


Link to post
Share on other sites

My static object addons work without "land contact points" So I'm guessing you put the addon below the center line ? if so move it so the bottom of the coke machine just above the center line  smile_o.gif

Also

Quote[/b] ]class CfgPatches

{

class Crate

{

units[] = {Crate};

weapons[] = {};

requiredVersion = 1.0;

};

};

class CfgVehicles

{

class All {};

class Static: All {};

class Building: Static {};

class NonStrategic: Building {};

class TargetTraining: NonStrategic {};

class TargetGrenade: TargetTraining {};

class Crate: TargetGrenade

{

vehicleClass="TheRedBaron - Objects";

model="\coke\coke";

armor=20000;

scope=2;

displayName="cstm_coke";

};

}

Notice the "vehicleClass="TheRedBaron - Objects" That will put you addon in your very own folder (like Cars, Air, Objects etc) Should make it easer to find.(It will be under Empty/TheRedBaron - Objects/cstm_coke

Share this post


Link to post
Share on other sites
Quote[/b] ]My static object addons work without "land contact points"

Yes they might but I would still go with a landcontact lod.

Share this post


Link to post
Share on other sites

My addon is above the center line and I have made a crate from a tutorial and it does show up in my object list, but this one is not showing up at all for some reason. I tried searching through other classes but i couldnt find it. I checked the model in 02 and compared it to the crate that works but I can not find the problem. sad_o.gif

Share this post


Link to post
Share on other sites

Yes! finally figured it out. I had just copy pasted the config from my crate addon and did not change all of the "crates" to "coke". Though now I have another problem, me being unexperienced with o2 overestimated the size.

coke_machine.jpg

not a problem I cant fix though tounge_o.gif

thanks a bunch for all of you help  unclesam.gif

Share this post


Link to post
Share on other sites

You can use Shift+Ctrl to size quicker... unless you know that allready tounge_o.gif

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  

×