Jump to content
Sign in to follow this  
Rokket

"invisible" textures in cpp

Recommended Posts

I've studied the tutes, but I'm getting some weird results with my first add-on:  I see the 3d model, gleaming white, but my texture is not anywhere.  I've changed and rechanged paths to .pac and p3d, but it either produces a loading error or I get the same blank model.  Here's part of the cpp:

class CfgVehicles

{

class All{};

class Static: All {};

class Building: Static {};

class Strategic : Building {};

class ROK_chemdrum: Strategic

{

typicalCargo[]={};

transportAmmo=0;

transportRepair=0;

transportFuel=0;

mapSize=1;

cost=100;

armor=1;

accuracy=1000;

               icon="unknown_move";

scope=public;

        side=TSideUnknown;

               

        destrType=destructtree;

sound="empty";

VehicleClass="Support";

displayName="ROK_chemdrum";

model="\rok_chemdrum\rok_chemdrum.p3d";

picture="\rok_chemdrum\rustbarel.pac"

};

I've just added a label to the rustbarel.pac to make a chemical drum. I'm guessing I've messed up making the p3d file or something.

Any help for an idiot like me is appreciated. Thanks.

Share this post


Link to post
Share on other sites
Guest BratZ

I dont see any hidden selections defined? You just mean your model is white in-game?

I would check your texture paths and you cant just change the models directory name without changing all the paths,etc...

Share this post


Link to post
Share on other sites

Thanks, BratZ, must be path.

Yeah, model is white, like the naked 3D model with no skin/texture. 'Hidden' - didn't include entire cpp file.

have to figure out paths, should be so simple!

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  

×