Page 3 of 35 FirstFirst 1234567891011121328 ... LastLast
Results 41 to 60 of 689

Thread: How to add a new unit into game

  1. #41
    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,126
    Blog Entries
    35

    Default Re: How to add a new unit into game

    You are using a non formatted modeldb, by the looks.

    Check here for formatted versions










  2. #42

    Default Re: How to add a new unit into game

    Then what?

  3. #43

    Default Re: How to add a new unit into game

    My original battlemodels looks exactly the same

  4. #44
    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,126
    Blog Entries
    35

    Default Re: How to add a new unit into game

    Maybe you misunderstood me: please upload your whole modeldb file and whole export_descr_unit file. I can then use a checker to look for incorrect entries.










  5. #45

    Default Re: How to add a new unit into game

    i did sry

  6. #46

    Default Re: How to add a new unit into game

    how do i send it :S

  7. #47
    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,126
    Blog Entries
    35

    Default Re: How to add a new unit into game

    The easiest way will be to compress the files with WinZip or 7Zip. These are programs that are freely available, a little 'googling' will help you there.
    You then click on the 'Go Advanced' button under the Quick Reply window'.

    Below the reply window is now a window "Additional Options"
    There you will see a button "Manage attachments". Clicking it opens a small window that lets you browse for the files you want to attach. Please note the list "Valid extensions" for extensions that your files can have.










  8. #48

    Default Re: How to add a new unit into game

    sry about additional EDU

  9. #49
    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,126
    Blog Entries
    35

    Default Re: How to add a new unit into game

    You had some line count problems, here is the corrected entry:

    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
    65 unit_models/_Units/new_folder/textures/gothic_knights_hre.texture
    68 unit_models/_Units/new_folder/textures/gothic_knights_normal.texture
    52 unit_sprites/milan_Dismounted_Italian_MAA_sprite.spr
    1
    3 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










  10. #50

    Default

    Omg its really working!! Thank you very much!!

    i still have one little question for you if ur not too tired of me i made my unit of a mounted soldier whos secondary arm is sword.. how would i make it a primary if u can tell??
    Last edited by Squid; October 10, 2009 at 08:21 PM. Reason: double post

  11. #51

    Default Re: How to add a new unit into game

    Hi gigantus,

    I need your help what I was triyng to do is to create a new unit for SS6.1 more exact...royal dismounted hasham...a mixture of dismounted hasham body and ...dismounted sipahi lancers shield and spear...took MESH file for sipahi dismounted_sipahi_lancers_ug2 from MTW2 and merged with dismounted hasham_ug1 to create my new unit MS3D..after I converted back in MESH file to have royal_dismounted_hasham_ug1_lod0-3...so far so good...howevr to edit EDU and Battle_models was a challenge...in EDU I used Dismounted Sipahi Lancers as core ( based on the fact that is a spear unit) and in Battle_models I used same thing..only that I left entry for only royal_dismounted_hasham_ug1 cause no upgrade for this unit...after all textures were copy paste in to the right place(some textures were missing in SS6.1 file but present into MTW2 one) (unit_model, _unit; me_mail_plate_hvy_mplate as per instructons in Battle_Models cause I used core from sipahi unit)...when double click on SS6.1 icon to start game it<s loding I see as the games start the uploading screenshot of the game and right after 2-3 sec CTD..I suppose is something with the MESH file or texture however after 2 days of checking I cant find the issue. If not to much to ask pls have a look on my attachements and let me know. Thank you

  12. #52
    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,126
    Blog Entries
    35

    Default Re: How to add a new unit into game

    I am sorry, but there I don't really have much expertise. You might get better response in the
    Skins, Models, and Animations forum










  13. #53

    Default Re: How to add a new unit into game

    please can u tell me how i do that if u know??

  14. #54
    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,126
    Blog Entries
    35

    Default Re: How to add a new unit into game

    @uurnammu

    Same answer: I am sorry, but there I don't really have much expertise. You might get better response in the
    Skins, Models, and Animations forum










  15. #55

    Default Re: How to add a new unit into game

    Thank you ...I guess is a matter of texture cause I created only the mesh but i didnt create the texture and that must be the problem I will see the tutorials there. Thank you

  16. #56

    Default Re: How to add a new unit into game

    oh... lol ok

  17. #57

    Default Re: How to add a new unit into game

    Im having a problem here, im trying to add a unit to the DAC submod and not succedding any help would be appreciated.

  18. #58
    BobaHat's Avatar Tiro
    Join Date
    Feb 2010
    Location
    Aarhus, Denmark
    Posts
    256

    Default Re: How to add a new unit into game

    I am having the same problem as uurnammu had. The game starts the loading screen and then exits. The M2TW log gives me this message:
    09:39:43.106 [script.err] [error] Script Error in mods/Bare_Kingdoms/data/export_descr_unit.txt, at line 2284, column 1
    Could not find soldier battle model for unit type 'johanite_hospitallers'.

    09:39:43.106 [data.invalid] [error] DATABASE_TABLE error found : error reading record from file mods/Bare_Kingdoms/data/export_descr_unit.txt.
    Here is my unit:

    modeldb:
    1
    5 Horse
    13 MTW2_HR_Lance
    13 MTW2_HR_Sword 2
    21 MTW2_HR_Lance_Primary
    14 fs_test_shield 2
    17 MTW2_Mace_Primary
    14 fs_test_shield
    16 -0.090000004 0 0 -0.34999999 0.80000001 0.60000002
    21 johanite_hospitallers
    1 3
    58 unit_models/_Units/johanites/knights_hospitaller_lod0.mesh 121
    58 unit_models/_Units/johanites/knights_hospitaller_lod1.mesh 900
    58 unit_models/_Units/johanites/knights_hospitaller_lod2.mesh 1225
    1
    7 denmark
    72 unit_models/_Units/johanites/textures/en_lmail_hmail_hospitaller.texture
    76 unit_models/_Units/johanites/textures/en_lmail_hmail_crusader_normal.texture
    54 unit_sprites/denmark_Dummy_EN_Plate_Knights_sprite.spr
    1
    7 denmark
    67 unit_models/AttachmentSets/Final Special Heads_denmark_diff.texture
    67 unit_models/AttachmentSets/Final Special Heads_denmark_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
    25 johanite_hospitallers_ug1
    1 3
    62 unit_models/_Units/johanites/knights_hospitaller_ug1_lod0.mesh 121
    62 unit_models/_Units/johanites/knights_hospitaller_ug1_lod1.mesh 1225
    62 unit_models/_Units/johanites/knights_hospitaller_ug1_lod2.mesh 6400
    1
    7 denmark
    74 unit_models/_Units/EN_Pplate_Plate/textures/mtw2_EN_Pplate_denmark.texture
    73 unit_models/_Units/EN_Pplate_Plate/textures/mtw2_EN_Pplate_normal.texture
    58 unit_sprites/denmark_Dummy_EN_Plate_Knights_ug1_sprite.spr
    1
    7 denmark
    67 unit_models/AttachmentSets/Final Special Heads_denmark_diff.texture
    67 unit_models/AttachmentSets/Final Special Heads_denmark_norm.texture 0
    export_descr_unit:
    type johanite hospitallers
    dictionary johanite_hospitallers ; Johanite Hospitallers
    category cavalry
    class heavy
    voice_type Heavy
    banner faction main_cavalry
    soldier johanite_hospitallers, 32, 0, 1
    mount heavy horse
    mount_effect elephant -4, camel -4
    attributes sea_faring, hide_forest, hardy, can_withdraw, can_formed_charge, knight
    formation 2, 4.4, 3, 6, 2, square, wedge
    stat_health 1, 0
    stat_pri 13, 8, no, 0, 0, melee, melee_blade, piercing, spear, 25, 1
    ;stat_pri_ex 0, 0, 0
    stat_pri_attr no
    stat_sec 14, 4, no, 0, 0, melee, melee_blade, piercing, sword, 25, 1
    ;stat_sec_ex 0, 0, 0
    stat_sec_attr no
    stat_pri_armour 7, 5, 4, metal
    ;stat_armour_ex 7, 8, 9, 0, 5, 4, 4, metal
    stat_sec_armour 0, 0, flesh
    stat_heat 5
    stat_ground 0, -2, -4, 0
    stat_mental 11, normal, highly_trained
    stat_charge_dist 45
    stat_fire_delay 0
    stat_food 60, 300
    stat_cost 1, 880, 250, 130, 100, 880, 4, 220
    armour_ug_levels 3, 4, 5
    armour_ug_models johanite_hospitallers, johanite_hospitallers_ug1
    ownership denmark
    era 1 denmark
    era 2 denmark
    ;unit_info 13, 0, 16
    Is there anything about this that looks wrong?
    "I have learned how to be a man.
    And so I shall become the King of Men."
    - Canute the Great, king of Denmark, Norway and England

  19. #59
    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,126
    Blog Entries
    35

    Default Re: How to add a new unit into game

    @BobaHat
    If you have added the model in modeldb at the bottom, have you increased the number on top by two? (one for each entry)

    @radcan
    It will help if you let us know the units name
    Last edited by Gigantus; May 06, 2010 at 03:11 AM.










  20. #60
    BobaHat's Avatar Tiro
    Join Date
    Feb 2010
    Location
    Aarhus, Denmark
    Posts
    256

    Default Re: How to add a new unit into game

    @gigantus
    Yes but when I change the number at the top the game doesn't even go to the loading screen. It just crashes.
    "I have learned how to be a man.
    And so I shall become the King of Men."
    - Canute the Great, king of Denmark, Norway and England

Posting Permissions

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