Log in

View Full Version : All white units



uanime5
04-22-2007, 22:20
I have made several new units for a mod but the unit's are always all white. This occurs whether I use textures I have made or I use the original textures I based the unit on. I have made sure that the game uses my textures first but this has not solved the problem. I have checked the log but it does not record any problems. What do I need to do?

Bwian
04-23-2007, 23:02
White units sounds as though you don't have a working UV map on the model or the materials are not applied to the mesh.

If you are building the models in Milkshape, how does the thing look there? Does the texture show up at all? If it does, then it should show up in game.

MAke sure, also, that you have applied a UV map to the model and are not just assigning materials to get an effect.

Can you give some details of the process you have gone through to get your white soldiers? Whilst I was getting to grips with the process, I think I made just about every mistake in the book! Luckily...Grumpy Old Man helped a lot, and I was able to apply good advice mixed with a heap of my own RTW modding experience. I am sure we can find an answer :2thumbsup:

dietre
04-24-2007, 00:01
read a post on here (modding questions) called, grumpy's .mesh
i started this post to ask all these questions on making new units, it discusses this problem and the fix. it also has images to help....maby it will answere ur problem :)

uanime5
04-24-2007, 14:39
Here is what I did to make the Ogre.

First I got the code for the Aztec Peasant from battle_models

14 aztec_peasants 1 3 52 unit_models/_Units/AZ_Light/aztec_peasants_lod0.mesh 121 52 unit_models/_Units/AZ_Light/aztec_peasants_lod1.mesh 1225 52 unit_models/_Units/AZ_Light/aztec_peasants_lod2.mesh 6400 1 6 aztecs 72 unit_models/_Units/AZ_Light/textures/mtw2_AZ_Light_padded_aztecs.texture 72 unit_models/_Units/AZ_Light/textures/mtw2_AZ_Light_padded_normal.texture 45 unit_sprites/aztecs_Aztec_Peasants_sprite.spr 1 6 aztecs 58 unit_models/AttachmentSets/Final Aztec_aztecs_diff.texture 58 unit_models/AttachmentSets/Final Aztec_aztecs_norm.texture 0 1 4 None 14 MTW2_Fast_Mace 0 2 17 MTW2_Mace_Primary 14 fs_test_shield 0 16 -0.090000004 0 0 -0.34999999 0.80000001 0.60000002

Then I changed the name to Ogres and the faction to Mythological.

5 Ogres 1 3
52 unit_models/_Units/AZ_Light/aztec_peasants_lod0.mesh 121
52 unit_models/_Units/AZ_Light/aztec_peasants_lod1.mesh 1225
52 unit_models/_Units/AZ_Light/aztec_peasants_lod2.mesh 6400
1 12 Mythological
72 unit_models/_Units/AZ_Light/textures/mtw2_AZ_Light_padded_aztecs.texture
72 unit_models/_Units/AZ_Light/textures/mtw2_AZ_Light_padded_normal.texture
45 unit_sprites/aztecs_Aztec_Peasants_sprite.spr
1 12 Mythological
58 unit_models/AttachmentSets/Final Aztec_aztecs_diff.texture
58 unit_models/AttachmentSets/Final Aztec_aztecs_norm.texture
0 1 4 None 14 MTW2_Fast_Mace 0 2 17 MTW2_Mace_Primary 14 fs_test_shield 0 16 -0.090000004 0 0 -0.34999999 0.80000001 0.60000002

This is what they look like now:
https://img175.imageshack.us/my.php?image=whiteogreshotrl7.jpg

Grumpies' Mesh (https://forums.totalwar.org/vb/showthread.php?t=82652) did not seem to be related to my problem since I have altered the mesh or even made any new textures.

uanime5
04-24-2007, 14:52
Grumpies' Mesh (https://forums.totalwar.org/vb/showthread.php?t=82652) did not seem to be related to my problem since I have altered the mesh or even made any new textures.

This should have been:

Grumpies' Mesh (https://forums.totalwar.org/vb/showthread.php?t=82652) did not seem to be related to my problem since I have not altered the mesh or even made any new textures.

Bwian
04-24-2007, 17:43
How have you set up your Mythological faction? It seems to be the root cause of the problem.

uanime5
04-24-2007, 20:32
I have created the Mythological faction from nothing using a mod folder. It's culture is mesoamerican because I wanted to control this faction's buildings and portraits without disrupting those of any other major faction. The religion is heretic. All the banner work fine.

Please let me know exactly what information you need.

dietre
04-25-2007, 02:49
sometimes the game gets pissy about having the texture "faction" not matching the faction.

1 12 Mythological
72 unit_models/_Units/AZ_Light/textures/mtw2_AZ_Light_padded_aztecs.texture
72 unit_models/_Units/AZ_Light/textures/mtw2_AZ_Light_padded_normal.texture
45 unit_sprites/aztecs_Aztec_Peasants_sprite.spr

In theory on how this works, this shouldn't effect the in game texture. the faction Mythological would have the unit with aztec textures. but many times i have seen these white textures because of this. Try taking the aztec textures, convert them to .dds save them as mythological. then change ur code to

1 12 Mythological
78 unit_models/_Units/AZ_Light/textures/mtw2_AZ_Light_padded_mythological.texture
72 unit_models/_Units/AZ_Light/textures/mtw2_AZ_Light_padded_normal.texture
45 unit_sprites/aztecs_Aztec_Peasants_sprite.spr

uanime5
04-25-2007, 15:49
Okay I'll try that. Do I have to convert them to .dds then save them with another file name, or can I simply rename them?

Also I've checked all the units I've added and for some reason the elephant units are not all white, though the unit and unit_info pictures (in the 'ui' folder) I made for them are wrong.

uanime5
04-25-2007, 19:35
I tried renaming the texture but it made no difference. I also tried renaming the sprite

'51 unit_sprites/mythological_Aztec_Peasants_sprite.spr'

but that didn't help either.

dietre
04-26-2007, 04:17
i dont know what to tell you..without having the files to work on its hard. sorry but i dont have this problem any more and my solution that helped me isnt working for you :no:

hope you can get this sorted out.

uanime5
04-30-2007, 14:35
I made a beta version of my mod (http://www.twcenter.net/forums/downloads.php?do=file&id=1323). Hopefully someone will be able to examine the files I'm using and determine the source of my problem.

Andromachus Theodoulos
05-01-2007, 00:03
@uanime5

I think the problem has to do with the xxx.normal.texture. I can see your ogre texture coming through.

This happened to me when I tried to alter the normal texture... the one that looks pink... it gives the unit that shininess... sorry for my inexperienced description...

Try this, phoenix did a good tut on creating normal maps for new textures... try this and let us know how it goes...
https://forums.totalwar.org/vb/showthread.php?t=78388

I do feel that is what your problem is... as I have experienced this too... BUT I never did my own normal maps...

I hope this helps...

AT

uanime5
05-01-2007, 20:38
I haven't make any textures for the Ogres yet (there was little point since they would become all white). The game is set up to use the textures of the Aztec Peasants (which it can't display correctly for some reason).

uanime5
05-07-2007, 14:03
Update: I've made a version of this mod for the 1.2 patch and now all the units are invisible, though they still have their banners. Does anyone know how to fix this? I have not made any new textures or meshes.