Results 1 to 8 of 8

Thread: no textures on foreign units

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1

    Icon9 no textures on foreign units

    ok so here's my problem. i know it's not cool and all but i learned create_unit cheat and added some foreign units to my armies, if any of you have done this you'll know that when you do that their unit cards show RTW style peasants. that's nothing on battlefield they still look like they should but here's where it gets tricky for me they have no textures on them so they look like they're molded from silver and that's no fun to watch . i want to know what might be causing this and is there any way to fix it.

  2. #2

    Default Re: no textures on foreign units

    I suggest you ask the MTTW modding forum

  3. #3

    Default Re: no textures on foreign units

    I answered this question a couple weeks ago on another forum.

    http://www.twcenter.net/forums/showt...5#post11536965

    Edit: Also since you asked what's causing it, it's because the game has no assigned textures, sprites, or UI features for this unit on this faction, so it uses default everything. Default textures and sprites, which are the silver surfers, and default unit cards, which are the peasants.
    Last edited by PapaRosario; June 26, 2012 at 05:53 PM.

  4. #4

    Default Re: no textures on foreign units

    True those textures don't exist because their texture entry doesn't exist in the BMDB file. One has to mod them so that the cheat works properly for that unit type.

  5. #5

    Default Re: no textures on foreign units

    Hi, I'm currently playing with Kingdom Grand Campaign Mod 4.2. I'm playing with Russia and I wanted to use Halberd Militia so I used create_units cheat. On the campaign map the units appeared normally (not as peasants or anything like that) so I thought it would work fine during the battle. But on the battle map, they became invisible and I could only see the shadow. I tried tweaking things using this link as a guide: http://www.twcenter.net/forums/showt...5#post11536965
    but every time I try to start up the game it gives me an error (while the screen becomes black so I can't even read what it says on the error box and I have to click "ok" otherwise nothing will happen). I will attach the files export_descr_units, and export_descr_buildings can any good modders please tell me what I did wrong? I'm not really good at modding things. And by the way there wasn't any file for Halberd Militia in the "ui" folder for unitcards.

  6. #6

    Default Re: no textures on foreign units

    Sorry, I later realized that there was a mistake in that post. I forgot to go back and edit it. I'll do that now. See that number 3 in that example code I gave which appears on a line by itself several times? That number is a count that tells the game how many faction entries there are for that unit. So if you stick in another faction entry, You have to increase the count by 1.

  7. #7

    Default Re: no textures on foreign units

    Hmm I added the count by 1 as you said but I'm still getting the same error? Here is what I did with modeldb. I'll bold the part I've inserted. I used the Polish textures and sprites.

    Spoiler Alert, click show to read: 
    15 halberd_militia
    1
    4
    62 unit_models/_Units/LN_Peasant_Padded/halberd_militia_lod0.mesh 121
    62 unit_models/_Units/LN_Peasant_Padded/halberd_militia_lod1.mesh 900
    62 unit_models/_Units/LN_Peasant_Padded/halberd_militia_lod2.mesh 2500
    62 unit_models/_Units/LN_Peasant_Padded/halberd_militia_lod3.mesh 6400
    7
    3 hre
    68 unit_models/_Units/LN_Peasant_Padded/textures/LN_peasant_hre.texture
    71 unit_models/_Units/LN_Peasant_Padded/textures/LN_peasant_normal.texture
    43 unit_sprites/hre_Halberd_Militia_sprite.spr
    12 papal_states
    77 unit_models/_Units/LN_Peasant_Padded/textures/LN_peasant_papal_states.texture
    71 unit_models/_Units/LN_Peasant_Padded/textures/LN_peasant_normal.texture
    52 unit_sprites/papal_states_Halberd_Militia_sprite.spr
    6 sicily
    71 unit_models/_Units/LN_Peasant_Padded/textures/LN_peasant_sicily.texture
    71 unit_models/_Units/LN_Peasant_Padded/textures/LN_peasant_normal.texture
    46 unit_sprites/sicily_Halberd_Militia_sprite.spr
    6 poland
    71 unit_models/_Units/LN_Peasant_Padded/textures/LN_peasant_poland.texture
    71 unit_models/_Units/LN_Peasant_Padded/textures/LN_peasant_normal.texture
    46 unit_sprites/poland_Halberd_Militia_sprite.spr
    7 hungary
    72 unit_models/_Units/LN_Peasant_Padded/textures/LN_peasant_hungary.texture
    71 unit_models/_Units/LN_Peasant_Padded/textures/LN_peasant_normal.texture
    47 unit_sprites/hungary_Halberd_Militia_sprite.spr`
    6 russia
    71 unit_models/_Units/LN_Peasant_Padded/textures/LN_peasant_poland.texture
    71 unit_models/_Units/LN_Peasant_Padded/textures/LN_peasant_normal.texture
    46 unit_sprites/poland_Halberd_Militia_sprite.spr

    5 slave
    71 unit_models/_Units/LN_Peasant_Padded/textures/LN_peasant_rebels.texture
    71 unit_models/_Units/LN_Peasant_Padded/textures/LN_peasant_normal.texture
    45 unit_sprites/slave_Halberd_Militia_sprite.spr
    7
    3 hre
    64 unit_models/AttachmentSets/Final European Light_hre_diff.texture
    64 unit_models/AttachmentSets/Final European Light_hre_norm.texture
    0
    12 papal_states
    73 unit_models/AttachmentSets/Final European Light_papal_states_diff.texture
    73 unit_models/AttachmentSets/Final European Light_papal_states_norm.texture
    0
    6 sicily
    67 unit_models/AttachmentSets/Final European Light_sicily_diff.texture
    67 unit_models/AttachmentSets/Final European Light_sicily_norm.texture
    0
    6 poland
    67 unit_models/AttachmentSets/Final European Light_poland_diff.texture
    67 unit_models/AttachmentSets/Final European Light_poland_norm.texture
    0
    7 hungary
    68 unit_models/AttachmentSets/Final European Light_hungary_diff.texture
    68 unit_models/AttachmentSets/Final European Light_hungary_norm.texture
    0
    6 russia
    67 unit_models/AttachmentSets/Final European Light_poland_diff.texture
    67 unit_models/AttachmentSets/Final European Light_poland_norm.texture

    0
    5 slave
    66 unit_models/AttachmentSets/Final European Light_slave_diff.texture
    66 unit_models/AttachmentSets/Final European Light_slave_norm.texture
    0
    1
    4 None
    20 MTW2_Halberd_Primary
    22 MTW2_Halberd_Secondary
    1
    17 MTW2_Pike_primary
    1
    17 MTW2_Pike_primary
    16 -0.090000004 0 0 -0.34999999 0.80000001 0.60000002
    19 halberd_militia_ug1
    1
    4
    66 unit_models/_Units/LN_Peasant_Padded/halberd_militia_ug1_lod0.mesh 121
    66 unit_models/_Units/LN_Peasant_Padded/halberd_militia_ug1_lod1.mesh 900
    66 unit_models/_Units/LN_Peasant_Padded/halberd_militia_ug1_lod2.mesh 2500
    66 unit_models/_Units/LN_Peasant_Padded/halberd_militia_ug1_lod3.mesh 6400
    7
    3 hre
    68 unit_models/_Units/LN_Peasant_Padded/textures/LN_peasant_hre.texture
    71 unit_models/_Units/LN_Peasant_Padded/textures/LN_peasant_normal.texture
    47 unit_sprites/hre_Halberd_Militia_ug1_sprite.spr
    12 papal_states
    77 unit_models/_Units/LN_Peasant_Padded/textures/LN_peasant_papal_states.texture
    71 unit_models/_Units/LN_Peasant_Padded/textures/LN_peasant_normal.texture
    56 unit_sprites/papal_states_Halberd_Militia_ug1_sprite.spr
    6 sicily
    71 unit_models/_Units/LN_Peasant_Padded/textures/LN_peasant_sicily.texture
    71 unit_models/_Units/LN_Peasant_Padded/textures/LN_peasant_normal.texture
    50 unit_sprites/sicily_Halberd_Militia_ug1_sprite.spr
    6 poland
    71 unit_models/_Units/LN_Peasant_Padded/textures/LN_peasant_poland.texture
    71 unit_models/_Units/LN_Peasant_Padded/textures/LN_peasant_normal.texture
    50 unit_sprites/poland_Halberd_Militia_ug1_sprite.spr
    7 hungary
    72 unit_models/_Units/LN_Peasant_Padded/textures/LN_peasant_hungary.texture
    71 unit_models/_Units/LN_Peasant_Padded/textures/LN_peasant_normal.texture
    51 unit_sprites/hungary_Halberd_Militia_ug1_sprite.spr
    6 russia
    71 unit_models/_Units/LN_Peasant_Padded/textures/LN_peasant_poland.texture
    71 unit_models/_Units/LN_Peasant_Padded/textures/LN_peasant_normal.texture
    50 unit_sprites/poland_Halberd_Militia_ug1_sprite.spr

    5 slave
    71 unit_models/_Units/LN_Peasant_Padded/textures/LN_peasant_rebels.texture
    71 unit_models/_Units/LN_Peasant_Padded/textures/LN_peasant_normal.texture
    49 unit_sprites/slave_Halberd_Militia_ug1_sprite.spr
    7
    3 hre
    64 unit_models/AttachmentSets/Final European Light_hre_diff.texture
    64 unit_models/AttachmentSets/Final European Light_hre_norm.texture
    0
    12 papal_states
    73 unit_models/AttachmentSets/Final European Light_papal_states_diff.texture
    73 unit_models/AttachmentSets/Final European Light_papal_states_norm.texture
    0
    6 sicily
    67 unit_models/AttachmentSets/Final European Light_sicily_diff.texture
    67 unit_models/AttachmentSets/Final European Light_sicily_norm.texture
    0
    6 poland
    67 unit_models/AttachmentSets/Final European Light_poland_diff.texture
    67 unit_models/AttachmentSets/Final European Light_poland_norm.texture
    0
    7 hungary
    68 unit_models/AttachmentSets/Final European Light_hungary_diff.texture
    68 unit_models/AttachmentSets/Final European Light_hungary_norm.texture
    0
    6 russia
    67 unit_models/AttachmentSets/Final European Light_poland_diff.texture
    67 unit_models/AttachmentSets/Final European Light_poland_norm.texture

    0
    5 slave
    66 unit_models/AttachmentSets/Final European Light_slave_diff.texture
    66 unit_models/AttachmentSets/Final European Light_slave_norm.texture
    0
    1
    4 None
    20 MTW2_Halberd_Primary
    22 MTW2_Halberd_Secondary
    1
    17 MTW2_Pike_primary
    1
    17 MTW2_Pike_primary
    16 -0.090000004 0 0 -0.34999999 0.80000001 0.60000002
    19 halberd_militia_ug2
    1
    4
    63 unit_models/_Units/LN_Lmail_Hmail/halberd_militia_ug2_lod0.mesh 121
    63 unit_models/_Units/LN_Lmail_Hmail/halberd_militia_ug2_lod1.mesh 900
    63 unit_models/_Units/LN_Lmail_Hmail/halberd_militia_ug2_lod2.mesh 2500
    63 unit_models/_Units/LN_Lmail_Hmail/halberd_militia_ug2_lod3.mesh 6400
    7
    3 hre
    69 unit_models/_Units/LN_Lmail_Hmail/textures/LN_Lmail_Hmail_hre.texture
    72 unit_models/_Units/LN_Lmail_Hmail/textures/LN_Lmail_Hmail_normal.texture
    47 unit_sprites/hre_Halberd_Militia_ug2_sprite.spr
    12 papal_states
    78 unit_models/_Units/LN_Lmail_Hmail/textures/LN_Lmail_Hmail_papal_states.texture
    72 unit_models/_Units/LN_Lmail_Hmail/textures/LN_Lmail_Hmail_normal.texture
    56 unit_sprites/papal_states_Halberd_Militia_ug2_sprite.spr
    6 sicily
    72 unit_models/_Units/LN_Lmail_Hmail/textures/LN_Lmail_Hmail_sicily.texture
    72 unit_models/_Units/LN_Lmail_Hmail/textures/LN_Lmail_Hmail_normal.texture
    50 unit_sprites/sicily_Halberd_Militia_ug2_sprite.spr
    6 poland
    72 unit_models/_Units/LN_Lmail_Hmail/textures/LN_Lmail_Hmail_poland.texture
    72 unit_models/_Units/LN_Lmail_Hmail/textures/LN_Lmail_Hmail_normal.texture
    50 unit_sprites/poland_Halberd_Militia_ug2_sprite.spr
    7 hungary
    73 unit_models/_Units/LN_Lmail_Hmail/textures/LN_Lmail_Hmail_hungary.texture
    72 unit_models/_Units/LN_Lmail_Hmail/textures/LN_Lmail_Hmail_normal.texture
    51 unit_sprites/hungary_Halberd_Militia_ug2_sprite.spr
    6 russia
    72 unit_models/_Units/LN_Lmail_Hmail/textures/LN_Lmail_Hmail_poland.texture
    72 unit_models/_Units/LN_Lmail_Hmail/textures/LN_Lmail_Hmail_normal.texture
    50 unit_sprites/poland_Halberd_Militia_ug2_sprite.spr

    5 slave
    72 unit_models/_Units/LN_Lmail_Hmail/textures/LN_Lmail_Hmail_rebels.texture
    72 unit_models/_Units/LN_Lmail_Hmail/textures/LN_Lmail_Hmail_normal.texture
    49 unit_sprites/slave_Halberd_Militia_ug2_sprite.spr
    7
    3 hre
    64 unit_models/AttachmentSets/Final European Light_hre_diff.texture
    64 unit_models/AttachmentSets/Final European Light_hre_norm.texture
    0
    12 papal_states
    73 unit_models/AttachmentSets/Final European Light_papal_states_diff.texture
    73 unit_models/AttachmentSets/Final European Light_papal_states_norm.texture
    0
    6 sicily
    67 unit_models/AttachmentSets/Final European Light_sicily_diff.texture
    67 unit_models/AttachmentSets/Final European Light_sicily_norm.texture
    0
    6 poland
    67 unit_models/AttachmentSets/Final European Light_poland_diff.texture
    67 unit_models/AttachmentSets/Final European Light_poland_norm.texture
    0
    7 hungary
    68 unit_models/AttachmentSets/Final European Light_hungary_diff.texture
    68 unit_models/AttachmentSets/Final European Light_hungary_norm.texture
    0
    6 russia
    67 unit_models/AttachmentSets/Final European Light_poland_diff.texture
    67 unit_models/AttachmentSets/Final European Light_poland_norm.texture

    0
    5 slave
    66 unit_models/AttachmentSets/Final European Light_slave_diff.texture
    66 unit_models/AttachmentSets/Final European Light_slave_norm.texture
    0
    1
    4 None
    20 MTW2_Halberd_Primary
    22 MTW2_Halberd_Secondary
    1
    17 MTW2_Pike_primary
    1
    17 MTW2_Pike_primary
    16 -0.090000004 0 0 -0.34999999 0.80000001 0.60000002
    19 halberd_militia_ug3
    1
    3
    69 unit_models/_Units/LN_3QPlate_HalfPlate/halberd_militia_ug3_lod0.mesh 121
    69 unit_models/_Units/LN_3QPlate_HalfPlate/halberd_militia_ug3_lod1.mesh 1225
    69 unit_models/_Units/LN_3QPlate_HalfPlate/halberd_militia_ug3_lod2.mesh 6400
    7
    3 hre
    78 unit_models/_Units/LN_3QPlate_HalfPlate/textures/mtw2_LN_halfplate_hre.texture
    81 unit_models/_Units/LN_3QPlate_HalfPlate/textures/mtw2_LN_halfplate_normal.texture
    47 unit_sprites/hre_Halberd_Militia_ug3_sprite.spr
    12 papal_states
    87 unit_models/_Units/LN_3QPlate_HalfPlate/textures/mtw2_LN_halfplate_papal_states.texture
    81 unit_models/_Units/LN_3QPlate_HalfPlate/textures/mtw2_LN_halfplate_normal.texture
    56 unit_sprites/papal_states_Halberd_Militia_ug3_sprite.spr
    6 sicily
    81 unit_models/_Units/LN_3QPlate_HalfPlate/textures/mtw2_LN_halfplate_sicily.texture
    81 unit_models/_Units/LN_3QPlate_HalfPlate/textures/mtw2_LN_halfplate_normal.texture
    50 unit_sprites/sicily_Halberd_Militia_ug3_sprite.spr
    6 poland
    81 unit_models/_Units/LN_3QPlate_HalfPlate/textures/mtw2_LN_halfplate_poland.texture
    81 unit_models/_Units/LN_3QPlate_HalfPlate/textures/mtw2_LN_halfplate_normal.texture
    50 unit_sprites/poland_Halberd_Militia_ug3_sprite.spr
    7 hungary
    82 unit_models/_Units/LN_3QPlate_HalfPlate/textures/mtw2_LN_halfplate_hungary.texture
    81 unit_models/_Units/LN_3QPlate_HalfPlate/textures/mtw2_LN_halfplate_normal.texture
    51 unit_sprites/hungary_Halberd_Militia_ug3_sprite.spr
    6 russia
    81 unit_models/_Units/LN_3QPlate_HalfPlate/textures/mtw2_LN_halfplate_poland.texture
    81 unit_models/_Units/LN_3QPlate_HalfPlate/textures/mtw2_LN_halfplate_normal.texture
    50 unit_sprites/poland_Halberd_Militia_ug3_sprite.spr

    5 slave
    81 unit_models/_Units/LN_3QPlate_HalfPlate/textures/mtw2_LN_halfplate_rebels.texture
    81 unit_models/_Units/LN_3QPlate_HalfPlate/textures/mtw2_LN_halfplate_normal.texture
    49 unit_sprites/slave_Halberd_Militia_ug3_sprite.spr
    7
    3 hre
    64 unit_models/AttachmentSets/Final European Light_hre_diff.texture
    64 unit_models/AttachmentSets/Final European Light_hre_norm.texture
    0
    12 papal_states
    73 unit_models/AttachmentSets/Final European Light_papal_states_diff.texture
    73 unit_models/AttachmentSets/Final European Light_papal_states_norm.texture
    0
    6 sicily
    67 unit_models/AttachmentSets/Final European Light_sicily_diff.texture
    67 unit_models/AttachmentSets/Final European Light_sicily_norm.texture
    0
    6 poland
    67 unit_models/AttachmentSets/Final European Light_poland_diff.texture
    67 unit_models/AttachmentSets/Final European Light_poland_norm.texture
    0
    7 hungary
    68 unit_models/AttachmentSets/Final European Light_hungary_diff.texture
    68 unit_models/AttachmentSets/Final European Light_hungary_norm.texture
    0
    6 russia
    67 unit_models/AttachmentSets/Final European Light_poland_diff.texture
    67 unit_models/AttachmentSets/Final European Light_poland_norm.texture

    0
    5 slave
    66 unit_models/AttachmentSets/Final European Light_slave_diff.texture
    66 unit_models/AttachmentSets/Final European Light_slave_norm.texture
    0
    1
    4 None
    20 MTW2_Halberd_Primary
    22 MTW2_Halberd_Secondary
    1
    17 MTW2_Pike_primary
    1
    17 MTW2_Pike_primary
    16 -0.090000004 0 0 -0.34999999 0.80000001 0.60000002

  8. #8

    Default Re: no textures on foreign units

    Not sure what to tell you. Do you have an error log set up? If yes, what does it say? Your BMDB entry looks fine.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •