Page 1 of 2 12 LastLast
Results 1 to 20 of 23

Thread: add unit of a faction to another one

  1. #1

    Default add unit of a faction to another one

    hy, noble Chevaliers
    scuse first about my poor english so im a french man...
    So, i try to add the hashishim unit for Timurids, than i made playable without bugs, but i dont succes this party : (think the problem is about mesh but i dont know what to do). Thanks for your help


    9 hashishim
    1 4
    68 unit_models/_Units/ME_Leather_Lamallae_Brigadine/hashishim_lod0.mesh 121
    68 unit_models/_Units/ME_Leather_Lamallae_Brigadine/hashishim_lod1.mesh 1225
    68 unit_models/_Units/ME_Leather_Lamallae_Brigadine/hashishim_lod2.mesh 6400
    68 unit_models/_Units/ME_Leather_Lamallae_Brigadine/hashishim_lod3.mesh 121
    4
    5 moors
    91 unit_models/_Units/ME_Leather_Lamallae_Brigadine/textures/me_leather_lamallea_moors.texture
    92 unit_models/_Units/ME_Leather_Lamallae_Brigadine/textures/me_leather_lamallea_normal.texture
    39 unit_sprites/moors_Hashishim_sprite.spr
    5 egypt
    91 unit_models/_Units/ME_Leather_Lamallae_Brigadine/textures/me_leather_lamallea_egypt.texture
    92 unit_models/_Units/ME_Leather_Lamallae_Brigadine/textures/me_leather_lamallea_normal.texture
    39 unit_sprites/egypt_Hashishim_sprite.spr
    5 turks
    91 unit_models/_Units/ME_Leather_Lamallae_Brigadine/textures/me_leather_lamallea_turks.texture
    92 unit_models/_Units/ME_Leather_Lamallae_Brigadine/textures/me_leather_lamallea_normal.texture
    39 unit_sprites/turks_Hashishim_sprite.spr
    8 timurids
    91 unit_models/_Units/ME_Leather_Lamallae_Brigadine/textures/me_leather_lamallea_timurids.texture
    92 unit_models/_Units/ME_Leather_Lamallae_Brigadine/textures/me_leather_lamallea_normal.texture
    39 unit_sprites/timurids_Hashishim_sprite.spr
    4
    5 moors
    66 unit_models/AttachmentSets/Final Middle Eastern_moors_diff.texture
    66 unit_models/AttachmentSets/Final Middle Eastern_moors_norm.texture 0
    5 egypt
    66 unit_models/AttachmentSets/Final Middle Eastern_egypt_diff.texture
    66 unit_models/AttachmentSets/Final Middle Eastern_egypt_norm.texture 0
    5 turks
    66 unit_models/AttachmentSets/Final Middle Eastern_turks_diff.texture
    66 unit_models/AttachmentSets/Final Middle Eastern_turks_norm.texture 0
    8 timurids
    66 unit_models/AttachmentSets/Final Middle Eastern_timurids_diff.texture
    66 unit_models/AttachmentSets/Final Middle Eastern_timurids_norm.texture 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
    Last edited by christophus; July 30, 2007 at 11:32 AM.

  2. #2

    Default Re: add unit of a faction to another one

    you need to change these 2 values to the number in red. I think if you dont the game wont even load. But start there first.


    9 hashishim
    1 4
    68 unit_models/_Units/ME_Leather_Lamallae_Brigadine/hashishim_lod0.mesh 121
    68 unit_models/_Units/ME_Leather_Lamallae_Brigadine/hashishim_lod1.mesh 1225
    68 unit_models/_Units/ME_Leather_Lamallae_Brigadine/hashishim_lod2.mesh 6400
    68 unit_models/_Units/ME_Leather_Lamallae_Brigadine/hashishim_lod3.mesh 121
    4
    5 moors
    91 unit_models/_Units/ME_Leather_Lamallae_Brigadine/textures/me_leather_lamallea_moors.texture
    92 unit_models/_Units/ME_Leather_Lamallae_Brigadine/textures/me_leather_lamallea_normal.texture
    39 unit_sprites/moors_Hashishim_sprite.spr
    5 egypt
    91 unit_models/_Units/ME_Leather_Lamallae_Brigadine/textures/me_leather_lamallea_egypt.texture
    92 unit_models/_Units/ME_Leather_Lamallae_Brigadine/textures/me_leather_lamallea_normal.texture
    39 unit_sprites/egypt_Hashishim_sprite.spr
    5 turks
    91 unit_models/_Units/ME_Leather_Lamallae_Brigadine/textures/me_leather_lamallea_turks.texture
    92 unit_models/_Units/ME_Leather_Lamallae_Brigadine/textures/me_leather_lamallea_normal.texture
    39 unit_sprites/turks_Hashishim_sprite.spr
    8 timurids
    94 unit_models/_Units/ME_Leather_Lamallae_Brigadine/textures/me_leather_lamallea_timurids.texture
    92 unit_models/_Units/ME_Leather_Lamallae_Brigadine/textures/me_leather_lamallea_normal.texture
    39 unit_sprites/timurids_Hashishim_sprite.spr
    4
    5 moors
    66 unit_models/AttachmentSets/Final Middle Eastern_moors_diff.texture
    66 unit_models/AttachmentSets/Final Middle Eastern_moors_norm.texture 0
    5 egypt
    66 unit_models/AttachmentSets/Final Middle Eastern_egypt_diff.texture
    66 unit_models/AttachmentSets/Final Middle Eastern_egypt_norm.texture 0
    5 turks
    66 unit_models/AttachmentSets/Final Middle Eastern_turks_diff.texture
    66 unit_models/AttachmentSets/Final Middle Eastern_turks_norm.texture 0
    8 timurids
    69 unit_models/AttachmentSets/Final Middle Eastern_timurids_diff.texture
    66 unit_models/AttachmentSets/Final Middle Eastern_timurids_norm.texture 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

  3. #3

    Default Re: add unit of a faction to another one

    thanks, i try this now

  4. #4

    Default Re: add unit of a faction to another one

    no, it dont load :d
    a precision, i duplicate and rename the 3 necessary files in unit_sprites, based on moors (or turks..) in the original data these :
    timurids_hashishim_sprite.spr
    timurids_hashishim_sprite_000.texture
    timurids_hashishim_sprite_001.texture

  5. #5

    Default Re: add unit of a faction to another one

    Hi christophus,

    I think your mistakes are in these lines:
    68 unit_models/_Units/ME_Leather_Lamallae_Brigadine/hashishim_lod0.mesh 121
    68 unit_models/_Units/ME_Leather_Lamallae_Brigadine/hashishim_lod1.mesh 1225
    68 unit_models/_Units/ME_Leather_Lamallae_Brigadine/hashishim_lod2.mesh 6400
    68 unit_models/_Units/ME_Leather_Lamallae_Brigadine/hashishim_lod3.mesh 121
    should be:
    68 unit_models/_Units/ME_Leather_Lamallae_Brigadine/hashishim_lod0.mesh 121
    68 unit_models/_Units/ME_Leather_Lamallae_Brigadine/hashishim_lod1.mesh 900
    68 unit_models/_Units/ME_Leather_Lamallae_Brigadine/hashishim_lod2.mesh 2500
    68 unit_models/_Units/ME_Leather_Lamallae_Brigadine/hashishim_lod3.mesh 6400

    I hope this helps... Otherwise, check if all numbers before evey line are correct.

    EDIT: forget what i said above, I have just seen there is actually no "lod3" for hashishim, therfore the lines should be :
    9 hashishim
    1 3
    68 unit_models/_Units/ME_Leather_Lamallae_Brigadine/hashishim_lod0.mesh 121
    68 unit_models/_Units/ME_Leather_Lamallae_Brigadine/hashishim_lod1.mesh 1225
    68 unit_models/_Units/ME_Leather_Lamallae_Brigadine/hashishim_lod2.mesh 6400

    also check the numbers, before your "timurid" lines. They must be esactly the number of letters and numbers in this line.
    Last edited by King Kong; July 30, 2007 at 11:55 AM.

    Winner of 'Favorite M2TW Mod' and 'Favorite M2TW Modder' Award 2007 & 2008

  6. #6

    Default Re: add unit of a faction to another one

    thx a lot KK for your participation, and i must say to you a great great BRAVO for you very good job on this mod ! so i'll verify the syntax of line now..
    Thx a lot

  7. #7

    Default Re: add unit of a faction to another one

    think there s a synthax problem on it, but i dont have python on my computer... do someone have ?

  8. #8

    Default Re: add unit of a faction to another one

    think there s a synthax problem on it, but i dont have python on my computer... do someone have ?
    sorry for doubble post, server bug it means to
    Last edited by christophus; July 30, 2007 at 12:27 PM.

  9. #9

    Default Re: add unit of a faction to another one

    thx a lot KK for your participation, and i must say to you a great great BRAVO for you very good job on this mod ! so i'll verify the syntax of line now..
    Thanks! No problem..
    and after a quick look, here are some other errors (should be what is marked red):

    8 timurids
    94 unit_models/_Units/ME_Leather_Lamallae_Brigadine/textures/me_leather_lamallea_timurids.texture
    92 unit_models/_Units/ME_Leather_Lamallae_Brigadine/textures/me_leather_lamallea_normal.texture
    39 unit_sprites/timurids_Hashishim_sprite.spr
    4
    ...
    8 timurids
    69 unit_models/AttachmentSets/Final Middle Eastern_timurids_diff.texture
    69 unit_models/AttachmentSets/Final Middle Eastern_timurids_norm.texture 0

    Winner of 'Favorite M2TW Mod' and 'Favorite M2TW Modder' Award 2007 & 2008

  10. #10

    Default Re: add unit of a faction to another one

    it dont start... do i need to duplicate the sprite of one and rename it like timurids_Hashishim_sprite.spr ? from turks_Hashishim_sprite.spr for example ?

    so its always start with the original battle_models...

  11. #11

    Default Re: add unit of a faction to another one

    with or without copy & rename the 3 sprite files it dont start.. im no lucky !

  12. #12

    Default Re: add unit of a faction to another one

    its fine now, juste here
    94 unit_models/_Units/ME_Leather_Lamallae_Brigadine/textures/me_leather_lamallea_timurids.texture
    92 unit_models/_Units/ME_Leather_Lamallae_Brigadine/textures/me_leather_lamallea_normal.texture
    39 unit_sprites/timurids_Hashishim_sprite.spr
    is 42 not 39
    start to test it now,
    thx to all

  13. #13
    No, that isn't a banana
    Join Date
    Aug 2004
    Location
    Ontario, Canada
    Posts
    5,217

    Default Re: add unit of a faction to another one

    your character count for the sprites is off...

    Using the turkish sprite, I got the following code to work:

    9 hashishim
    1 3
    68 unit_models/_Units/ME_Leather_Lamallae_Brigadine/hashishim_lod0.mesh 121
    68 unit_models/_Units/ME_Leather_Lamallae_Brigadine/hashishim_lod1.mesh 1225
    68 unit_models/_Units/ME_Leather_Lamallae_Brigadine/hashishim_lod2.mesh 6400
    4
    8 timurids
    94 unit_models/_Units/ME_Leather_Lamallae_Brigadine/textures/me_leather_lamallea_timurids.texture
    92 unit_models/_Units/ME_Leather_Lamallae_Brigadine/textures/me_leather_lamallea_normal.texture
    39 unit_sprites/turks_Hashishim_sprite.spr
    5 moors
    91 unit_models/_Units/ME_Leather_Lamallae_Brigadine/textures/me_leather_lamallea_moors.texture
    92 unit_models/_Units/ME_Leather_Lamallae_Brigadine/textures/me_leather_lamallea_normal.texture
    39 unit_sprites/moors_Hashishim_sprite.spr
    5 egypt
    91 unit_models/_Units/ME_Leather_Lamallae_Brigadine/textures/me_leather_lamallea_egypt.texture
    92 unit_models/_Units/ME_Leather_Lamallae_Brigadine/textures/me_leather_lamallea_normal.texture
    39 unit_sprites/egypt_Hashishim_sprite.spr
    5 turks
    91 unit_models/_Units/ME_Leather_Lamallae_Brigadine/textures/me_leather_lamallea_turks.texture
    92 unit_models/_Units/ME_Leather_Lamallae_Brigadine/textures/me_leather_lamallea_normal.texture
    39 unit_sprites/turks_Hashishim_sprite.spr
    4
    8 timurids
    69 unit_models/AttachmentSets/Final Middle Eastern_timurids_diff.texture
    69 unit_models/AttachmentSets/Final Middle Eastern_timurids_norm.texture 0
    5 moors
    66 unit_models/AttachmentSets/Final Middle Eastern_moors_diff.texture
    66 unit_models/AttachmentSets/Final Middle Eastern_moors_norm.texture 0
    5 egypt
    66 unit_models/AttachmentSets/Final Middle Eastern_egypt_diff.texture
    66 unit_models/AttachmentSets/Final Middle Eastern_egypt_norm.texture 0
    5 turks
    66 unit_models/AttachmentSets/Final Middle Eastern_turks_diff.texture
    66 unit_models/AttachmentSets/Final Middle Eastern_turks_norm.texture 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

    EDIT - too slow...looks like you figured it out.

  14. #14

    Default Re: add unit of a faction to another one

    i cant find what you change ?
    yau talk about duplicate the sprite found in C:\Program Files\SEGA\Medieval II Total War\data\unit_sprites ?
    or you just modify something to the battle_models.modeldb ?
    Last edited by christophus; July 30, 2007 at 01:20 PM.

  15. #15

    Default Re: add unit of a faction to another one

    oh sorry, i find what you modify, thx

  16. #16

    Default Re: add unit of a faction to another one

    Yeah !! all works fine now, i have just use the unpacker tool after installing SS4, so forgot tot remove 2 files, and modify the shortcut and IT S WORK VERY FINE NOW !!! thx for all
    Knight Templar can be frighten now !!!
    Last edited by christophus; July 30, 2007 at 01:47 PM.

  17. #17

    Default Re: add unit of a faction to another one

    that's strange, o____o, it shouldn't be able to run, wait a min, is there even a timurid texture anyways??? i personally just used a texture from another faction, like the halbert militia from timurids, i gave them to mongols (cause they are the best and timurids does not deserve them, ), anyways, i just gave them the timurids texture.
    so i don't get it, do they have textures for every factions??? or timurids just have it for hashashim?

    +rep for me if you agree with me , i might give it right back to you

  18. #18

    Default Re: add unit of a faction to another one

    i use one of islamic faction, like Turks, so it works fine with Turks one.
    I try to copy & rename one of this but its dont necessary (thanks to OTZ)

    8 timurids
    94 unit_models/_Units/ME_Leather_Lamallae_Brigadine/textures/me_leather_lamallea_timurids.texture
    92 unit_models/_Units/ME_Leather_Lamallae_Brigadine/textures/me_leather_lamallea_normal.texture
    39 unit_sprites/turks_Hashishim_sprite.spr
    Last edited by christophus; July 30, 2007 at 06:14 PM.

  19. #19

    Default Re: add unit of a faction to another one

    but but... O_O
    i meant this
    94 unit_models/_Units/ME_Leather_Lamallae_Brigadine/textures/me_leather_lamallea_timurids.texture
    92 unit_models/_Units/ME_Leather_Lamallae_Brigadine/textures/me_leather_lamallea_normal.texture

    +rep for me if you agree with me , i might give it right back to you

  20. #20
    No, that isn't a banana
    Join Date
    Aug 2004
    Location
    Ontario, Canada
    Posts
    5,217

    Default Re: add unit of a faction to another one

    that texture isn't unit specific, so in this case, it's the timurid texture being applied to the Hashishim mesh/model

Page 1 of 2 12 LastLast

Posting Permissions

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