Results 1 to 19 of 19

Thread: Adding unit

Hybrid View

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

    Default Adding unit

    I am playing kingdoms grand campaign mod, and they removed the men at arms from the grand campaign, but not custom battles...
    how do i bring them back into grand campaign for Venice, Milan and Papal States?
    men at arms go replaced with dismounted feudal lords and broken lances -.-
    I miss my men at arms how do i bring them back in the coding?

  2. #2

  3. #3

    Default Re: Adding unit

    ok... i understand the export_descr_unit part... On
    Kingdoms Grand Campaign Mod... I can't find the
    Battle_models_modelbd file anywhere... more or less i can't find ANY file in the mod that shares resemblences... please help... goal:
    trying to return Dismounted Broken Lances/Men At Arms/ Mounted Men At Arms back to Venetian/Milan/ Papal States factions into grand campaign, their in custom battles of the mod, but not in campaign...
    I'm very confused right now... I can't find any files within the tutorial that rembles the Battle_mod file...

  4. #4

    Default Re: Adding unit

    Go in the KGCM folder and in it go in data\unit_models folder.

    Inside this folder you will find battle_models.modeldb aka BMDB file.

  5. #5

    Default Re: Adding unit

    how do i open it?

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

    Join Date
    Feb 2005
    Location
    Cirith Ungol
    Posts
    47,023

    Default Re: Adding unit

    Notepad++ opens it and keeps its formatting intact.

  7. #7
    Squid's Avatar Opifex
    Patrician Artifex Technical Staff

    Join Date
    Feb 2007
    Location
    Frozen waste lands of the north
    Posts
    17,751
    Blog Entries
    3

    Default Re: Adding unit

    They probably didn't remove the models, so just try adding the stuff the export_descr_buildings.txt before trying more complex modding like playing with the modelsdb file.
    Under the patronage of Roman_Man#3, Patron of Ishan
    Click for my tools and tutorials
    "Two things are infinite: the universe and human stupidity; and I'm not sure about the universe." -----Albert Einstein

  8. #8

    Default Re: Adding unit

    so this is what i did...
    I placed export_desc_units and changed thier recruitmen priority to 20 like the broken lances and Fagmilia ducale (mounted)
    I went to export_desc_buildings and added:

    recruit_pool "Broken Lances" 1 0.5 2 0 requires factions { venice, milan, papal_states, }
    recruit_pool "Men At Arms" 1 0.5 2 0 requires factions { venice, milan, papal_states,}

    the same for dismounted except i added sicilly faction to the recruit pool
    to earl's and kings stables recruit pools...

    I launch the mod and it crashes... do i have to go to the modelsdb file and move around the Do'Hickeys and whatcha ma call its? "not a computer savy person"

  9. #9

    Default Re: Adding unit

    Did you add all the factions in the "ownership" line in desc_units?

    should look something like:
    ownership milan, venice, papal_states, slave

    If it's a problem in desc_units or desc_buildings it should show up in the log, otherwise they probably did remove them from the modeldb

  10. #10

    Default Re: Adding unit

    I'm looking at the modelsdb file and this is what i see reguarding MMA

    Spoiler Alert, click show to read: 
    Code:
    11 italian_maa 
    1 
    3 
    56 unit_models/_Units/EN_Pplate_Plate/italian_maa_lod0.mesh 121 
    56 unit_models/_Units/EN_Pplate_Plate/italian_maa_lod1.mesh 1225 
    56 unit_models/_Units/EN_Pplate_Plate/italian_maa_lod2.mesh 6400 
    4 
    5 milan 
    72 unit_models/_Units/EN_Pplate_Plate/textures/mtw2_EN_Pplate_milan.texture 
    73 unit_models/_Units/EN_Pplate_Plate/textures/mtw2_EN_Pplate_normal.texture 
    41 unit_sprites/milan_Italian_MAA_sprite.spr 
    6 venice 
    73 unit_models/_Units/EN_Pplate_Plate/textures/mtw2_EN_Pplate_venice.texture 
    73 unit_models/_Units/EN_Pplate_Plate/textures/mtw2_EN_Pplate_normal.texture 
    42 unit_sprites/venice_Italian_MAA_sprite.spr 
    12 papal_states 
    79 unit_models/_Units/EN_Pplate_Plate/textures/mtw2_EN_Pplate_papal_states.texture 
    73 unit_models/_Units/EN_Pplate_Plate/textures/mtw2_EN_Pplate_normal.texture 
    48 unit_sprites/papal_states_Italian_MAA_sprite.spr 
    5 slave 
    73 unit_models/_Units/EN_Pplate_Plate/textures/mtw2_EN_Pplate_rebels.texture 
    73 unit_models/_Units/EN_Pplate_Plate/textures/mtw2_EN_Pplate_normal.texture 
    41 unit_sprites/slave_Italian_MAA_sprite.spr 
    4 
    5 milan 
    58 unit_models/AttachmentSets/Final Heater_milan_diff.texture 
    58 unit_models/AttachmentSets/Final Heater_milan_norm.texture 
    0  
    6 venice 
    59 unit_models/AttachmentSets/Final Heater_venice_diff.texture 
    59 unit_models/AttachmentSets/Final Heater_venice_norm.texture 
    0  
    12 papal_states 
    65 unit_models/AttachmentSets/Final Heater_papal_states_diff.texture 
    65 unit_models/AttachmentSets/Final Heater_papal_states_norm.texture 
    0  
    5 slave 
    58 unit_models/AttachmentSets/Final Heater_slave_diff.texture 
    58 unit_models/AttachmentSets/Final Heater_slave_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 
    15 italian_maa_ug1 
    1 
    3 
    60 unit_models/_Units/EN_Pplate_Plate/italian_maa_ug1_lod0.mesh 121 
    60 unit_models/_Units/EN_Pplate_Plate/italian_maa_ug1_lod1.mesh 1225 
    60 unit_models/_Units/EN_Pplate_Plate/italian_maa_ug1_lod2.mesh 6400 
    4 
    5 milan 
    72 unit_models/_Units/EN_Pplate_Plate/textures/mtw2_EN_Pplate_milan.texture 
    73 unit_models/_Units/EN_Pplate_Plate/textures/mtw2_EN_Pplate_normal.texture 
    45 unit_sprites/milan_Italian_MAA_ug1_sprite.spr 
    6 venice 
    73 unit_models/_Units/EN_Pplate_Plate/textures/mtw2_EN_Pplate_venice.texture 
    73 unit_models/_Units/EN_Pplate_Plate/textures/mtw2_EN_Pplate_normal.texture 
    46 unit_sprites/venice_Italian_MAA_ug1_sprite.spr 
    12 papal_states 
    79 unit_models/_Units/EN_Pplate_Plate/textures/mtw2_EN_Pplate_papal_states.texture 
    73 unit_models/_Units/EN_Pplate_Plate/textures/mtw2_EN_Pplate_normal.texture 
    52 unit_sprites/papal_states_Italian_MAA_ug1_sprite.spr 
    5 slave 
    73 unit_models/_Units/EN_Pplate_Plate/textures/mtw2_EN_Pplate_rebels.texture 
    73 unit_models/_Units/EN_Pplate_Plate/textures/mtw2_EN_Pplate_normal.texture 
    45 unit_sprites/slave_Italian_MAA_ug1_sprite.spr 
    4 
    5 milan 
    58 unit_models/AttachmentSets/Final Heater_milan_diff.texture 
    58 unit_models/AttachmentSets/Final Heater_milan_norm.texture 
    0  
    6 venice 
    59 unit_models/AttachmentSets/Final Heater_venice_diff.texture 
    59 unit_models/AttachmentSets/Final Heater_venice_norm.texture 
    0  
    12 papal_states 
    65 unit_models/AttachmentSets/Final Heater_papal_states_diff.texture 
    65 unit_models/AttachmentSets/Final Heater_papal_states_norm.texture 
    0  
    5 slave 
    58 unit_models/AttachmentSets/Final Heater_slave_diff.texture 
    58 unit_models/AttachmentSets/Final Heater_slave_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 
    15 italian_maa_ug2 
    1 
    4 
    63 unit_models/_Units/LN_Gothic_RN_Plate/italian_maa_ug2_lod0.mesh 121 
    63 unit_models/_Units/LN_Gothic_RN_Plate/italian_maa_ug2_lod1.mesh 900 
    63 unit_models/_Units/LN_Gothic_RN_Plate/italian_maa_ug2_lod2.mesh 2500 
    63 unit_models/_Units/LN_Gothic_RN_Plate/italian_maa_ug2_lod3.mesh 6400 
    4 
    5 milan 
    79 unit_models/_Units/LN_Gothic_RN_Plate/textures/LN_gothic_RN_plate_milan.texture 
    80 unit_models/_Units/LN_Gothic_RN_Plate/textures/LN_gothic_RN_plate_normal.texture 
    45 unit_sprites/milan_Italian_MAA_ug2_sprite.spr 
    6 venice 
    80 unit_models/_Units/LN_Gothic_RN_Plate/textures/LN_gothic_RN_plate_venice.texture 
    80 unit_models/_Units/LN_Gothic_RN_Plate/textures/LN_gothic_RN_plate_normal.texture 
    46 unit_sprites/venice_Italian_MAA_ug2_sprite.spr 
    12 papal_states 
    86 unit_models/_Units/LN_Gothic_RN_Plate/textures/LN_gothic_RN_plate_papal_states.texture 
    80 unit_models/_Units/LN_Gothic_RN_Plate/textures/LN_gothic_RN_plate_normal.texture 
    52 unit_sprites/papal_states_Italian_MAA_ug2_sprite.spr 
    5 slave 
    80 unit_models/_Units/LN_Gothic_RN_Plate/textures/LN_gothic_RN_plate_rebels.texture 
    80 unit_models/_Units/LN_Gothic_RN_Plate/textures/LN_gothic_RN_plate_normal.texture 
    45 unit_sprites/slave_Italian_MAA_ug2_sprite.spr 
    4 
    5 milan 
    58 unit_models/AttachmentSets/Final Heater_milan_diff.texture 
    58 unit_models/AttachmentSets/Final Heater_milan_norm.texture 
    0  
    6 venice 
    59 unit_models/AttachmentSets/Final Heater_venice_diff.texture 
    59 unit_models/AttachmentSets/Final Heater_venice_norm.texture 
    0  
    12 papal_states 
    65 unit_models/AttachmentSets/Final Heater_papal_states_diff.texture 
    65 unit_models/AttachmentSets/Final Heater_papal_states_norm.texture 
    0  
    5 slave 
    58 unit_models/AttachmentSets/Final Heater_slave_diff.texture 
    58 unit_models/AttachmentSets/Final Heater_slave_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 
    13 broken_lances 
    1 
    3 
    58 unit_models/_Units/EN_Pplate_Plate/broken_lances_lod0.mesh 121 
    58 unit_models/_Units/EN_Pplate_Plate/broken_lances_lod1.mesh 1225 
    58 unit_models/_Units/EN_Pplate_Plate/broken_lances_lod2.mesh 6400 
    3 
    5 milan 
    72 unit_models/_Units/EN_Pplate_Plate/textures/mtw2_EN_Pplate_milan.texture 
    73 unit_models/_Units/EN_Pplate_Plate/textures/mtw2_EN_Pplate_normal.texture 
    53 unit_sprites/milan_Knights_Hospitaller_ug2_sprite.spr 
    6 venice 
    73 unit_models/_Units/EN_Pplate_Plate/textures/mtw2_EN_Pplate_venice.texture 
    73 unit_models/_Units/EN_Pplate_Plate/textures/mtw2_EN_Pplate_normal.texture 
    54 unit_sprites/venice_Knights_Hospitaller_ug2_sprite.spr 
    12 papal_states 
    79 unit_models/_Units/EN_Pplate_Plate/textures/mtw2_EN_Pplate_papal_states.texture 
    73 unit_models/_Units/EN_Pplate_Plate/textures/mtw2_EN_Pplate_normal.texture 
    60 unit_sprites/papal_states_Knights_Hospitaller_ug2_sprite.spr 
    3 
    5 milan 
    58 unit_models/AttachmentSets/Final Heater_milan_diff.texture 
    58 unit_models/AttachmentSets/Final Heater_milan_norm.texture 
    0  
    6 venice 
    59 unit_models/AttachmentSets/Final Heater_venice_diff.texture 
    59 unit_models/AttachmentSets/Final Heater_venice_norm.texture 
    0  
    12 papal_states 
    65 unit_models/AttachmentSets/Final Heater_papal_states_diff.texture 
    65 unit_models/AttachmentSets/Final Heater_papal_states_norm.texture 
    0  
    1 
    5 Horse 
    13 MTW2_HR_Lance 
    18 MTW2_HR_Non_Shield 
    1 
    21 MTW2_HR_Lance_Primary 
    1 
    18 MTW2_Sword_Primary 
    16 -0.090000004 0 0 -0.34999999 0.80000001 0.60000002 
    17 broken_lances_ug1 
    1 
    4 
    65 unit_models/_Units/LN_Gothic_RN_Plate/broken_lances_ug1_lod0.mesh 121 
    65 unit_models/_Units/LN_Gothic_RN_Plate/broken_lances_ug1_lod1.mesh 900 
    65 unit_models/_Units/LN_Gothic_RN_Plate/broken_lances_ug1_lod2.mesh 2500 
    65 unit_models/_Units/LN_Gothic_RN_Plate/broken_lances_ug1_lod3.mesh 6400 
    3 
    5 milan 
    79 unit_models/_Units/LN_Gothic_RN_Plate/textures/LN_gothic_RN_plate_milan.texture 
    80 unit_models/_Units/LN_Gothic_RN_Plate/textures/LN_gothic_RN_plate_normal.texture 
    51 unit_sprites/milan_SE_Late_Bodyguard_ug1_sprite.spr 
    6 venice 
    80 unit_models/_Units/LN_Gothic_RN_Plate/textures/LN_gothic_RN_plate_venice.texture 
    80 unit_models/_Units/LN_Gothic_RN_Plate/textures/LN_gothic_RN_plate_normal.texture 
    52 unit_sprites/venice_SE_Late_Bodyguard_ug1_sprite.spr 
    12 papal_states 
    86 unit_models/_Units/LN_Gothic_RN_Plate/textures/LN_gothic_RN_plate_papal_states.texture 
    80 unit_models/_Units/LN_Gothic_RN_Plate/textures/LN_gothic_RN_plate_normal.texture 
    58 unit_sprites/papal_states_SE_Late_Bodyguard_ug1_sprite.spr 
    3 
    5 milan 
    58 unit_models/AttachmentSets/Final Heater_milan_diff.texture 
    58 unit_models/AttachmentSets/Final Heater_milan_norm.texture 
    0  
    6 venice 
    59 unit_models/AttachmentSets/Final Heater_venice_diff.texture 
    59 unit_models/AttachmentSets/Final Heater_venice_norm.texture 
    0  
    12 papal_states 
    65 unit_models/AttachmentSets/Final Heater_papal_states_diff.texture 
    65 unit_models/AttachmentSets/Final Heater_papal_states_norm.texture 
    0  
    1 
    5 Horse 
    13 MTW2_HR_Lance 
    18 MTW2_HR_Non_Shield 
    1 
    21 MTW2_HR_Lance_Primary 
    1 
    18 MTW2_Sword_Primary 
    16 -0.090000004 0 0 -0.34999999 0.80000001 0.60000002 
    15 famiglia_ducale

    Another question is it against the rules to post this data? I'm new to this mod workshop thing in general...
    Last edited by Squid; January 12, 2012 at 11:03 AM.

  11. #11

    Default Re: Adding unit

    It might be a bit easier to post your log. PLEASE just post the last several lines and use the "code" tag (the little # at the top of your post typing box. Otherwise upload the log as a zip.

    Without doing all the counting I do not see any glaring problem with you modeldb except where yours seems to look like:
    Code:
    5 milan 
    58 unit_models/AttachmentSets/Final Heater_milan_diff.texture 
    58 unit_models/AttachmentSets/Final Heater_milan_norm.texture 
    0 
    6 venice
    Mine looks like:
    Code:
    5 milan 
    58 unit_models/AttachmentSets/Final Heater_milan_diff.texture 
    58 unit_models/AttachmentSets/Final Heater_milan_norm.texture 0
    6 venice
    Note the 0, but I am not familiar enough with the modeldb at this point to say if it matters (just started playing with it 2 days ago)

  12. #12

    Default Re: Adding unit

    how do i zip it?

  13. #13

    Default Re: Adding unit

    can you attatch your edb, or add this entry here with coding tags, e.g click advanced and then #, so the entry looks like this:

    Code:
    recruit_pool "Broken Lances" 1 0.5 2 0 requires factions { venice, milan, papal_states, }
    recruit_pool "Men At Arms" 1 0.5 2 0 requires factions { venice, milan, papal_states,}
    anyway for now compare the two lines and you will see a difference at the end of each line, the top one is correct.

    The end of the second line is all one entry, you have missed a space between papal_states, and } .

    i hope that made sense!


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

    Join Date
    Feb 2005
    Location
    Cirith Ungol
    Posts
    47,023

    Default Re: Adding unit

    Use a free version of 7zip or Winrar.

  15. #15

    Default Re: Adding unit

    Windows can also create a zip folder. Just use that.

  16. #16

    Default Re: Adding unit

    this is my first attempt... that has my modified Export_desc_buildings, Export_desc_units, and Battle_models_modeldb files... idk whats wrong with them trying to get
    Broken Lances, and men at arms back to factions... idk what is wrong with it that causes game to crash

    this is from KGCM mod

  17. #17

    Default Re: Adding unit

    Ok, I missed the part before where you said they were available in the custom battles just not the campaign.
    So the ONLY file you have to edit is the export_descr_buildings.txt, if you edited any other files you really should just replace them with a backup.

    In export_descr_buildings.txt you are calling them "Men At Arms" it should be "Italian MAA"

    Sorry for the confusion
    Sadly I dont know if modifications to the edb are save compatable, but I'm sure Ishan or irishron will know.

    in the edu "recruit_priority_offset" is just for the AI, it is not needed. Feel free to edit it again, but test to make sure the game works with just the changes to edb first please.
    Last edited by CavalryCmdr; January 11, 2012 at 11:40 PM.

  18. #18

    Default

    OHHH THEIR ITALIAN MAA?!?!?!?!?!?

    correction Italian MAA*
    OMG IT DOESN'T CRASH!!! woot!!!! I can make kick ass Men at arms... Sorry for cursing "kick ass"
    Thanks Cavalry!!!
    Last edited by Ishan; January 12, 2012 at 02:58 AM. Reason: Double Post

  19. #19
    Squid's Avatar Opifex
    Patrician Artifex Technical Staff

    Join Date
    Feb 2007
    Location
    Frozen waste lands of the north
    Posts
    17,751
    Blog Entries
    3

    Default Re: Adding unit

    The name you see for the unit in game is not necessarily the name that the files are using to refer to the same unit.
    Under the patronage of Roman_Man#3, Patron of Ishan
    Click for my tools and tutorials
    "Two things are infinite: the universe and human stupidity; and I'm not sure about the universe." -----Albert Einstein

Posting Permissions

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