Page 2 of 35 FirstFirst 12345678910111227 ... LastLast
Results 21 to 40 of 689

Thread: How to add a new unit into game

  1. #21
    Gigantus's Avatar I am not special - I am a limited edition.
    Patrician took an arrow to the knee spy of the council

    Join Date
    Aug 2006
    Location
    Goa - India
    Posts
    53,149
    Blog Entries
    36

    Default Re: How to add a new unit into game

    There is something that I don't understand, you mention this: copy the .mesh files (in this case "Hoplites_early_ug0_lod0-3.mesh") into the "new_folder" folder and copy your new texture and the norm_texture (in this case "ionian_hoplite.texture") into the "textures" folder.
    Not sure what you can't understand: mesh files go into 'new_folder' folder, texture files go into the 'new_folder\textures' folder.
    I don't know where I could get the meshes and textures
    First you need to have the game unpacked. Then you need to get the proper name of the unit from the EDU (the one in the soldier line - example: soldier Dismounted_Feudal_Knights)
    Then you get a formatted version of the modeldb file because the original is a pain to read. Either here (vanilla) or here (campaigns)
    There you look for your unit (example: Dismounted_Feudal_Knights)
    And there you will find neatly listed where the meshes and textures can be found.










  2. #22

    Default Re: How to add a new unit into game

    Is there a limit to how many entries can be placed in 'battle_models' like the limit in 'descr_model_battle' in RTW?



    "We were all of us cogs in a great machine which sometimes rolled foward, nobody knew where, sometimes backwards, nobody knew why." -Ernst Toller

  3. #23
    Gigantus's Avatar I am not special - I am a limited edition.
    Patrician took an arrow to the knee spy of the council

    Join Date
    Aug 2006
    Location
    Goa - India
    Posts
    53,149
    Blog Entries
    36

    Default Re: How to add a new unit into game

    If there is, I haven't heard of anyone reaching it.










  4. #24

    Default Re: How to add a new unit into game

    Good to know, thanks for the quick response.



    "We were all of us cogs in a great machine which sometimes rolled foward, nobody knew where, sometimes backwards, nobody knew why." -Ernst Toller

  5. #25
    Gigantus's Avatar I am not special - I am a limited edition.
    Patrician took an arrow to the knee spy of the council

    Join Date
    Aug 2006
    Location
    Goa - India
    Posts
    53,149
    Blog Entries
    36

    Default Re: How to add a new unit into game

    One is glad to be of service










  6. #26

    Default Re: How to add a new unit into game

    Can any1 help me. When I start medieval and the loadingscreen appears, soon m2tw shuts down and when i look for what went wrong from system.log it says "Could not find soldier battle model for unit type 'german_knights'." HELP!!

  7. #27

    Default Re: How to add a new unit into game

    and my unit is that german knight

  8. #28

    Default Re: How to add a new unit into game

    after i do all that stuff when the loading screen appears it crashes and system.log says "Could not find soldier battle model for unit type 'german_knights'."

  9. #29

    Default Re: How to add a new unit into game

    helphelp fast im dying

  10. #30

    Default Re: How to add a new unit into game

    i cant breath

  11. #31

    Default Re: How to add a new unit into game

    imk just a light infantryman

  12. #32
    Gigantus's Avatar I am not special - I am a limited edition.
    Patrician took an arrow to the knee spy of the council

    Join Date
    Aug 2006
    Location
    Goa - India
    Posts
    53,149
    Blog Entries
    36

    Default Re: How to add a new unit into game

    Stop spamming please.

    How about telling us what you changed from the original set up?
    The error points to a mismatch between your export_descr_unit (EDU) file and the modelDB file.










  13. #33

    Default Re: How to add a new unit into game

    well this is what i did(i did everything from the beginning like the new folder): I copyed gothic knight meshes and textures to the folder and renamed them. Then:
    14 german_knights
    1 3
    54 unit_models/_Units/new_folder/german_knights_lod0.mesh 121
    54 unit_models/_Units/new_folder/german_knights_lod1.mesh 1225
    54 unit_models/_Units/new_folder/german_knights_lod2.mesh 6400
    1
    3 hre
    69 unit_models/_Units/new_folder/textures/gothic_knights_hre.texture
    73 unit_models/_Units/new_folder/textures/gothic_knights_normal.texture
    52 unit_sprites/milan_Dismounted_Italian_MAA_sprite.spr
    1
    2 hre
    63 unit_models/AttachmentSets/Final Special Heads_hre_diff.texture
    63 unit_models/AttachmentSets/Final Special Heads_hre_norm.texture 0
    1
    4 None
    19 MTW2_Slow_Swordsman 0
    2
    18 MTW2_Sword_Primary
    14 fs_test_shield 0
    16 -0.090000004 0 0 -0.34999999 0.80000001 0.60000002

  14. #34

    Default Re: How to add a new unit into game

    allso EDU:
    type german_knights
    dictionary german_knights ; German Knights
    category infantry
    class heavy
    voice_type Heavy
    banner faction main_infantry
    banner holy crusade
    soldier german_knights , 48, 0, 1.2
    attributes sea_faring, hide_forest, hardy, can_withdraw
    formation 1.2, 1.2, 2.4, 2.4, 3, square
    stat_health 2, 0
    stat_pri 13, 6, no, 0, 0, melee, melee_blade, slashing, sword, 25, 1.3
    ;stat_pri_ex 0, 0, 0
    stat_pri_attr no
    stat_sec 0, 0, no, 0, 0, no, melee_simple, blunt, none, 25, 1
    ;stat_sec_ex 0, 0, 0
    stat_sec_attr no
    stat_pri_armour 10, 8, 6, metal
    ;stat_armour_ex 10, 0, 0, 0, 4, 0, 0, metal
    stat_sec_armour 0, 0, flesh
    stat_heat 6
    stat_ground 1, -2, 3, 2
    stat_mental 9, normal, trained
    stat_charge_dist 30
    stat_fire_delay 0
    stat_food 60, 300
    stat_cost 1, 810, 225, 90, 70, 810, 4, 200
    armour_ug_levels 1
    armour_ug_models german_knights
    ownership hre
    era 2 hre
    ;unit_info 13, 0, 24

  15. #35
    Gigantus's Avatar I am not special - I am a limited edition.
    Patrician took an arrow to the knee spy of the council

    Join Date
    Aug 2006
    Location
    Goa - India
    Posts
    53,149
    Blog Entries
    36

    Default Re: How to add a new unit into game

    The entries look correct. did you increase the number in the top row of the modeldb file by 1 (number in red as example)?

    22 serialization::archive 3 0 0 0 0 763 0 0










  16. #36

    Default Re: How to add a new unit into game

    yea i did

  17. #37

    Default Re: How to add a new unit into game

    i have tried everything for like two weeks i dont understand this at all

  18. #38

    Default Re: How to add a new unit into game

    hey what do these mean???:
    19:52:07.406 [data.missing] [warning] missing/invalid cursor for ANISELECT
    19:52:07.406 [data.missing] [warning] missing/invalid cursor for MODIFIER_SABOTAGE
    19:52:07.406 [data.missing] [warning] missing/invalid cursor for MODIFIER_TRADE
    19:52:07.421 [data.missing] [warning] missing/invalid cursor for DRAGGABLE
    19:52:07.421 [data.missing] [warning] missing/invalid cursor for DRAGGING
    19:52:07.421 [data.missing] [warning] missing/invalid cursor for MODIFIER_MULTIPLE_SELECT
    19:52:07.421 [data.missing] [warning] missing/invalid cursor for MODIFIER_ATTACK
    19:52:07.421 [data.missing] [warning] missing/invalid cursor for MODIFIER_PLACE_CHARACTER
    19:52:07.421 [data.missing] [warning] missing/invalid cursor for MODIFIER_PLACE_RESOURCE
    19:52:07.421 [data.missing] [warning] missing/invalid cursor for MODIFIER_PLACE_FORT
    19:52:07.421 [data.missing] [warning] missing/invalid cursor for MODIFIER_MOVE_OBJECT
    19:52:07.421 [data.missing] [warning] missing/invalid cursor for MODIFIER_PLACE_WATCHTOWER
    19:52:07.421 [data.missing] [warning] missing/invalid cursor for MODIFIER_DEPLOYMENT_AREA
    19:52:07.421 [data.missing] [warning] missing/invalid cursor for MODIFIER_PLACE_TILE
    19:52:07.421 [data.missing] [warning] missing/invalid cursor for MODIFIER_PLACE_SPECIAL_PIECE
    19:52:07.421 [data.missing] [warning] missing/invalid cursor for MODIFIER_PAINT
    19:52:07.421 [data.missing] [warning] missing/invalid cursor for MODIFIER_ADJUST_HEIGHTS
    19:52:07.421 [data.missing] [warning] missing/invalid cursor for MODIFIER_ADD_UNIT
    19:52:07.421 [data.missing] [warning] missing/invalid cursor for MODIFIER_PLACE_SETTLEMENT

  19. #39
    Gigantus's Avatar I am not special - I am a limited edition.
    Patrician took an arrow to the knee spy of the council

    Join Date
    Aug 2006
    Location
    Goa - India
    Posts
    53,149
    Blog Entries
    36

    Default Re: How to add a new unit into game

    Standard log entries. Nothing to worry about.

    Compress your EDU and modeldb and attach. I will check them properly and come back.










  20. #40

    Default Re: How to add a new unit into game

    14 german_knights 1 3 54 unit_models/_Units/new_folder/german_knights_lod0.mesh 121 54 unit_models/_Units/new_folder/german_knights_lod1.mesh 1225 54 unit_models/_Units/new_folder/german_knights_lod2.mesh 6400 13 hre69 unit_models/_Units/new_folder/textures/gothic_knights_hre.texture73 unit_models/_Units/new_folder/textures/gothic_knights_normal.texture52 unit_sprites/milan_Dismounted_Italian_MAA_sprite.spr 12 hre 63 unit_models/AttachmentSets/Final Special Heads_hre_diff.texture 63 unit_models/AttachmentSets/Final Special Heads_hre_norm.texture 0 1 4 None 19 MTW2_Slow_Swordsman 0 2 18 MTW2_Sword_Primary 14 fs_test_shield 0 16 -0.090000004 0 0 -0.34999999 0.80000001 0.60000002 u mean this

Posting Permissions

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