Results 1 to 19 of 19

Thread: Adding Canons of Sepulchre to HRE/st. John

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Groenepuntmuts's Avatar Miles
    Join Date
    Feb 2007
    Location
    The netherlands
    Posts
    303

    Default Adding Canons of Sepulchre to HRE/st. John

    I've been trying to add the Canons of The Holy Sepulchre to the Hospitallers guild, and the hospitallers guild to the HRE, but I get a CTD , so I must have made a mistake somewhere.
    could anyone help me out? (this is in stainless steel 6.1, which is why at "ownership" there are 2 eras)

    At every file, I'l first show you the original, and then the one where I added something, which will be with thick letters.
    Spoiler Alert, click show to read: 
    First, in Descr_buildings, I changed
    Code:
    building guild_st_johns_chapter_house
    {
        convert_to guild_st_johns_chapter_house
        levels st_johns_minor_ch st_johns_major_ch st_johns_hq 
        {
            st_johns_minor_ch  requires factions { england, france, scotland, denmark, norway, hungary, poland, papal_states, milan, sicily, venice, knights_templar, } 
            {
                convert_to 0
                capability
                {
                    recruit_pool "Knights Hospitaller"  1   0.25   1  0  requires factions { england, scotland, france, denmark, norway, milan, venice, papal_states, sicily, poland, hungary, knights_templar, }
                    recruit_pool "Dismounted Knights Hospitaller"  1   0.25   2  0  requires factions { england, scotland, france, denmark, norway, milan, venice, papal_states, sicily, poland, hungary, knights_templar, }  
                    population_health_bonus bonus 1
                }
                material stone
                construction  1 
                cost  1000 
                settlement_min city
                upgrades
                {
                    st_johns_major_ch
                }
            }
            st_johns_major_ch  requires factions { england, france, scotland, denmark, norway, hungary, poland, papal_states, milan, sicily, venice, knights_templar, } 
            {
                convert_to 1
                capability
                {
                    recruit_pool "Knights Hospitaller"  1   0.25   2  0  requires factions { england, scotland, france, denmark, norway, milan, venice, papal_states, sicily, poland, hungary, knights_templar, } 
                    recruit_pool "Dismounted Knights Hospitaller"  1   0.34   2  0  requires factions { england, scotland, france, denmark, norway, milan, venice, papal_states, sicily, poland, hungary, knights_templar, } 
                    population_health_bonus bonus 2
                }
                material stone
                construction  1 
                cost  2000 
                settlement_min large_city
                upgrades
                {
                    st_johns_hq
                }
            }
            st_johns_hq  requires factions { england, france, scotland, denmark, norway, hungary, poland, papal_states, milan, sicily, venice, knights_templar, } 
            {
                convert_to 2
                capability
                {
                    recruit_pool "Knights Hospitaller"  1   0.34   3  1  requires factions { england, scotland, france, denmark, norway, milan, venice, papal_states, sicily, poland, hungary, knights_templar, } 
                    recruit_pool "Dismounted Knights Hospitaller"  1   0.34   3  1  requires factions { england, scotland, france, denmark, norway, milan, venice, papal_states, sicily, poland, hungary, knights_templar, } 
                    population_health_bonus bonus 3
                }
                material stone
                construction  1 
                cost  3000 
                settlement_min large_city
                upgrades
                {
                }
            }
        }
    To:
    Code:
    building guild_st_johns_chapter_house
    {
        convert_to guild_st_johns_chapter_house
        levels st_johns_minor_ch st_johns_major_ch st_johns_hq 
        {
            st_johns_minor_ch  requires factions { england, france, scotland, denmark, norway, hungary, poland, papal_states, milan, sicily, venice, hre, knights_templar, } 
            {
                convert_to 0
                capability
                {
                    recruit_pool "Knights Hospitaller"  1   0.25   1  0  requires factions { england, scotland, france, denmark, norway, milan, venice, papal_states, sicily, poland, hungary, hre, knights_templar, }
                    recruit_pool "Dismounted Knights Hospitaller"  1   0.25   2  0  requires factions { england, scotland, france, denmark, norway, milan, venice, papal_states, sicily, poland, hungary, hre, knights_templar, }
                    recruit_pool "Canons of the Holy Sepulcher"  1   0.15   1  1  requires factions { jerusalem, hre, }
            population_health_bonus bonus 1
                }
                material stone
                construction  1 
                cost  1000 
                settlement_min city
                upgrades
                {
                    st_johns_major_ch
                }
            }
            st_johns_major_ch  requires factions { england, france, scotland, denmark, norway, hungary, poland, papal_states, milan, sicily, venice, hre, knights_templar, } 
            {
                convert_to 1
                capability
                {
                    recruit_pool "Knights Hospitaller"  1   0.25   2  0  requires factions { england, scotland, france, denmark, norway, milan, venice, papal_states, sicily, poland, hungary, hre, knights_templar, } 
                    recruit_pool "Dismounted Knights Hospitaller"  1   0.34   2  0  requires factions { england, scotland, france, denmark, norway, milan, venice, papal_states, sicily, poland, hungary, hre, knights_templar, }
            recruit_pool "Canons of the Holy Sepulcher"  1   0.15   1  1  requires factions { jerusalem, hre, } 
                    population_health_bonus bonus 2
                }
                material stone
                construction  1 
                cost  2000 
                settlement_min large_city
                upgrades
                {
                    st_johns_hq
                }
            }
            st_johns_hq  requires factions { england, france, scotland, denmark, norway, hungary, poland, papal_states, milan, sicily, venice, hre, knights_templar, } 
            {
                convert_to 2
                capability
                {
                    recruit_pool "Knights Hospitaller"  1   0.34   3  1  requires factions { england, scotland, france, denmark, norway, milan, venice, papal_states, sicily, poland, hungary, hre, knights_templar, } 
                    recruit_pool "Dismounted Knights Hospitaller"  1   0.34   3  1  requires factions { england, scotland, france, denmark, norway, milan, venice, papal_states, sicily, poland, hungary, hre, knights_templar, } 
                    recruit_pool "Canons of the Holy Sepulcher"  1   0.15   1  1  requires factions { jerusalem, hre, }
            population_health_bonus bonus 3
                }
                material stone
                construction  1 
                cost  3000 
                settlement_min large_city
                upgrades
                {
                }
            }
        }
    as you can see, I added the Canons under the Hospitallers.

    That is the first part, I think it's allright.

    Then, in export_descr_units, I changed
    Code:
    type             Canons of the Holy Sepulcher
    dictionary       Canons_of_the_Holy_Sepulcher      ; Canons of the Holy Sepulcher, o
    category         infantry
    class            heavy
    voice_type       Heavy
    accent         German
    banner faction   main_hospitaller
    banner holy      crusade
    soldier          Zweihander, 48, 0, 1.2
    officer          Dismounted_Knights_of_Jerusalem
    officer          northern_captain_early_flag
    officer          northern_captain_early_flag
    mount_effect     horse +1, camel +1
    attributes       sea_faring, hide_forest, very_hardy, can_withdraw
    formation        1.2, 0, 2.4, 2.4, 3, square
    stat_health      1, 0
    stat_pri         11, 7, no, 0, 0, melee, melee_blade, slashing, sword, 15, 1
    ;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  5, 7, 0, metal
    stat_sec_armour  0, 0, flesh
    stat_heat        6
    stat_ground      1, -1, 2, 1
    stat_mental      20, normal, trained
    stat_charge_dist 6
    stat_fire_delay  0
    stat_food        60, 300
    stat_cost        5, 890, 200, 90, 70, 890, 4, 170
    armour_ug_levels 2, 3
    armour_ug_models Canons_Of_The_Holy_Sepulcher, Canons_Of_The_Holy_Sepulcher_ug1
    ownership        jerusalem
    era 0            jerusalem
    era 1            jerusalem
    recruit_priority_offset    20
    To:

    Code:
    type             Canons of the Holy Sepulcher
    dictionary       Canons_of_the_Holy_Sepulcher      ; Canons of the Holy Sepulcher, o
    category         infantry
    class            heavy
    voice_type       Heavy
    accent         German
    banner faction   main_hospitaller
    banner holy      crusade
    soldier          Zweihander, 48, 0, 1.2
    officer          Dismounted_Knights_of_Jerusalem
    officer          northern_captain_early_flag
    officer          northern_captain_early_flag
    mount_effect     horse +1, camel +1
    attributes       sea_faring, hide_forest, very_hardy, can_withdraw
    formation        1.2, 0, 2.4, 2.4, 3, square
    stat_health      1, 0
    stat_pri         11, 7, no, 0, 0, melee, melee_blade, slashing, sword, 15, 1
    ;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  5, 7, 0, metal
    stat_sec_armour  0, 0, flesh
    stat_heat        6
    stat_ground      1, -1, 2, 1
    stat_mental      20, normal, trained
    stat_charge_dist 6
    stat_fire_delay  0
    stat_food        60, 300
    stat_cost        5, 890, 200, 90, 70, 890, 4, 170
    armour_ug_levels 2, 3
    armour_ug_models Canons_Of_The_Holy_Sepulcher, Canons_Of_The_Holy_Sepulcher_ug1
    ownership        jerusalem, hre 
    era 0            jerusalem, hre
    era 1            jerusalem, hre
    recruit_priority_offset    20
    Lastly, in Battle_models.modeldb, I changed
    Code:
    16 -0.090000004 0 0 -0.34999999 0.80000001 0.60000002 
    28 canons_of_the_holy_sepulcher 
    1 4 
    69 unit_models/_Units/CM_Standard/canons_of_the_holy_sepulcher_lod0.mesh 121 
    69 unit_models/_Units/CM_Standard/canons_of_the_holy_sepulcher_lod1.mesh 900 
    69 unit_models/_Units/CM_Standard/canons_of_the_holy_sepulcher_lod2.mesh 2500 
    69 unit_models/_Units/CM_Standard/canons_of_the_holy_sepulcher_lod3.mesh 6400 
    1 
    9 jerusalem 
    71 unit_models/_Units/CM_Standard/textures/CM_Standard_hospitaller.texture 
    66 unit_models/_Units/CM_Standard/textures/CM_Standard_normal.texture 
    60 unit_sprites/antioch_Canons_Of_The_Holy_Sepulcher_sprite.spr 
    1 
    9 jerusalem 
    60 unit_models/AttachmentSets/Final Heater_antioch_diff.texture 
    60 unit_models/AttachmentSets/Final Heater_antioch_norm.texture 0  
    1 4 None 
    16 MTW2_2HSwordsman 0  2 
    24 MTW2_2HSwordsman_Primary 
    14 fs_test_shield 0
    To:
    Code:
    16 -0.090000004 0 0 -0.34999999 0.80000001 0.60000002 
    28 canons_of_the_holy_sepulcher 
    1 4 
    69 unit_models/_Units/CM_Standard/canons_of_the_holy_sepulcher_lod0.mesh 121 
    69 unit_models/_Units/CM_Standard/canons_of_the_holy_sepulcher_lod1.mesh 900 
    69 unit_models/_Units/CM_Standard/canons_of_the_holy_sepulcher_lod2.mesh 2500 
    69 unit_models/_Units/CM_Standard/canons_of_the_holy_sepulcher_lod3.mesh 6400 
    2 
    9 jerusalem 
    71 unit_models/_Units/CM_Standard/textures/CM_Standard_hospitaller.texture 
    66 unit_models/_Units/CM_Standard/textures/CM_Standard_normal.texture 
    60 unit_sprites/antioch_Canons_Of_The_Holy_Sepulcher_sprite.spr 
    3 hre 
    71 unit_models/_Units/CM_Standard/textures/CM_Standard_hospitaller.texture 
    66 unit_models/_Units/CM_Standard/textures/CM_Standard_normal.texture 
    60 unit_sprites/antioch_Canons_Of_The_Holy_Sepulcher_sprite.spr 
    2 
    9 jerusalem 
    60 unit_models/AttachmentSets/Final Heater_antioch_diff.texture 
    60 unit_models/AttachmentSets/Final Heater_antioch_norm.texture 0  
    3 hre 
    60 unit_models/AttachmentSets/Final Heater_antioch_diff.texture 
    60 unit_models/AttachmentSets/Final Heater_antioch_norm.texture 0  
    1 4 None 
    16 MTW2_2HSwordsman 0  2 
    24 MTW2_2HSwordsman_Primary 
    14 fs_test_shield 0


    Could anyone help me out? I'd appreciate a blanket or some food in my journey through the first steps of modding

    Edit: wrapped it in a spoiler tag, as it makes the post quite long
    Last edited by Groenepuntmuts; July 09, 2008 at 03:07 PM.

  2. #2
    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,682
    Blog Entries
    35

    Default Re: Adding Canons of Sepulchre to HRE/st. John

    Code:
     recruit_pool "Canons of the Holy Sepulcher"  1   0.15   1  1  requires factions { jerusalem, hre, }
    Comma missing after hre, don't forget a space after the comma. Compare with the end of the line above this entry.
    Last edited by Gigantus; July 08, 2008 at 12:03 PM.










  3. #3
    Groenepuntmuts's Avatar Miles
    Join Date
    Feb 2007
    Location
    The netherlands
    Posts
    303

    Default Re: Adding Canons of Sepulchre to HRE/st. John

    Quote Originally Posted by gigantus View Post
    Code:
     recruit_pool "Canons of the Holy Sepulcher"  1   0.15   1  1  requires factions { jerusalem, hre, }
    Comma missing after hre, don't forget a space after the comma. Compare with the end of the line above this entry.
    Put the comma and spaces, but still a CTD, another mistake somewhere... anyone?

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

    Default Re: Adding Canons of Sepulchre to HRE/st. John

    Put them in every line it was missing?










  5. #5
    Groenepuntmuts's Avatar Miles
    Join Date
    Feb 2007
    Location
    The netherlands
    Posts
    303

    Default Re: Adding Canons of Sepulchre to HRE/st. John

    Quote Originally Posted by gigantus View Post
    Put them in every line it was missing?
    I did thatin Descr_buildings, but in export_descr_units you're not supposed to have comma's and spaces after the last faction, I checked it at the other units that had multiple factions
    Last edited by Groenepuntmuts; July 09, 2008 at 08:30 AM. Reason: added "that had multiple factions"

  6. #6
    No, that isn't a banana
    Join Date
    Aug 2004
    Location
    Ontario, Canada
    Posts
    5,216

    Default Re: Adding Canons of Sepulchre to HRE/st. John

    What does your log file say?

  7. #7
    Groenepuntmuts's Avatar Miles
    Join Date
    Feb 2007
    Location
    The netherlands
    Posts
    303

    Default Re: Adding Canons of Sepulchre to HRE/st. John

    I can't check for at least half an hour. I uninstalled the old Pro deo et rege 1.0 I still had on my computer, but like last time, this has also removed all kinds of pictures and backgrounds. so I'l reinstall, and then I'l post here what the log says. good idea though, dammmit why I didn't I think of the log?!

  8. #8
    No, that isn't a banana
    Join Date
    Aug 2004
    Location
    Ontario, Canada
    Posts
    5,216

    Default Re: Adding Canons of Sepulchre to HRE/st. John

    Also - was it an unspecified error, or a plain old CTD?

  9. #9
    Groenepuntmuts's Avatar Miles
    Join Date
    Feb 2007
    Location
    The netherlands
    Posts
    303

    Default Re: Adding Canons of Sepulchre to HRE/st. John

    It was a "plain old" CTD
    The system log doesn't display anything. except for the problems I had with PDER. but I deleted those, and even after CTD-ing again, nothing in system log. I'm talking about the log in sega/medieval2, but I couldn't find a log in the sega/medieval2/mods/stainlesssteel6 folder.

    Ps: Of course, I made back-ups so I can still play whenever I want. maybe I shouldn't add the guild to the hre, but instead, only add the canons to the guild, and put the faction I'll play in modeldb, so that faction doesn't have invisible units.
    Last edited by Groenepuntmuts; July 09, 2008 at 12:16 PM.

  10. #10
    No, that isn't a banana
    Join Date
    Aug 2004
    Location
    Ontario, Canada
    Posts
    5,216

    Default Re: Adding Canons of Sepulchre to HRE/st. John

    well, if it was a plain CTD, the last couple lines of your log file "should" indicate what the error is.

    Here's my suggestion - go with your thought on removing hre from the guild, and removing the unit from the guild as well.

    Launch the game. If it CTD's then the error is either with the EDU file (which from what I can tell looks good) or the model file (I can't tell if all the syntax is correct - there has to be at least one space at the end of every line.)

    Simply use the process of elimination for error checking. If you limit it to EDU and the Model file, you'll have less error checking to do.

  11. #11
    Groenepuntmuts's Avatar Miles
    Join Date
    Feb 2007
    Location
    The netherlands
    Posts
    303

    Default Re: Adding Canons of Sepulchre to HRE/st. John

    I did what you said, so I left the Descr_buildings unchanged, and played a custom battle. I picked 2 Canons units for the HRE, one with armour upgrade, and that one is invisible, so there must be a mistake in the model file as well. it didn't CTD though, so the real problem must be in Descr_buildings. I'l upload the screenshot in a minute. I still have to give them unit cards, but that won't be a problem.

    edit: uploading isn't working so well, but could the problem be that the ownership factions in Descr_buildings are not all in the same order?
    The picture: http://www.filefrog.net/images/art24720.jpg
    Last edited by Groenepuntmuts; July 09, 2008 at 01:00 PM.

  12. #12
    No, that isn't a banana
    Join Date
    Aug 2004
    Location
    Ontario, Canada
    Posts
    5,216

    Default Re: Adding Canons of Sepulchre to HRE/st. John

    ahhh, I missed it before, but you need to add the model entry for this: Canons_Of_The_Holy_Sepulcher_ug1

    That'll take care of the invisible unit...
    Last edited by OTZ; July 09, 2008 at 01:01 PM.

  13. #13
    Groenepuntmuts's Avatar Miles
    Join Date
    Feb 2007
    Location
    The netherlands
    Posts
    303

    Default Re: Adding Canons of Sepulchre to HRE/st. John

    Allright thanks, so that's the invisible unit. I'l go over EDB as well, but I think you've got more experience with that file.
    edit: I forgot giving you reputation, here it is!

  14. #14
    No, that isn't a banana
    Join Date
    Aug 2004
    Location
    Ontario, Canada
    Posts
    5,216

    Default Re: Adding Canons of Sepulchre to HRE/st. John

    Well, I think the EDB file looks ok - at least at first glance.
    Do the other units that are recruitable by the hre (knights hospitaller, dkh) have the requisite model and EDU entries as well?

    edit - thanks for the rep - not needed, but I'll take it!

    I know how frustrating it can be to get modded files to work...

  15. #15
    Groenepuntmuts's Avatar Miles
    Join Date
    Feb 2007
    Location
    The netherlands
    Posts
    303

    Default Re: Adding Canons of Sepulchre to HRE/st. John

    Do the other units that are recruitable by the hre (knights hospitaller, dkh) have the requisite model and EDU entries as well?
    Yes, I think that might be the problem. 10 minutes ago, I added Musketeers with milanese textures to France's last city barracks, and everything works fine. so the problem must be the other hospitallers units.

    1) Are these changes save compatible? if they're not, I'l forget about HRE and start adding units to France, because I'm not planning on restarting my HRE campaign for the Canons.
    2) are musketeers simply stronger arquebusiers? if so, can I use the arquebusier textures on the Musketeers for france?

    Thanks again, you've been a great help, I understand how it works now.

  16. #16
    No, that isn't a banana
    Join Date
    Aug 2004
    Location
    Ontario, Canada
    Posts
    5,216

    Default Re: Adding Canons of Sepulchre to HRE/st. John

    I think they are save-game compatible, but I'm not 100%. I'd just add the Canons to a barracks building and see if they're recruitable - if not, then your question is answered.

    #2) You can use any texture you want - as long as they are similar (ie come from the same texture folder).

    In your example, the Arq texture is RN_Light_Lmail_, and so is the Musketeer texture, so you would have no problems using:

    6 france
    72 unit_models/_Units/RN_Light_Lmail/textures/RN_Light_Lmail_france.texture
    72 unit_models/_Units/RN_Light_Lmail/textures/RN_Light_Lmail_normal.texture

    on both soldier models

  17. #17
    Groenepuntmuts's Avatar Miles
    Join Date
    Feb 2007
    Location
    The netherlands
    Posts
    303

    Default Re: Adding Canons of Sepulchre to HRE/st. John

    New problem though, when you check the unit discription (where it tells you about the unit, and shows it's attack, armour ,defense etc.)
    there is still a peasant picture. even though I already added a working unit card. can I fix this somewhere as well?

    Edit: screenshot:

  18. #18
    No, that isn't a banana
    Join Date
    Aug 2004
    Location
    Ontario, Canada
    Posts
    5,216

    Default Re: Adding Canons of Sepulchre to HRE/st. John

    Did you add the info card as well?

    ui/unit_info/<faction>

  19. #19
    Groenepuntmuts's Avatar Miles
    Join Date
    Feb 2007
    Location
    The netherlands
    Posts
    303

    Default Re: Adding Canons of Sepulchre to HRE/st. John

    Thanks again! I'm all set now. I'l add a few more units and I'l play my best campaign ever. rep for OTZ And Gigantus!

    Edit: by the way, its only half save-compatible. I tested it by adding forlorn hope to a city hall (they're supposed to be trained in the higher level mayors palace) , and altough they do show up on the building browser, you can't actually train them. at least not in settlements that already had the building, I haven't tryed yet by building a new city hall.

    Edit2: It seems adding mounted units is a bit harder. I've succesfully added Canons and musketeers, the musketeers with french arq. texture, but reiters make the game CTD.
    again, the log file displays nothing. under the reiters in modeldb, there's a bit about horses, I added france there too, maybe I'm not supposed to do so?
    Last edited by Groenepuntmuts; July 09, 2008 at 03:29 PM.

Posting Permissions

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