I have been having fun with .txt files for the last couple of weeks and it turned out that coding stuff right in these files is quite easy.
I have written a small WIP guide on creating tweaks and correctly modifying .txt files. It is currently in Russian and I will probably try to translate it but I am really, really, really bad at writing manuals and guides in English. So if there is native English speaker here who speaks Russian and is interested in translating this guide, his or her help will be really appreciated.
I also don't know if there are any other guides like this. Yeah, I may have reinvented the wheel, but well... I have never seen another wheel before. If you have, let me know.
Alright. Since discussing the process of tweaking is forbidden here, I'll just stick to tweaks.
Tweaks were created for PoP 3.7063. Most of them will not work in other versions.
As of July 02, 2016, my work on tweaks for PoP v. 3.7063 stopped. Unless I see some very interesting suggestion, I will not create any more tweaks before 3.8.
You can still post your suggestions (I have a text file where I keep the ones I liked but didn't implement yet), just please don't be angry at me for not answering and not implementing them (I just don't want to sound like a broken record, repeating same excuses "too big for a tweak"/"can't be implemented"/"dunno how to do this"/"sorry, not interested" over and over again). I read all your suggestions, I just don't reply.
_______________________________________________________________________________________________________
Compilation of most tweaks: download link.
Due to multiple requests, I redownloaded 3.7063 patch and made a "clean" tweaked version in which I included all the tweaks except 7, 9, 10, 12.2, 16, 21, 22, 23.1, 23.2, 31, 34, 45 and any unnumbered tweaks.
Note that if you use these files instead of adding tweaks one by one, it is still your responsibility to read all the notes and warnings I wrote about different tweaks and not complain if something goes wrong because you didn't read a certain warning and did something I advised you not to do.
These files are save-game compatible.
_______________________________________________________________________________________________________
A general notification: when I mention that you need to "increase the first number in the script's body" or "increase the first number in the script" it means the first number on the next line after the line that contains the name of the script. It's a number of operations used in the script, it's usually big and it's not this "-1", whatever this one means.
Disabling training grounds for good
Troop Testing Script
Tweaking minor faction spawns spawn rate
Stopping getting caught when sneaking into fiefs
Changing troops that you recruit from villages / Changing a range of mercs available in towns for hire
Changing relation threshold above which unique spawn heroes can't be captured
An alternative way to enable cheatmenu by kowalskiy
Adding more Kingdom Colors by DarkOmegaMK2
Creating KO chapters in any fief of player's kingdom by Fuyushi
Making kings start seeking truce when they're getting pounded really hard by Fuyushi
Enabling dismantling any KOs in any of your faction's walled fief when you're the king by Fuyushi
______________________________________
1. Smarter patrols
2. Undressing captured lords
3.1. Selecting fiefs for the player character
3.2. Adding lords' fief count to player's dialogue with the minister
4. Making lords use KO troops from towns/castles they own
5.1. Making martial and cunning lords less *****y
5.2. Making martial and cunning lords less *****y (part 2)
6.1. Accessing any lady's equipment
6.2. Accessing equipment of any lord that joined your own faction.
7. All companions will contribute their prisoner management skill to the total prisoner limit.
8. Swapping spawn points of farmers and bandits when the second are attacking a village
9. Making troops desert from NPCs' town/castle garrisons when such fiefs don't have enough money to pay for troops' upkeep
10. Making CKO knights and sergeants be of opposite sex
11. Adding a line about lords' personalities to their "profiles"
12.1. Preventing unhappy companions from saying goodbye
12.2. Disabling companions' PMS issues for good
13. A tweak to disable villages being automatically granted to a new lord of a castle/town after this castle/town is captured and appropriated or given away by the player
14. A tweak to let the king/queen player character create KO chapters in walled fiefs of his/her kingdom that don't belong to any specific lord yet
15. Sending troops from your party to any walled fief you own
16. Disabling village battle scenes when you fight against lords (sort of a quick fix for the loot/prisoner problem associated with such battles)
17. Forbidding weak lords to raid villages
18.1. Converting ex-claimants to your kingdom (after they became vassals in another kingdom)
18.2. Fixing the bug with non-convertable lord-companions (should they ever end up in one of major factions and you have to recruit them back to your kingdom one day)
Part 2
Part 3
P.S. All my tweaks are save-game compatible unless there is a warning that a certain one is not.
P.S.-2. Any script-related tweak ideas are welcome. Don't ask me about textures or banners though. Not my area of interest and/or expertise.
I also don't know if there are any other guides like this. Yeah, I may have reinvented the wheel, but well... I have never seen another wheel before. If you have, let me know.
Alright. Since discussing the process of tweaking is forbidden here, I'll just stick to tweaks.
Tweaks were created for PoP 3.7063. Most of them will not work in other versions.
As of July 02, 2016, my work on tweaks for PoP v. 3.7063 stopped. Unless I see some very interesting suggestion, I will not create any more tweaks before 3.8.
You can still post your suggestions (I have a text file where I keep the ones I liked but didn't implement yet), just please don't be angry at me for not answering and not implementing them (I just don't want to sound like a broken record, repeating same excuses "too big for a tweak"/"can't be implemented"/"dunno how to do this"/"sorry, not interested" over and over again). I read all your suggestions, I just don't reply.
_______________________________________________________________________________________________________
Compilation of most tweaks: download link.
Due to multiple requests, I redownloaded 3.7063 patch and made a "clean" tweaked version in which I included all the tweaks except 7, 9, 10, 12.2, 16, 21, 22, 23.1, 23.2, 31, 34, 45 and any unnumbered tweaks.
Note that if you use these files instead of adding tweaks one by one, it is still your responsibility to read all the notes and warnings I wrote about different tweaks and not complain if something goes wrong because you didn't read a certain warning and did something I advised you not to do.
These files are save-game compatible.
_______________________________________________________________________________________________________
A general notification: when I mention that you need to "increase the first number in the script's body" or "increase the first number in the script" it means the first number on the next line after the line that contains the name of the script. It's a number of operations used in the script, it's usually big and it's not this "-1", whatever this one means.
Disabling training grounds for good
Troop Testing Script
Tweaking minor faction spawns spawn rate
Stopping getting caught when sneaking into fiefs
Changing troops that you recruit from villages / Changing a range of mercs available in towns for hire
Changing relation threshold above which unique spawn heroes can't be captured
An alternative way to enable cheatmenu by kowalskiy
Adding more Kingdom Colors by DarkOmegaMK2
Creating KO chapters in any fief of player's kingdom by Fuyushi
Making kings start seeking truce when they're getting pounded really hard by Fuyushi
Enabling dismantling any KOs in any of your faction's walled fief when you're the king by Fuyushi
______________________________________
Tweaking loot probability
Chainging PC's and companions' shares of loot
Ammor refilling in defensive sieges
Disabling opening scene with merchant for quicker tests in a new game
Training village/castle steward even if you are not owner of the given fief, but this fief belong to your own kingdom
Option to rebel as a vassal when speaking to the King and still keep your fiefs
Chainging PC's and companions' shares of loot
Ammor refilling in defensive sieges
Disabling opening scene with merchant for quicker tests in a new game
Training village/castle steward even if you are not owner of the given fief, but this fief belong to your own kingdom
Option to rebel as a vassal when speaking to the King and still keep your fiefs
Scripts.txt => spawn_errant_knights => edit 2136 3 1224979098644774918 0 100 by turning 100 into 1.
1. Smarter patrols
This tweak adds 3 dialogue options to militia patrols of your own kingdom:
- hold position (the patrol will hold position ignoring all the enemies yet scaring away weaker enemies which can be used, for example, to successfully protect your villages from Brennuses, Ealdreds and so on);
- return to patrolling (the patrol will return to patrolling around the village yet its patrol radius will be smaller and its behavior will be more passive => it will not chase anyone to the other end of a map);
- follow me (the patrol will follow you but ignore everybody; this option is only added to move patrols to the desired location).
To add this tweak, you need:
1) Add this to the end of dialog_states.txt (open this file in Notepad++):
Look at the numbers of the lines you added (like here).
Subtract 1 from each.
Remember the new numbers.
2) Add this after dlga_militia_give_troops_continue:manhunter_talk_b 4095 108 0 Anything_else,_{reg63?M'Lord:M'Lady}? 105 0 NO_VOICEOVER line in conversation.txt:
If necessary, replace 1718 (in lines 1 and 2) with the number you got for militia_stop.
Then replace 1719 (in lines 3 and 4) with the number you got for militia_patrol.
Then replace 1720 (in lines 5 and 6) with the number you got for militia_followme.
3) Increase the number at the very top of conversation.txt file by 6.
This should work for 3.7063.
For other versions I will have to translate the part of my guide that refers to adjusting numbers. Or you will have to use a google translate...
- hold position (the patrol will hold position ignoring all the enemies yet scaring away weaker enemies which can be used, for example, to successfully protect your villages from Brennuses, Ealdreds and so on);
- return to patrolling (the patrol will return to patrolling around the village yet its patrol radius will be smaller and its behavior will be more passive => it will not chase anyone to the other end of a map);
- follow me (the patrol will follow you but ignore everybody; this option is only added to move patrols to the desired location).
To add this tweak, you need:
1) Add this to the end of dialog_states.txt (open this file in Notepad++):
Code:
militia_stop
militia_patrol
militia_followme
Subtract 1 from each.
Remember the new numbers.
2) Add this after dlga_militia_give_troops_continue:manhunter_talk_b 4095 108 0 Anything_else,_{reg63?M'Lord:M'Lady}? 105 0 NO_VOICEOVER line in conversation.txt:
Code:
dlga_manhunter_talk_b:militia_stop 69631 105 3 31 2 144115188075856955 432345564227567630 2290 2 1224979098644774927 144115188075856278 2147483679 2 1224979098644774927 0 I_want_you_to_hold_this_position. 1718 5 1640 2 144115188075856278 0 1606 2 144115188075856278 15 1607 2 144115188075856278 15 1639 2 144115188075856278 0 2133 2 144115188075855935 1 NO_VOICEOVER
dlga_militia_stop:close_window 4095 1718 0 Yes,_my_liege. 6 0 NO_VOICEOVER
dlga_manhunter_talk_b:militia_patrol 69631 105 3 31 2 144115188075856955 432345564227567630 2290 2 1224979098644774927 144115188075856278 2147483679 2 1224979098644774927 3 I_want_you_to_start_patrolling. 1719 9 1640 2 144115188075856278 3 1643 2 144115188075856278 2 521 3 1224979098644774928 144115188075856278 123 1641 2 144115188075856278 1224979098644774928 1603 3 144115188075856278 65536 0 1639 2 144115188075856278 50 1606 2 144115188075856278 8 1607 2 144115188075856278 9 2133 2 144115188075855935 1 NO_VOICEOVER
dlga_militia_patrol:close_window 4095 1719 0 Yes,_my_liege. 6 0 NO_VOICEOVER
dlga_manhunter_talk_b:militia_followme 69631 105 3 31 2 144115188075856955 432345564227567630 2290 2 1224979098644774927 144115188075856278 2147483679 2 1224979098644774927 10 I_want_you_to_follow_me. 1720 6 1640 2 144115188075856278 10 1641 2 144115188075856278 648518346341351424 1606 2 144115188075856278 8 1607 2 144115188075856278 9 1639 2 144115188075856278 0 2133 2 144115188075855935 1 NO_VOICEOVER
dlga_militia_followme:close_window 4095 1720 0 Yes,_my_liege. 6 0 NO_VOICEOVER
Then replace 1719 (in lines 3 and 4) with the number you got for militia_patrol.
Then replace 1720 (in lines 5 and 6) with the number you got for militia_followme.
3) Increase the number at the very top of conversation.txt file by 6.
This should work for 3.7063.
For other versions I will have to translate the part of my guide that refers to adjusting numbers. Or you will have to use a google translate...
This tweak will allow you to take equipment from lords you captured at the cost of -25 relation drop and -1 honor. They will also be automatically released right after you undress them. The next time you see them, they will have their equipment.
This cannot be done to kings.
To use this tweak, add this after dlga_prisoner_chat_noble2:close_window.2 69631 1540 0 I_will_think_upon_your_offer. 6 0 NO_VOICEOVER line in conversation.txt:
Then do not forget to increase the number at the very top of conversation.txt file by 1.
This cannot be done to kings.
To use this tweak, add this after dlga_prisoner_chat_noble2:close_window.2 69631 1540 0 I_will_think_upon_your_offer. 6 0 NO_VOICEOVER line in conversation.txt:
Code:
dlga_prisoner_chat_noble2:close_window.3 69631 1540 3 33 3 144115188075855892 360287970189640134 360287970189640234 2167 2 1224979098644774926 360287970189639680 30 2 1224979098644774926 9 I'm_taking_your_equipment._Run_home,_you_bastard! 6 9 1 2 936748722493063447 -1 1 4 936748722493063690 360287970189639680 144115188075855892 -25 1533 1 144115188075855892 6 3 1224979098644774927 0 9 1541 3 1224979098644774928 144115188075855892 1224979098644774927 32 2 1224979098644774928 0 1535 3 360287970189639680 1224979098644774928 1 3 0 1616 3 648518346341351424 144115188075855892 1 NO_VOICEOVER
This tweak adds a line with the name of your PC to the dialogue when you (as a king) select a lord to give him a fief.
Adding the tweak:
1) Find the following line in conversation.txt:
Replace it with this (if the full replacement does not work in your version, simply compare the original line I posted above with mine, find the differences and only add/replace these parts):
2) Find the line "I_wish_you_to_grant_one_of_my_vassals_a_fief" (without the quote marks) and replace it with whatever correct line you'll come up with (like "I_wish_to_grant_a_fief.").
Adding the tweak:
1) Find the following line in conversation.txt:
Code:
dlga_minister_grant_fief_select_recipient_choice:minister_grant_fief_complete 81919 290 6 50 1 1224979098644774912 540 3 1224979098644774912 2 2 33 3 1224979098644774912 360287970189640109 360287970189640239 2173 2 1224979098644774913 1224979098644774912 31 2 1224979098644774913 432345564227567630 2322 2 1 1224979098644774912 {s1} 291 1 50 1 144115188075855962 NO_VOICEOVER
Code:
dlga_minister_grant_fief_select_recipient_choice:minister_grant_fief_complete 81919 290 9 50 1 1224979098644774912 1073742364 3 1224979098644774912 2 2 31 2 1224979098644774912 360287970189639680 1073741857 3 1224979098644774912 360287970189640109 360287970189640239 31 2 1224979098644774912 360287970189639680 2173 2 1224979098644774913 1224979098644774912 1073741855 2 1224979098644774913 432345564227567630 31 2 1224979098644774912 360287970189639680 2322 2 1 1224979098644774912 {s1} 291 1 50 1 144115188075855962 NO_VOICEOVER
THIS
Adding the tweak:
1) Open conversation.txt.
2) Find the line that starts with "dlga_minister_grant_fief_select_recipient_choice:minister_grant_fief_complete". And then...
Since this tweak modifies the same conversation line as tweak #3.1, I think it would be best if I explain it by comparison:
Before (tweak 3.1 was already added):
dlga_minister_grant_fief_select_recipient_choice:minister_grant_fief_complete 81919 290 9 50 1 1224979098644774912 1073742364 3 1224979098644774912 2 2 31 2 1224979098644774912 360287970189639680 1073741857 3 1224979098644774912 360287970189640109 360287970189640239 31 2 1224979098644774912 360287970189639680 2173 2 1224979098644774913 1224979098644774912 1073741855 2 1224979098644774913 432345564227567630 31 2 1224979098644774912 360287970189639680 2322 2 1 1224979098644774912 {s1} 291 1 50 1 144115188075855962 NO_VOICEOVER
After:
dlga_minister_grant_fief_select_recipient_choice:minister_grant_fief_complete 81919 290 17 50 1 1224979098644774912 1073742364 3 1224979098644774912 2 2 31 2 1224979098644774912 360287970189639680 1073741857 3 1224979098644774912 360287970189640109 360287970189640239 31 2 1224979098644774912 360287970189639680 2173 2 1224979098644774913 1224979098644774912 1073741855 2 1224979098644774913 432345564227567630 31 2 1224979098644774912 360287970189639680 2322 2 1 1224979098644774912 1 2 936748722493063350 1224979098644774912 2319 1 12 4 0 31 2 72057594037927936 0 2320 2 11 216172782113788036 5 0 2320 2 11 216172782113788037 3 0 {s1}_{s11} 291 1 50 1 144115188075855962 NO_VOICEOVER
Adding the tweak:
1) Open conversation.txt.
2) Find the line that starts with "dlga_minister_grant_fief_select_recipient_choice:minister_grant_fief_complete". And then...
Since this tweak modifies the same conversation line as tweak #3.1, I think it would be best if I explain it by comparison:
Before (tweak 3.1 was already added):
dlga_minister_grant_fief_select_recipient_choice:minister_grant_fief_complete 81919 290 9 50 1 1224979098644774912 1073742364 3 1224979098644774912 2 2 31 2 1224979098644774912 360287970189639680 1073741857 3 1224979098644774912 360287970189640109 360287970189640239 31 2 1224979098644774912 360287970189639680 2173 2 1224979098644774913 1224979098644774912 1073741855 2 1224979098644774913 432345564227567630 31 2 1224979098644774912 360287970189639680 2322 2 1 1224979098644774912 {s1} 291 1 50 1 144115188075855962 NO_VOICEOVER
After:
dlga_minister_grant_fief_select_recipient_choice:minister_grant_fief_complete 81919 290 17 50 1 1224979098644774912 1073742364 3 1224979098644774912 2 2 31 2 1224979098644774912 360287970189639680 1073741857 3 1224979098644774912 360287970189640109 360287970189640239 31 2 1224979098644774912 360287970189639680 2173 2 1224979098644774913 1224979098644774912 1073741855 2 1224979098644774913 432345564227567630 31 2 1224979098644774912 360287970189639680 2322 2 1 1224979098644774912 1 2 936748722493063350 1224979098644774912 2319 1 12 4 0 31 2 72057594037927936 0 2320 2 11 216172782113788036 5 0 2320 2 11 216172782113788037 3 0 {s1}_{s11} 291 1 50 1 144115188075855962 NO_VOICEOVER
Lords who own towns or castles that have KO chapters will use knights and sergeants of these KOs.
If a lord has 2 walled fiefs with the same KO, numbers will stack. If there are 2 different KOs, a lord will use both.
The numbers are not too big: 1 to 3 knights with each reinforcement for each relevant walled fief, 3 to 4 sergeants with each reinforcement for each relevant walled fief.
Adding this tweak:
1) Open scripts.txt. Find the script that's called cf_reinforce_party. Increase the first number in this script (it's 514 in version 3.7063) by 16.
2) Then search this script for a combination 3 0 3 0 4 0 2272. Put your mouse pointer between 3 0 and 4 0. Before you insert the following code, make sure you have a gap on each side of the mouse pointer:
6 3 1224979098644774942 648518346341351446 648518346341351504 1073741857 3 1224979098644774915 360287970189640109 360287970189640129 33 3 1224979098644774915 360287970189640134 360287970189640234 521 3 1224979098644774943 1224979098644774942 7 31 2 1224979098644774943 1224979098644774915 521 3 1224979098644774944 1224979098644774942 289 32 2 1224979098644774944 0 2120 3 1224979098644774945 1224979098644774944 53 2136 3 1224979098644774946 1 4 2136 3 1224979098644774947 3 5 1610 3 1224979098644774912 1224979098644774944 1224979098644774946 4 0 33 3 1224979098644774945 360287970189640019 360287970189640035 1610 3 1224979098644774912 1224979098644774945 1224979098644774947 3 0 3 0
3) Save the file.
If a lord has 2 walled fiefs with the same KO, numbers will stack. If there are 2 different KOs, a lord will use both.
The numbers are not too big: 1 to 3 knights with each reinforcement for each relevant walled fief, 3 to 4 sergeants with each reinforcement for each relevant walled fief.
Adding this tweak:
1) Open scripts.txt. Find the script that's called cf_reinforce_party. Increase the first number in this script (it's 514 in version 3.7063) by 16.
2) Then search this script for a combination 3 0 3 0 4 0 2272. Put your mouse pointer between 3 0 and 4 0. Before you insert the following code, make sure you have a gap on each side of the mouse pointer:
6 3 1224979098644774942 648518346341351446 648518346341351504 1073741857 3 1224979098644774915 360287970189640109 360287970189640129 33 3 1224979098644774915 360287970189640134 360287970189640234 521 3 1224979098644774943 1224979098644774942 7 31 2 1224979098644774943 1224979098644774915 521 3 1224979098644774944 1224979098644774942 289 32 2 1224979098644774944 0 2120 3 1224979098644774945 1224979098644774944 53 2136 3 1224979098644774946 1 4 2136 3 1224979098644774947 3 5 1610 3 1224979098644774912 1224979098644774944 1224979098644774946 4 0 33 3 1224979098644774945 360287970189640019 360287970189640035 1610 3 1224979098644774912 1224979098644774945 1224979098644774947 3 0 3 0
3) Save the file.
This tweak prevents martial and cunning lords from losing relation with king/queen player character when he/she gives a fief to another lord AND the following 2 conditions are met:
1) The lords are not each other's enemies (the relation between them is no less than 0).
2) This martial/cunning lord already has 3 or more fiefs in his possession.
If you think about it from said lords' point of view/system of values, it makes perfect sense.
Adding the tweak:
1) Open scripts.txt. Find the script that's called "give_center_to_lord". Increase the first number in this script by 11.
2) Find the following piece of code in this script: 5 0 1073742364 3 1224979098644774932 52 3 1073742364 3 1224979098644774932 52 5.
Insert the following right before it (be careful with gaps):
5 0 1073742364 3 1224979098644774932 52 1 540 3 1224979098644774932 52 4 2133 2 1224979098644774943 0 6 3 1224979098644774942 648518346341351446 648518346341351594 541 3 1224979098644774942 7 1224979098644774932 2105 2 1224979098644774943 1 3 0 30 2 1224979098644774943 3 30 2 1224979098644774934 0 2111 2 1224979098644774935 0
3) Save the file.
1) The lords are not each other's enemies (the relation between them is no less than 0).
2) This martial/cunning lord already has 3 or more fiefs in his possession.
If you think about it from said lords' point of view/system of values, it makes perfect sense.
Adding the tweak:
1) Open scripts.txt. Find the script that's called "give_center_to_lord". Increase the first number in this script by 11.
2) Find the following piece of code in this script: 5 0 1073742364 3 1224979098644774932 52 3 1073742364 3 1224979098644774932 52 5.
Insert the following right before it (be careful with gaps):
5 0 1073742364 3 1224979098644774932 52 1 540 3 1224979098644774932 52 4 2133 2 1224979098644774943 0 6 3 1224979098644774942 648518346341351446 648518346341351594 541 3 1224979098644774942 7 1224979098644774932 2105 2 1224979098644774943 1 3 0 30 2 1224979098644774943 3 30 2 1224979098644774934 0 2111 2 1224979098644774935 0
3) Save the file.
This tweak will remove king/queen player character's relation loss with any of his/her vassals but quarrelsome (bad-tempered), selfrighteous (pitiless) and debauched (sadistic) when such lords are defeated by some random enemies.
1. Open scripts.txt. Find the script battle_political_consequences. Increase the first number in the "body" of this script by 3.
2. Find this piece of code within the script "31 2 144115188075856292 1224979098644774924 1 4". Insert the following between 1224979098644774924 and 1:
1073742364 3 1224979098644774922 52 2 1073742364 3 1224979098644774922 52 3 540 3 1224979098644774922 52 5
1. Open scripts.txt. Find the script battle_political_consequences. Increase the first number in the "body" of this script by 3.
2. Find this piece of code within the script "31 2 144115188075856292 1224979098644774924 1 4". Insert the following between 1224979098644774924 and 1:
1073742364 3 1224979098644774922 52 2 1073742364 3 1224979098644774922 52 3 540 3 1224979098644774922 52 5
Self-explanatory. Only available when cheatmenu is on. You could only use it for your future/current wife if you want to.
1) Open dialog_states.txt in Notepad++. Add these 2 lines to the very end of the file:
Look at the numbers of the lines you added (like here).
Subtract 1 from each.
Remember the new numbers.
2) Open conversation.txt. Then (choose only one option)...
If necessary, replace 1718 (in lines 1 and 2) with the number you got for lady_equipcheat.
Then replace 1719 (in lines 2 and 3) with the number you got for lady_equipcheatfinish.
3) Go to the very top of the file conversation.txt. You will see a number there. Increase it by 3. Save the file.
Note: you just took that ugly hat (or any other piece of clothing for that matter) from a lady and yet she's still wearing it? That means she's got an extra one in her pocket. Check her inventory again and take this one too. And then again, if she's persistent.
1) Open dialog_states.txt in Notepad++. Add these 2 lines to the very end of the file:
Code:
lady_equipcheat
lady_equipcheatfinish
Subtract 1 from each.
Remember the new numbers.
2) Open conversation.txt. Then (choose only one option)...
Find the line that starts with dlga_lady_talk:lady_profess_admiration. Press Enter at the end of this line. Then insert the following:
Code:
dlga_lady_talk:lady_equipcheat 69631 888 1 31 2 144115188075856144 1 Cheat_--_Let_me_see_your_equipment 1718 0 NO_VOICEOVER
dlga_lady_equipcheat:lady_equipcheatfinish 4095 1718 0 Yeah,_yeah,_yeah 1719 1 2051 0 NO_VOICEOVER
dlga_lady_equipcheatfinish:lady_talk 4095 1719 0 Anything_else? 888 0 NO_VOICEOVER
Find the line that starts with dlga_spouse_household_possessions:spouse_pretalk. Press Enter at the end of this line. Then insert the following:
Code:
dlga_spouse_talk:lady_equipcheat 69631 569 0 Let_me_see_your_equipment 1718 0 NO_VOICEOVER
dlga_lady_equipcheat:lady_equipcheatfinish 4095 1718 0 Yeah,_yeah,_yeah 1719 1 2051 0 NO_VOICEOVER
dlga_lady_equipcheatfinish:spouse_talk 4095 1719 0 Anything_else? 569 0 NO_VOICEOVER
Then replace 1719 (in lines 2 and 3) with the number you got for lady_equipcheatfinish.
3) Go to the very top of the file conversation.txt. You will see a number there. Increase it by 3. Save the file.
Note: you just took that ugly hat (or any other piece of clothing for that matter) from a lady and yet she's still wearing it? That means she's got an extra one in her pocket. Check her inventory again and take this one too. And then again, if she's persistent.
Self-explanatory.
To add this tweak, you need:
1) Add this line to the end of dialog_states.txt (open this file in Notepad++):
Look at the number of the line you added (like here).
Subtract 1 from it.
Remember this new number.
2) Open conversation.txt. Increase the first number in this file by 2.
3) Find the line that starts with dlga_lord_talk_ask_something_2:lord_talk_ask_about_war. Press Enter at the end of it and insert the following:
If necessary, replace 1738 (in lines 1 and 2) with the number you got for lord_change_equipment.
You will find this new dialogue option in "I wish to ask you something" part of the conversation with a lord.
To add this tweak, you need:
1) Add this line to the end of dialog_states.txt (open this file in Notepad++):
Code:
lord_change_equipment
Subtract 1 from it.
Remember this new number.
2) Open conversation.txt. Increase the first number in this file by 2.
3) Find the line that starts with dlga_lord_talk_ask_something_2:lord_talk_ask_about_war. Press Enter at the end of it and insert the following:
Code:
dlga_lord_talk_ask_something_2:lord_change_equipment 69631 597 2 2173 2 1224979098644774922 144115188075855892 31 2 1224979098644774922 432345564227567630 I_would_like_to_see_your_equipment. 1738 0 NO_VOICEOVER
dlga_lord_change_equipment:lord_pretalk 4095 1738 0 Well,_if_you_wish_so,_my_liege. 215 1 2051 0 NO_VOICEOVER
You will find this new dialogue option in "I wish to ask you something" part of the conversation with a lord.
If you use this tweak, you PM skill will stack additively with those of you companions before it is multiplied by 10.
1) Open scripts.txt. Find the script game_get_party_prisoner_limit.
2) Withing this script find the following piece of code: "2122 3 1224979098644774913 1224979098644774914 10". Replace everything before it (=everything from the beginning of the line) with the following:
14 2133 2 1224979098644774914 0 1650 2 1224979098644774916 648518346341351424 6 3 1224979098644774917 0 1224979098644774916 1652 3 1224979098644774918 648518346341351424 1224979098644774917 4 0 1507 1 1224979098644774918 2147485156 1 1224979098644774918 2170 3 1224979098644774919 1369094286720630786 1224979098644774918 2105 2 1224979098644774914 1224979098644774919 3 0 3 0
Watch the gaps (including the one at the beginning of the script).
Note: 10 in red that you see is a multiplier (like total prisoner limit = total PM*10). If you find it too large under these new conditions, you may want to decrease it.
Optional code to make sure that being knocked out will not stop companions from contributing to prisoner limit.
1) Open scripts.txt. Find the script game_get_party_prisoner_limit.
2) Withing this script find the following piece of code: "2122 3 1224979098644774913 1224979098644774914 10". Replace everything before it (=everything from the beginning of the line) with the following:
14 2133 2 1224979098644774914 0 1650 2 1224979098644774916 648518346341351424 6 3 1224979098644774917 0 1224979098644774916 1652 3 1224979098644774918 648518346341351424 1224979098644774917 4 0 1507 1 1224979098644774918 2147485156 1 1224979098644774918 2170 3 1224979098644774919 1369094286720630786 1224979098644774918 2105 2 1224979098644774914 1224979098644774919 3 0 3 0
Watch the gaps (including the one at the beginning of the script).
Note: 10 in red that you see is a multiplier (like total prisoner limit = total PM*10). If you find it too large under these new conditions, you may want to decrease it.
Optional code to make sure that being knocked out will not stop companions from contributing to prisoner limit.
This will make farmers, player character and his troops spawn inside the village, while bandits will spawn outside.
1) Open mission_templates.txt. Find "village_attack_bandits". Look at the first three lines.
Change 1 to 3 and 3 to 1 at the beginning of each line to make this look like the following:
Be careful with the 1st line. It's the second "3" that you should change, not the first one. The first one should remain unchanged.
1) Open mission_templates.txt. Find "village_attack_bandits". Look at the first three lines.
Code:
3 3 8208 0 16 1 0
1 33558528 0 16 7 0
1 4112 0 16 1 0
Code:
3 1 8208 0 16 1 0
3 33558528 0 16 7 0
3 4112 0 16 1 0
The maximum desertion rate is 7% a week.
1) Open simple_triggers.txt. Find the trigger that starts with "168.000000 32 6 3" (for now there is only one such trigger).
Increase 32 by 8.
2) Inside this trigger find a piece of code "2111 2 1224979098644774915 0". Insert the following right before it:
Warning:
This tweak will drastically weaken towns/castles that have bad economy. Garrisons of such towns may drop to as few as 200 troops (while richer towns will still prosper and have garrisons up to 800 troops). To fix this, find "1000" inside the trigger we are talking about (there is only one 1000) and increase it to, let's say, 2000. This value is the constant income that every town/castle receives regardless of its economy.
1) Open simple_triggers.txt. Find the trigger that starts with "168.000000 32 6 3" (for now there is only one such trigger).
Increase 32 by 8.
2) Inside this trigger find a piece of code "2111 2 1224979098644774915 0". Insert the following right before it:
Code:
4 0 2147483678 2 1224979098644774915 0 2121 3 1224979098644774922 0 1224979098644774915 2107 2 1224979098644774922 100 2108 2 1224979098644774922 1224979098644774918 2110 2 1224979098644774922 7 1 4 936748722493063725 1224979098644774914 1224979098644774922 1 3 0
This tweak will drastically weaken towns/castles that have bad economy. Garrisons of such towns may drop to as few as 200 troops (while richer towns will still prosper and have garrisons up to 800 troops). To fix this, find "1000" inside the trigger we are talking about (there is only one 1000) and increase it to, let's say, 2000. This value is the constant income that every town/castle receives regardless of its economy.
Open conversation.txt. Find the following lines:
dlga_pop2_war_room_menu:pop37_male_female 69631 963 2 541 3 144115188075856141 289 360287970189639981 2323 2 1 360287970189639981 I_want_to_change_the_{s1}_so_that_we_only_accept_Men. 988 8 1505 2 360287970189639981 0 1505 2 360287970189640746 0 1505 2 360287970189640748 0 1505 2 360287970189640750 0 1505 2 360287970189640034 0 1505 2 360287970189640747 0 1505 2 360287970189640749 0 1505 2 360287970189640751 0 NO_VOICEOVER
dlga_pop2_war_room_menu:pop37_male_female.1 69631 963 2 541 3 144115188075856141 289 360287970189639981 2323 2 1 360287970189639981 I_want_to_change_the_{s1}_so_that_we_only_accept_Women. 988 8 1505 2 360287970189640034 2 1505 2 360287970189640747 2 1505 2 360287970189640749 2 1505 2 360287970189640751 2 1505 2 360287970189639981 2 1505 2 360287970189640746 2 1505 2 360287970189640748 2 1505 2 360287970189640750 2 NO_VOICEOVER
Turn red zeroes into twos and blue twos into zeroes.
This will make the "switch" work the following way: knights' sex will match the description (e.g. if you choose I_want_to_change_the_{s1}_so_that_we_only_accept_Men, then CKO knights will become men) while sergeants' sex will be the opposite.
dlga_pop2_war_room_menu:pop37_male_female 69631 963 2 541 3 144115188075856141 289 360287970189639981 2323 2 1 360287970189639981 I_want_to_change_the_{s1}_so_that_we_only_accept_Men. 988 8 1505 2 360287970189639981 0 1505 2 360287970189640746 0 1505 2 360287970189640748 0 1505 2 360287970189640750 0 1505 2 360287970189640034 0 1505 2 360287970189640747 0 1505 2 360287970189640749 0 1505 2 360287970189640751 0 NO_VOICEOVER
dlga_pop2_war_room_menu:pop37_male_female.1 69631 963 2 541 3 144115188075856141 289 360287970189639981 2323 2 1 360287970189639981 I_want_to_change_the_{s1}_so_that_we_only_accept_Women. 988 8 1505 2 360287970189640034 2 1505 2 360287970189640747 2 1505 2 360287970189640749 2 1505 2 360287970189640751 2 1505 2 360287970189639981 2 1505 2 360287970189640746 2 1505 2 360287970189640748 2 1505 2 360287970189640750 2 NO_VOICEOVER
Turn red zeroes into twos and blue twos into zeroes.
This will make the "switch" work the following way: knights' sex will match the description (e.g. if you choose I_want_to_change_the_{s1}_so_that_we_only_accept_Men, then CKO knights will become men) while sergeants' sex will be the opposite.
1) Open strings.txt.
Find the line str_lord_info_string. Look at it. Find this part of the line: Renown:_{reg5}._Controversy:_{reg15}.^
Now insert "_Reputation_type:_{s68}." (without quote marks) before this ^ thing, so that this part of the line will look like the following:
Renown:_{reg5}._Controversy:_{reg15}._Reputation_type:_{s68}.^
Save the file.
2) Open scripts.txt. Find the script game_get_troop_note. Increase the first number in this script by 10.
Then find the following piece of code inside the script: 2319 1 59. Insert the following right before it (as usual, watch the gaps):
2319 1 68 4 0 1073741857 3 1224979098644774912 360287970189640109 360287970189640129 33 3 1224979098644774912 360287970189640134 360287970189640234 520 3 1224979098644774941 1224979098644774912 52 2120 3 1224979098644774942 1224979098644774941 216172782113785632 2320 2 68 1224979098644774942 5 0 2320 2 68 216172782113786006 3 0
Save the file.
Now you will see each lord's personality in his profile just like you can see his age, renown etc.
Find the line str_lord_info_string. Look at it. Find this part of the line: Renown:_{reg5}._Controversy:_{reg15}.^
Now insert "_Reputation_type:_{s68}." (without quote marks) before this ^ thing, so that this part of the line will look like the following:
Renown:_{reg5}._Controversy:_{reg15}._Reputation_type:_{s68}.^
Save the file.
2) Open scripts.txt. Find the script game_get_troop_note. Increase the first number in this script by 10.
Then find the following piece of code inside the script: 2319 1 59. Insert the following right before it (as usual, watch the gaps):
2319 1 68 4 0 1073741857 3 1224979098644774912 360287970189640109 360287970189640129 33 3 1224979098644774912 360287970189640134 360287970189640234 520 3 1224979098644774941 1224979098644774912 52 2120 3 1224979098644774942 1224979098644774941 216172782113785632 2320 2 68 1224979098644774942 5 0 2320 2 68 216172782113786006 3 0
Save the file.
Now you will see each lord's personality in his profile just like you can see his age, renown etc.
1) Open simple_triggers.txt
2) Find the piece of code "110 1 144115188075855884" (currently there is only one such combination of numbers in the entire file).
3) Add 31 2 1 0 right before it.
4) Look at the beginning of the line (which is also the beginning of this trigger). Increase the second number (the one that follows 1.000000, it equals 100 in version 3.7063) by 1.
This should prevent companions from ever starting "I'm done. I'm leaving." conversation.
2) Find the piece of code "110 1 144115188075855884" (currently there is only one such combination of numbers in the entire file).
3) Add 31 2 1 0 right before it.
4) Look at the beginning of the line (which is also the beginning of this trigger). Increase the second number (the one that follows 1.000000, it equals 100 in version 3.7063) by 1.
This should prevent companions from ever starting "I'm done. I'm leaving." conversation.
This tweak disables all companions' complaints as well as negative consequences of their dissatisfaction.
1.1) Open simple_triggers.txt. Find the trigger that starts with "1.000000 100" (here and further in the text - w/o quote marks).
1.2) Inside the trigger's "body" you will find 6 instances of "31 2 144115188075856165 0". Replace the 2nd, the 3rd, the 4th and 5th of them with "31 2 144115188075856165 10".
2.1) Open scripts.txt. Find the script post_battle_personality_clash_check. Increase the first number in this script's body by 3.
2.2) Insert "4 0 31 2 144115188075856165 10" after this first number.
2.3) Add "3 0" after the last number in the script.
3.1) Open menus.txt. Find the line "menu_game_options 0 Click_on_an_option_to_toggle: none 0 8". Increase 8 (or any other number you will see there) by 1.
3.2) Go the "body" of this menu (which is 1 line below). Insert this before the first option (which is currently mno_game_options_companions):
"mno_stop_comp_compl 0 Disable_companion_complaints 2 2133 2 144115188075856916 2 2133 2 144115188075855883 -10 . "
As usual, make sure that there is 1 gap between the beginning of the line and the option you inserted, as well as 2 gaps followed by a dot followed by 2 more gaps between the option you inserted and the next one.
3.3) Use this option in the game (camp => Change PoP game options).
My thanks to DarkTemplar for testing this tweak.
1.1) Open simple_triggers.txt. Find the trigger that starts with "1.000000 100" (here and further in the text - w/o quote marks).
1.2) Inside the trigger's "body" you will find 6 instances of "31 2 144115188075856165 0". Replace the 2nd, the 3rd, the 4th and 5th of them with "31 2 144115188075856165 10".
2.1) Open scripts.txt. Find the script post_battle_personality_clash_check. Increase the first number in this script's body by 3.
2.2) Insert "4 0 31 2 144115188075856165 10" after this first number.
2.3) Add "3 0" after the last number in the script.
3.1) Open menus.txt. Find the line "menu_game_options 0 Click_on_an_option_to_toggle: none 0 8". Increase 8 (or any other number you will see there) by 1.
3.2) Go the "body" of this menu (which is 1 line below). Insert this before the first option (which is currently mno_game_options_companions):
"mno_stop_comp_compl 0 Disable_companion_complaints 2 2133 2 144115188075856916 2 2133 2 144115188075855883 -10 . "
As usual, make sure that there is 1 gap between the beginning of the line and the option you inserted, as well as 2 gaps followed by a dot followed by 2 more gaps between the option you inserted and the next one.
3.3) Use this option in the game (camp => Change PoP game options).
My thanks to DarkTemplar for testing this tweak.
1) Open scripts.txt. Find the script "give_center_to_lord". Decrease the first number in this script by 9.
2) Find the following piece of code inside the script: "3 0 3 0 3 0 4 0 33 3". Delete 4 0 33 3 and everything that follows it (until you reach the end of this script).
Warning: this tweak has a funny bug - if you add it before starting a new game, then at the start of the game, Balanli and Mobray (Sarleon villages) will belong to Ravenstern lords. This is not critical at all, and after somebody captures Sarleon, villages will switch their faction along with the town. My thanks to Tonitrus for reporting this bug.
2) Find the following piece of code inside the script: "3 0 3 0 3 0 4 0 33 3". Delete 4 0 33 3 and everything that follows it (until you reach the end of this script).
Warning: this tweak has a funny bug - if you add it before starting a new game, then at the start of the game, Balanli and Mobray (Sarleon villages) will belong to Ravenstern lords. This is not critical at all, and after somebody captures Sarleon, villages will switch their faction along with the town. My thanks to Tonitrus for reporting this bug.
So, if you are a king/queen, you will no longer have to be the lord of a fief to be able to create a chapter of a knighthood order in it. As long as a fief that belongs to your kingdom doesn't have an owner yet, you will be able create a KO chapter in it too.
The tweak adds a new "shortcut" dialogue option to stewards of such fiefs.
1) Open conversation.txt. Increase the number at the very top of this file by 1.
2) Find the line that starts with "dlga_steward_menu:pop2_war_room_menu". Press Enter at the very end of this line and insert the following:
dlga_steward_menu:pop2_war_room_create_order 69631 965 5 2204 2 1224979098644774915 144115188075856141 31 2 1224979098644774915 432345564227567630 521 3 1224979098644774916 144115188075856141 7 2147483678 2 1224979098644774916 0 541 3 144115188075856141 289 0 I_want_to_create_a_chapter_of_a_Knighthood_Order... 982 0 NO_VOICEOVER
The tweak adds a new "shortcut" dialogue option to stewards of such fiefs.
1) Open conversation.txt. Increase the number at the very top of this file by 1.
2) Find the line that starts with "dlga_steward_menu:pop2_war_room_menu". Press Enter at the very end of this line and insert the following:
dlga_steward_menu:pop2_war_room_create_order 69631 965 5 2204 2 1224979098644774915 144115188075856141 31 2 1224979098644774915 432345564227567630 521 3 1224979098644774916 144115188075856141 7 2147483678 2 1224979098644774916 0 541 3 144115188075856141 289 0 I_want_to_create_a_chapter_of_a_Knighthood_Order... 982 0 NO_VOICEOVER
This tweak will allow you to choose any troops from your party and send them to any walled fief you own. To do this, you need to talk to any village elder and pay him 500 denars.
You cannot send more than one party at the same time.
If the target fief is captured by an enemy before your troops get there, they will wait till you recapture the fief and only then join the garrison.
The party of your troops will be neutral, nobody will attack them.
Adding this tweak
1) Open variables.txt. Add this to the very end of the file send_troops_tweak.
(The number of this variable will be correct for version 3.7063, for other versions it will have to be adjusted).
2) Open dialog_states.txt in Notepad++. Add these 4 lines to the very end of the file:
Look at the numbers of the lines you added (like here).
Subtract 1 from each.
Remember the new numbers.
3) Open conversation.txt. Increase the first number in this file by 6.
Find the line that starts with dlga_village_elder_menu3:village_elder_talk. Press Enter at the very end of it and insert the following:
If necessary, replace 1725 (lines 1 and 2) with the number you got for send_reinf_to_fief1.
Then replace 1726 (lines 2, 3 and 4) with the number you got for send_reinf_to_fief2.
Then replace 1727 (lines 3 and 5) with the number you got for send_reinf_to_fief3.
Then replace 1728 (lines 5 and 6) with the number you got for send_reinf_to_fief4.
4) Open simple_triggers.txt. Increase the first number in this file by 1.
Add this trigger to the very end of the file:
1.000000 20 4 0 32 2 144115188075857214 0 132 1 144115188075857214 2291 2 1224979098644774942 144115188075857214 130 2 144115188075857214 1224979098644774942 521 3 1224979098644774947 1224979098644774942 7 31 2 1224979098644774947 360287970189639680 1650 2 1224979098644774943 144115188075857214 6 3 1224979098644774944 0 1224979098644774943 1653 3 1224979098644774945 144115188075857214 1224979098644774944 1652 3 1224979098644774946 144115188075857214 1224979098644774944 1610 3 1224979098644774942 1224979098644774946 1224979098644774945 3 0 1232 1 144115188075857214 2133 2 144115188075857214 0 5 0 2147483780 1 144115188075857214 2147483781 1 144115188075857214 2133 2 144115188075857214 0 3 0
Warning: in order not to make this tweak even more complicated, an irrelevant party template was chosen as a basis. So don't talk to the party of your troops that you have just sent on their way. Dialogue options will not be correct.
Other than this, everything else should work.
If you clicked this option by mistake and did not send any soldiers, talked to the party or did something else that resulted in multiple error messages, do this:
https://forums.taleworlds.com/index.php/topic,354730.msg8517349.html#msg8517349
You cannot send more than one party at the same time.
If the target fief is captured by an enemy before your troops get there, they will wait till you recapture the fief and only then join the garrison.
The party of your troops will be neutral, nobody will attack them.
Adding this tweak
1) Open variables.txt. Add this to the very end of the file send_troops_tweak.
(The number of this variable will be correct for version 3.7063, for other versions it will have to be adjusted).
2) Open dialog_states.txt in Notepad++. Add these 4 lines to the very end of the file:
Code:
send_reinf_to_fief1
send_reinf_to_fief2
send_reinf_to_fief3
send_reinf_to_fief4
Subtract 1 from each.
Remember the new numbers.
3) Open conversation.txt. Increase the first number in this file by 6.
Find the line that starts with dlga_village_elder_menu3:village_elder_talk. Press Enter at the very end of it and insert the following:
Code:
dlga_village_elder_talk:send_reinf_to_fief1 69631 1434 1 31 2 144115188075857214 0 I_want_to_send_troops_to_one_of_my_fiefs_and_I_want_you_to_provide_them_with_food_(500_denars) 1725 0 NO_VOICEOVER
dlga_send_reinf_to_fief1:send_reinf_to_fief2 4095 1725 0 Aye_{reg63?sir:madam}._Where_would_you_like_to_send_them? 1726 0 NO_VOICEOVER
dlga_send_reinf_to_fief2:send_reinf_to_fief3 77823 1726 6 50 1 1224979098644774912 33 3 1224979098644774912 648518346341351446 648518346341351504 521 3 1224979098644774913 1224979098644774912 7 31 2 1224979098644774913 360287970189639680 2319 1 12 2330 2 12 1224979098644774912 {s12} 1727 1 50 1 144115188075855961 NO_VOICEOVER
dlga_send_reinf_to_fief2:close_window.1 69631 1726 0 Never_mind. 6 0 NO_VOICEOVER
dlga_send_reinf_to_fief3:send_reinf_to_fief4 4095 1727 0 Who_would_you_like_to_send,_{reg63?sir:madam}? 1728 8 1100 2 648518346341351424 576460752303423580 2133 2 144115188075857214 72057594037927936 1617 1 144115188075857214 2056 1 144115188075857214 1640 2 144115188075857214 1 1641 2 144115188075857214 144115188075855961 1603 3 144115188075857214 65536 0 1529 2 360287970189639680 500 NO_VOICEOVER
dlga_send_reinf_to_fief4:close_window 4095 1728 0 Will_be_done,_{reg63?sir:madam}. 6 0 NO_VOICEOVER
Then replace 1726 (lines 2, 3 and 4) with the number you got for send_reinf_to_fief2.
Then replace 1727 (lines 3 and 5) with the number you got for send_reinf_to_fief3.
Then replace 1728 (lines 5 and 6) with the number you got for send_reinf_to_fief4.
4) Open simple_triggers.txt. Increase the first number in this file by 1.
Add this trigger to the very end of the file:
1.000000 20 4 0 32 2 144115188075857214 0 132 1 144115188075857214 2291 2 1224979098644774942 144115188075857214 130 2 144115188075857214 1224979098644774942 521 3 1224979098644774947 1224979098644774942 7 31 2 1224979098644774947 360287970189639680 1650 2 1224979098644774943 144115188075857214 6 3 1224979098644774944 0 1224979098644774943 1653 3 1224979098644774945 144115188075857214 1224979098644774944 1652 3 1224979098644774946 144115188075857214 1224979098644774944 1610 3 1224979098644774942 1224979098644774946 1224979098644774945 3 0 1232 1 144115188075857214 2133 2 144115188075857214 0 5 0 2147483780 1 144115188075857214 2147483781 1 144115188075857214 2133 2 144115188075857214 0 3 0
Warning: in order not to make this tweak even more complicated, an irrelevant party template was chosen as a basis. So don't talk to the party of your troops that you have just sent on their way. Dialogue options will not be correct.
Other than this, everything else should work.
If you clicked this option by mistake and did not send any soldiers, talked to the party or did something else that resulted in multiple error messages, do this:
https://forums.taleworlds.com/index.php/topic,354730.msg8517349.html#msg8517349
If you use this tweak, you will no longer fight lords that are raiding one of your villages in a village scene. Such battles will be normal, ordinary battles.
What you should do to implement this:
1) Open menus.txt.
2) Find menu_simple_encounter. Decrease the first number in the "body" of this menu by 23 (this number equals 214 in PoP version 3.7063).
3) Find the following in the "body" of the menu:
2133 2 144115188075856187 0 2133 2 144115188075856188 0 2133 2 144115188075856189 0 4 0 541 3 144115188075856185 4 5 521 3 1224979098644774912 144115188075856185 5 2281 3 1224979098644774913 1224979098644774912 144115188075856185 4 0 2147483678 2 1224979098644774913 4 2133 2 144115188075856188 1224979098644774912 2133 2 144115188075856189 1 3 0 3 0 4 0 32 2 144115188075856240 0 2133 2 144115188075856188 144115188075856240 2133 2 144115188075856189 2 1663 2 144115188075856188 1 2320 2 7 1585267068834416391 1106 2 216172782113783958 16732240 5 0 31 2 144115188075856189 1 1663 2 144115188075856188 0 2320 2 7 1585267068834416391 1106 2 216172782113783959 5308240 3 0 1 3 936748722493063386 0 0 1 1 936748722493063501
Delete everything that is in red. Watch the gaps, as usual.
What you should do to implement this:
1) Open menus.txt.
2) Find menu_simple_encounter. Decrease the first number in the "body" of this menu by 23 (this number equals 214 in PoP version 3.7063).
3) Find the following in the "body" of the menu:
2133 2 144115188075856187 0 2133 2 144115188075856188 0 2133 2 144115188075856189 0 4 0 541 3 144115188075856185 4 5 521 3 1224979098644774912 144115188075856185 5 2281 3 1224979098644774913 1224979098644774912 144115188075856185 4 0 2147483678 2 1224979098644774913 4 2133 2 144115188075856188 1224979098644774912 2133 2 144115188075856189 1 3 0 3 0 4 0 32 2 144115188075856240 0 2133 2 144115188075856188 144115188075856240 2133 2 144115188075856189 2 1663 2 144115188075856188 1 2320 2 7 1585267068834416391 1106 2 216172782113783958 16732240 5 0 31 2 144115188075856189 1 1663 2 144115188075856188 0 2320 2 7 1585267068834416391 1106 2 216172782113783959 5308240 3 0 1 3 936748722493063386 0 0 1 1 936748722493063501
Delete everything that is in red. Watch the gaps, as usual.
This tweak will forbid any lord, whose party's total autocalc strength is less than 1300 points (6 KotLs, 22 Ravenstern Horsemen, 48 Empire Recruits or 100 farmers), to raid villages.
1) Open scripts.txt. Find the script process_hero_ai. Increase the first number in its "body" by 2.
2) Find this piece of code inside the script: 3 0 4 0 32 2 1224979098644774922 0. Insert the following right after it:
1 3 936748722493063319 1224979098644774913 0 32 2 72057594037927936 1300
You can change 1300 to any other value if you want to.
1) Open scripts.txt. Find the script process_hero_ai. Increase the first number in its "body" by 2.
2) Find this piece of code inside the script: 3 0 4 0 32 2 1224979098644774922 0. Insert the following right after it:
1 3 936748722493063319 1224979098644774913 0 32 2 72057594037927936 1300
You can change 1300 to any other value if you want to.
This tweak will allow you to convert ex-claimants to your kingdom the same way you can convert any other lord by talking to him when he is your prisoner.
Open conversation.txt, find the line that starts with dlga_prisoner_chat_noble2:companion_comment_lord_joined and then find the following piece of code within this line: 1073741857 3 144115188075855892 360287970189640134 360287970189640234. Increase the number in bold by 5.
A word of warning: conversion may become available even when ex-claimants are still kings/queens. Don't use this option at this point. Wait till they become vassals.
Open conversation.txt, find the line that starts with dlga_prisoner_chat_noble2:companion_comment_lord_joined and then find the following piece of code within this line: 1073741857 3 144115188075855892 360287970189640134 360287970189640234. Increase the number in bold by 5.
A word of warning: conversion may become available even when ex-claimants are still kings/queens. Don't use this option at this point. Wait till they become vassals.
Open conversation.txt, find the line that starts with dlga_prisoner_chat_noble2:companion_comment_lord_joined and then find the following piece of code within this line: 33 2 360287970189640109 360287970189640129. Replace this code with 33 3 144115188075855892 360287970189640109 360287970189640129.
Part 3
P.S. All my tweaks are save-game compatible unless there is a warning that a certain one is not.
P.S.-2. Any script-related tweak ideas are welcome. Don't ask me about textures or banners though. Not my area of interest and/or expertise.