Warband modding empty garrisons [SOLVED]

正在查看此主题的用户

状态
不接受进一步回复。

Emilian

Regular
Hi there,

When I make a faction and use the default swadian soldier and higher tier swadians for that, it is not working. The garrisons stay empty.

I use the trp_swadian_recruit instead of trp_****_recruit because I already tried that and it is still not working.

I have fixed it before but I forgot how to do it..

Solution please??

Thanks in advance,
Emilian
 
Define the reinforcement templates for that faction and fill them in slot_faction_reinforcements_a/b/c, or use available ones, like those for Swadia. The templates are used to reinforce garrisons and lord parties.
 
MadVader 说:
Define the reinforcement templates for that faction and fill them in slot_faction_reinforcements_a/b/c, or use available ones, like those for Swadia. The templates are used to reinforce garrisons and lord parties.

I inspected carefully and tried to fix it, but it did not work.

The code is the same, only the names are different.

Nothing is undefined while compiling and starting up works fine.

Only 2 me-made factions work, the others don't.

I picked one of the two working ones for the "working" faction and one of the not working ones.

The code:

Working one:
workingn.png

Not working one:
notworkingc.png
 
MadVader 说:
Neither of those show what you put in slot_faction_reinforcements_a/b/c.

I dont know what that means..

In which .py file is that located?

Edit:

Oh I see..

Screens:

hardhoor.png

harddd.png
 
You know, it's better to paste the relevant code here as text, then spoiler it if it's long.
Anyway, if your problem faction is 7 (guessing here, you should say which one is it), there's nothing about 7's slots in those pictures.
 
MadVader 说:
You know, it's better to paste the relevant code here as text, then spoiler it if it's long.
Anyway, if your problem faction is 7 (guessing here, you should say which one is it), there's nothing about 7's slots in those pictures.

The problematic factions are 7 to 11, and the code is the same. Only 12 and 13 work.
But, I will be pasting the code:

Not working factions:
插入代码块:
          (faction_slot_eq, ":faction_no", slot_faction_culture, "fac_culture_7"),

          (faction_set_slot, ":faction_no", slot_faction_deserter_troop, "trp_seaman_deserter"),
          (faction_set_slot, ":faction_no", slot_faction_guard_troop, "trp_seaman_warrior"),
          (faction_set_slot, ":faction_no", slot_faction_messenger_troop, "trp_seaman_messenger"),
          (faction_set_slot, ":faction_no", slot_faction_prison_guard_troop, "trp_seaman_prison_guard"),
          (faction_set_slot, ":faction_no", slot_faction_castle_guard_troop, "trp_seaman_castle_guard"),
          (faction_set_slot, ":faction_no",  slot_faction_reinforcements_a, "pt_kingdom_7_reinforcements_a"),
          (faction_set_slot, ":faction_no",  slot_faction_reinforcements_b, "pt_kingdom_7_reinforcements_b"),
          (faction_set_slot, ":faction_no",  slot_faction_reinforcements_c, "pt_kingdom_7_reinforcements_c"),
	(else_try),
          (faction_slot_eq, ":faction_no", slot_faction_culture, "fac_culture_8"),
		  
          (faction_set_slot, ":faction_no",  slot_faction_deserter_troop, "trp_swadian_rebel_deserter"),
          (faction_set_slot, ":faction_no",  slot_faction_guard_troop, "trp_swadian_rebel_sergeant"),
          (faction_set_slot, ":faction_no",  slot_faction_messenger_troop, "trp_swadian_rebel_messenger"),
          (faction_set_slot, ":faction_no",  slot_faction_prison_guard_troop, "trp_swadian_rebel_prison_guard"),
          (faction_set_slot, ":faction_no",  slot_faction_castle_guard_troop, "trp_swadian_rebel_castle_guard"),
          (faction_set_slot, ":faction_no",  slot_faction_reinforcements_a, "pt_kingdom_8_reinforcements_a"),
          (faction_set_slot, ":faction_no",  slot_faction_reinforcements_b, "pt_kingdom_8_reinforcements_b"),
          (faction_set_slot, ":faction_no",  slot_faction_reinforcements_c, "pt_kingdom_8_reinforcements_c"),
    (else_try),
          (faction_slot_eq, ":faction_no", slot_faction_culture, "fac_culture_9"),

          (faction_set_slot, ":faction_no", slot_faction_deserter_troop, "trp_sarranid_rebel_deserter"),
          (faction_set_slot, ":faction_no", slot_faction_guard_troop, "trp_sarranid_rebel_castle_guard"),
          (faction_set_slot, ":faction_no", slot_faction_messenger_troop, "trp_sarranid_rebel_messenger"),
          (faction_set_slot, ":faction_no", slot_faction_prison_guard_troop, "trp_sarranid_rebel_prison_guard"),
          (faction_set_slot, ":faction_no", slot_faction_castle_guard_troop, "trp_sarranid_rebel_castle_guard"),
          (faction_set_slot, ":faction_no",  slot_faction_reinforcements_a, "pt_kingdom_9_reinforcements_a"),
          (faction_set_slot, ":faction_no",  slot_faction_reinforcements_b, "pt_kingdom_9_reinforcements_b"),
          (faction_set_slot, ":faction_no",  slot_faction_reinforcements_c, "pt_kingdom_9_reinforcements_c"),
    (else_try),
          (faction_slot_eq, ":faction_no", slot_faction_culture, "fac_culture_10"),

          (faction_set_slot, ":faction_no", slot_faction_deserter_troop, "trp_khergit_rebel_deserter"),
          (faction_set_slot, ":faction_no", slot_faction_guard_troop, "trp_khergit_rebel_horseman"),
          (faction_set_slot, ":faction_no", slot_faction_messenger_troop, "trp_khergit_rebel_messenger"),
          (faction_set_slot, ":faction_no", slot_faction_prison_guard_troop, "trp_khergit_rebel_prison_guard"),
          (faction_set_slot, ":faction_no", slot_faction_castle_guard_troop, "trp_khergit_rebel_castle_guard"),
          (faction_set_slot, ":faction_no",  slot_faction_reinforcements_a, "pt_kingdom_10_reinforcements_a"),
          (faction_set_slot, ":faction_no",  slot_faction_reinforcements_b, "pt_kingdom_10_reinforcements_b"),
          (faction_set_slot, ":faction_no",  slot_faction_reinforcements_c, "pt_kingdom_10_reinforcements_c"),
        (try_end),		
          (faction_slot_eq, ":faction_no", slot_faction_culture, "fac_culture_11"),

          (faction_set_slot, ":faction_no",  slot_faction_deserter_troop, "trp_dark_empire_deserter"),
          (faction_set_slot, ":faction_no",  slot_faction_guard_troop, "trp_dark_empire_sergeant"),
          (faction_set_slot, ":faction_no",  slot_faction_messenger_troop, "trp_dark_empire_messenger"),
          (faction_set_slot, ":faction_no",  slot_faction_prison_guard_troop, "trp_dark_empire_prison_guard"),
          (faction_set_slot, ":faction_no",  slot_faction_castle_guard_troop, "trp_dark_empire_castle_guard"),
          (faction_set_slot, ":faction_no",  slot_faction_reinforcements_a, "pt_kingdom_11_reinforcements_a"),
          (faction_set_slot, ":faction_no",  slot_faction_reinforcements_b, "pt_kingdom_11_reinforcements_b"),
          (faction_set_slot, ":faction_no",  slot_faction_reinforcements_c, "pt_kingdom_11_reinforcements_c"),

