OFPEC Forum
Addons & Mods Depot => OFP - Addons & Mods General => Topic started by: Serial Killer on 19 Mar 2005, 22:06:46
-
I just made my first infantry addon ever, but the textures aren't working :( Don't know why but they aren't just working. If you want something fun to this day, see this picture!
(http://img.photobucket.com/albums/v652/Serialkiller91/Funny.jpg)
As you can see, there's me ( ;D ) and my unworking addon. What should I do? :'(
-
Uhm.. Can't help me? :'(
-
I am having the same problem.I am trying to retexture Bis buildings.
Im not sure if its the textures or the config.
I have created all custon ground textures no problem but need the buildings to complete the island.
Someone help please
(http://ftp.sutv.com/~wedge/Images/Flashpoint/Texturenull.jpg)
-
if it is the config , you will become an errormessage and the house wouldn' appear - so confic isn't it.
Make sure you have the right sizes (64x64 , 128x128 , 256x256, 512x512 and so on) or you have the right texture files (tga , paa or pac)
-
I have 256 x 256 sizes on all of them. Still not working :'(
-
I am having the same problem.I am trying to retexture Bis buildings.
Im not sure if its the textures or the config.
I have created all custon ground textures no problem but need the buildings to complete the island.
Someone help please
(http://ftp.sutv.com/~wedge/Images/Flashpoint/Texturenull.jpg)
What island is that?
-
Also checking that the texture paths are correct is a good trick...
-
Yes, as HateR_Kint said, checking the texture paths normally solves the porblem, especially when re-texturing.
In O2, open your model you are working on. Open the texture browser window (alt-T, I think). Then find the texture you are using to replace and Ctrl-Click it, this will select all the faces wich are currently textured with that texture.
Then, back in side-view or whatever, press "E" to bring up the face properties box. At the bottom-right corner, there should be a text box which has the path that that textre is using.
Make sure that it says:
\AddonPBOName\TextureName.paa
as supposed to:
\MyAddons\TextureName.paa
That should do the trick :)
-
Yep it gives an tool for it named "TxtPathswap" is very helpful you can easyly change the path with it
-
As has already been stated, the texture dimensions need to be in powers of 2.
Also, I presume you are converting .tga files into .paa or .pac files.
The .tga files need to be 24 bit uncompressed when saving.
If the texture has an alpha channel then it will end up as 32 bit because 24 bit + 8 bit alpha channel = 32 bit.
If the textures are pbo'ed with the p3d files then the texture path must reflect this:
\mydata3d\texture1.paa
\mydata3d\texture2.paa
etc etc.....as Lean Bear has said.
The same thing applies if the textures are in their own pbo, separate from the p3d files:
\mydata\texture1.paa
\mydata\texture2.paa
If the texture paths are incorrect you will end up with a white model.
Planck
-
in pre-resistance time there was a character limit, that's why sometimes an error message pops up in o2 and the textures weren't displayed.
but since resistance there is no such limit anymore.
does anyone know the current limit?
my longest path is 28 characters i think, so it must be like 30 chars-
or is there no limit at all anymore???
-
MLOD models still don't accept long paths...
It gives you a warning message 'texture path too long' or something and if the lenght exceeds the limit too much the exceeding part gets warped into some odd characters...
I think the MLOD character limit is 32 or 30...
ODOL models accept much longer paths... Dunno if they have the same limit as Windows has for file names...
-
let me explain the process i have used then maybe someone can help.
I wanted to re texture the bis toilet shed (res) model
I tried following the tutorial in the editors depot by EJ will
The P3d model is Kbud.P3d
Then following as instructed in the tutorial i used the unpackSQM tool (but im not 100% sure i got this right so if someone can verify the process that would be great)
Then using P3d texture swap utility i found the correct textures for that model.
Using TexView i changed the textures to TGA edited them and saved as 24 uncompressed.
Renamed the textures accordingly and put them in my Wintertoilet file along with my winter toilet.P3d.
Using the texture swap utility i changed the existing texture paths to the new ones and saved the P3d
Then i created a config that looked like this:-
class CfgPatches
{
   class Wintertoilet
   {
      units[] = {Wintertoilet};
      weapons[] = {};
      requiredVersion = 1.0;
   };
};
class CfgVehicles
{
   class All {};
   class Static: All {};
   class Building: Static {};
   class NonStrategic: Building {};
   class TargetTraining: NonStrategic {};
   class TargetGrenade: TargetTraining {};
  ÂÂ
   class Wintertoilet: Building
   {
      model="\Wintertoilet\Wintertoilet.P3d";
      armor=20000;
      scope=2;
      displayName="Winter Toilet";
   }
}
PBO'd it up with the tex,p3d and config and put it in my addons folder!
Now not only do my textures not show up when i use the island with WRPtool but i cant find it under empty ingame either so basiclly im a complete noob at this and have cocked it up somewhere along the line. :(
@Serial Killer - That is the island im working on for my winter pack.Do you like the ground textures??I want to retexture loads of buildings to accompany.So please someone help out while i still have some hair left.
-
If you send me the addon I will look at it and see if I can fix it.
I can then tell you what you might be doing wrong.
However, why don't you use Oxygen to change the texture paths instead of the texture swap utility?
I noticed also that you didn't have a cfgModels section in your config.
Planck
-
i cant get the model to open in oixygen
Yeah that config was like the 20th i tried lol
could you show me how the config should look??
That would be great for you to take a look.
Once i have this down then i can get on with the rest.
-
Oxygen won't open ODOL p3d's.
You would need to convert it to MLOD with ODOL Explorer first.
And then convert back again afterwards maybe...... ;D ;D
Planck
-
ahhh ok
ive never used that before...whats the process.?
i cant see how to change it?
im looking at it now....jeez i really am a noob