Results 1 to 14 of 14

Thread: Advice needed on how to add units to Faction Unit Roster

Hybrid View

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

    Icon7 Advice needed on how to add units to Faction Unit Roster

    Hi All,

    First off would like to say I have been a long time player of RS 1&2. The modders have done a fantastic job with it and I can honestly say this is the only version of RTW I play anymore

    I have been wondering for quite some time now on how to add units to a faction's unit roster but for a specific province. Example - Macedon having the ability to recruit Boiotian Pezhetairoi in Thebes, Boiotia but no where else. I know you can recruit them as mercenaries but I have not yet been able to so as far as I can tell this is not possible.

    I have had a search through the forum on similar topics but I have not yet found a tutorial to do this nor could I find the descr file that contained what I was looking for.. I am assuming I am being a blind idiot haha!

    In all honesty I am not sure if this is maybe a larger task that I am anticipating it to be but any help would be greatly appreciated.

    Cheers

  2. #2

    Default Re: Advice needed on how to add units to Faction Unit Roster

    The Boiotian Pezhetiroi are an AOR (Area of Recruitment) unit, that's why they're restricted to a specific set (or single) settlement.

    Recruitment code is found in the EDB (export_descr_buildings) in the data folder (or in the play_macedon/data folder for that specific campaign)

  3. #3

    Default Re: Advice needed on how to add units to Faction Unit Roster

    Do you just want to recruit them everywhere? Cause you have to be careful on the words you have to modify.

    EDIT: Will post a recruit everywhere export building soon

    Spoiler Alert, click show to read: 

    successor_order1 requires factions { seleucid, } or factions { macedon, }
    {
    capability
    {
    recruit "greek levy pikemen" 0 requires factions { macedon, seleucid, }
    law_bonus bonus 2 requires factions { macedon, seleucid, } and not building_present_min_level hinterland_treasury medium_treasury
    population_growth_bonus bonus 4 requires factions { seleucid, } and not building_present_min_level core_building proconsuls_palace
    }
    construction 2
    cost 2500
    settlement_min town
    upgrades
    {
    successor_order2
    }
    }
    successor_order2 requires factions { seleucid, } or factions { macedon, }
    {
    capability
    {
    ;;;;;;;;;;;;;;;;;;Infantry Available;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
    recruit "thureophoroi" 0 requires factions { macedon, seleucid, }
    recruit "greek levy pikemen" 0 requires factions { macedon, seleucid, }
    ;;;;;;;;;;;;;;;;Cavalry Available;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
    recruit "thureophoroi hippeis" 0 requires factions { macedon, }
    recruit "greek tarantine cavalry" 0 requires factions { macedon, seleucid, }
    ;;;;;;;;;;;;;;;;MISSLE Units;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
    recruit "greek akontistai" 0 requires factions { macedon, seleucid, }
    recruit "greek slinger" 0 requires factions { macedon, seleucid, }
    recruit "thraikan peltast" 0 requires factions { macedon, } and hidden_resource area8
    population_growth_bonus bonus 2 requires factions { seleucid, } and not building_present_min_level core_building proconsuls_palace
    }
    construction 2
    cost 2500
    settlement_min large_town
    upgrades
    {
    successor_order3
    }
    }
    successor_order3 requires factions { seleucid, } or factions { macedon, }
    {
    capability
    {
    agent spy 0 requires factions { macedon, seleucid, }
    agent assassin 0 requires factions { macedon, seleucid, }
    agent diplomat 0 requires factions { macedon, seleucid, }
    recruit "seleucid generals guard cavalry" 0 requires factions { seleucid, }
    recruit "macedonian generals guard cavalry" 0 requires factions { macedon, }
    ;;;;;;;;;;;;;;;;;;Infantry Available;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
    recruit "greek levy pikemen" 0 requires factions { macedon, seleucid, }
    recruit "allied phalangites" 0 requires factions { macedon, } and hidden_resource area5 and hidden_resource r6
    recruit "allied phalangites" 0 requires factions { macedon, } and hidden_resource area5 and hidden_resource r7
    recruit "allied phalangites" 0 requires factions { macedon, } and hidden_resource area5 and hidden_resource r8
    recruit "allied phalangites" 0 requires factions { macedon, } and hidden_resource area5 and hidden_resource r9
    recruit "allied phalangites" 0 requires factions { macedon, } and hidden_resource area8 and hidden_resource r4
    recruit "allied phalangites" 0 requires factions { macedon, } and hidden_resource area8 and hidden_resource r11
    recruit "allied phalangites" 0 requires factions { macedon, } and hidden_resource area8 and hidden_resource r12
    recruit "allied phalangites" 0 requires factions { macedon, } and hidden_resource area8 and hidden_resource r13
    recruit "allied phalangites" 0 requires factions { macedon, } and hidden_resource area8 and hidden_resource r14
    recruit "allied phalangites" 0 requires factions { macedon, } and hidden_resource area9
    recruit "allied phalangites" 0 requires factions { macedon, } and hidden_resource area12 and not hidden_resource r7
    recruit "allied phalangites" 0 requires factions { macedon, } and hidden_resource area12 and not hidden_resource r8
    recruit "allied phalangites" 0 requires factions { macedon, } and hidden_resource area12 and not hidden_resource r9
    recruit "allied phalangites" 0 requires factions { macedon, } and hidden_resource area12 and not hidden_resource r14
    recruit "taxeis hoplite2" 0 requires factions { macedon, } and hidden_resource area6 and hidden_resource island
    recruit "taxeis hoplite2" 0 requires factions { macedon, } and hidden_resource area6 and hidden_resource r5
    recruit "taxeis hoplite2" 0 requires factions { macedon, } and hidden_resource area6 and hidden_resource r6
    recruit "taxeis hoplite2" 0 requires factions { macedon, } and hidden_resource area6 and hidden_resource r7
    recruit "taxeis hoplite2" 0 requires factions { macedon, } and hidden_resource area8
    recruit "taxeis hoplite2" 0 requires factions { macedon, } and hidden_resource area9
    recruit "taxeis hoplite2" 0 requires factions { macedon, } and hidden_resource area12
    recruit "macedonian katoikoi phalangites" 0 requires factions { macedon, } and not hidden_resource macedon
    recruit "macedonian pezoi bottias" 0 requires factions { macedon, }
    recruit "amfipolitan pezoi" 0 requires factions { macedon, } and hidden_resource area8 and hidden_resource r3
    recruit "amfipolitan pezoi" 0 requires factions { macedon, } and hidden_resource area8 and hidden_resource r5
    recruit "amfipolitan pezoi" 0 requires factions { macedon, } and hidden_resource area8 and hidden_resource r8
    recruit "amfipolitan pezoi" 0 requires factions { macedon, } and hidden_resource area8 and hidden_resource r9
    recruit "amfipolitan pezoi" 0 requires factions { macedon, } and hidden_resource area8 and hidden_resource r10
    recruit "agrianian infantry" 0 requires factions { macedon, } and hidden_resource area8
    recruit "thureophoroi" 0 requires factions { macedon, seleucid, }
    recruit "seleucid katakoi phalangites" 0 requires factions { seleucid, }
    recruit "pezhetairoi pikeman" 0 requires factions { seleucid, }
    ;;;;;;;;;;;;;;;;Cavalry Available;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
    recruit "greek tarantine cavalry" 0 requires factions { macedon, seleucid, }
    recruit "greek prodromoi cavalry" 0 requires factions { seleucid, }
    recruit "greek lonchophoroi" 0 requires factions { macedon, seleucid, }
    recruit "thraikan hippeis" 0 requires factions { macedon, } and hidden_resource area8
    recruit "paiones hippeis" 0 requires factions { macedon, } and hidden_resource area8
    recruit "thureophoroi hippeis" 0 requires factions { macedon, }
    ;;;;;;;;;;;;;;;;MISSLE Units Available;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
    recruit "greek akontistai" 0 requires factions { macedon, seleucid, }
    recruit "greek slinger" 0 requires factions { macedon, seleucid, }
    recruit "thraikan peltast" 0 requires factions { macedon, } and hidden_resource area8
    recruit "greek heavy peltast" 0 requires factions { macedon, seleucid, }
    recruit "greek archer" 0 requires factions { macedon, seleucid, }
    recruit "syrian archers" 0 requires factions { seleucid, } and hidden_resource area14 and hidden_resource r10
    recruit "syrian archers" 0 requires factions { seleucid, } and hidden_resource area14 and hidden_resource r11
    recruit "syrian archers" 0 requires factions { seleucid, } and hidden_resource area14 and hidden_resource r12
    recruit "syrian archers" 0 requires factions { seleucid, } and hidden_resource area14 and hidden_resource r14
    population_growth_bonus bonus 1 requires factions { seleucid, }
    ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
    taxable_income_bonus bonus -5 requires factions { macedon, seleucid, }
    happiness_bonus bonus 2 requires factions { seleucid, }
    recruits_exp_bonus 4 requires factions { seleucid, }
    }
    construction 3
    cost 5000
    settlement_min city
    upgrades
    {
    successor_order4
    }
    }
    successor_order4 requires factions { seleucid, } or factions { macedon, }
    {
    capability
    {
    agent spy 0 requires factions { macedon, seleucid, }
    agent assassin 0 requires factions { macedon, seleucid, }
    agent diplomat 0 requires factions { macedon, seleucid, }
    recruit "seleucid generals guard cavalry" 0 requires factions { seleucid, }
    recruit "macedonian generals guard cavalry" 0 requires factions { macedon, }
    ;;;;;;;;;;;;;;;;;;Infantry Available;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
    recruit "greek levy pikemen" 0 requires factions { macedon, seleucid, }
    recruit "allied phalangites" 0 requires factions { macedon, } and hidden_resource area5 and hidden_resource r6
    recruit "allied phalangites" 0 requires factions { macedon, } and hidden_resource area5 and hidden_resource r7
    recruit "allied phalangites" 0 requires factions { macedon, } and hidden_resource area5 and hidden_resource r8
    recruit "allied phalangites" 0 requires factions { macedon, } and hidden_resource area5 and hidden_resource r9
    recruit "allied phalangites" 0 requires factions { macedon, } and hidden_resource area8 and hidden_resource r4
    recruit "allied phalangites" 0 requires factions { macedon, } and hidden_resource area8 and hidden_resource r11
    recruit "allied phalangites" 0 requires factions { macedon, } and hidden_resource area8 and hidden_resource r12
    recruit "allied phalangites" 0 requires factions { macedon, } and hidden_resource area8 and hidden_resource r13
    recruit "allied phalangites" 0 requires factions { macedon, } and hidden_resource area8 and hidden_resource r14
    recruit "allied phalangites" 0 requires factions { macedon, } and hidden_resource area9
    recruit "allied phalangites" 0 requires factions { macedon, } and hidden_resource area12 and not hidden_resource r7
    recruit "allied phalangites" 0 requires factions { macedon, } and hidden_resource area12 and not hidden_resource r8
    recruit "allied phalangites" 0 requires factions { macedon, } and hidden_resource area12 and not hidden_resource r9
    recruit "allied phalangites" 0 requires factions { macedon, } and hidden_resource area12 and not hidden_resource r14
    recruit "taxeis hoplite2" 0 requires factions { macedon, } and hidden_resource area6 and hidden_resource island
    recruit "taxeis hoplite2" 0 requires factions { macedon, } and hidden_resource area6 and hidden_resource r5
    recruit "taxeis hoplite2" 0 requires factions { macedon, } and hidden_resource area6 and hidden_resource r6
    recruit "taxeis hoplite2" 0 requires factions { macedon, } and hidden_resource area6 and hidden_resource r7
    recruit "taxeis hoplite2" 0 requires factions { macedon, } and hidden_resource area8
    recruit "taxeis hoplite2" 0 requires factions { macedon, } and hidden_resource area9
    recruit "taxeis hoplite2" 0 requires factions { macedon, } and hidden_resource area12
    recruit "macedonian katoikoi phalangites" 0 requires factions { macedon, } and not hidden_resource macedon
    recruit "macedonian pezoi bottias" 0 requires factions { macedon, }
    recruit "agrianian infantry" 0 requires factions { macedon, } and hidden_resource area8
    recruit "thorakitai arabes" 0 requires factions { macedon, seleucid, } and hidden_resource area11 and hidden_resource r12
    recruit "thorakitai arabes" 0 requires factions { macedon, seleucid, } and hidden_resource area11 and hidden_resource r13
    recruit "thorakitai arabes" 0 requires factions { macedon, seleucid, } and hidden_resource area14 and hidden_resource r8
    recruit "amfipolitan pezoi" 0 requires factions { macedon, } and hidden_resource area8 and hidden_resource r3
    recruit "amfipolitan pezoi" 0 requires factions { macedon, } and hidden_resource area8 and hidden_resource r5
    recruit "amfipolitan pezoi" 0 requires factions { macedon, } and hidden_resource area8 and hidden_resource r8
    recruit "amfipolitan pezoi" 0 requires factions { macedon, } and hidden_resource area8 and hidden_resource r9
    recruit "amfipolitan pezoi" 0 requires factions { macedon, } and hidden_resource area8 and hidden_resource r10
    recruit "macedonian thorakitai" 0 requires factions { macedon, } and hidden_resource area8 and hidden_resource r7
    recruit "macedonian thorakitai" 0 requires factions { macedon, } and hidden_resource area8 and hidden_resource r2
    recruit "macedonian thorakitai" 0 requires factions { macedon, } and hidden_resource area8 and hidden_resource r6
    recruit "macedonian thorakitai" 0 requires factions { macedon, } and hidden_resource area8 and hidden_resource r8
    recruit "macedonian thorakitai" 0 requires factions { macedon, } and hidden_resource area9 and hidden_resource r2
    recruit "macedonian thorakitai" 0 requires factions { macedon, } and hidden_resource area9 and hidden_resource r3
    recruit "macedonian hypaspist" 0 requires factions { macedon, }
    recruit "agema elite phalangite" 0 requires factions { macedon, }
    recruit "pezhetairoi pikeman" 0 requires factions { seleucid, }
    recruit "argyraspides" 0 requires factions { seleucid, }
    recruit "seleucid thorakitai" 0 requires factions { seleucid, }
    ;;;;;;;;;;;;;;;;Cavalry Available;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
    recruit "greek prodromoi cavalry" 0 requires factions { seleucid, }
    recruit "seleucid xystophoroi cavalry" 0 requires factions { seleucid, }
    recruit "greek aspidophoroi" 0 requires factions { macedon, seleucid, }
    recruit "greek lonchophoroi" 0 requires factions { macedon, seleucid, }
    recruit "indian elephant" 0 requires factions { seleucid, } and hidden_resource area11 and hidden_resource r11
    recruit "indian elephant" 0 requires factions { seleucid, } and hidden_resource area14 and hidden_resource r12
    recruit "indian elephant" 0 requires factions { seleucid, } and hidden_resource area15 and hidden_resource r5
    recruit "indian elephant" 0 requires factions { seleucid, } and hidden_resource area15 and hidden_resource r6
    recruit "indian elephant" 0 requires factions { seleucid, } and hidden_resource area15 and hidden_resource r7
    recruit "indian elephant" 0 requires factions { seleucid, } and hidden_resource area15 and hidden_resource r10
    recruit "elephant cataphract" 0 requires factions { seleucid, } and hidden_resource area14 and hidden_resource r12
    recruit "elephant cataphract" 0 requires factions { seleucid, } and hidden_resource area11 and hidden_resource r11
    recruit "elephant cataphract" 0 requires factions { seleucid, } and hidden_resource area15 and hidden_resource r10
    recruit "paiones hippeis" 0 requires factions { macedon, } and hidden_resource area8
    recruit "thraikan hippeis" 0 requires factions { macedon, } and hidden_resource area8
    recruit "thureophoroi hippeis" 0 requires factions { macedon, }
    recruit "thessalian hippeis" 0 requires factions { macedon, } and hidden_resource area8
    recruit "palmyran cataphract" 0 requires factions { seleucid, } and hidden_resource area11 and hidden_resource r12
    ;;;;;;;;;;;;;;;;MISSLE Units Available;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
    recruit "thraikan peltast" 0 requires factions { macedon, } and hidden_resource area8
    recruit "greek heavy peltast" 0 requires factions { macedon, seleucid, }
    recruit "greek archer" 0 requires factions { macedon, seleucid, }
    recruit "basilikoi peltastai" 0 requires factions { macedon, }
    recruit "syrian archers" 0 requires factions { seleucid, } and hidden_resource area14 and hidden_resource r10
    recruit "syrian archers" 0 requires factions { seleucid, } and hidden_resource area14 and hidden_resource r11
    recruit "syrian archers" 0 requires factions { seleucid, } and hidden_resource area14 and hidden_resource r12
    recruit "syrian archers" 0 requires factions { seleucid, } and hidden_resource area14 and hidden_resource r14
    recruit "ballista" 0 requires factions { macedon, seleucid, } and not hidden_resource area4 and not hidden_resource area10
    population_growth_bonus bonus 1 requires factions { seleucid, }
    ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
    taxable_income_bonus bonus -10 requires factions { macedon, seleucid, }
    happiness_bonus bonus 1 requires factions { seleucid, }
    recruits_exp_bonus 4 requires factions { seleucid, }
    }
    construction 3
    cost 10000
    settlement_min city
    upgrades
    {
    successor_order5
    }
    }
    successor_order5 requires factions { seleucid, } or factions { macedon, }
    {
    capability
    {
    agent spy 0 requires factions { macedon, seleucid, }
    agent assassin 0 requires factions { macedon, seleucid, }
    agent diplomat 0 requires factions { macedon, seleucid, }
    recruit "seleucid generals guard cavalry" 1 requires factions { seleucid, }
    recruit "macedonian generals guard cavalry" 1 requires factions { macedon, }
    ;;;;;;;;;;;;;;;;;;Infantry Available;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
    recruit "greek levy pikemen" 0 requires factions { macedon, seleucid, }
    recruit "allied phalangites" 0 requires factions { macedon, } and hidden_resource area5 and hidden_resource r6
    recruit "allied phalangites" 0 requires factions { macedon, } and hidden_resource area5 and hidden_resource r7
    recruit "allied phalangites" 0 requires factions { macedon, } and hidden_resource area5 and hidden_resource r8
    recruit "allied phalangites" 0 requires factions { macedon, } and hidden_resource area5 and hidden_resource r9
    recruit "allied phalangites" 0 requires factions { macedon, } and hidden_resource area8 and hidden_resource r4
    recruit "allied phalangites" 0 requires factions { macedon, } and hidden_resource area8 and hidden_resource r11
    recruit "allied phalangites" 0 requires factions { macedon, } and hidden_resource area8 and hidden_resource r12
    recruit "allied phalangites" 0 requires factions { macedon, } and hidden_resource area8 and hidden_resource r13
    recruit "allied phalangites" 0 requires factions { macedon, } and hidden_resource area8 and hidden_resource r14
    recruit "allied phalangites" 0 requires factions { macedon, } and hidden_resource area9
    recruit "allied phalangites" 0 requires factions { macedon, } and hidden_resource area12 and not hidden_resource r7
    recruit "allied phalangites" 0 requires factions { macedon, } and hidden_resource area12 and not hidden_resource r8
    recruit "allied phalangites" 0 requires factions { macedon, } and hidden_resource area12 and not hidden_resource r9
    recruit "allied phalangites" 0 requires factions { macedon, } and hidden_resource area12 and not hidden_resource r14
    recruit "taxeis hoplite2" 0 requires factions { macedon, } and hidden_resource area6 and hidden_resource island
    recruit "taxeis hoplite2" 0 requires factions { macedon, } and hidden_resource area6 and hidden_resource r5
    recruit "taxeis hoplite2" 0 requires factions { macedon, } and hidden_resource area6 and hidden_resource r6
    recruit "taxeis hoplite2" 0 requires factions { macedon, } and hidden_resource area6 and hidden_resource r7
    recruit "taxeis hoplite2" 0 requires factions { macedon, } and hidden_resource area8
    recruit "taxeis hoplite2" 0 requires factions { macedon, } and hidden_resource area9
    recruit "taxeis hoplite2" 0 requires factions { macedon, } and hidden_resource area12
    recruit "agrianian infantry" 0 requires factions { macedon, } and hidden_resource area8
    recruit "macedonian katoikoi phalangites" 0 requires factions { macedon, } and not hidden_resource macedon
    recruit "macedonian pezoi bottias" 0 requires factions { macedon, }
    recruit "macedonian thorakitai" 0 requires factions { macedon, }
    recruit "amfipolitan pezoi" 0 requires factions { macedon, } and hidden_resource area8 and hidden_resource r3
    recruit "amfipolitan pezoi" 0 requires factions { macedon, } and hidden_resource area8 and hidden_resource r5
    recruit "amfipolitan pezoi" 0 requires factions { macedon, } and hidden_resource area8 and hidden_resource r8
    recruit "amfipolitan pezoi" 0 requires factions { macedon, } and hidden_resource area8 and hidden_resource r9
    recruit "amfipolitan pezoi" 0 requires factions { macedon, } and hidden_resource area8 and hidden_resource r10
    recruit "macedonian hypaspist" 0 requires factions { macedon, }
    recruit "agema elite phalangite" 0 requires factions { macedon, }
    recruit "thorakitai arabes" 0 requires factions { seleucid, } and hidden_resource area11 and hidden_resource r11
    recruit "thorakitai arabes" 0 requires factions { seleucid, } and hidden_resource area11 and hidden_resource r12
    recruit "thorakitai arabes" 0 requires factions { seleucid, } and hidden_resource area11 and hidden_resource r13
    recruit "thorakitai arabes" 0 requires factions { seleucid, } and hidden_resource area14 and hidden_resource r8
    recruit "pezhetairoi pikeman" 0 requires factions { seleucid, }
    recruit "argyraspides" 0 requires factions { seleucid, }
    recruit "seleucid royal hypaspistai" 0 requires factions { seleucid, }
    recruit "seleucid thorakitai" 0 requires factions { seleucid, }
    recruit "seleucid thorakitai argyraspides" 0 requires factions { seleucid, }
    recruit "machairaphoroi" 0 requires factions { seleucid, }
    recruit "machairaphoroi elite" 0 requires factions { seleucid, }
    recruit "machairaphoroi" 0 requires factions { macedon, }
    recruit "machairaphoroi elite" 0 requires factions { macedon, }
    ;;;;;;;;;;;;;;;;Cavalry Available;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
    recruit "greek prodromoi cavalry" 0 requires factions { seleucid, }
    recruit "seleucid xystophoroi cavalry" 0 requires factions { seleucid, }
    recruit "seleucid heavy cataphract" 0 requires factions { seleucid, } and hidden_resource area11
    recruit "seleucid heavy cataphract" 0 requires factions { seleucid, } and hidden_resource area12
    recruit "seleucid heavy cataphract" 0 requires factions { seleucid, } and hidden_resource area14
    recruit "seleucid heavy cataphract" 0 requires factions { seleucid, } and hidden_resource area15
    recruit "seleucid 4horse chariot" 0 requires factions { seleucid, } and hidden_resource area8 and hidden_resource r13
    recruit "seleucid 4horse chariot" 0 requires factions { seleucid, } and hidden_resource area12 and hidden_resource r4
    recruit "seleucid 4horse chariot" 0 requires factions { seleucid, } and hidden_resource area14 and hidden_resource r4
    recruit "seleucid 4horse chariot" 0 requires factions { seleucid, } and hidden_resource area14 and hidden_resource r12
    recruit "seleucid 4horse chariot" 0 requires factions { seleucid, } and hidden_resource area11 and hidden_resource r11
    recruit "seleucid 4horse chariot" 0 requires factions { seleucid, } and hidden_resource area15 and hidden_resource r10
    recruit "greek aspidophoroi" 0 requires factions { macedon, seleucid, }
    recruit "greek lonchophoroi" 0 requires factions { macedon, seleucid, }
    recruit "indian elephant" 0 requires factions { seleucid, } and hidden_resource area11 and hidden_resource r11
    recruit "indian elephant" 0 requires factions { seleucid, } and hidden_resource area14 and hidden_resource r12
    recruit "indian elephant" 0 requires factions { seleucid, } and hidden_resource area15 and hidden_resource r5
    recruit "indian elephant" 0 requires factions { seleucid, } and hidden_resource area15 and hidden_resource r6
    recruit "indian elephant" 0 requires factions { seleucid, } and hidden_resource area15 and hidden_resource r7
    recruit "indian elephant" 0 requires factions { seleucid, } and hidden_resource area15 and hidden_resource r10
    recruit "elephant cataphract" 0 requires factions { seleucid, } and hidden_resource area14 and hidden_resource r12
    recruit "elephant cataphract" 0 requires factions { seleucid, } and hidden_resource area11 and hidden_resource r11
    recruit "elephant cataphract" 0 requires factions { seleucid, } and hidden_resource area15 and hidden_resource r10
    recruit "paiones hippeis" 0 requires factions { macedon, } and hidden_resource area8
    recruit "thraikan hippeis" 0 requires factions { macedon, } and hidden_resource area8
    recruit "thureophoroi hippeis" 0 requires factions { macedon, }
    recruit "thessalian hippeis" 0 requires factions { macedon, } and hidden_resource area8
    recruit "seleucid royal cavalry" 0 requires factions { seleucid, } and hidden_resource area11 and hidden_resource r11
    recruit "seleucid royal cavalry" 0 requires factions { seleucid, } and hidden_resource area12 and hidden_resource r4
    recruit "seleucid royal cavalry" 0 requires factions { seleucid, } and hidden_resource area14 and hidden_resource r4
    recruit "seleucid royal cavalry" 0 requires factions { seleucid, } and hidden_resource area14 and hidden_resource r12
    recruit "seleucid royal cavalry" 0 requires factions { seleucid, } and hidden_resource area15 and hidden_resource r10
    recruit "seleucid royal cavalry" 0 requires factions { seleucid, } and hidden_resource area8 and hidden_resource r7
    recruit "seleucid royal cavalry" 0 requires factions { seleucid, } and hidden_resource area8 and hidden_resource r13
    recruit "seleucid royal cavalry" 0 requires factions { seleucid, } and hidden_resource area9 and hidden_resource r11
    recruit "seleucid royal cavalry" 0 requires factions { seleucid, } and hidden_resource area6 and hidden_resource r2
    recruit "seleucid royal cavalry" 0 requires factions { seleucid, } and hidden_resource area6 and hidden_resource r9
    recruit "macedonian royal cavalry" 0 requires factions { macedon, } and hidden_resource area11 and hidden_resource r11
    recruit "macedonian royal cavalry" 0 requires factions { macedon, } and hidden_resource area12 and hidden_resource r4
    recruit "macedonian royal cavalry" 0 requires factions { macedon, } and hidden_resource area14 and hidden_resource r4
    recruit "macedonian royal cavalry" 0 requires factions { macedon, } and hidden_resource area14 and hidden_resource r12
    recruit "macedonian royal cavalry" 0 requires factions { macedon, } and hidden_resource area15 and hidden_resource r10
    recruit "macedonian royal cavalry" 0 requires factions { macedon, } and hidden_resource area8 and hidden_resource r7
    recruit "macedonian royal cavalry" 0 requires factions { macedon, } and hidden_resource area8 and hidden_resource r13
    recruit "macedonian royal cavalry" 0 requires factions { macedon, } and hidden_resource area9 and hidden_resource r11
    recruit "macedonian royal cavalry" 0 requires factions { macedon, } and hidden_resource area6 and hidden_resource r2
    recruit "macedonian royal cavalry" 0 requires factions { macedon, } and hidden_resource area6 and hidden_resource r9
    recruit "palmyran cataphract" 0 requires factions { seleucid, } and hidden_resource area11 and hidden_resource r12
    ;;;;;;;;;;;;;;;;MISSLE Units Available;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
    recruit "thraikan peltast" 0 requires factions { macedon, }
    recruit "greek heavy peltast" 0 requires factions { macedon, seleucid, }
    recruit "greek archer" 0 requires factions { macedon, seleucid, }
    recruit "basilikoi peltastai" 0 requires factions { macedon, }
    recruit "syrian archers" 0 requires factions { seleucid, } and hidden_resource area14 and hidden_resource r10
    recruit "syrian archers" 0 requires factions { seleucid, } and hidden_resource area14 and hidden_resource r11
    recruit "syrian archers" 0 requires factions { seleucid, } and hidden_resource area14 and hidden_resource r12
    recruit "syrian archers" 0 requires factions { seleucid, } and hidden_resource area14 and hidden_resource r14
    recruit "ballista" 0 requires factions { macedon, seleucid, } and not hidden_resource area4 and not hidden_resource area10
    recruit "scorpion" 0 requires factions { macedon, seleucid, } and not hidden_resource area4 and not hidden_resource area10
    recruit "onager" 0 requires factions { macedon, seleucid, } and not hidden_resource area4 and not hidden_resource area10
    population_growth_bonus bonus 1 requires factions { macedon, seleucid, }
    happiness_bonus bonus 2 requires factions { seleucid, }
    ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
    taxable_income_bonus bonus -20 requires factions { macedon, seleucid, }
    recruits_exp_bonus 4 requires factions { seleucid, }
    }
    construction 8
    cost 20000
    settlement_min city
    upgrades


    Just do what I did here, don't copy and paste it. The trick here is that you got to erase most of the Botian pike so

    that you don't get a "double" unit which will crash the game. Works about the same with Legionary (manage to

    make them all recruit able and not make the game crash

    Can we merge this with the other thread that was posted few weeks back?

    Re Edit: Reading this I might have misread it, what unit do you want to be able to recruit and where

    do you want to restrict it?
    Last edited by Spartan999; April 09, 2014 at 07:17 PM.

  4. #4

    Default Re: Advice needed on how to add units to Faction Unit Roster

    Quote Originally Posted by Alavaria View Post
    The Boiotian Pezhetiroi are an AOR (Area of Recruitment) unit, that's why they're restricted to a specific set (or single) settlement.

    Recruitment code is found in the EDB (export_descr_buildings) in the data folder (or in the play_macedon/data folder for that specific campaign)
    Yeah that makes sense.

    Ahh I found the file. Typical, I had looked at this file before but at the top it says not to edit by hand so I promptly closed the window

    Quote Originally Posted by Spartan999 View Post
    Do you just want to recruit them everywhere? Cause you have to be careful on the words you have to modify.

    EDIT: Will post a recruit everywhere export building soon

    Spoiler Alert, click show to read: 

    successor_order1 requires factions { seleucid, } or factions { macedon, }
    {
    capability
    {
    recruit "greek levy pikemen" 0 requires factions { macedon, seleucid, }
    law_bonus bonus 2 requires factions { macedon, seleucid, } and not building_present_min_level hinterland_treasury medium_treasury
    population_growth_bonus bonus 4 requires factions { seleucid, } and not building_present_min_level core_building proconsuls_palace
    }
    construction 2
    cost 2500
    settlement_min town
    upgrades
    {
    successor_order2
    }
    }
    successor_order2 requires factions { seleucid, } or factions { macedon, }
    {
    capability
    {
    ;;;;;;;;;;;;;;;;;;Infantry Available;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
    recruit "thureophoroi" 0 requires factions { macedon, seleucid, }
    recruit "greek levy pikemen" 0 requires factions { macedon, seleucid, }
    ;;;;;;;;;;;;;;;;Cavalry Available;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
    recruit "thureophoroi hippeis" 0 requires factions { macedon, }
    recruit "greek tarantine cavalry" 0 requires factions { macedon, seleucid, }
    ;;;;;;;;;;;;;;;;MISSLE Units;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
    recruit "greek akontistai" 0 requires factions { macedon, seleucid, }
    recruit "greek slinger" 0 requires factions { macedon, seleucid, }
    recruit "thraikan peltast" 0 requires factions { macedon, } and hidden_resource area8
    population_growth_bonus bonus 2 requires factions { seleucid, } and not building_present_min_level core_building proconsuls_palace
    }
    construction 2
    cost 2500
    settlement_min large_town
    upgrades
    {
    successor_order3
    }
    }
    successor_order3 requires factions { seleucid, } or factions { macedon, }
    {
    capability
    {
    agent spy 0 requires factions { macedon, seleucid, }
    agent assassin 0 requires factions { macedon, seleucid, }
    agent diplomat 0 requires factions { macedon, seleucid, }
    recruit "seleucid generals guard cavalry" 0 requires factions { seleucid, }
    recruit "macedonian generals guard cavalry" 0 requires factions { macedon, }
    ;;;;;;;;;;;;;;;;;;Infantry Available;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
    recruit "greek levy pikemen" 0 requires factions { macedon, seleucid, }
    recruit "allied phalangites" 0 requires factions { macedon, } and hidden_resource area5 and hidden_resource r6
    recruit "allied phalangites" 0 requires factions { macedon, } and hidden_resource area5 and hidden_resource r7
    recruit "allied phalangites" 0 requires factions { macedon, } and hidden_resource area5 and hidden_resource r8
    recruit "allied phalangites" 0 requires factions { macedon, } and hidden_resource area5 and hidden_resource r9
    recruit "allied phalangites" 0 requires factions { macedon, } and hidden_resource area8 and hidden_resource r4
    recruit "allied phalangites" 0 requires factions { macedon, } and hidden_resource area8 and hidden_resource r11
    recruit "allied phalangites" 0 requires factions { macedon, } and hidden_resource area8 and hidden_resource r12
    recruit "allied phalangites" 0 requires factions { macedon, } and hidden_resource area8 and hidden_resource r13
    recruit "allied phalangites" 0 requires factions { macedon, } and hidden_resource area8 and hidden_resource r14
    recruit "allied phalangites" 0 requires factions { macedon, } and hidden_resource area9
    recruit "allied phalangites" 0 requires factions { macedon, } and hidden_resource area12 and not hidden_resource r7
    recruit "allied phalangites" 0 requires factions { macedon, } and hidden_resource area12 and not hidden_resource r8
    recruit "allied phalangites" 0 requires factions { macedon, } and hidden_resource area12 and not hidden_resource r9
    recruit "allied phalangites" 0 requires factions { macedon, } and hidden_resource area12 and not hidden_resource r14
    recruit "taxeis hoplite2" 0 requires factions { macedon, } and hidden_resource area6 and hidden_resource island
    recruit "taxeis hoplite2" 0 requires factions { macedon, } and hidden_resource area6 and hidden_resource r5
    recruit "taxeis hoplite2" 0 requires factions { macedon, } and hidden_resource area6 and hidden_resource r6
    recruit "taxeis hoplite2" 0 requires factions { macedon, } and hidden_resource area6 and hidden_resource r7
    recruit "taxeis hoplite2" 0 requires factions { macedon, } and hidden_resource area8
    recruit "taxeis hoplite2" 0 requires factions { macedon, } and hidden_resource area9
    recruit "taxeis hoplite2" 0 requires factions { macedon, } and hidden_resource area12
    recruit "macedonian katoikoi phalangites" 0 requires factions { macedon, } and not hidden_resource macedon
    recruit "macedonian pezoi bottias" 0 requires factions { macedon, }
    recruit "amfipolitan pezoi" 0 requires factions { macedon, } and hidden_resource area8 and hidden_resource r3
    recruit "amfipolitan pezoi" 0 requires factions { macedon, } and hidden_resource area8 and hidden_resource r5
    recruit "amfipolitan pezoi" 0 requires factions { macedon, } and hidden_resource area8 and hidden_resource r8
    recruit "amfipolitan pezoi" 0 requires factions { macedon, } and hidden_resource area8 and hidden_resource r9
    recruit "amfipolitan pezoi" 0 requires factions { macedon, } and hidden_resource area8 and hidden_resource r10
    recruit "agrianian infantry" 0 requires factions { macedon, } and hidden_resource area8
    recruit "thureophoroi" 0 requires factions { macedon, seleucid, }
    recruit "seleucid katakoi phalangites" 0 requires factions { seleucid, }
    recruit "pezhetairoi pikeman" 0 requires factions { seleucid, }
    ;;;;;;;;;;;;;;;;Cavalry Available;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
    recruit "greek tarantine cavalry" 0 requires factions { macedon, seleucid, }
    recruit "greek prodromoi cavalry" 0 requires factions { seleucid, }
    recruit "greek lonchophoroi" 0 requires factions { macedon, seleucid, }
    recruit "thraikan hippeis" 0 requires factions { macedon, } and hidden_resource area8
    recruit "paiones hippeis" 0 requires factions { macedon, } and hidden_resource area8
    recruit "thureophoroi hippeis" 0 requires factions { macedon, }
    ;;;;;;;;;;;;;;;;MISSLE Units Available;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
    recruit "greek akontistai" 0 requires factions { macedon, seleucid, }
    recruit "greek slinger" 0 requires factions { macedon, seleucid, }
    recruit "thraikan peltast" 0 requires factions { macedon, } and hidden_resource area8
    recruit "greek heavy peltast" 0 requires factions { macedon, seleucid, }
    recruit "greek archer" 0 requires factions { macedon, seleucid, }
    recruit "syrian archers" 0 requires factions { seleucid, } and hidden_resource area14 and hidden_resource r10
    recruit "syrian archers" 0 requires factions { seleucid, } and hidden_resource area14 and hidden_resource r11
    recruit "syrian archers" 0 requires factions { seleucid, } and hidden_resource area14 and hidden_resource r12
    recruit "syrian archers" 0 requires factions { seleucid, } and hidden_resource area14 and hidden_resource r14
    population_growth_bonus bonus 1 requires factions { seleucid, }
    ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
    taxable_income_bonus bonus -5 requires factions { macedon, seleucid, }
    happiness_bonus bonus 2 requires factions { seleucid, }
    recruits_exp_bonus 4 requires factions { seleucid, }
    }
    construction 3
    cost 5000
    settlement_min city
    upgrades
    {
    successor_order4
    }
    }
    successor_order4 requires factions { seleucid, } or factions { macedon, }
    {
    capability
    {
    agent spy 0 requires factions { macedon, seleucid, }
    agent assassin 0 requires factions { macedon, seleucid, }
    agent diplomat 0 requires factions { macedon, seleucid, }
    recruit "seleucid generals guard cavalry" 0 requires factions { seleucid, }
    recruit "macedonian generals guard cavalry" 0 requires factions { macedon, }
    ;;;;;;;;;;;;;;;;;;Infantry Available;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
    recruit "greek levy pikemen" 0 requires factions { macedon, seleucid, }
    recruit "allied phalangites" 0 requires factions { macedon, } and hidden_resource area5 and hidden_resource r6
    recruit "allied phalangites" 0 requires factions { macedon, } and hidden_resource area5 and hidden_resource r7
    recruit "allied phalangites" 0 requires factions { macedon, } and hidden_resource area5 and hidden_resource r8
    recruit "allied phalangites" 0 requires factions { macedon, } and hidden_resource area5 and hidden_resource r9
    recruit "allied phalangites" 0 requires factions { macedon, } and hidden_resource area8 and hidden_resource r4
    recruit "allied phalangites" 0 requires factions { macedon, } and hidden_resource area8 and hidden_resource r11
    recruit "allied phalangites" 0 requires factions { macedon, } and hidden_resource area8 and hidden_resource r12
    recruit "allied phalangites" 0 requires factions { macedon, } and hidden_resource area8 and hidden_resource r13
    recruit "allied phalangites" 0 requires factions { macedon, } and hidden_resource area8 and hidden_resource r14
    recruit "allied phalangites" 0 requires factions { macedon, } and hidden_resource area9
    recruit "allied phalangites" 0 requires factions { macedon, } and hidden_resource area12 and not hidden_resource r7
    recruit "allied phalangites" 0 requires factions { macedon, } and hidden_resource area12 and not hidden_resource r8
    recruit "allied phalangites" 0 requires factions { macedon, } and hidden_resource area12 and not hidden_resource r9
    recruit "allied phalangites" 0 requires factions { macedon, } and hidden_resource area12 and not hidden_resource r14
    recruit "taxeis hoplite2" 0 requires factions { macedon, } and hidden_resource area6 and hidden_resource island
    recruit "taxeis hoplite2" 0 requires factions { macedon, } and hidden_resource area6 and hidden_resource r5
    recruit "taxeis hoplite2" 0 requires factions { macedon, } and hidden_resource area6 and hidden_resource r6
    recruit "taxeis hoplite2" 0 requires factions { macedon, } and hidden_resource area6 and hidden_resource r7
    recruit "taxeis hoplite2" 0 requires factions { macedon, } and hidden_resource area8
    recruit "taxeis hoplite2" 0 requires factions { macedon, } and hidden_resource area9
    recruit "taxeis hoplite2" 0 requires factions { macedon, } and hidden_resource area12
    recruit "macedonian katoikoi phalangites" 0 requires factions { macedon, } and not hidden_resource macedon
    recruit "macedonian pezoi bottias" 0 requires factions { macedon, }
    recruit "agrianian infantry" 0 requires factions { macedon, } and hidden_resource area8
    recruit "thorakitai arabes" 0 requires factions { macedon, seleucid, } and hidden_resource area11 and hidden_resource r12
    recruit "thorakitai arabes" 0 requires factions { macedon, seleucid, } and hidden_resource area11 and hidden_resource r13
    recruit "thorakitai arabes" 0 requires factions { macedon, seleucid, } and hidden_resource area14 and hidden_resource r8
    recruit "amfipolitan pezoi" 0 requires factions { macedon, } and hidden_resource area8 and hidden_resource r3
    recruit "amfipolitan pezoi" 0 requires factions { macedon, } and hidden_resource area8 and hidden_resource r5
    recruit "amfipolitan pezoi" 0 requires factions { macedon, } and hidden_resource area8 and hidden_resource r8
    recruit "amfipolitan pezoi" 0 requires factions { macedon, } and hidden_resource area8 and hidden_resource r9
    recruit "amfipolitan pezoi" 0 requires factions { macedon, } and hidden_resource area8 and hidden_resource r10
    recruit "macedonian thorakitai" 0 requires factions { macedon, } and hidden_resource area8 and hidden_resource r7
    recruit "macedonian thorakitai" 0 requires factions { macedon, } and hidden_resource area8 and hidden_resource r2
    recruit "macedonian thorakitai" 0 requires factions { macedon, } and hidden_resource area8 and hidden_resource r6
    recruit "macedonian thorakitai" 0 requires factions { macedon, } and hidden_resource area8 and hidden_resource r8
    recruit "macedonian thorakitai" 0 requires factions { macedon, } and hidden_resource area9 and hidden_resource r2
    recruit "macedonian thorakitai" 0 requires factions { macedon, } and hidden_resource area9 and hidden_resource r3
    recruit "macedonian hypaspist" 0 requires factions { macedon, }
    recruit "agema elite phalangite" 0 requires factions { macedon, }
    recruit "pezhetairoi pikeman" 0 requires factions { seleucid, }
    recruit "argyraspides" 0 requires factions { seleucid, }
    recruit "seleucid thorakitai" 0 requires factions { seleucid, }
    ;;;;;;;;;;;;;;;;Cavalry Available;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
    recruit "greek prodromoi cavalry" 0 requires factions { seleucid, }
    recruit "seleucid xystophoroi cavalry" 0 requires factions { seleucid, }
    recruit "greek aspidophoroi" 0 requires factions { macedon, seleucid, }
    recruit "greek lonchophoroi" 0 requires factions { macedon, seleucid, }
    recruit "indian elephant" 0 requires factions { seleucid, } and hidden_resource area11 and hidden_resource r11
    recruit "indian elephant" 0 requires factions { seleucid, } and hidden_resource area14 and hidden_resource r12
    recruit "indian elephant" 0 requires factions { seleucid, } and hidden_resource area15 and hidden_resource r5
    recruit "indian elephant" 0 requires factions { seleucid, } and hidden_resource area15 and hidden_resource r6
    recruit "indian elephant" 0 requires factions { seleucid, } and hidden_resource area15 and hidden_resource r7
    recruit "indian elephant" 0 requires factions { seleucid, } and hidden_resource area15 and hidden_resource r10
    recruit "elephant cataphract" 0 requires factions { seleucid, } and hidden_resource area14 and hidden_resource r12
    recruit "elephant cataphract" 0 requires factions { seleucid, } and hidden_resource area11 and hidden_resource r11
    recruit "elephant cataphract" 0 requires factions { seleucid, } and hidden_resource area15 and hidden_resource r10
    recruit "paiones hippeis" 0 requires factions { macedon, } and hidden_resource area8
    recruit "thraikan hippeis" 0 requires factions { macedon, } and hidden_resource area8
    recruit "thureophoroi hippeis" 0 requires factions { macedon, }
    recruit "thessalian hippeis" 0 requires factions { macedon, } and hidden_resource area8
    recruit "palmyran cataphract" 0 requires factions { seleucid, } and hidden_resource area11 and hidden_resource r12
    ;;;;;;;;;;;;;;;;MISSLE Units Available;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
    recruit "thraikan peltast" 0 requires factions { macedon, } and hidden_resource area8
    recruit "greek heavy peltast" 0 requires factions { macedon, seleucid, }
    recruit "greek archer" 0 requires factions { macedon, seleucid, }
    recruit "basilikoi peltastai" 0 requires factions { macedon, }
    recruit "syrian archers" 0 requires factions { seleucid, } and hidden_resource area14 and hidden_resource r10
    recruit "syrian archers" 0 requires factions { seleucid, } and hidden_resource area14 and hidden_resource r11
    recruit "syrian archers" 0 requires factions { seleucid, } and hidden_resource area14 and hidden_resource r12
    recruit "syrian archers" 0 requires factions { seleucid, } and hidden_resource area14 and hidden_resource r14
    recruit "ballista" 0 requires factions { macedon, seleucid, } and not hidden_resource area4 and not hidden_resource area10
    population_growth_bonus bonus 1 requires factions { seleucid, }
    ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
    taxable_income_bonus bonus -10 requires factions { macedon, seleucid, }
    happiness_bonus bonus 1 requires factions { seleucid, }
    recruits_exp_bonus 4 requires factions { seleucid, }
    }
    construction 3
    cost 10000
    settlement_min city
    upgrades
    {
    successor_order5
    }
    }
    successor_order5 requires factions { seleucid, } or factions { macedon, }
    {
    capability
    {
    agent spy 0 requires factions { macedon, seleucid, }
    agent assassin 0 requires factions { macedon, seleucid, }
    agent diplomat 0 requires factions { macedon, seleucid, }
    recruit "seleucid generals guard cavalry" 1 requires factions { seleucid, }
    recruit "macedonian generals guard cavalry" 1 requires factions { macedon, }
    ;;;;;;;;;;;;;;;;;;Infantry Available;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
    recruit "greek levy pikemen" 0 requires factions { macedon, seleucid, }
    recruit "allied phalangites" 0 requires factions { macedon, } and hidden_resource area5 and hidden_resource r6
    recruit "allied phalangites" 0 requires factions { macedon, } and hidden_resource area5 and hidden_resource r7
    recruit "allied phalangites" 0 requires factions { macedon, } and hidden_resource area5 and hidden_resource r8
    recruit "allied phalangites" 0 requires factions { macedon, } and hidden_resource area5 and hidden_resource r9
    recruit "allied phalangites" 0 requires factions { macedon, } and hidden_resource area8 and hidden_resource r4
    recruit "allied phalangites" 0 requires factions { macedon, } and hidden_resource area8 and hidden_resource r11
    recruit "allied phalangites" 0 requires factions { macedon, } and hidden_resource area8 and hidden_resource r12
    recruit "allied phalangites" 0 requires factions { macedon, } and hidden_resource area8 and hidden_resource r13
    recruit "allied phalangites" 0 requires factions { macedon, } and hidden_resource area8 and hidden_resource r14
    recruit "allied phalangites" 0 requires factions { macedon, } and hidden_resource area9
    recruit "allied phalangites" 0 requires factions { macedon, } and hidden_resource area12 and not hidden_resource r7
    recruit "allied phalangites" 0 requires factions { macedon, } and hidden_resource area12 and not hidden_resource r8
    recruit "allied phalangites" 0 requires factions { macedon, } and hidden_resource area12 and not hidden_resource r9
    recruit "allied phalangites" 0 requires factions { macedon, } and hidden_resource area12 and not hidden_resource r14
    recruit "taxeis hoplite2" 0 requires factions { macedon, } and hidden_resource area6 and hidden_resource island
    recruit "taxeis hoplite2" 0 requires factions { macedon, } and hidden_resource area6 and hidden_resource r5
    recruit "taxeis hoplite2" 0 requires factions { macedon, } and hidden_resource area6 and hidden_resource r6
    recruit "taxeis hoplite2" 0 requires factions { macedon, } and hidden_resource area6 and hidden_resource r7
    recruit "taxeis hoplite2" 0 requires factions { macedon, } and hidden_resource area8
    recruit "taxeis hoplite2" 0 requires factions { macedon, } and hidden_resource area9
    recruit "taxeis hoplite2" 0 requires factions { macedon, } and hidden_resource area12
    recruit "agrianian infantry" 0 requires factions { macedon, } and hidden_resource area8
    recruit "macedonian katoikoi phalangites" 0 requires factions { macedon, } and not hidden_resource macedon
    recruit "macedonian pezoi bottias" 0 requires factions { macedon, }
    recruit "macedonian thorakitai" 0 requires factions { macedon, }
    recruit "amfipolitan pezoi" 0 requires factions { macedon, } and hidden_resource area8 and hidden_resource r3
    recruit "amfipolitan pezoi" 0 requires factions { macedon, } and hidden_resource area8 and hidden_resource r5
    recruit "amfipolitan pezoi" 0 requires factions { macedon, } and hidden_resource area8 and hidden_resource r8
    recruit "amfipolitan pezoi" 0 requires factions { macedon, } and hidden_resource area8 and hidden_resource r9
    recruit "amfipolitan pezoi" 0 requires factions { macedon, } and hidden_resource area8 and hidden_resource r10
    recruit "macedonian hypaspist" 0 requires factions { macedon, }
    recruit "agema elite phalangite" 0 requires factions { macedon, }
    recruit "thorakitai arabes" 0 requires factions { seleucid, } and hidden_resource area11 and hidden_resource r11
    recruit "thorakitai arabes" 0 requires factions { seleucid, } and hidden_resource area11 and hidden_resource r12
    recruit "thorakitai arabes" 0 requires factions { seleucid, } and hidden_resource area11 and hidden_resource r13
    recruit "thorakitai arabes" 0 requires factions { seleucid, } and hidden_resource area14 and hidden_resource r8
    recruit "pezhetairoi pikeman" 0 requires factions { seleucid, }
    recruit "argyraspides" 0 requires factions { seleucid, }
    recruit "seleucid royal hypaspistai" 0 requires factions { seleucid, }
    recruit "seleucid thorakitai" 0 requires factions { seleucid, }
    recruit "seleucid thorakitai argyraspides" 0 requires factions { seleucid, }
    recruit "machairaphoroi" 0 requires factions { seleucid, }
    recruit "machairaphoroi elite" 0 requires factions { seleucid, }
    recruit "machairaphoroi" 0 requires factions { macedon, }
    recruit "machairaphoroi elite" 0 requires factions { macedon, }
    ;;;;;;;;;;;;;;;;Cavalry Available;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
    recruit "greek prodromoi cavalry" 0 requires factions { seleucid, }
    recruit "seleucid xystophoroi cavalry" 0 requires factions { seleucid, }
    recruit "seleucid heavy cataphract" 0 requires factions { seleucid, } and hidden_resource area11
    recruit "seleucid heavy cataphract" 0 requires factions { seleucid, } and hidden_resource area12
    recruit "seleucid heavy cataphract" 0 requires factions { seleucid, } and hidden_resource area14
    recruit "seleucid heavy cataphract" 0 requires factions { seleucid, } and hidden_resource area15
    recruit "seleucid 4horse chariot" 0 requires factions { seleucid, } and hidden_resource area8 and hidden_resource r13
    recruit "seleucid 4horse chariot" 0 requires factions { seleucid, } and hidden_resource area12 and hidden_resource r4
    recruit "seleucid 4horse chariot" 0 requires factions { seleucid, } and hidden_resource area14 and hidden_resource r4
    recruit "seleucid 4horse chariot" 0 requires factions { seleucid, } and hidden_resource area14 and hidden_resource r12
    recruit "seleucid 4horse chariot" 0 requires factions { seleucid, } and hidden_resource area11 and hidden_resource r11
    recruit "seleucid 4horse chariot" 0 requires factions { seleucid, } and hidden_resource area15 and hidden_resource r10
    recruit "greek aspidophoroi" 0 requires factions { macedon, seleucid, }
    recruit "greek lonchophoroi" 0 requires factions { macedon, seleucid, }
    recruit "indian elephant" 0 requires factions { seleucid, } and hidden_resource area11 and hidden_resource r11
    recruit "indian elephant" 0 requires factions { seleucid, } and hidden_resource area14 and hidden_resource r12
    recruit "indian elephant" 0 requires factions { seleucid, } and hidden_resource area15 and hidden_resource r5
    recruit "indian elephant" 0 requires factions { seleucid, } and hidden_resource area15 and hidden_resource r6
    recruit "indian elephant" 0 requires factions { seleucid, } and hidden_resource area15 and hidden_resource r7
    recruit "indian elephant" 0 requires factions { seleucid, } and hidden_resource area15 and hidden_resource r10
    recruit "elephant cataphract" 0 requires factions { seleucid, } and hidden_resource area14 and hidden_resource r12
    recruit "elephant cataphract" 0 requires factions { seleucid, } and hidden_resource area11 and hidden_resource r11
    recruit "elephant cataphract" 0 requires factions { seleucid, } and hidden_resource area15 and hidden_resource r10
    recruit "paiones hippeis" 0 requires factions { macedon, } and hidden_resource area8
    recruit "thraikan hippeis" 0 requires factions { macedon, } and hidden_resource area8
    recruit "thureophoroi hippeis" 0 requires factions { macedon, }
    recruit "thessalian hippeis" 0 requires factions { macedon, } and hidden_resource area8
    recruit "seleucid royal cavalry" 0 requires factions { seleucid, } and hidden_resource area11 and hidden_resource r11
    recruit "seleucid royal cavalry" 0 requires factions { seleucid, } and hidden_resource area12 and hidden_resource r4
    recruit "seleucid royal cavalry" 0 requires factions { seleucid, } and hidden_resource area14 and hidden_resource r4
    recruit "seleucid royal cavalry" 0 requires factions { seleucid, } and hidden_resource area14 and hidden_resource r12
    recruit "seleucid royal cavalry" 0 requires factions { seleucid, } and hidden_resource area15 and hidden_resource r10
    recruit "seleucid royal cavalry" 0 requires factions { seleucid, } and hidden_resource area8 and hidden_resource r7
    recruit "seleucid royal cavalry" 0 requires factions { seleucid, } and hidden_resource area8 and hidden_resource r13
    recruit "seleucid royal cavalry" 0 requires factions { seleucid, } and hidden_resource area9 and hidden_resource r11
    recruit "seleucid royal cavalry" 0 requires factions { seleucid, } and hidden_resource area6 and hidden_resource r2
    recruit "seleucid royal cavalry" 0 requires factions { seleucid, } and hidden_resource area6 and hidden_resource r9
    recruit "macedonian royal cavalry" 0 requires factions { macedon, } and hidden_resource area11 and hidden_resource r11
    recruit "macedonian royal cavalry" 0 requires factions { macedon, } and hidden_resource area12 and hidden_resource r4
    recruit "macedonian royal cavalry" 0 requires factions { macedon, } and hidden_resource area14 and hidden_resource r4
    recruit "macedonian royal cavalry" 0 requires factions { macedon, } and hidden_resource area14 and hidden_resource r12
    recruit "macedonian royal cavalry" 0 requires factions { macedon, } and hidden_resource area15 and hidden_resource r10
    recruit "macedonian royal cavalry" 0 requires factions { macedon, } and hidden_resource area8 and hidden_resource r7
    recruit "macedonian royal cavalry" 0 requires factions { macedon, } and hidden_resource area8 and hidden_resource r13
    recruit "macedonian royal cavalry" 0 requires factions { macedon, } and hidden_resource area9 and hidden_resource r11
    recruit "macedonian royal cavalry" 0 requires factions { macedon, } and hidden_resource area6 and hidden_resource r2
    recruit "macedonian royal cavalry" 0 requires factions { macedon, } and hidden_resource area6 and hidden_resource r9
    recruit "palmyran cataphract" 0 requires factions { seleucid, } and hidden_resource area11 and hidden_resource r12
    ;;;;;;;;;;;;;;;;MISSLE Units Available;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
    recruit "thraikan peltast" 0 requires factions { macedon, }
    recruit "greek heavy peltast" 0 requires factions { macedon, seleucid, }
    recruit "greek archer" 0 requires factions { macedon, seleucid, }
    recruit "basilikoi peltastai" 0 requires factions { macedon, }
    recruit "syrian archers" 0 requires factions { seleucid, } and hidden_resource area14 and hidden_resource r10
    recruit "syrian archers" 0 requires factions { seleucid, } and hidden_resource area14 and hidden_resource r11
    recruit "syrian archers" 0 requires factions { seleucid, } and hidden_resource area14 and hidden_resource r12
    recruit "syrian archers" 0 requires factions { seleucid, } and hidden_resource area14 and hidden_resource r14
    recruit "ballista" 0 requires factions { macedon, seleucid, } and not hidden_resource area4 and not hidden_resource area10
    recruit "scorpion" 0 requires factions { macedon, seleucid, } and not hidden_resource area4 and not hidden_resource area10
    recruit "onager" 0 requires factions { macedon, seleucid, } and not hidden_resource area4 and not hidden_resource area10
    population_growth_bonus bonus 1 requires factions { macedon, seleucid, }
    happiness_bonus bonus 2 requires factions { seleucid, }
    ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
    taxable_income_bonus bonus -20 requires factions { macedon, seleucid, }
    recruits_exp_bonus 4 requires factions { seleucid, }
    }
    construction 8
    cost 20000
    settlement_min city
    upgrades


    Just do what I did here, don't copy and paste it. The trick here is that you got to erase most of the Botian pike so

    that you don't get a "double" unit which will crash the game. Works about the same with Legionary (manage to

    make them all recruit able and not make the game crash

    Can we merge this with the other thread that was posted few weeks back?

    Re Edit: Reading this I might have misread it, what unit do you want to be able to recruit and where

    do you want to restrict it?
    Right ok. I read through the text and it may be due to me having just woken up but I could not spot the changes that had been done lol, sorry! Also I read somewhere the best way to 'remove' entries is to use the ';' to 'comment off the line' so changes are easily undone?

    Ahh no worries mate. The unit I am discussing here is the Boiotian Pezhetairoi but keeping it's AOR the same (in Boiotia, Thebes) but I can think of a fair few more I would like to do once I can do it properly.

    Thanks for all your helps everyone!

  5. #5

    Default Re: Advice needed on how to add units to Faction Unit Roster

    Ah, ok ok, I think I got it.

    "Recruit as mercenaries" means you're looking for the "Levy and Mercenaries" building. Once you have a tier 3 barracks, you will be able to build the merc building. That's how you have regular access to "mercenary units" (it's not the same as recruiting mercs in the field)

    Please take a look at your capital, you either have (or are able to construct) such a building there.

  6. #6

    Default Re: Advice needed on how to add units to Faction Unit Roster

    Quote Originally Posted by Alavaria View Post
    Ah, ok ok, I think I got it.

    "Recruit as mercenaries" means you're looking for the "Levy and Mercenaries" building. Once you have a tier 3 barracks, you will be able to build the merc building. That's how you have regular access to "mercenary units" (it's not the same as recruiting mercs in the field)

    Please take a look at your capital, you either have (or are able to construct) such a building there.
    I have checked in the past and not all units I would personally like to recruit as mercenaries are there. Is there a way you can add units to this queue?

    Also how would one enable recruitment of a partciular unit. For instance (weird example) Pontus having the ability to recruit Falcrata infantry (flaming javelin unit) that the spanish celts have access to. I had a look in the edb but I was not too sure how to proceed.

    All help appreciated,
    Cheers

  7. #7

    Default Re: Advice needed on how to add units to Faction Unit Roster

    Quote Originally Posted by Leothelion888 View Post
    I have checked in the past and not all units I would personally like to recruit as mercenaries are there. Is there a way you can add units to this queue?
    Yeah, that's also EDB editing, in the mercenary building instead of your faction's barracks building.
    Quote Originally Posted by Leothelion888 View Post
    Also how would one enable recruitment of a partciular unit. For instance (weird example) Pontus having the ability to recruit Falcrata infantry (flaming javelin unit) that the spanish celts have access to. I had a look in the edb but I was not too sure how to proceed.
    you will look for the following line: "building merc_building"

    then you're going to look for lines starting with "recruit" eg: Rhodian slingers...
    recruit "rhodian slingers" 0 requires factions { parthia, nomad, barbarian, greek, egypt, armenia, } and hidden_resource area9 and hidden_resource r9
    recruit "rhodian slingers" 0 requires factions { parthia, nomad, barbarian, greek, egypt, armenia, } and hidden_resource area9 and hidden_resource r10
    recruit "rhodian slingers" 0 requires factions { parthia, nomad, barbarian, greek, egypt, armenia, } and hidden_resource area9 and hidden_resource r11
    recruit "rhodian slingers" 0 requires factions { parthia, nomad, barbarian, greek, egypt, armenia, } and hidden_resource area9 and hidden_resource r13
    recruit "rhodian slingers" 0 requires factions { parthia, nomad, barbarian, greek, egypt, armenia, } and hidden_resource area12 and hidden_resource r8
    recruit "rhodian slingers" 0 requires factions { parthia, nomad, barbarian, greek, egypt, armenia, } and hidden_resource area12 and hidden_resource r9
    recruit "rhodian slingers" 0 requires factions { parthia, nomad, barbarian, greek, egypt, armenia, } and hidden_resource area12 and hidden_resource r10
    recruit "rhodian slingers" 0 requires factions { parthia, nomad, barbarian, greek, egypt, armenia, } and hidden_resource area12 and hidden_resource r11
    these are available in specific "area" and "region" pairs.

    Meanwhile another unit:
    recruit "levy clubman" 0 requires factions { nomad, romans_julii, boii, dacia, germans, spain, greek, egypt, armenia, } and hidden_resource area1
    recruit "levy clubman" 0 requires factions { nomad, romans_julii, boii, dacia, germans, spain, greek, egypt, armenia, } and hidden_resource area13
    These are available in two different "areas".


    Check your data\Important files thing for AOR maps folder. Some of the maps there will identify areas and regions for you.

  8. #8

    Default Re: Advice needed on how to add units to Faction Unit Roster

    Quote Originally Posted by Alavaria View Post
    Yeah, that's also EDB editing, in the mercenary building instead of your faction's barracks building.

    you will look for the following line: "building merc_building"

    then you're going to look for lines starting with "recruit" eg: Rhodian slingers...

    these are available in specific "area" and "region" pairs.

    Meanwhile another unit:

    These are available in two different "areas".


    Check your data\Important files thing for AOR maps folder. Some of the maps there will identify areas and regions for you.
    Cheers for that! That really helped me understand quite a bit actually! The hidden resources especially.. I had no idea what that meant

    Expanding on all the help so far I attempted to insert two units to be recruitable from the Spartan Level 3 barracks. Can anyone tell me why the 'Achaian Phalangites' + 'Achaian Elite Phalangites' are not recruitable from Sparta?

    Spoiler Alert, click show to read: 

    {
    mora_order3
    }
    }
    mora_order3 requires factions { greek_cities, } and building_present_min_level hinterland_settlement_determination path_choice and building_present_min_level mineral_import weapons_metals_import or resource iron or resource copper or resource tin or resource lead
    {
    capability
    {
    agent spy 0 requires factions { britons, greek_cities, }
    agent assassin 0 requires factions { britons, greek_cities, }
    agent diplomat 0 requires factions { britons, greek_cities, }
    recruit "spartan generals bodyguard" 0 requires factions { greek_cities, }
    recruit "spartan generals bodyguard" 0 requires factions { britons, } and hidden_resource area9 and hidden_resource r9
    ;;;;;;;;;;;;;;;;;;Infantry Available;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
    recruit "spartan thureophoroi" 0 requires factions { greek_cities, }
    recruit "spartan thureophoroi" 0 requires factions { britons, } and hidden_resource area9 and hidden_resource r9
    recruit "spartan ekdromoi hoplite" 0 requires factions { greek_cities, }
    recruit "spartan ekdromoi hoplite" 0 requires factions { britons, } and hidden_resource area9 and hidden_resource r9
    recruit "spartan metoikoi hoplite" 0 requires factions { greek_cities, } and hidden_resource area9
    recruit "spartan metoikoi hoplite" 0 requires factions { britons, } and hidden_resource area9 and hidden_resource r9
    recruit "spartan perioikoi phalangites" 0 requires factions { greek_cities, }
    recruit "spartan thorakitai" 0 requires factions { greek_cities, }
    recruit "spartan thorakitai" 0 requires factions { britons, } and hidden_resource area9 and hidden_resource r9
    recruit "achaian elite phalangites" 1 requires factions { greek_cities, } and hidden_resource area9 and hidden_resource r9
    recruit "achaian phalangites" 1 requires factions { greek_cities, } and hidden_resource area9 and hidden_resource r9
    ;;;;;;;;;;;;;;;;Cavalry Available;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
    recruit "greek tarantine cavalry" 0 requires factions { greek_cities, }
    recruit "greek tarantine cavalry" 0 requires factions { britons, } and hidden_resource area9 and hidden_resource r9
    recruit "light hippeis" 0 requires factions { greek_cities, }
    recruit "light hippeis" 0 requires factions { britons, } and hidden_resource area9 and hidden_resource r9
    ;;;;;;;;;;;;;;;;MISSLE Units Available;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
    recruit "greek akontistai" 0 requires factions { greek_cities, }
    recruit "greek slinger" 0 requires factions { greek_cities, }
    recruit "spartan archers" 0 requires factions { greek_cities, }
    recruit "spartan hypomeiones" 0 requires factions { greek_cities, }
    recruit "spartan hypomeiones" 0 requires factions { britons, } and hidden_resource area9 and hidden_resource r9
    law_bonus bonus -3 requires factions { macedon, }
    population_growth_bonus bonus 1 requires factions { britons, }
    happiness_bonus bonus 2 requires factions { britons, }
    }


    I assume there is another file I have not found that tells RS that each faction can recruit X unit and as the two units are not on that list, even though I have it listed here, they are not recruitable. In the description of the barracks I can see the names of the aforementioned units but not unit card.. This also matches up with another test I tried where I tried adding a unit that was not normally a merc unit to descr_mercenaries.. It inserted a unit with the correct stats + description and a unit card with a vanilla peasant card.. almost as if there was another location I had to enter information into. This is all guesswork though so I could be completely wrong haha.

    I also tried removing the region requirement but no joy there either.

    Also just to allay any fears I did a backup before doing anything at all!

    Thanks again for all the help.

  9. #9

    Default Re: Advice needed on how to add units to Faction Unit Roster

    Quote Originally Posted by Leothelion888 View Post
    Cheers for that! That really helped me understand quite a bit actually! The hidden resources especially.. I had no idea what that meant

    Expanding on all the help so far I attempted to insert two units to be recruitable from the Spartan Level 3 barracks. Can anyone tell me why the 'Achaian Phalangites' + 'Achaian Elite Phalangites' are not recruitable from Sparta?

    Spoiler Alert, click show to read: 

    {
    mora_order3
    }
    }
    mora_order3 requires factions { greek_cities, } and building_present_min_level hinterland_settlement_determination path_choice and building_present_min_level mineral_import weapons_metals_import or resource iron or resource copper or resource tin or resource lead
    {
    capability
    {
    agent spy 0 requires factions { britons, greek_cities, }
    agent assassin 0 requires factions { britons, greek_cities, }
    agent diplomat 0 requires factions { britons, greek_cities, }
    recruit "spartan generals bodyguard" 0 requires factions { greek_cities, }
    recruit "spartan generals bodyguard" 0 requires factions { britons, } and hidden_resource area9 and hidden_resource r9
    ;;;;;;;;;;;;;;;;;;Infantry Available;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
    recruit "spartan thureophoroi" 0 requires factions { greek_cities, }
    recruit "spartan thureophoroi" 0 requires factions { britons, } and hidden_resource area9 and hidden_resource r9
    recruit "spartan ekdromoi hoplite" 0 requires factions { greek_cities, }
    recruit "spartan ekdromoi hoplite" 0 requires factions { britons, } and hidden_resource area9 and hidden_resource r9
    recruit "spartan metoikoi hoplite" 0 requires factions { greek_cities, } and hidden_resource area9
    recruit "spartan metoikoi hoplite" 0 requires factions { britons, } and hidden_resource area9 and hidden_resource r9
    recruit "spartan perioikoi phalangites" 0 requires factions { greek_cities, }
    recruit "spartan thorakitai" 0 requires factions { greek_cities, }
    recruit "spartan thorakitai" 0 requires factions { britons, } and hidden_resource area9 and hidden_resource r9
    recruit "achaian elite phalangites" 1 requires factions { greek_cities, } and hidden_resource area9 and hidden_resource r9
    recruit "achaian phalangites" 1 requires factions { greek_cities, } and hidden_resource area9 and hidden_resource r9
    ;;;;;;;;;;;;;;;;Cavalry Available;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
    recruit "greek tarantine cavalry" 0 requires factions { greek_cities, }
    recruit "greek tarantine cavalry" 0 requires factions { britons, } and hidden_resource area9 and hidden_resource r9
    recruit "light hippeis" 0 requires factions { greek_cities, }
    recruit "light hippeis" 0 requires factions { britons, } and hidden_resource area9 and hidden_resource r9
    ;;;;;;;;;;;;;;;;MISSLE Units Available;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
    recruit "greek akontistai" 0 requires factions { greek_cities, }
    recruit "greek slinger" 0 requires factions { greek_cities, }
    recruit "spartan archers" 0 requires factions { greek_cities, }
    recruit "spartan hypomeiones" 0 requires factions { greek_cities, }
    recruit "spartan hypomeiones" 0 requires factions { britons, } and hidden_resource area9 and hidden_resource r9
    law_bonus bonus -3 requires factions { macedon, }
    population_growth_bonus bonus 1 requires factions { britons, }
    happiness_bonus bonus 2 requires factions { britons, }
    }


    I assume there is another file I have not found that tells RS that each faction can recruit X unit and as the two units are not on that list, even though I have it listed here, they are not recruitable. In the description of the barracks I can see the names of the aforementioned units but not unit card.. This also matches up with another test I tried where I tried adding a unit that was not normally a merc unit to descr_mercenaries.. It inserted a unit with the correct stats + description and a unit card with a vanilla peasant card.. almost as if there was another location I had to enter information into. This is all guesswork though so I could be completely wrong haha.

    I also tried removing the region requirement but no joy there either.

    Also just to allay any fears I did a backup before doing anything at all!

    Thanks again for all the help.
    There is another file. The unit needs to have ownership in the EDU (export_descr_unit).

    The play_sparta folder does not have an EDU, so you will be looking at the one under the main RS2 file.

    Look up "achaian elite phalangites" and, let me check
    type achaian elite phalangites
    dictionary achaian_elite_phalangites
    category infantry
    class spearmen
    voice_type Heavy_1
    soldier elite_phalangites, 50, 0, 1.05
    officer elite_phalangites
    officer greek_standard
    officer greek_flutist
    attributes sea_faring, hide_forest, can_sap, very_hardy
    formation 0.9, 1, 2.4, 2, 10, square, phalanx
    stat_health 1, 5
    stat_pri 18, 9, no, 0, 0, melee, blade, piercing, spear, 25, 0.405
    stat_pri_attr long_pike, spear, spear_bonus_6
    stat_sec 10, 9, no, 0, 0, melee, blade, slashing, sword, 25, 0.477
    stat_sec_attr no
    stat_pri_armour 14, 21, 10, leather
    stat_sec_armour 0, 1, flesh
    stat_heat 2
    stat_ground 0, 0, -6, -2
    stat_mental 21, disciplined, highly_trained
    stat_charge_dist 1
    stat_fire_delay 0
    stat_food 60, 300
    stat_cost 0, 2290, 656, 115, 161, 286
    ownership britons
    You see that bottom line? You are not "britons"

    You will want to change that to "ownership britons, greek_cities" which lets Sparta use it.

    In fact, ADDITIONLLY, the unit will CTD your game in battle, as the soldier "elite_phalangites" might not have any textures assigned to the Sparta faction. That needs you to edit the descr_model_battle
    type elite_phalangites
    skeleton fs_thp_f_spearman_p, fs_s1_slow_swordsman
    indiv_range 40
    texture egypt, data/models_unit/textures/tone/ptolemaic/kleruchoi_agema_ptolemaic.tga ;;ptolemaic kleruchoi agema
    texture pontus, data/models_unit/textures/tone/pontus/elite_phalangites_pontus.tga ;;pontic chalkispides
    texture seleucid, data/models_unit/textures/tone/Seleucid/elite_phalangites_seleucid.tga ;;argyraspides
    texture britons, data/models_unit/textures/tone/freegreeks/elite_phalangites_achaia.tga ;;achaian elite phalangites
    texture slave, data/models_unit/textures/tone/freegreeks/elite_phalangites_achaia.tga ;;achaian elite phalangites
    texture merc, data/models_unit/textures/tone/freegreeks/elite_phalangites_free_greek.tga ;;hyrkanian elite phalangites
    model_flexi data/models_unit/elite_pikemen_high.cas, max
    model_sprite 50.0, data/sprites/RS_elite_phalangites_sprite.spr
    model_sprite egypt, 50.0, data/sprites/RS_egypt_elite_phalangites_sprite.spr
    model_sprite pontus, 50.0, data/sprites/RS_pontus_elite_phalangites_sprite.spr
    model_sprite seleucid, 50.0, data/sprites/RS_seleucid_elite_phalangites_sprite.spr
    model_sprite britons, 50.0, data/sprites/RS_britons_elite_phalangites_sprite.spr
    model_sprite slave, 50.0, data/sprites/RS_slave_elite_phalangites_sprite.spr
    model_sprite merc, 50.0, data/sprites/RS_elite_phalangites_sprite.spr
    model_tri 400, 0.5f, 0.5f, 0.5f
    You will want to add a line so it has both textures and sprites for your faction, so add:
    texture greek_cities, data/models_unit/textures/tone/freegreeks/elite_phalangites_achaia.tga
    model_sprite greek_cities, 50.0, data/sprites/RS_britons_elite_phalangites_sprite.spr
    to the appropriate parts.


    I don't know if anything else might be missing, if so the game will CTD and politely give you an error message...
    Last edited by Alavaria; April 11, 2014 at 12:54 PM.

  10. #10

    Default Re: Advice needed on how to add units to Faction Unit Roster

    We forgot to tell him about how to applied the unit card

    So this is the the simplest part. Go to data in your RS 2 folder look for the folder UI.

    1: You have to look for the folders UNIT_INFO and UNIT folder.

    2: You have to look for the faction folder so go to the BRITONS folder in the unit folder

    3: look for #achaian_elite_phalangites.tga and copy and paste that to the GREEK_CITY State folder

    4: go to the Unit_info folder and do the same expect this time you are looking for achaian_elite_phalangites_INFO.tga

    This is so that you don't get the butt ugly peasant unit card

    Right now I am enjoying a campaign where I am playing as the Romans and fighting the Spartans with their own units

    (FYI: since I owned the units I can bribe them to fight for me what a troll I am)

  11. #11

    Default Re: Advice needed on how to add units to Faction Unit Roster

    I actually want to make some "overhand spear" units that use the Roman shields... or maybe some phalanx using the heavy peltast shield (the really tall & narrow one) but meh...

  12. #12

    Default Re: Advice needed on how to add units to Faction Unit Roster

    Success!! Thanks for all your help guys! If I was able to rep you guys then I would I can't remember how many posts it takes but once I am able to, I shall rep you both!!

    Quote Originally Posted by Alavaria View Post
    I actually want to make some "overhand spear" units that use the Roman shields... or maybe some phalanx using the heavy peltast shield (the really tall & narrow one) but meh...
    That would be awesome... a thorakitai unit with a scutum would be interesting!

  13. #13

    Default Re: Advice needed on how to add units to Faction Unit Roster





    This what what I had in RS1, I modded some roman unit into a short_pike phalanx.

  14. #14

    Default Re: Advice needed on how to add units to Faction Unit Roster

    Quote Originally Posted by Alavaria View Post




    This what what I had in RS1, I modded some roman unit into a short_pike phalanx.
    Looks like they would have come in handy

Posting Permissions

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