Hard Light Productions Forums

Modding, Mission Design, and Coding => FS2 Open Coding - The Source Code Project (SCP) => Topic started by: IPAndrews on May 24, 2005, 04:15:53 am

Title: Image format precedence question
Post by: IPAndrews on May 24, 2005, 04:15:53 am
Hey there chaps. Here's the question.

"a.vp" contains a load of textures/effects as dds.
"b.vp" contains a load of textures/effects as jpg/tga.
I run the game engine with use jpg/tga textures enabled.

Does it use the jpgs/tgas in b.vp, even though it will see the dds files in a.vp (in alphabetical order a comes before b) first?

The context of the question is that I am considering supplying TBP textures and effects as dds files with an optional vp with hi res jpg/tga textures/effects although that vp will have a filename which comes after the one with the dds files.
Title: Image format precedence question
Post by: taylor on May 24, 2005, 09:22:35 am
What VP the files are in doesn't matter.  When it loads an image, with TGA being first with -jpgtga, it will search all VPs for a TGA version of the file.  Only if it doesn't find it anywhere will it continue down the line with JPG -> DDS -> PCX -> TGA (16-bit versions).
Title: Image format precedence question
Post by: IPAndrews on May 24, 2005, 10:00:27 am
Thanks Taylor. That's excellent news - and good design.