HOW TO SET RECRUITS TO OWNING FACTION'S CULTURE - Viking Conquest Reforged 2.054

Currently viewing this thread:

JohnVicres

Recruit
This forces recruits from villages and towns, for both the player and npc lords, to be the faction's troops. AKA if you're part of Northvegr and conquer Scuin (whose culture is goidelic), the recruits you get from Scuin and it's villages will be NORDIC, not goidelic. Because I wanna be a viking without having to sail back to Norway to replenish my bois, nor do I wanna recruit filthy christians.
Now, 2 ways to make the modifications (obviously backup your files beforehand):

1st, with the source material (https://www.taleworlds.com/en/Games/VikingConquest, Downloads section, Module System)
-Learn how to make that thing work (plenty of tutorials)
-Go to module_scripts.py, add the stuff in yellow
#script_update_volunteer_troops_in_village
# INPUT: arg1 = center_no
# OUTPUT: none
# Reworked by JuJu70
("update_volunteer_troops_in_village",
[
(store_script_param, ":center_no", 1),
(troop_get_slot, ":religion","trp_player", slot_troop_religion),
#(party_get_slot, ":center_culture", ":center_no", slot_center_culture),
(store_faction_of_party, ":center_culture", ":center_no"),
and
#script_update_npc_volunteer_troops_in_village
# INPUT: arg1 = center_no
# OUTPUT: none
("update_npc_volunteer_troops_in_village",
[
(store_script_param, ":center_no", 1),
#(party_get_slot, ":center_culture", ":center_no", slot_center_culture),
(store_faction_of_party, ":center_culture", ":center_no"),
-Go to module_game_menus.py, add the stuff in yellow
"recruit_volunteers_town",0,
"{!}{s18}",
"none",
[
# JuJu70 - make it more realistic
(troop_get_slot, ":religion","trp_player", slot_troop_religion),
#(party_get_slot, ":center_culture", "$current_town", slot_center_culture),
(store_faction_of_party, ":center_culture", "$current_town"),
(troop_get_slot, ":player_renown", "trp_player", slot_troop_renown), #renown
(party_get_slot, ":center_relation", "$current_town", slot_center_player_relation),
(party_get_slot, ":faith", "$current_town", slot_center_faithratio),
###
-compile the module, you only need scripts.txt and menus.txt
-throw them into your "Modules/Viking Conquest/", play

2nd, for lazy bones, copy the following directly into the .txt files of the module (MAKE BACKUPS)
-for scripts.txt, override this part
update_volunteer_troops_in_village -1
131 23 2 1224979098644774912 1 520 3 1224979098644774913 360287970189639680 16 2204 2 1224979098644774914 1224979098644774912 520 3 1224979098644774915 360287970189639680 7 521 3 1224979098644774916 1224979098644774912 26 521 3 1224979098644774917 1224979098644774912 235 2133 2 1224979098644774918 41 2133 2 1224979098644774919 1 4 0 1073741857 3 1224979098644774912 648518346341351626 648518346341351628 1073741857 3 1224979098644774912 648518346341351673 648518346341351675 31 2 1224979098644774912 648518346341351713 2136 3 1224979098644774920 0 100 4 0 32 2 1224979098644774920 25 2133 2 1224979098644774921 360287970189639803 5 0 522 3 1224979098644774921 1224979098644774914 1224979098644774918 3 0 5 0 33 3 1224979098644774912 648518346341351564 648518346341351572 2136 3 1224979098644774920 0 100 4 0 32 2 1224979098644774920 25 2133 2 1224979098644774921 360287970189639772 5 0 522 3 1224979098644774921 1224979098644774914 1224979098644774918 3 0 5 0 522 3 1224979098644774921 1224979098644774914 1224979098644774918 3 0 2133 2 1224979098644774922 0 4 0 541 3 1224979098644774912 7 360287970189639680 30 2 1224979098644774916 20 2136 3 1224979098644774920 0 100 4 0 32 2 1224979098644774920 50 2136 3 1224979098644774923 0 20 4 0 32 2 1224979098644774923 10 1561 3 1224979098644774922 1224979098644774921 1 5 0 1561 3 1224979098644774922 1224979098644774921 0 3 0 4 0 2147483680 2 1224979098644774922 0 1561 3 1224979098644774922 1224979098644774921 0 3 0 32 2 1224979098644774922 0 2133 2 1224979098644774921 1224979098644774922 2105 2 1224979098644774919 1 3 0 5 0 30 2 1224979098644774916 60 2136 3 1224979098644774923 0 20 4 0 32 2 1224979098644774923 10 1561 3 1224979098644774922 1224979098644774921 1 5 0 1561 3 1224979098644774922 1224979098644774921 0 3 0 4 0 2147483680 2 1224979098644774922 0 1561 3 1224979098644774922 1224979098644774921 0 3 0 32 2 1224979098644774922 0 2133 2 1224979098644774921 1224979098644774922 2105 2 1224979098644774919 1 3 0 2123 3 1224979098644774924 1224979098644774916 20 2171 2 1224979098644774925 1224979098644774921 4 0 2147483678 2 1224979098644774925 18 6 3 1224979098644774926 0 1224979098644774924 2136 3 1224979098644774927 0 100 2147483678 2 1224979098644774927 10 2136 3 1224979098644774927 0 2 1561 3 1224979098644774922 1224979098644774921 1224979098644774927 4 0 2147483680 2 1224979098644774922 0 1561 3 1224979098644774922 1224979098644774921 0 3 0 32 2 1224979098644774922 0 2105 2 1224979098644774919 1 2133 2 1224979098644774921 1224979098644774922 3 0 3 0 2133 2 1224979098644774928 7 4 0 30 2 1224979098644774915 100 2121 3 1224979098644774929 1224979098644774915 100 2108 2 1224979098644774929 100 2105 2 1224979098644774928 1224979098644774929 3 0 4 0 541 3 1224979098644774912 7 360287970189639680 2105 2 1224979098644774928 2 3 0 4 0 31 2 1224979098644774913 1 2107 2 1224979098644774928 1224979098644774917 2108 2 1224979098644774928 100 2105 2 1224979098644774928 1 5 0 31 2 1224979098644774913 2 2121 3 1224979098644774930 100 1224979098644774917 2107 2 1224979098644774928 1224979098644774930 2108 2 1224979098644774928 100 2105 2 1224979098644774928 1 3 0 2172 3 1224979098644774931 360287970189639680 3 2108 2 1224979098644774931 10 2105 2 1224979098644774928 1224979098644774931 2170 3 1224979098644774932 1369094286720630785 360287970189639680 2108 2 1224979098644774932 5 2105 2 1224979098644774928 1224979098644774932 4 0 30 2 1224979098644774916 20 2123 3 1224979098644774933 1224979098644774916 10 2105 2 1224979098644774928 1224979098644774933 5 0 2147483678 2 1224979098644774916 0 2133 2 1224979098644774928 0 3 0 2107 2 1224979098644774928 3 2120 3 1224979098644774934 2 1224979098644774919 2108 2 1224979098644774928 1224979098644774934 2136 3 1224979098644774935 0 1224979098644774928 501 3 1224979098644774912 92 1224979098644774921 501 3 1224979098644774912 93 1224979098644774935
update_npc_volunteer_troops_in_village -1
27 23 2 1224979098644774912 1 2204 2 1224979098644774913 1224979098644774912 522 3 1224979098644774914 1224979098644774913 41 2133 2 1224979098644774915 1 6 3 1224979098644774916 0 5 2136 3 1224979098644774917 0 100 2147483678 2 1224979098644774917 10 2136 3 1224979098644774917 0 2 1561 3 1224979098644774918 1224979098644774914 1224979098644774917 4 0 2147483680 2 1224979098644774918 0 1561 3 1224979098644774918 1224979098644774914 0 3 0 32 2 1224979098644774918 0 2105 2 1224979098644774915 1 2133 2 1224979098644774914 1224979098644774918 3 0 2133 2 1224979098644774919 24 2171 2 1224979098644774920 360287970189639680 2122 3 1224979098644774921 1224979098644774920 12 2108 2 1224979098644774921 20 2105 2 1224979098644774919 1224979098644774921 2120 3 1224979098644774922 2 1224979098644774915 2108 2 1224979098644774919 1224979098644774922 2136 3 1224979098644774923 0 1224979098644774919 501 3 1224979098644774912 90 1224979098644774914 501 3 1224979098644774912 91 1224979098644774923
-for menus.txt, override this part
menu_recruit_volunteers_town 0 {!}{s18} none 125 520 3 1224979098644774912 360287970189639680 16 2204 2 1224979098644774913 144115188075856183 520 3 1224979098644774914 360287970189639680 7 521 3 1224979098644774915 144115188075856183 26 521 3 1224979098644774916 144115188075856183 235 4 0 1073742365 3 144115188075856183 7 360287970189639680 541 3 144115188075856183 239 0 501 3 144115188075856183 239 3 2133 2 144115188075857354 0 2136 3 1224979098644774917 0 9 2133 2 1224979098644774918 1 2133 2 1224979098644774919 6 4 0 30 2 1224979098644774914 100 2121 3 1224979098644774920 1224979098644774914 100 2108 2 1224979098644774920 100 2105 2 1224979098644774919 1224979098644774920 3 0 4 0 541 3 144115188075856183 7 360287970189639680 2105 2 1224979098644774919 2 3 0 4 0 31 2 1224979098644774912 1 2107 2 1224979098644774919 1224979098644774916 2108 2 1224979098644774919 100 2105 2 1224979098644774919 1 5 0 31 2 1224979098644774912 2 2121 3 1224979098644774921 100 1224979098644774916 2107 2 1224979098644774919 1224979098644774921 2108 2 1224979098644774919 100 2105 2 1224979098644774919 1 3 0 2172 3 1224979098644774922 360287970189639680 3 2108 2 1224979098644774922 10 2105 2 1224979098644774919 1224979098644774922 2170 3 1224979098644774923 1369094286720630785 360287970189639680 2108 2 1224979098644774923 5 2105 2 1224979098644774919 1224979098644774923 4 0 30 2 1224979098644774915 20 2123 3 1224979098644774924 1224979098644774915 20 2105 2 1224979098644774919 1224979098644774924 5 0 2147483678 2 1224979098644774915 0 2133 2 1224979098644774919 0 3 0 4 0 3221225502 2 1224979098644774915 0 2147483680 2 1224979098644774917 1 2133 2 1224979098644774925 1224979098644774918 5 0 2136 3 1224979098644774926 1 1224979098644774919 4 0 541 3 144115188075856183 0 3 521 3 1224979098644774927 144115188075856183 50 2108 2 1224979098644774927 25 2105 2 1224979098644774926 1224979098644774927 3 0 2105 2 1224979098644774926 1224979098644774918 2133 2 1224979098644774925 1224979098644774926 3 0 2136 3 1224979098644774928 0 7 4 0 32 2 1224979098644774915 30 31 2 1224979098644774928 1 522 3 1224979098644774929 1224979098644774913 43 5 0 32 2 1224979098644774915 30 31 2 1224979098644774928 2 522 3 1224979098644774929 1224979098644774913 42 1561 3 1224979098644774930 1224979098644774929 1 4 0 2147483680 2 1224979098644774930 0 1561 3 1224979098644774930 1224979098644774929 0 3 0 32 2 1224979098644774930 0 2133 2 1224979098644774929 1224979098644774930 5 0 522 3 1224979098644774929 1224979098644774913 42 3 0 3 0 1633 2 1224979098644774931 648518346341351424 2149 2 1224979098644774932 360287970189639680 2171 2 1224979098644774933 1224979098644774929 2107 2 1224979098644774933 4 2133 2 1224979098644774934 1224979098644774933 2123 3 1224979098644774935 1224979098644774932 1224979098644774934 2133 2 1224979098644774936 1224979098644774931 2110 2 1224979098644774936 1224979098644774935 4 0 32 2 1224979098644774936 0 2110 2 1224979098644774925 1224979098644774936 3 0 2133 2 72057594037927941 1224979098644774925 2133 2 72057594037927943 0 4 0 32 2 1224979098644774925 1224979098644774935 2133 2 72057594037927943 1 3 0 4 0 31 2 1224979098644774925 0 2320 2 18 1585267068834416158 5 0 2122 3 72057594037927942 1224979098644774925 1224979098644774934 2133 2 144115188075855915 1224979098644774925 2133 2 144115188075856105 1224979098644774929 2324 3 3 1224979098644774929 1224979098644774925 4 0 31 2 72057594037927941 1 2320 2 18 1585267068834416159 5 0 2320 2 18 1585267068834416160 3 0 5 0 2320 2 18 1585267068834418000 521 3 1224979098644774913 144115188075856183 19 522 3 1224979098644774929 1224979098644774913 42 2133 2 1224979098644774925 0 2133 2 72057594037927943 0 2133 2 72057594037927941 1 2133 2 144115188075857354 1 3 0 4
-play
 
Hello John,

thanks for the tutorial. I've followed the whole story from your first posts concerning the tweak pack: how hard that it is such an apparently simple fix!

So many mods implement it, like Sands Of Faith, and in Suvarnabhumi Mahayuth it's even possible to create the culture itself by creating custom troops. If I remember well this feature has been added for the first time by the Floris mod and it has been done in the most comfortable way via a dialogue with a character called "Chancellor".

Unfortunately I wasn't able to apply your fix: even by modifying the scripts.txt and the menus.txt files, volunteers are still from the original settlement's culture. I'm desperate! Am I so dumb?

Said that, I've found something "workaroundish" yet working: everything that I cannot do by tweaking game files I usually manage to accomplish it by just modifying the saves via the Warband Save Game Editor 1.03. I've discovered, so, that it's possible to change the volunteers' culture by setting accordingly this parameter:

Code:
+party_records
[...]
#*number**settlement's name*
[...]
+party
[...]
+#slots
[...]
slot_center_culture (19) *where 9 is for Angle, I've discovered*

By the way, I wonder if anyone would be able to implement the culture change feature from the Floris mod into the Viking Conquest DLC: it shouldn't be too hard considering the same feature has been used in many modules.
 
Top Bottom