Home   Help Search Login Register  

Author Topic: Textures aren't working!  (Read 3914 times)

0 Members and 1 Guest are viewing this topic.

Serial Killer

  • Guest
Textures aren't working!
« 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!



As you can see, there's me ( ;D ) and my unworking addon. What should I do? :'(

Serial Killer

  • Guest
Re:Textures aren't working!
« Reply #1 on: 20 Mar 2005, 10:29:05 »
Uhm.. Can't help me? :'(

Offline IGWedge

  • Members
  • *
  • Internal Coordinator @ www.ic-arma.com
    • International Conflict Armed Assault
Re:Textures aren't working!
« Reply #2 on: 20 Mar 2005, 11:10:19 »
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


US-Marine

  • Guest
Re:Textures aren't working!
« Reply #3 on: 20 Mar 2005, 11:29:26 »
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)

Serial Killer

  • Guest
Re:Textures aren't working!
« Reply #4 on: 20 Mar 2005, 11:36:13 »
I have 256 x 256 sizes on all of them. Still not working :'(

Serial Killer

  • Guest
Re:Textures aren't working!
« Reply #5 on: 20 Mar 2005, 11:36:38 »
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



What island is that?

Offline h-

  • OFPEC Site
  • Administrator
  • *****
  • Formerly HateR_Kint
    • OFPEC
Re:Textures aren't working!
« Reply #6 on: 20 Mar 2005, 11:47:04 »
Also checking that the texture paths are correct is a good trick...
Project MCAR   ---   Northern Fronts   ---   Emitter 3Ditor
INFORMATIVE THREAD TITLES PLEASE. "PLEASE HELP" IS NOT ONE..
Chuck Norris can divide by zero.

Lean Bear

  • Guest
Re:Textures aren't working!
« Reply #7 on: 20 Mar 2005, 12:11:53 »
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 :)

US-Marine

  • Guest
Re:Textures aren't working!
« Reply #8 on: 20 Mar 2005, 12:38:06 »
Yep it gives an tool for it named "TxtPathswap" is very helpful you can easyly change the path with it

Offline Planck

  • Honoured
  • Former Staff
  • ****
  • I'm never wrong ....I'm just not always right !
Re:Textures aren't working!
« Reply #9 on: 20 Mar 2005, 15:51:47 »
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
I know a little about a lot, and a lot about a little.

Offline remcen

  • Contributing Member
  • **
  • a.k.a. hottentotten_mike
    • IM:UC
Re:Textures aren't working!
« Reply #10 on: 20 Mar 2005, 19:30:33 »
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???
we're looking for members: IM:UC MOD

Offline h-

  • OFPEC Site
  • Administrator
  • *****
  • Formerly HateR_Kint
    • OFPEC
Re:Textures aren't working!
« Reply #11 on: 20 Mar 2005, 20:29:03 »
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...
« Last Edit: 20 Mar 2005, 20:29:31 by HateR_Kint »
Project MCAR   ---   Northern Fronts   ---   Emitter 3Ditor
INFORMATIVE THREAD TITLES PLEASE. "PLEASE HELP" IS NOT ONE..
Chuck Norris can divide by zero.

Offline IGWedge

  • Members
  • *
  • Internal Coordinator @ www.ic-arma.com
    • International Conflict Armed Assault
Re:Textures aren't working!
« Reply #12 on: 20 Mar 2005, 22:31:44 »
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.
« Last Edit: 20 Mar 2005, 22:36:28 by IG-Wedge »

Offline Planck

  • Honoured
  • Former Staff
  • ****
  • I'm never wrong ....I'm just not always right !
Re:Textures aren't working!
« Reply #13 on: 20 Mar 2005, 22:45:14 »
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 know a little about a lot, and a lot about a little.

Offline IGWedge

  • Members
  • *
  • Internal Coordinator @ www.ic-arma.com
    • International Conflict Armed Assault
Re:Textures aren't working!
« Reply #14 on: 20 Mar 2005, 23:20:51 »
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.

Offline Planck

  • Honoured
  • Former Staff
  • ****
  • I'm never wrong ....I'm just not always right !
Re:Textures aren't working!
« Reply #15 on: 20 Mar 2005, 23:23:24 »
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
« Last Edit: 20 Mar 2005, 23:24:32 by Planck »
I know a little about a lot, and a lot about a little.

Offline IGWedge

  • Members
  • *
  • Internal Coordinator @ www.ic-arma.com
    • International Conflict Armed Assault
Re:Textures aren't working!
« Reply #16 on: 20 Mar 2005, 23:25:30 »
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
« Last Edit: 20 Mar 2005, 23:54:59 by IG-Wedge »