Problem with changing the faction of castles

正在查看此主题的用户

Emilian

Regular
When I try to change Tilbaut Castle to be owned by the Vaegirs, it doesnt work, it still is owned by Swadia.

What I did:
In the Unofficial Troop Editor, I changed Tilbaut Castle from Faction: 3 - Neutral to Faction: 16 - Kingdom of Vaegirs.
When I restart the game it still is owned by Swadia..
I also tried to start a new game, didnt work either.
And why is every castle and town Faction: 3 - Neutral?

Oh, and by the way, when I edit the map in TME, the factions are all messed up. A castle is owned by the Rhodoks and under that its owned by the Khergits, left from it (insert faction name), etc. How do I fix this?

Thanks if you can answer these questions.
Emilian
 
you need module system to change castles or towns faction..
here is the code in module_scripts
插入代码块:
(call_script, "script_give_center_to_faction", <center_id>, <faction_id>),
 
I think the problem is the owner of the Castle. If the lord of Castle is still from Tilbaut, the castle won't change.
And only editing the map won't change the castle's faction
 
GoldEagleMNE 说:
you need module system to change castles or towns faction..
here is the code in module_scripts
插入代码块:
(call_script, "script_give_center_to_faction", <center_id>, <faction_id>),

Where do you edit it?
I use Diplomacy with the module system so there are more of these lines in the code..
 
search for this..in module_scripts.py
插入代码块:
      (call_script, "script_give_center_to_faction_aux", "p_castle_6", "fac_kingdom_1"),
this is tilbaut castle..just change fac_kingdom_1..and compile..
just when you change towns faction you have to put lords id instead of factions id..
 
Thanks it worked :smile:
I now made a new kingdom but there is no garrison in the castles and it has no king nor vassals. Id have to figure that out :razz:
Thanks!
 
check this tutorial for creating a faction..http://forums.taleworlds.com/index.php/topic,128647.0.html
you have to add kings and lords in module_troops.py than activate them in module_scripts.py
paste this
插入代码块:
      (faction_set_slot, "fac_kingdom_7",  slot_faction_culture, "fac_culture_7"),
      (faction_set_slot, "fac_kingdom_7",  slot_faction_leader, "trp_kingdom_7_lord"),
	  (troop_set_slot, "trp_kingdom_7_lord", slot_troop_renown, 1200),	 
below this
插入代码块:
      (faction_set_slot, "fac_kingdom_6",  slot_faction_culture, "fac_culture_6"),
      (faction_set_slot, "fac_kingdom_6",  slot_faction_leader, "trp_kingdom_6_lord"),
	  (troop_set_slot, "trp_kingdom_6_lord", slot_troop_renown, 1200),
in module_scripts.py after you created king by the id "trp_kingdom_7_lord"..
and you can create towns or just change faction on the existing town..
if you need help..pm me :smile:
 
GoldEagleMNE 说:
check this tutorial for creating a faction..http://forums.taleworlds.com/index.php/topic,128647.0.html
you have to add kings and lords in module_troops.py than activate them in module_scripts.py
paste this
插入代码块:
      (faction_set_slot, "fac_kingdom_7",  slot_faction_culture, "fac_culture_7"),
      (faction_set_slot, "fac_kingdom_7",  slot_faction_leader, "trp_kingdom_7_lord"),
	  (troop_set_slot, "trp_kingdom_7_lord", slot_troop_renown, 1200),	 
below this
插入代码块:
      (faction_set_slot, "fac_kingdom_6",  slot_faction_culture, "fac_culture_6"),
      (faction_set_slot, "fac_kingdom_6",  slot_faction_leader, "trp_kingdom_6_lord"),
	  (troop_set_slot, "trp_kingdom_6_lord", slot_troop_renown, 1200),
in module_scripts.py after you created king by the id "trp_kingdom_7_lord"..
and you can create towns or just change faction on the existing town..
if you need help..pm me :smile:

Thanks dude! Sure will do :grin:
 
后退
顶部 底部