Page 9 of 34 FirstFirst 12345678910111213141516171819 ... LastLast
Results 161 to 180 of 689

Thread: How to add a new unit into game

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Heathen Storm's Avatar Where's my axe?
    Join Date
    Jun 2010
    Location
    Vinland
    Posts
    2,895

    Default Re: How to add a new unit into game

    Quote Originally Posted by Rusery View Post
    Hey guys, i'm ripping my hair out here trying to figure out whats up with my entries and i am wonder why in the world its not working. I am attempting to add a new unit to the game from a modders previous mod that he designed for 1.2.

    Now before you freak out on me for wanting to move stuff from 1.2 to 2.0 but i have examined the files and found no differences between the types of entries made to get units to work in game. But maybe i'm wrong. Here are my modeldb entry and my desc_unit.txt files in hopes to find any kind of help on this subject.

    Deathbringer modeldb entry:
    Spoiler Alert, click show to read: 
    12 Deathbringer
    1 4
    67 unit_models/_Units/ES_Greek_Greek_Heavy/Uruk_Deathbringer_lod0.mesh 121
    67 unit_models/_Units/ES_Greek_Greek_Heavy/Uruk_Deathbringer_lod0.mesh 900
    67 unit_models/_Units/ES_Greek_Greek_Heavy/Uruk_Deathbringer_lod0.mesh 2500
    67 unit_models/_Units/ES_Greek_Greek_Heavy/Uruk_Deathbringer_lod0.mesh 6400
    1
    6 france
    70 unit_models/_units/ES_Greek_Greek_Heavy/textures/Heavy_IS_Diff.texture
    70 unit_models/_units/ES_Greek_Greek_Heavy/textures/Heavy_IS_Norm.texture
    46 unit_sprites/france_Uruk_Berserkers_sprite.spr
    1
    6 france
    70 unit_models/_units/ES_Greek_Greek_Heavy/textures/Heavy_weapons.texture
    75 unit_models/_units/ES_Greek_Greek_Heavy/textures/Heavy_weapons_norm.texture 0
    1
    4 None
    16 MTW2_2HSwordsman 0
    1
    24 MTW2_2HSwordsman_Primary 0
    16 -0.090000004 0 0 -0.34999999 0.80000001 0.60000002



    export_desc_units.txt file entry
    Spoiler Alert, click show to read: 
    type Deathbringer
    dictionary Deathbringer ; Berserkers
    category infantry
    class heavy
    voice_type Heavy
    banner faction main_infantry
    banner holy crusade
    soldier Deathbringer, 30, 0, 8.0
    officer isengard_captain_early_flag
    attributes sea_faring, hide_forest, very_hardy, can_withdraw, frighten_foot, berserker, free_upkeep_unit
    formation 1.5, 1.5, 3.0, 3.0, 5, square
    stat_health 3, 0
    stat_pri 17, 13, no, 0, 0, melee, melee_blade, slashing, sword, 0, 1
    stat_pri_attr no
    stat_sec 0, 0, no, 0, 0, no, melee_simple, blunt, none, 25, 1
    stat_sec_attr no
    stat_pri_armour 8, 4, 0, metal
    stat_sec_armour 0, 0, flesh
    stat_heat 2
    stat_ground 1, -1, 2, 1
    stat_mental 70, impetuous, trained
    stat_charge_dist 15
    stat_fire_delay 0
    stat_food 60, 300
    stat_cost 1, 790, 250, 75, 75, 640, 4, 100
    armour_ug_levels 0
    armour_ug_models Deathbringer
    ownership france
    era 0 france
    era 1 france
    era 2 france
    recruit_priority_offset 10
    I believe I can actually help you with this.
    In the attributes section of the EDU, you have "berserker". That is not a supported attribute. So delete the red part here:
    Code:
    attributes sea_faring, hide_forest, very_hardy, can_withdraw, frighten_foot, berserker, free_upkeep_unit
    In place of it, you could add "warcry" to it, and it will give it the warcry ability

    Proud mod leader, modeller and public relations officer of Heiđinn Veđr: Total War


  2. #2

    Default Re: How to add a new unit into game

    I can try that but are you sure that line can cause a crash?
    Is everything ok aside from that one entry?

    Edit, i cleared that one line and it got me to the start screen instead of automatically crashing but it still crashed and this time no errors. i deleted the entire entry in export_desc_unit.txt and i still got the same crash... therefore im thinking the problem is in this code

    12 Deathbringer
    1 4
    67 unit_models/_Units/ES_Greek_Greek_Heavy/Uruk_Deathbringer_lod0.mesh 121
    67 unit_models/_Units/ES_Greek_Greek_Heavy/Uruk_Deathbringer_lod0.mesh 900
    67 unit_models/_Units/ES_Greek_Greek_Heavy/Uruk_Deathbringer_lod0.mesh 2500
    67 unit_models/_Units/ES_Greek_Greek_Heavy/Uruk_Deathbringer_lod0.mesh 6400
    1
    6 france
    70 unit_models/_units/ES_Greek_Greek_Heavy/textures/Heavy_IS_Diff.texture
    70 unit_models/_units/ES_Greek_Greek_Heavy/textures/Heavy_IS_Norm.texture
    46 unit_sprites/france_Uruk_Berserkers_sprite.spr
    1
    6 france
    70 unit_models/_units/ES_Greek_Greek_Heavy/textures/Heavy_weapons.texture
    75 unit_models/_units/ES_Greek_Greek_Heavy/textures/Heavy_weapons_norm.texture 0
    1
    4 None
    16 MTW2_2HSwordsman 0
    1
    24 MTW2_2HSwordsman_Primary 0
    16 -0.090000004 0 0 -0.34999999 0.80000001 0.60000002
    Last edited by Rusery; October 09, 2010 at 03:10 AM.

  3. #3
    /|\/|\/|\/|\/|\/|\/
    Join Date
    Jun 2005
    Posts
    10,770

    Default Re: How to add a new unit into game

    Rusery, you seem to be talking as though TA:TW is vanilla, it's a bit confusing. I mean... What is 1.2? and 2.0? Uh?! It's only because I am psychic (and guessed from the unit name) that I have the slightest clue what you are talking about

    Also I don't know when it is crashing or what it says in the log, so I can't really work out what the problem might be
    Last edited by Taiji; October 09, 2010 at 05:48 AM.

  4. #4

    Default Re: How to add a new unit into game

    The game being vanilla shouldn't matter as i am duplicating code and only changing pathways. I'm trying to just add a unit to 2.0 (these are versions of the program i am using with Third Age: Total war) and failing miserably. I am however using older texture and mesh files that were made for 1.2. Now i'm not sure if that makes any difference or not and that is why im here. I just want to know if something with my entry is wrong, or if i am using old files. In theory its not too difficult to add a new unit but i just can't seem to do it.
    Last edited by Rusery; October 09, 2010 at 10:36 AM.

  5. #5
    Heathen Storm's Avatar Where's my axe?
    Join Date
    Jun 2010
    Location
    Vinland
    Posts
    2,895

    Default Re: How to add a new unit into game

    Quote Originally Posted by Rusery View Post
    The game being vanilla shouldn't matter as i am duplicating code and only changing pathways. I'm trying to just add a unit to 2.0 (these are versions of the program i am using with Third Age: Total war) and failing miserably. I am however using older texture and mesh files that were made for 1.2. Now i'm not sure if that makes any difference or not and that is why im here. I just want to know if something with my entry is wrong, or if i am using old files. In theory its not too difficult to add a new unit but i just can't seem to do it.
    Did you also add the number at the top of the screen for serialization?
    example: 22 serialization::archive 3 0 0 0 0 779 0 0 <- add one to the red number
    When you got it to the screen where it crashes with no error, that means that there is a problem in your EDB. So I will take another look in it for ya.

    Proud mod leader, modeller and public relations officer of Heiđinn Veđr: Total War


  6. #6
    /|\/|\/|\/|\/|\/|\/
    Join Date
    Jun 2005
    Posts
    10,770

    Default Re: How to add a new unit into game

    I need to know when it's crashing (splash screen?, in campaign?, in battle?, etc.), and what it says in the log, to be able to help.
    Last edited by Taiji; October 09, 2010 at 11:30 AM.

  7. #7
    Gigantus's Avatar I am not special - I am a limited edition.
    Moderator Emeritus Administrator Emeritus

    Join Date
    Aug 2006
    Location
    Goa - India
    Posts
    52,681
    Blog Entries
    35

    Default Re: How to add a new unit into game

    Did it occur to you to check in the log (you didn't mention anything about it)?
    The older mesh and texture files should work properly as long as they are referenced properly in the modeldb file.
    Did you add a number to the count in the first line of the modeldb file?

    Edit: looks I might have been late - helps to read until the last post










  8. #8

    Default Re: How to add a new unit into game

    Hi guys, i am playing SS6.3 and i want to change the model of the khassaki unit, and i want it looks like in Kingdoms. I have made changes as follows but when I run the game the textures of kingdoms don´t work.

    Here is my unit:

    battle_models.modeldb:

    8 khassaki
    1 4
    62 unit_models/_Units/ME_Mail_Plate_Hvy_Mplate/khassaki_lod0.mesh 121
    62 unit_models/_Units/ME_Mail_Plate_Hvy_Mplate/khassaki_lod1.mesh 900
    62 unit_models/_Units/ME_Mail_Plate_Hvy_Mplate/khassaki_lod2.mesh 2500
    62 unit_models/_Units/ME_Mail_Plate_Hvy_Mplate/khassaki_lod3.mesh 6400
    2
    5 egypt
    92 unit_models/_Units/ME_Mail_Plate_Hvy_Mplate/textures/ME_super_heavy_Mail_Plate_egypt.texture
    93 unit_models/_Units/ME_Mail_Plate_Hvy_Mplate/textures/ME_super_heavy_Mail_Plate_normal.texture
    38 unit_sprites/egypt_Khassaki_sprite.spr
    7 kwarezm
    95 unit_models/_Units/ME_Mail_Plate_Hvy_Mplate/textures/ME_super_heavy_Mail_Plate2_kwarezm.texture
    94 unit_models/_Units/ME_Mail_Plate_Hvy_Mplate/textures/ME_super_heavy_Mail_Plate2_normal.texture
    38 unit_sprites/egypt_Khassaki_sprite.spr
    2
    5 egypt
    66 unit_models/AttachmentSets/Final Middle Eastern_egypt_diff.texture
    66 unit_models/AttachmentSets/Final Middle Eastern_egypt_norm.texture 0
    7 kwarezm
    68 unit_models/AttachmentSets/Final Middle Eastern_kwarezm_diff.texture
    66 unit_models/AttachmentSets/Final Middle Eastern_egypt_norm.texture 0
    1
    5 Horse 13
    MTW2_HR_Lance 13
    MTW2_HR_Sword 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
    12 khassaki_ug1
    1 4
    62 unit_models/_Units/ME_Mail_Plate_Hvy_Mplate/khassaki_lod0.mesh 121
    62 unit_models/_Units/ME_Mail_Plate_Hvy_Mplate/khassaki_lod1.mesh 900
    62 unit_models/_Units/ME_Mail_Plate_Hvy_Mplate/khassaki_lod2.mesh 2500
    62 unit_models/_Units/ME_Mail_Plate_Hvy_Mplate/khassaki_lod3.mesh 6400
    2
    5 egypt
    92 unit_models/_Units/ME_Mail_Plate_Hvy_Mplate/textures/ME_super_heavy_Mail_Plate_egypt.texture
    93 unit_models/_Units/ME_Mail_Plate_Hvy_Mplate/textures/ME_super_heavy_Mail_Plate_normal.texture
    38 unit_sprites/egypt_Khassaki_sprite.spr
    7 kwarezm
    95 unit_models/_Units/ME_Mail_Plate_Hvy_Mplate/textures/ME_super_heavy_Mail_Plate2_kwarezm.texture
    94 unit_models/_Units/ME_Mail_Plate_Hvy_Mplate/textures/ME_super_heavy_Mail_Plate2_normal.texture
    38 unit_sprites/egypt_Khassaki_sprite.spr
    2
    5 egypt
    66 unit_models/AttachmentSets/Final Middle Eastern_egypt_diff.texture
    66 unit_models/AttachmentSets/Final Middle Eastern_egypt_norm.texture 0
    7 kwarezm
    68 unit_models/AttachmentSets/Final Middle Eastern_kwarezm_diff.texture
    66 unit_models/AttachmentSets/Final Middle Eastern_egypt_norm.texture 0
    1
    5 Horse
    13 MTW2_HR_Lance
    13 MTW2_HR_Sword 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
    export_descr_unit:

    type Khassaki
    dictionary Khassaki ; Khassaki, lp
    category cavalry
    class heavy
    voice_type Heavy
    banner faction main_cavalry
    banner holy crusade_cavalry
    soldier Khassaki, 32, 0, 1
    officer me_bodyguard
    officer eastern_captain_early_flag
    mount eastern armoured horse
    mount_effect elephant -4, camel -4
    attributes sea_faring, hide_forest, hardy, can_withdraw, can_formed_charge, knight
    move_speed_mod 0.9
    formation 2, 4.4, 3, 6, 3, square, wedge
    stat_health 1, 3
    stat_pri 7, 12, no, 0, 0, melee, melee_blade, piercing, spear, 45, 1
    ;stat_pri_ex 0, 0, 0
    stat_pri_attr no
    stat_sec 11, 4, no, 0, 0, melee, melee_blade, piercing, sword, 15, 1
    ;stat_sec_ex 0, 0, 0
    stat_sec_attr no
    stat_pri_armour 11, 8, 3, metal ; ; GUARD
    ;stat_armour_ex 6, 0, 0, 0, 5, 6, 4, metal
    stat_sec_armour 0, 0, flesh
    stat_heat 2
    stat_ground -3, -1, -6, -4
    stat_mental 18, disciplined, highly_trained
    stat_charge_dist 30
    stat_fire_delay 0
    stat_food 60, 300
    stat_cost 8, 2460, 535, 120, 95, 1925, 4, 180
    armour_ug_levels 11, 23
    armour_ug_models Khassaki, Khassaki
    ownership egypt
    era 0 egypt
    era 1 egypt
    recruit_priority_offset 55
    Anyone know what is wrong?
    Last edited by -=Psych0=-; October 11, 2010 at 05:25 AM.

  9. #9
    Gigantus's Avatar I am not special - I am a limited edition.
    Moderator Emeritus Administrator Emeritus

    Join Date
    Aug 2006
    Location
    Goa - India
    Posts
    52,681
    Blog Entries
    35

    Default Re: How to add a new unit into game

    Do those texture files exist or did just change the entry in the modeldb file:
    unit_models/_Units/ME_Mail_Plate_Hvy_Mplate/textures/ME_super_heavy_Mail_Plate2_kwarezm.texture
    unit_models/AttachmentSets/Final Middle Eastern_kwarezm_diff.texture
    and you might want to give ownership of the unit to the kwarezm faction as well in the EDU:
    ownership egypt, kwarezm










  10. #10

    Default Re: How to add a new unit into game

    Sorry, i do not make myself clear. I want that the KHASSAKI UNIT OF EGYPT looks like in Kingdoms. The KHASSAKI UNIT is included in SS6.3, so i think i only need to change the model. I suppose i dont need to include the unit again.

    Pd: i have made the changes you told me but the game don´t run.
    Thanks you very much.

  11. #11
    Gigantus's Avatar I am not special - I am a limited edition.
    Moderator Emeritus Administrator Emeritus

    Join Date
    Aug 2006
    Location
    Goa - India
    Posts
    52,681
    Blog Entries
    35

    Default Re: How to add a new unit into game

    We are having a communication difficulty here: There is no Khassaki unit in any of the default kingdoms campaigns.
    So what exactly is it that you want to do?

    And you still didn't tell me if you have checked the log......










  12. #12

    Default Re: How to add a new unit into game

    There is a khassaki unit in:
    Medieval 2 Total War\mods\crusades\data\unit_models\_units\me_mail_plate_hvy_mplate.
    Medieval 2 Total War\mods\crusades\data\unit_sprites.
    Medieval 2 Total War\mods\crusades\data\export_descr_unit.txt

    About what log are you talking about?
    I am sorry for all the inconvenient.

    Thanks

  13. #13
    Gigantus's Avatar I am not special - I am a limited edition.
    Moderator Emeritus Administrator Emeritus

    Join Date
    Aug 2006
    Location
    Goa - India
    Posts
    52,681
    Blog Entries
    35

    Default Re: How to add a new unit into game

    My bad, haven't played crusades for a very long while. Underneath the original modeldb entry from crusades:
    Spoiler Alert, click show to read: 
    Code:
    8 khassaki 
    1 4 
    62 unit_models/_Units/ME_Mail_Plate_Hvy_Mplate/khassaki_lod0.mesh 121 
    62 unit_models/_Units/ME_Mail_Plate_Hvy_Mplate/khassaki_lod1.mesh 900 
    62 unit_models/_Units/ME_Mail_Plate_Hvy_Mplate/khassaki_lod2.mesh 2500 
    62 unit_models/_Units/ME_Mail_Plate_Hvy_Mplate/khassaki_lod3.mesh 6400 
    1 
    5 egypt 
    92 unit_models/_Units/ME_Mail_Plate_Hvy_Mplate/textures/ME_super_heavy_Mail_Plate_egypt.texture 
    93 unit_models/_Units/ME_Mail_Plate_Hvy_Mplate/textures/ME_super_heavy_Mail_Plate_normal.texture 
    38 unit_sprites/egypt_Khassaki_sprite.spr 
    1 
    5 egypt 
    66 unit_models/AttachmentSets/Final Middle Eastern_egypt_diff.texture 
    66 unit_models/AttachmentSets/Final Middle Eastern_egypt_norm.texture 0  
    1 
    5 Horse 
    13 MTW2_HR_Lance 
    13 MTW2_HR_Sword 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

    For the unit to look the same in your mod as it looked in kingdoms, all that should be necessary is to copy the texture(s) from crusades into your mod.

    1. Is that all that you have done?
    2. or did you create the complete entry yourself?

    Can you make a screenshot?
    To find the correct log, have a look in the mod's CFG file for an entry similar to this:
    [log]
    to = logs/M2TW.system.log.txt
    level = * trace
    #level = * error
    file = game.script.* logs/pkh.script2.log.txt
    file = game.script* logs/pkh.script.log.txt
    file = game.script logs/pkh.scriptoutput.log.txt
    file = ai.ltgd logs/pkh.ai.log.txt
    The entry in red will give the path and name of the log. If it is too big, simply compress it and attach.










  14. #14

    Default Re: How to add a new unit into game

    Ok, i am going to tell you all i have done:
    1) i go into Medieval II Total War\mods\crusades\data\unit_sprites and i copy this files:
    egypt_khassaki_sprite.spr
    egypt_khassaki_sprite_000.texture
    egypt_khassaki_sprite_001.texture
    and i have copied it here: Medieval II Total War\mods\SS6.3\data\unit_sprites.
    2) i go into Medieval II Total War\mods\crusades\data\unit_models\_units\me_mail_plate_hvy_mplate and i copy this files:
    khassaki_lod0.mesh
    khassaki_lod1.mesh
    khassaki_lod2.mesh
    khassaki_lod3.mesh
    and i have copied it here Medieval II Total War\mods\SS6.3\data\unit_models\_units\me_mail_plate_hvy_mplate.
    3) Here is the original file battle_models.modeldb of Kingdoms Crusades:
    8 khassaki
    1 4
    62 unit_models/_Units/ME_Mail_Plate_Hvy_Mplate/khassaki_lod0.mesh 121
    62 unit_models/_Units/ME_Mail_Plate_Hvy_Mplate/khassaki_lod1.mesh 900
    62 unit_models/_Units/ME_Mail_Plate_Hvy_Mplate/khassaki_lod2.mesh 2500
    62 unit_models/_Units/ME_Mail_Plate_Hvy_Mplate/khassaki_lod3.mesh 6400
    1
    5 egypt
    92 unit_models/_Units/ME_Mail_Plate_Hvy_Mplate/textures/ME_super_heavy_Mail_Plate_egypt.texture
    93 unit_models/_Units/ME_Mail_Plate_Hvy_Mplate/textures/ME_super_heavy_Mail_Plate_normal.texture
    38 unit_sprites/egypt_Khassaki_sprite.spr
    1
    5 egypt
    66 unit_models/AttachmentSets/Final Middle Eastern_egypt_diff.texture
    66 unit_models/AttachmentSets/Final Middle Eastern_egypt_norm.texture 0
    1
    5 Horse
    13 MTW2_HR_Lance
    13 MTW2_HR_Sword 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
    Here is the original file battle_models.modeldb of SS6.3:
    8 khassaki
    1 4
    62 unit_models/_Units/ME_Mail_Plate_Hvy_Mplate/khassaki_lod0.mesh 121
    62 unit_models/_Units/ME_Mail_Plate_Hvy_Mplate/khassaki_lod1.mesh 900
    62 unit_models/_Units/ME_Mail_Plate_Hvy_Mplate/khassaki_lod2.mesh 2500
    62 unit_models/_Units/ME_Mail_Plate_Hvy_Mplate/khassaki_lod3.mesh 6400
    2
    5 egypt
    92 unit_models/_Units/ME_Mail_Plate_Hvy_Mplate/textures/ME_super_heavy_Mail_Plate_egypt.texture
    93 unit_models/_Units/ME_Mail_Plate_Hvy_Mplate/textures/ME_super_heavy_Mail_Plate_normal.texture
    45 unit_sprites/timurids_Khan's_Guard_sprite.spr
    7 kwarezm
    95 unit_models/_Units/ME_Mail_Plate_Hvy_Mplate/textures/ME_super_heavy_Mail_Plate2_kwarezm.texture
    94 unit_models/_Units/ME_Mail_Plate_Hvy_Mplate/textures/ME_super_heavy_Mail_Plate2_normal.texture
    38 unit_sprites/egypt_Khassaki_sprite.spr
    2
    5 egypt
    66 unit_models/AttachmentSets/Final Middle Eastern_egypt_diff.texture
    66 unit_models/AttachmentSets/Final Middle Eastern_egypt_norm.texture 0
    7 kwarezm
    68 unit_models/AttachmentSets/Final Middle Eastern_kwarezm_diff.texture
    66 unit_models/AttachmentSets/Final Middle Eastern_egypt_norm.texture 0
    1
    5 Horse
    13 MTW2_HR_Lance
    13 MTW2_HR_Sword 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
    12 khassaki_ug1
    1 4
    62 unit_models/_Units/ME_Mail_Plate_Hvy_Mplate/khassaki_lod0.mesh 121
    62 unit_models/_Units/ME_Mail_Plate_Hvy_Mplate/khassaki_lod1.mesh 900
    62 unit_models/_Units/ME_Mail_Plate_Hvy_Mplate/khassaki_lod2.mesh 2500
    62 unit_models/_Units/ME_Mail_Plate_Hvy_Mplate/khassaki_lod3.mesh 6400
    2
    5 egypt
    92 unit_models/_Units/ME_Mail_Plate_Hvy_Mplate/textures/ME_super_heavy_Mail_Plate_egypt.texture
    93 unit_models/_Units/ME_Mail_Plate_Hvy_Mplate/textures/ME_super_heavy_Mail_Plate_normal.texture
    45 unit_sprites/timurids_Khan's_Guard_sprite.spr
    7 kwarezm
    95 unit_models/_Units/ME_Mail_Plate_Hvy_Mplate/textures/ME_super_heavy_Mail_Plate2_kwarezm.texture
    94 unit_models/_Units/ME_Mail_Plate_Hvy_Mplate/textures/ME_super_heavy_Mail_Plate2_normal.texture
    38 unit_sprites/egypt_Khassaki_sprite.spr
    2
    5 egypt
    66 unit_models/AttachmentSets/Final Middle Eastern_egypt_diff.texture
    66 unit_models/AttachmentSets/Final Middle Eastern_egypt_norm.texture 0
    7 kwarezm
    68 unit_models/AttachmentSets/Final Middle Eastern_kwarezm_diff.texture
    66 unit_models/AttachmentSets/Final Middle Eastern_egypt_norm.texture 0
    1
    5 Horse
    13 MTW2_HR_Lance
    13 MTW2_HR_Sword 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
    And here is the file battle_models.modeldb of SS6.3 as i have change: (The changes are in red)
    8 khassaki
    1 4
    62 unit_models/_Units/ME_Mail_Plate_Hvy_Mplate/khassaki_lod0.mesh 121
    62 unit_models/_Units/ME_Mail_Plate_Hvy_Mplate/khassaki_lod1.mesh 900
    62 unit_models/_Units/ME_Mail_Plate_Hvy_Mplate/khassaki_lod2.mesh 2500
    62 unit_models/_Units/ME_Mail_Plate_Hvy_Mplate/khassaki_lod3.mesh 6400
    2
    5 egypt
    92 unit_models/_Units/ME_Mail_Plate_Hvy_Mplate/textures/ME_super_heavy_Mail_Plate_egypt.texture
    93 unit_models/_Units/ME_Mail_Plate_Hvy_Mplate/textures/ME_super_heavy_Mail_Plate_normal.texture
    38 unit_sprites/egypt_Khassaki_sprite.spr
    7 kwarezm
    95 unit_models/_Units/ME_Mail_Plate_Hvy_Mplate/textures/ME_super_heavy_Mail_Plate2_kwarezm.texture
    94 unit_models/_Units/ME_Mail_Plate_Hvy_Mplate/textures/ME_super_heavy_Mail_Plate2_normal.texture
    38 unit_sprites/egypt_Khassaki_sprite.spr
    2
    5 egypt
    66 unit_models/AttachmentSets/Final Middle Eastern_egypt_diff.texture
    66 unit_models/AttachmentSets/Final Middle Eastern_egypt_norm.texture 0
    7 kwarezm
    68 unit_models/AttachmentSets/Final Middle Eastern_kwarezm_diff.texture
    66 unit_models/AttachmentSets/Final Middle Eastern_egypt_norm.texture 0
    1
    5 Horse
    13 MTW2_HR_Lance
    13 MTW2_HR_Sword 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
    12 khassaki_ug1
    1 4
    62 unit_models/_Units/ME_Mail_Plate_Hvy_Mplate/khassaki_lod0.mesh 121
    62 unit_models/_Units/ME_Mail_Plate_Hvy_Mplate/khassaki_lod1.mesh 900
    62 unit_models/_Units/ME_Mail_Plate_Hvy_Mplate/khassaki_lod2.mesh 2500
    62 unit_models/_Units/ME_Mail_Plate_Hvy_Mplate/khassaki_lod3.mesh 6400
    2
    5 egypt
    92 unit_models/_Units/ME_Mail_Plate_Hvy_Mplate/textures/ME_super_heavy_Mail_Plate_egypt.texture
    93 unit_models/_Units/ME_Mail_Plate_Hvy_Mplate/textures/ME_super_heavy_Mail_Plate_normal.texture
    38 unit_sprites/egypt_Khassaki_sprite.spr
    7 kwarezm
    95 unit_models/_Units/ME_Mail_Plate_Hvy_Mplate/textures/ME_super_heavy_Mail_Plate2_kwarezm.texture
    94 unit_models/_Units/ME_Mail_Plate_Hvy_Mplate/textures/ME_super_heavy_Mail_Plate2_normal.texture
    38 unit_sprites/egypt_Khassaki_sprite.spr
    2
    5 egypt
    66 unit_models/AttachmentSets/Final Middle Eastern_egypt_diff.texture
    66 unit_models/AttachmentSets/Final Middle Eastern_egypt_norm.texture 0
    7 kwarezm
    68 unit_models/AttachmentSets/Final Middle Eastern_kwarezm_diff.texture
    66 unit_models/AttachmentSets/Final Middle Eastern_egypt_norm.texture 0
    1
    5 Horse
    13 MTW2_HR_Lance
    13 MTW2_HR_Sword 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
    4) Here is the original file export_descr_unit.txt:
    type Khassaki
    dictionary Khassaki ; Khassaki
    category cavalry
    class heavy
    voice_type Heavy
    banner faction main_cavalry
    banner holy crusade_cavalry
    soldier Khassaki, 24, 0, 1
    mount eastern armoured horse
    mount_effect elephant -4, camel -4
    attributes sea_faring, hide_forest, hardy, can_withdraw, can_formed_charge
    formation 2, 4.4, 3, 6, 3, square, wedge
    stat_health 1, 0
    stat_pri 11, 5, no, 0, 0, melee, melee_blade, piercing, spear, 25, 1
    ;stat_pri_ex 0, 0, 0
    stat_pri_attr no
    stat_sec 12, 3, no, 0, 0, melee, melee_blade, piercing, sword, 25, 1
    ;stat_sec_ex 0, 0, 0
    stat_sec_attr no
    stat_pri_armour 6, 5, 6, metal
    ;stat_armour_ex 6, 0, 0, 0, 5, 6, 4, metal
    stat_sec_armour 0, 0, flesh
    stat_heat 2
    stat_ground 0, 1, -10, -1
    stat_mental 11, impetuous, highly_trained
    stat_charge_dist 45
    stat_fire_delay 0
    stat_food 60, 300
    stat_cost 1, 970, 155, 85, 205, 970, 4, 290
    armour_ug_levels 3
    armour_ug_models Khassaki
    ownership egypt
    era 0 egypt
    era 1 egypt
    ;unit_info 11, 0, 17
    recruit_priority_offset 15
    Here is the original file export_descr_unit.txt of SS6.3:
    type Khassaki
    dictionary Khassaki ; Khassaki, lp
    category cavalry
    class heavy
    voice_type Heavy
    banner faction main_cavalry
    banner holy crusade_cavalry
    soldier Khassaki, 32, 0, 1
    officer me_bodyguard
    officer eastern_captain_early_flag
    mount eastern armoured horse
    mount_effect elephant -4, camel -4
    attributes sea_faring, hide_forest, hardy, can_withdraw, can_formed_charge, knight
    move_speed_mod 0.9
    formation 2, 4.4, 3, 6, 3, square, wedge
    stat_health 1, 3
    stat_pri 7, 12, no, 0, 0, melee, melee_blade, piercing, spear, 45, 1
    ;stat_pri_ex 0, 0, 0
    stat_pri_attr no
    stat_sec 11, 4, no, 0, 0, melee, melee_blade, piercing, sword, 15, 1
    ;stat_sec_ex 0, 0, 0
    stat_sec_attr no
    stat_pri_armour 11, 8, 3, metal ; ; GUARD
    ;stat_armour_ex 6, 0, 0, 0, 5, 6, 4, metal
    stat_sec_armour 0, 0, flesh
    stat_heat 2
    stat_ground -3, -1, -6, -4
    stat_mental 18, disciplined, highly_trained
    stat_charge_dist 30
    stat_fire_delay 0
    stat_food 60, 300
    stat_cost 8, 2460, 535, 120, 95, 1925, 4, 180
    armour_ug_levels 11, 23
    armour_ug_models Khassaki, Khassaki
    ownership egypt
    era 0 egypt
    era 1 egypt
    recruit_priority_offset 55
    As you can see, i don´t change the export_descr_unit.txt of SS6.3 because it looks like in Kingdoms Crusades
    5) Here is the CFG file:
    to=mods/SS6.3/system.log.txt

    Thanks

  15. #15
    Gigantus's Avatar I am not special - I am a limited edition.
    Moderator Emeritus Administrator Emeritus

    Join Date
    Aug 2006
    Location
    Goa - India
    Posts
    52,681
    Blog Entries
    35

    Default Re: How to add a new unit into game

    At least now we know where the log is: have a look in the SS6.3 folder for the file named system.log.txt
    If all you did was to copy the mesh and sprite files and then change the sprite entry, then the error could\should be somewhere else.

    1. Run the game
    2. Once it crashes, have a look into the log for entries with [error] in it
    3. If you are having problems interpreting it, simply compress the log and attach it here.










  16. #16

    Default Re: How to add a new unit into game

    Sorry, but the game don´t crash. It runs, but no with the textures i want.

    If i encounter the error in the file system.log.txt, what must i do?

  17. #17
    Gigantus's Avatar I am not special - I am a limited edition.
    Moderator Emeritus Administrator Emeritus

    Join Date
    Aug 2006
    Location
    Goa - India
    Posts
    52,681
    Blog Entries
    35

    Default Re: How to add a new unit into game

    Things are getting clearer.
    When you play, does the unit have a silvery appearance? If so, then it is obviously a case of texture mistake.
    Which faction does it happen, Egypt and Kwarezm? If it is only Egypt, then these texture files are not present in the correct folder:
    92 unit_models/_Units/ME_Mail_Plate_Hvy_Mplate/textures/ME_super_heavy_Mail_Plate_egypt.texture
    93 unit_models/_Units/ME_Mail_Plate_Hvy_Mplate/textures/ME_super_heavy_Mail_Plate_normal.texture
    You did not mention that you copied them from crusades into SS6.3 - please do so.










  18. #18

    Default Re: How to add a new unit into game

    The khassaki unit do not have a silvery appearance. Simply it looks like the model in SS6.3 mod. Instead like in Kingdoms that it is what i want.

  19. #19
    irishron's Avatar Cura Palatii
    Moderator Emeritus

    Join Date
    Feb 2005
    Location
    Cirith Ungol
    Posts
    47,023

    Default Re: How to add a new unit into game

    Are you using the [io] filefirst = true in the cfg?

  20. #20

    Default Re: How to add a new unit into game

    Yes, i am using it.
    [io] file_first=true that is in default.cfg

Posting Permissions

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