Problem with new faction: no garrisons

正在查看此主题的用户

Arathiel

Veteran
Hail, veteran modders.  I'm a complete beginner when it comes to this stuff, I started yesterday, so forgive my ignorance.  I'm trying to add a new faction, based out of Tihr.  I added their lord, one knight, and a troop line to troops.py, added the faction in factions.py, added the (hopefully) correct lines in scripts.py under #Cultures and #Factions, and added their reinforcement template in party_templates.py.  Then I assigned Tihr to their lord, in scripts.py.

It compiled with no errors, but when I start a game their king is sitting pretty in Tihr, with no garrison.  Did I miss something?  I can recruit their soldiers from nearby villages and they upgrade with no problem.

Also:  How do I spawn their knight/give him troops?


Thanks a lot, and sorry if this is easily accessable somewhere, I've searched everywhere.
 
Arathiel 说:
Hail, veteran modders.  I'm a complete beginner when it comes to this stuff, I started yesterday, so forgive my ignorance.  I'm trying to add a new faction, based out of Tihr.  I added their lord, one knight, and a troop line to troops.py, added the faction in factions.py, added the (hopefully) correct lines in scripts.py under #Cultures and #Factions, and added their reinforcement template in party_templates.py.  Then I assigned Tihr to their lord, in scripts.py.

It compiled with no errors, but when I start a game their king is sitting pretty in Tihr, with no garrison.  Did I miss something?  I can recruit their soldiers from nearby villages and they upgrade with no problem.

Also:  How do I spawn their knight/give him troops?


Thanks a lot, and sorry if this is easily accessable somewhere, I've searched everywhere.
Did you make sure you set the troop to be the faction's King?

And did you reference the reinforcements from party_templates in module_scripts? 'Cause if you didn't, that'd be your problem.
 
Make sure you got kingdom_6 reinforcements in party templates and faction tier troops etc. etc.

          (faction_slot_eq, ":faction_no", slot_faction_culture, "fac_culture_5"),
     
          (faction_set_slot, ":faction_no", slot_faction_deserter_troop, "trp_rhodok_deserter"),
          (faction_set_slot, ":faction_no", slot_faction_guard_troop, "trp_rhodok_veteran_spearman"),
          (faction_set_slot, ":faction_no", slot_faction_messenger_troop, "trp_rhodok_messenger"),
          (faction_set_slot, ":faction_no", slot_faction_prison_guard_troop, "trp_rhodok_prison_guard"),
          (faction_set_slot, ":faction_no", slot_faction_castle_guard_troop, "trp_rhodok_castle_guard"),
          (faction_set_slot, ":faction_no",  slot_faction_reinforcements_a, "pt_kingdom_5_reinforcements_a"),
          (faction_set_slot, ":faction_no",  slot_faction_reinforcements_b, "pt_kingdom_5_reinforcements_b"),
          (faction_set_slot, ":faction_no",  slot_faction_reinforcements_c, "pt_kingdom_5_reinforcements_c"),
        (else_try),
        (faction_slot_eq, ":faction_no", slot_faction_culture, "fac_culture_6"),
     
          (faction_set_slot, ":faction_no",  slot_faction_deserter_troop, "trp_here"),  trp_here is for cities mostly.
          (faction_set_slot, ":faction_no",  slot_faction_guard_troop, "trp_here"),
          (faction_set_slot, ":faction_no",  slot_faction_messenger_troop, "trp_here"),
          (faction_set_slot, ":faction_no",  slot_faction_prison_guard_troop, "trp_here"),
          (faction_set_slot, ":faction_no",  slot_faction_castle_guard_troop, "trp_here"),
          (faction_set_slot, ":faction_no",  slot_faction_reinforcements_a, "pt_kingdom_6_reinforcements_a"),
          (faction_set_slot, ":faction_no",  slot_faction_reinforcements_b, "pt_kingdom_6_reinforcements_b"),
          (faction_set_slot, ":faction_no",  slot_faction_reinforcements_c, "pt_kingdom_6_reinforcements_c"),
        (else_try),
 

        (try_end),
      (try_end)
,
You will have to start a new game to see the change.
 
后退
顶部 底部