Results 1 to 10 of 10

Thread: Adding trebuchets to Rohan?

Hybrid View

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

    Default Adding trebuchets to Rohan?

    I am trying to add trebuchets to Rohan but I am confuse as to what to do with this because it seems a little different than SS, which is what I am used to changing, very limited modding knowledge. Can someone tell me what I need to do here, I am confused, I know it is simple It should just be buildings file adjustment and unit file adjustment.
    Shogun 2, no thanks I will stick with Kingdoms SS.

  2. #2
    mattttb's Avatar Civis
    Join Date
    Aug 2010
    Location
    Portsmouth, England
    Posts
    103

    Default Re: Adding trebuchets to Rohan?

    I've never actually done it before, but I think all you need to is make the unit available for the faction, and make it recruitable in a building.

    first edit export_descr_unit.txt
    Spoiler Alert, click show to read: 
    type Gondor Trebuchet
    dictionary Gondor_Trebuchet ; Trebuchet
    category siege
    class missile
    voice_type Heavy
    banner faction main_missile
    banner holy crusade
    soldier NE_Trebuchet_Crew, 24, 2, 1
    officer gondor_captain_early_flag
    engine gondor_trebuchet
    attributes sea_faring, hardy, can_withdraw, artillery
    formation 1.5, 1.5, 3, 3, 3, square
    stat_health 1, 2
    stat_pri 9, 4, no, 0, 0, melee, artillery_mechanical, piercing, sword, 0, 1
    stat_pri_attr no
    stat_sec 60, 3, trebuchet, 330, 25, siege_missile, artillery_mechanical, blunt, none, 25, 1
    stat_sec_attr ap, bp, area, launching
    stat_ter 12, 3, cow_carcass, 250, 3, siege_missile, artillery_mechanical, blunt, none, 25, 1
    stat_ter_attr ap, bp, launching
    stat_pri_armour 8, 2, 0, metal
    stat_sec_armour 0, 0, flesh
    stat_heat 1
    stat_ground 0, -1, -2, -2
    stat_mental 13, disciplined, trained
    stat_charge_dist 15
    stat_fire_delay 0
    stat_food 60, 300
    stat_cost 1, 850, 250, 60, 140, 850, 1, 120
    armour_ug_levels 3
    armour_ug_models Gondor_Trebuchet_Crew
    ownership sicily
    era 0 sicily
    era 1 sicily
    era 2 sicily
    recruit_priority_offset 7
    change "sicily", to "sicily, milan" on each line here

    this makes the unit available for rohan.

    next, edit export_descr_buildings.txt
    Spoiler Alert, click show to read: 
    siege_works city requires factions { sicily, byzantium, turks, } and building_present_min_level barracks militia_drill_square and event_counter large_city_barracks 1
    {
    convert_to 2
    capability
    {
    recruit_pool "Gondor Trebuchet" 1 0.12 2 0 requires factions { sicily, } and region_religion numenorian 50 and hidden_resource forest or hidden_resource grasland
    recruit_pool "Gondor Trebuchet" 1 0.06 1 0 requires factions { sicily, } and region_religion numenorian 50 and hidden_resource desert or hidden_resource mountains
    you need to make the highest siege building available for rohan, so change "{ sicily, byzantium, turks, }" to "{ sicily, byzantium, turks, milan, }"

    then you can change "{ sicily, }" to "{ sicily, milan, }" on both lines. You could alternatively make the trebuchet available at the lower building (the one rohan can already build) and make it only recruitable for rohan at that building level

    that SHOULD do it, but I've never done it before so I could be completely wrong

  3. #3

    Default Re: Adding trebuchets to Rohan?

    I did try to add milan to a trebechet unit in the export descr unit and no unit showed up in the custom battles. That is why I am puzzled? Thanks for the help by the way
    Shogun 2, no thanks I will stick with Kingdoms SS.

  4. #4
    Indefinitely Banned
    Join Date
    May 2009
    Location
    Scottishland
    Posts
    6,867

    Default Re: Adding trebuchets to Rohan?

    Did you remove the "No_custom" tag from the unit in export descr unit? Have to remove that as well as change the ownership. It's likely to crash without tweaking some of the battle_models files though so that the game knows where all the necessary files are for it, ie not trying to find skins that aren't there.

  5. #5

    Default Re: Adding trebuchets to Rohan?

    Quote Originally Posted by TheXand View Post
    Did you remove the "No_custom" tag from the unit in export descr unit? Have to remove that as well as change the ownership. It's likely to crash without tweaking some of the battle_models files though so that the game knows where all the necessary files are for it, ie not trying to find skins that aren't there.
    Thanks trying that
    Shogun 2, no thanks I will stick with Kingdoms SS.

  6. #6
    Emperor of Hell's Avatar SPA-NED 1-5
    Join Date
    Jul 2011
    Location
    Netherlands
    Posts
    5,747

    Default Re: Adding trebuchets to Rohan?

    There will be no crash if you don't edit the modeldb file, only the unit will have no texture

  7. #7

    Default Re: Adding trebuchets to Rohan?

    Yeah I found that out just now , I am still unsure of what files to move under the "gondor trebulchet" in the battle models file. I wonder if I have to create the file?
    Shogun 2, no thanks I will stick with Kingdoms SS.

  8. #8
    Baron Samedi's Avatar Citizen
    Join Date
    Apr 2009
    Location
    The Netherlands
    Posts
    1,414

    Default Re: Adding trebuchets to Rohan?

    Quote Originally Posted by stevehoos View Post
    Yeah I found that out just now , I am still unsure of what files to move under the "gondor trebulchet" in the battle models file. I wonder if I have to create the file?
    Add/change the red parts:
    Spoiler Alert, click show to read: 

    Code:
    21 gondor_trebuchet_crew 
    1 1 
    68 unit_models/_Units/EN_Lmail_Hmail/gondor_catapult_crew_ug0_lod0.mesh 6400 
    2 
    6 sicily 
    65 unit_models/_Units/EN_Lmail_Hmail/textures/gondor0_gondor.texture 
    65 unit_models/_Units/EN_Lmail_Hmail/textures/gondor0_normal.texture 
    55 unit_sprites/sicily_gondor_catapult_crew_ug0_sprite.spr
    5 milan
    65 unit_models/_Units/EN_Lmail_Hmail/textures/gondor0_gondor.texture 
    65 unit_models/_Units/EN_Lmail_Hmail/textures/gondor0_normal.texture 
    55 unit_sprites/sicily_gondor_catapult_crew_ug0_sprite.spr  
    2 
    6 sicily 
    47 unit_models/AttachmentSets/gondor1_diff.texture 
    47 unit_models/AttachmentSets/gondor1_norm.texture 0
    5 milan
    47 unit_models/AttachmentSets/gondor1_diff.texture 
    47 unit_models/AttachmentSets/gondor1_norm.texture 0 
    1 
    4 None 
    14 MTW2_Trebuchet 0 
    1 
    18 MTW2_Sword_Primary 0 
    16 -0.090000004 0 0 -0.34999999 0.80000001 0.60000002 
    25 gondor_trebuchet_crew_ug1 
    1 1 
    68 unit_models/_Units/EN_Lmail_Hmail/gondor_catapult_crew_ug1_lod0.mesh 6400 
    2 
    6 sicily 
    65 unit_models/_Units/EN_Lmail_Hmail/textures/gondor0_gondor.texture 
    65 unit_models/_Units/EN_Lmail_Hmail/textures/gondor0_normal.texture 
    55 unit_sprites/sicily_gondor_catapult_crew_ug0_sprite.spr
    5 milan 
    65 unit_models/_Units/EN_Lmail_Hmail/textures/gondor0_gondor.texture 
    65 unit_models/_Units/EN_Lmail_Hmail/textures/gondor0_normal.texture 
    55 unit_sprites/sicily_gondor_catapult_crew_ug0_sprite.spr  
    2 
    6 sicily 
    47 unit_models/AttachmentSets/gondor1_diff.texture 
    47 unit_models/AttachmentSets/gondor1_norm.texture 0
    5 milan 
    47 unit_models/AttachmentSets/gondor1_diff.texture 
    47 unit_models/AttachmentSets/gondor1_norm.texture 0 
    1 
    4 None 
    14 MTW2_Trebuchet 0 
    1 
    18 MTW2_Sword_Primary 0 
    16 -0.090000004 0 0 -0.34999999 0.80000001 0.60000002

    Always make a back-up when you mod a file btw.
    Under the patronage of MasterBigAb

  9. #9

    Default Re: Adding trebuchets to Rohan?

    Quote Originally Posted by Baron Samedi View Post
    Add/change the red parts:
    Spoiler Alert, click show to read: 

    Code:
    21 gondor_trebuchet_crew 
    1 1 
    68 unit_models/_Units/EN_Lmail_Hmail/gondor_catapult_crew_ug0_lod0.mesh 6400 
    2 
    6 sicily 
    65 unit_models/_Units/EN_Lmail_Hmail/textures/gondor0_gondor.texture 
    65 unit_models/_Units/EN_Lmail_Hmail/textures/gondor0_normal.texture 
    55 unit_sprites/sicily_gondor_catapult_crew_ug0_sprite.spr
    5 milan
    65 unit_models/_Units/EN_Lmail_Hmail/textures/gondor0_gondor.texture 
    65 unit_models/_Units/EN_Lmail_Hmail/textures/gondor0_normal.texture 
    55 unit_sprites/sicily_gondor_catapult_crew_ug0_sprite.spr  
    2 
    6 sicily 
    47 unit_models/AttachmentSets/gondor1_diff.texture 
    47 unit_models/AttachmentSets/gondor1_norm.texture 0
    5 milan
    47 unit_models/AttachmentSets/gondor1_diff.texture 
    47 unit_models/AttachmentSets/gondor1_norm.texture 0 
    1 
    4 None 
    14 MTW2_Trebuchet 0 
    1 
    18 MTW2_Sword_Primary 0 
    16 -0.090000004 0 0 -0.34999999 0.80000001 0.60000002 
    25 gondor_trebuchet_crew_ug1 
    1 1 
    68 unit_models/_Units/EN_Lmail_Hmail/gondor_catapult_crew_ug1_lod0.mesh 6400 
    2 
    6 sicily 
    65 unit_models/_Units/EN_Lmail_Hmail/textures/gondor0_gondor.texture 
    65 unit_models/_Units/EN_Lmail_Hmail/textures/gondor0_normal.texture 
    55 unit_sprites/sicily_gondor_catapult_crew_ug0_sprite.spr
    5 milan 
    65 unit_models/_Units/EN_Lmail_Hmail/textures/gondor0_gondor.texture 
    65 unit_models/_Units/EN_Lmail_Hmail/textures/gondor0_normal.texture 
    55 unit_sprites/sicily_gondor_catapult_crew_ug0_sprite.spr  
    2 
    6 sicily 
    47 unit_models/AttachmentSets/gondor1_diff.texture 
    47 unit_models/AttachmentSets/gondor1_norm.texture 0
    5 milan 
    47 unit_models/AttachmentSets/gondor1_diff.texture 
    47 unit_models/AttachmentSets/gondor1_norm.texture 0 
    1 
    4 None 
    14 MTW2_Trebuchet 0 
    1 
    18 MTW2_Sword_Primary 0 
    16 -0.090000004 0 0 -0.34999999 0.80000001 0.60000002

    Always make a back-up when you mod a file btw.
    Thanks!
    Shogun 2, no thanks I will stick with Kingdoms SS.

  10. #10

    Default Re: Adding trebuchets to Rohan?

    http://www.twcenter.net/forums/showthread.php?t=346427 - adding an existing unit to a faction
    http://www.twcenter.net/forums/showthread.php?t=424751 - adding units from another mod

Posting Permissions

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