PDA

View Full Version : Help With Invisable Models



Abokasee
08-11-2007, 13:40
When ever I try to add a new model, it's inivisable, I've treid everything possible, (that I know Of) But I've got no where!


14 byzant_pikemen 1 4 68 unit_models/_Units/ES_Greek_Greek_Heavy/byzantine_infantry_lod0.mesh 121 68 unit_models/_Units/ES_Greek_Greek_Heavy/byzantine_infantry_lod1.mesh 900 68 unit_models/_Units/ES_Greek_Greek_Heavy/byzantine_infantry_lod2.mesh 2500 68 unit_models/_Units/ES_Greek_Greek_Heavy/byzantine_infantry_lod3.mesh 6400 1 9 byzantium 80 unit_models/_Units/ES_Greek_Greek_Heavy/textures/mtw2_es_greek_byzantium.texture 77 unit_models/_Units/ES_Greek_Greek_Heavy/textures/mtw2_es_greek_normal.texture 52 unit_sprites/byzantium_Byzantine_Infantry_sprite.spr 1 9 byzantium 61 unit_models/AttachmentSets/Final Greek_byzantium_diff.texture 61 unit_models/AttachmentSets/Final Greek_byzantium_norm.texture 0 1 4 None 14 MTW2_Slow_Pike 15 MTW2_Non_Shield 1 17 MTW2_Pike_primary 1 18 MTW2_Sword_Primary 16 -0.090000004 0 0 -0.34999999 0.80000001 0.60000002 18 byzant_pikemen_ug1 1 3 72 unit_models/_Units/ES_Greek_Greek_Heavy/byzantine_infantry_ug1_lod0.mesh 121 72 unit_models/_Units/ES_Greek_Greek_Heavy/byzantine_infantry_ug1_lod1.mesh 1225 72 unit_models/_Units/ES_Greek_Greek_Heavy/byzantine_infantry_ug1_lod2.mesh 6400 1 9 byzantium 80 unit_models/_Units/ES_Greek_Greek_Heavy/textures/mtw2_es_greek_byzantium.texture 77 unit_models/_Units/ES_Greek_Greek_Heavy/textures/mtw2_es_greek_normal.texture 56 unit_sprites/byzantium_Byzantine_Infantry_ug1_sprite.spr 1 9 byzantium 61 unit_models/AttachmentSets/Final Greek_byzantium_diff.texture 61 unit_models/AttachmentSets/Final Greek_byzantium_norm.texture 0 1 4 None 14 MTW2_Slow_Pike 15 MTW2_Non_Shield 1 17 MTW2_Pike_primary 1 18 MTW2_Sword_Primary 16 -0.090000004 0 0 -0.34999999 0.80000001 0.60000002

So whats wrong there? (You might notice Im trying to add Byzantine Pikemen)

mor dan
08-15-2007, 00:21
ok, to clarify, you have the unit in game, such as unit cards, selectable units, etc, but the actual men aren't appearing on the screen when you go to battle?

Abokasee
08-20-2007, 12:03
Yes everything else works, just the unit dosnt appear on the battlefeild

mor dan
08-20-2007, 19:52
ok, let's look a these lines of code now that i have some fresh eyes...


0 1 4 None 14 MTW2_Swordsman 0 2 18 MTW2_Sword_Primary 14 fs_test_shield 0 16 -0.090000004 0 0 -0.34999999 0.80000001 0.60000002

and


0 1 4 None 14 MTW2_Slow_Pike 15 MTW2_Non_Shield 1 17 MTW2_Pike_primary 1 18 MTW2_Sword_Primary 16 -0.090000004 0 0 -0.34999999 0.80000001 0.60000002

this where your code and the original unit code, Byzantine Infantry, have the greatest amount of deviation. notice in the first code:


0 2 18 MTW2_Sword_Primary

versus your


15 MTW2_Non_Shield

also, i am seeing two weapons labeled as primary: a pike and a sword. now i personally don't have a lot of experience writing in this code, but basic logic would dictate you can't have two primary weapons. so i looked up a horse unit, which i know uses spears and swords, to test that logic and this was the code:


2 21 MTW2_HR_Lance_Primary 14 fs_test_shield 2 18 MTW2_Sword_Primary 14 fs_test_shield 16 -0.090000004 0 0 -0.34999999 0.80000001 0.60000002

we now see that primary is just talking about which weapon is being used, not what is a unit's primary weapon. however, notice the order. weapon, then shield test, weapon, then shield test. does the unit you are creating have no shield? so, i looked up a non shield unit, the Berdiche Axemen and compared that code:


1 19 MTW2_2H_Axe_primary 0 16 -0.090000004 0 0 -0.34999999 0.80000001 0.60000002

so, the 2 in those codes probably represents two weapons. but the fs_test_shield is not present for the non-shield unit. so, if your unit is supposed to have a shield, then this could be the error we are looking for, along with the order in which your code is written, since it isn't weapon, shield test, weapon, shield test.

i know that's a whole lot, but i wanted you to understand the logic that carried me from place to place.