OFPEC Forum

Addons & Mods Depot => OFP - Addons & Mods General => Topic started by: jeffs on 30 May 2003, 21:40:57

Title: Trouble with custom textures
Post by: jeffs on 30 May 2003, 21:40:57
I'm running into some trouble with custom runway textures I've made.  All show up in WRP but only some in game.  All files are .paa extension and in an addon just for textures.

Any help would be appreciated.

JeffS
Title: Re:Trouble with custom textures
Post by: Leone on 30 May 2003, 22:27:49
1. Check all the textures are in the pbo
2. Make sure you have added all textures from the Addon.pbo NOT /Addon.pbo (inside WRPEdit)
3. Check the textures that aren't working and make sure they don't have any alpha layer
4. Check that you actually applied  them (sounds obvious I know....but)
5. Make sure all textures are sized to the power of 2 (128x128, 256x256, 512x512 etc)

Other than that....... :-\
Title: Re:Trouble with custom textures
Post by: jeffs on 31 May 2003, 00:19:57
Thanks... I redid the files and it works like a charm.  Something must have been off.  Another question?  How do I get runway textures to work like runways?  Is it a flag setting?
Title: Re:Trouble with custom textures
Post by: Planck on 31 May 2003, 00:27:29
I think it may have something to do with the names of the files.

It might be that they have to have the original names to be recognised as runway textures.
But this is just a guess as I am not 100% sure.

Planck
Title: Re:Trouble with custom textures
Post by: Leone on 01 Jun 2003, 08:08:08
class Runway: Roadway
files="rw*";

That might work.....give it a go. If not.....there's another work around, but only if you are doing it as a mod (not just an addon).
Title: Re:Trouble with custom textures
Post by: Planck on 03 Jun 2003, 23:04:33
Ok, after extensive research (5 minutes really), I have reached a solution.

Make sure all your runway textures begin with the same few letters.....i.e. runw.

Then in your config.cpp, in the CfgSurfaces section, add the following:

class RunwayRes
{
   access=2;
   files="runw*";
   rough=0.001000;
   dust=0.006000;
   soundEnviron="road";
};


Remember 'runw' is only an example, change it for whatever you decide upon.


P.S.  I have Resistance and I strongly suspect 'RunwayRes' relates to that, so, if this doesn't work for those who don't have Resistance, try changing 'RunwayRes' for 'Runway'



Planck