Results 1 to 17 of 17

Thread: Campaign

Hybrid View

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

    Default Campaign

    Hello

    So I'm new to the forum but have been visiting it for a while and decided to try my luck on creating some units.
    I was able to create a unit and its visible on a custom battle but is there a way of putting that unit on campaign, like adding on export_descr_buildings a line for example, recruit_pool "my_unit" 1 0.2 2 0 requires factions { portugal, }?

    Thank you for your help,

    Jackulhao

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

    Default Re: Campaign

    Yes you can add a recruit pool for your unit. That will make it recruitable.

  3. #3

    Default Re: Campaign

    So I tried to add a line to my export_descr_buildings but it didnt work.
    Can you make a small example so I can understand how it works?

    Thank you.

  4. #4

  5. #5

    Default Re: Campaign

    Dont think so.

    Im editing on my retail copy of M2TW. So far everything is working except adding the unit to campaign

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

    Default Re: Campaign

    vanilla = Not a mod

    You should add
    [io]
    file_first = true
    in medieval2.preference. After editing make the file "Read-only"

  7. #7

    Default Re: Campaign

    I have that on medieval2.cfg file.
    I dont know if Im putting the "recruit_pool "my_unit" 1 0.2 1 requires ..." on the right spot.

    Can you give a example of a unit in the right place?

    Thank you

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

    Default Re: Campaign

    It must be on the same place as any other recruit pool. Does it crash on the start of the game?

  9. #9

    Default Re: Campaign

    No crash. Everything goes right, the game starts, campaign starts everything. But when i select a settlement and go to recruitment tab i cant see my unit there.

  10. #10

  11. #11

    Default Re: Campaign

    Code:
    building barracks
    {
        convert_to castle_barracks
        levels town_watch town_guard city_watch militia_drill_square militia_barracks army_barracks royal_armoury 
        {
            town_watch city requires factions { northern_european, middle_eastern, eastern_european, greek, southern_european, } 
            {
                convert_to 1
                capability
                {
                    recruit_pool "Town Militia"  1   0.5   4  0  requires factions { england, scotland, france, hre, denmark, spain, portugal, Normans, } 
                    recruit_pool "Italian Militia"  1   0.5   4  0  requires factions { milan, venice, papal_states, sicily, } 
                    recruit_pool "EE Town Militia"  1   0.5   4  0  requires factions { poland, hungary, } 
                    recruit_pool "EE Archer Militia"  1   0.5   4  0  requires factions { russia, } 
                    recruit_pool "SE Town Militia"  1   0.5   4  0  requires factions { byzantium, } 
                    recruit_pool "ME Town Militia"  1   0.5   4  0  requires factions { moors, turks, mongols, timurids, } 
                    recruit_pool "ME Archer Militia"  1   0.5   4  0  requires factions { egypt, } 
                    recruit_pool "Peasant Spearmen"  1   0.5   4  0  requires factions { Saxons, } 
                    law_bonus bonus 1
                }
                material wooden
                construction  2 
                cost  600 
                settlement_min town
                upgrades
                {
                    town_guard
                }
            }
            town_guard city requires factions { northern_european, middle_eastern, eastern_european, greek, southern_european, } 
            {
                convert_to 2
                capability
                {
                    recruit_pool "Portuguese Sergeants"  2   1   5  0  requires factions { portugal, }
    		recruit_pool "Spear Militia"  1   0.5   4  0  requires factions { england, scotland, france, hre, denmark, spain, portugal, Normans, } 
                    recruit_pool "Italian Spear Militia"  1   0.5   4  0  requires factions { milan, venice, papal_states, sicily, } 
                    recruit_pool "EE Spear Militia"  1   0.5   4  0  requires factions { poland, russia, hungary, } 
                    recruit_pool "SE Spear Militia"  1   0.5   4  0  requires factions { byzantium, } 
                    recruit_pool "ME Spear Militia"  1   0.5   4  0  requires factions { moors, egypt, turks, mongols, timurids, } 
                    recruit_pool "Town Militia"  1   0.7   6  0  requires factions { england, scotland, france, hre, denmark, spain, portugal, Normans, } 
                    recruit_pool "Italian Militia"  1   0.7   6  0  requires factions { milan, venice, papal_states, sicily, } 
                    recruit_pool "EE Town Militia"  1   0.7   6  0  requires factions { poland, hungary, } 
                    recruit_pool "EE Archer Militia"  1   0.7   6  0  requires factions { russia, } 
                    recruit_pool "SE Town Militia"  1   0.7   6  0  requires factions { byzantium, } 
                    recruit_pool "ME Town Militia"  1   0.7   6  0  requires factions { moors, turks, mongols, timurids, } 
                    recruit_pool "ME Archer Militia"  1   0.7   6  0  requires factions { egypt, } 
                    recruit_pool "Peasant Spearmen"  1   0.7   6  0  requires factions { Saxons, } 
                    law_bonus bonus 2
                }
                material wooden
                construction  3 
                cost  1200 
                settlement_min large_town
                upgrades
                {
                    city_watch
                }
            }
    I changed a thing that was wrong and got it to work but when I upgrade to castle it goes away. I would like to have this unit available to recruit at anytime not depending the building. If im correct based on the code above is only recruitable when I have town guard researched.

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

    Default Re: Campaign

    You need to add it for every barracks level . For city and castle barracks

  13. #13

    Default Re: Campaign

    Is vanilla worth it? If it is, my changes will be available there or I'll have to make them again?
    Thanks a lot Emperor.

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

    Default Re: Campaign

    What do you mean? Vanilla means no mod. The files you got when installing M2TW (or by unpacking the game).

  15. #15

    Default Re: Campaign

    Ah I thought it was a Mod that someone made like TATW.

    Thanks for your help Emperor

  16. #16

  17. #17

    Default Re: Campaign

    Got everything working now.

    Thanks.

Posting Permissions

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