Working factions:
插入代码块:
          (faction_slot_eq, ":faction_no", slot_faction_culture, "fac_culture_12"),

          (faction_set_slot, ":faction_no", slot_faction_deserter_troop, "trp_tunqris_deserter"),
          (faction_set_slot, ":faction_no", slot_faction_guard_troop, "trp_tunqris_guard"),
          (faction_set_slot, ":faction_no", slot_faction_messenger_troop, "trp_tunqris_messenger"),
          (faction_set_slot, ":faction_no", slot_faction_prison_guard_troop, "trp_tunqris_prison_guard"),
          (faction_set_slot, ":faction_no", slot_faction_castle_guard_troop, "trp_tunqris_castle_guard"),
          (faction_set_slot, ":faction_no",  slot_faction_reinforcements_a, "pt_kingdom_12_reinforcements_a"),
          (faction_set_slot, ":faction_no",  slot_faction_reinforcements_b, "pt_kingdom_12_reinforcements_b"),
          (faction_set_slot, ":faction_no",  slot_faction_reinforcements_c, "pt_kingdom_12_reinforcements_c"),
        (else_try),	
          (faction_slot_eq, ":faction_no", slot_faction_culture, "fac_culture_13"),

          (faction_set_slot, ":faction_no", slot_faction_deserter_troop, "trp_yelen_deserter"),
          (faction_set_slot, ":faction_no", slot_faction_guard_troop, "trp_yelen_veteran_spearman"),
          (faction_set_slot, ":faction_no", slot_faction_messenger_troop, "trp_yelen_messenger"),
          (faction_set_slot, ":faction_no", slot_faction_prison_guard_troop, "trp_yelen_prison_guard"),
          (faction_set_slot, ":faction_no", slot_faction_castle_guard_troop, "trp_yelen_castle_guard"),
          (faction_set_slot, ":faction_no",  slot_faction_reinforcements_a, "pt_kingdom_13_reinforcements_a"),
          (faction_set_slot, ":faction_no",  slot_faction_reinforcements_b, "pt_kingdom_13_reinforcements_b"),
          (faction_set_slot, ":faction_no",  slot_faction_reinforcements_c, "pt_kingdom_13_reinforcements_c"),
 
There is an unexpected (try_end), between 10 and 11. The code may compile, but what actually executes...
 
MadVader 说:
There is an unexpected (try_end), between 10 and 11. The code may compile, but what actually executes...

Thanks so much MadVader! It works now!!

Locking
 
状态
不接受进一步回复。
后退
顶部 底部