Jump to content
Sign in to follow this  
JahBit

Inventory item picture causing ctd! help

Recommended Posts

Ok I'am completely at a loss here...

So, I made a gun. Nothing fancy with the model or the config.cpp yet.

(actually I just copied the cpp of BRSSEBz's weapon tutorial ie. the Stalker)

The model and the config are ok.

!!!

I can't get the custom image to work! Every time I open the gear/inventory section in the "notebook" (in game) I get a CTD - if the 'player' has my gun.

The image is in 'paa' format. Converted from 32 bit tga file with textView. Image size is 256x126. Alpha channel works.

I wont get a CTD If I remove the 'picture="\folder\SomeFileName.paa";' line from the config.cpp, but no inventory image either

same goes if I just leave the original 'stalker' image in the pbo...

This leads me to believe that the image file format I'm using is faulty...

So can anybody share some light in the matter...

Ps. I've only modeled a couple of static items and worked on a map, so I'am practically still a newbie at this configuration stuff... but this is so elementary - oh the shame wow.gif

Share this post


Link to post
Share on other sites

If you can open it up in TexView and the image appears, then your image format is not faulty.

Share this post


Link to post
Share on other sites

Yep, I can open it in textView... this is just too wierd.

is there something special I should know about the 'picture="...";'

ie. in the commented config it says that the class name is the default picture name or somesuch...

I should be able put "whatever I wish" as the texture path right? at the moment it's just 'picture="\stalker\plasmarifle.paa";

Yes a plasmarifle! from Fallout - just goofing around!!

so should it be picture="\addonPBOName\addonPBOName.paa"; ??

...thought I tried that too... hmn... quite irritating really confused.gif

Share this post


Link to post
Share on other sites

256x126 you say?? try 128 instead... and sometimes i also managed to open files in texview with incorrect sieze..

Share this post


Link to post
Share on other sites

ehheh well well... *blush* now I feel humble...

I first tought that I'd made a typo in the message, and had ment 128 - naturally... but nope. I made the typo in Photoshop... too silly

well anyway I changed the image size to 256x128 and voilá IT WORKS!!

I can't believe it!! Well actually I can... oh shame on me wink.gif

well I quess this is what you get when you "work late" tounge.gif

Oh and thanks.

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  

×