Unless otherwise stated, the following tweaks are for
Native Warband 1.143. Some below also are for Native WFaS 1.143.
If trying to use them elsewhere, your mileage may vary.
After compiling a handful of txt tweaks over the last few days, I thought it may be useful to collect them into a single place. While this thread is a bit old, it already has a number of tweaks gathered, so I chose to err on the side of resurrecting the thread and tagging on new information than adding to the cacophony of threads in the forum.
Without further ado, a work in progress, my .txt tweaks based on community requests and questions:
Fix the respawn behavior of defeated lords (necessary to revert versions 1.142+ back to 1.134 and earlier behavior)To revert Lord Respawning to 1.134 (and earlier) behavior:
1. Make a backup of your scripts.txt file
2. Open scripts.txt and find "cf_select_random_walled_center_with_faction_and_owner_priority_no_siege"
3. Select the numbers on the line that follow it...they begin with 41...and continue selecting until you reach the next script "cf_select_random_walled_center_with_faction_and_less_strength_priority"
5. You should have selected a block of numbers from 41 and ending with 1224979098644774914
6. Replace that whole block with the code here:
33 23 2 1224979098644774912 1 23 2 1224979098644774913 2 2133 2 1224979098644774914 -1 2133 2 1224979098644774915 0 1 2 936748722493063674 1224979098644774913 2133 2 1224979098644774916 72057594037927936 6 3 1224979098644774917 648518346341351445 648518346341351515 2204 2 1224979098644774918 1224979098644774917 31 2 1224979098644774918 1224979098644774912 541 3 1224979098644774917 54 -1 2105 2 1224979098644774915 1 31 2 1224979098644774916 1224979098644774917 2105 2 1224979098644774915 1000 3 0 32 2 1224979098644774915 0 2133 2 144115188075857078 0 2136 3 1224979098644774919 0 1224979098644774915 6 3 1224979098644774917 648518346341351445 648518346341351515 31 2 1224979098644774914 -1 2204 2 1224979098644774918 1224979098644774917 1073741855 2 144115188075857078 1 31 2 1224979098644774918 1224979098644774912 541 3 1224979098644774917 54 -1 2106 2 1224979098644774919 1 4 0 31 2 1224979098644774916 1224979098644774917 31 2 144115188075857078 0 2106 2 1224979098644774919 1000 3 0 2147483678 2 1224979098644774919 0 2133 2 1224979098644774914 1224979098644774917 3 0 2133 2 72057594037927936 1224979098644774914
7. There's very little change, but easier to copy paste a block than to edit the exact places.
8. Be sure that the next script name "cf_select_random_walled_center_with_faction_and_less_strength_priority"still begins on its own line.
9. Save, play.
Fix for dialog text errors (saying troop names where the lord should say a town or a faction) (not needed af0. Backup scripts.txt
1. Open scripts.txt (easiest without WordWrap on) and fine the line "get_relevant_comment_for_log_entry"
2. On the line that follows search for this string of numbers:
2322 2 51 12249790986447749163. When you find it, change the 2322 to 2330
There should be 5 times you need to make this change
4. Return to the beginning of the line after "get_relevant_comment_for_log_entry" and now search for this string of numbers:
2322 2 56 12249790986447749215. Where you see that, change 2322 to 2335
There should be 2 times you need to make this change
6. Save, play.
Change: (str_store_troop_name, s51, ":center_object"),
to (str_store_party_name, s51, ":center_object"),
and change: (str_store_troop_name, s56, ":faction_object"),
to (str_store_faction_name, s56, ":faction_object"),
Fix the behavior of fiefless and village-only lords (necessary for versions 1.126-1.131)1) Backup scripts.txt
2) Open scripts.txt and find "troop_does_business_in_center" (around line 520)
3) Subtract 1 from the first number in the line of numbers below the title and change it (in Native, change 53 to 52)
4) Find the first instance of the number 541 by itself (should be about the 20th chunk of numbers)
5) Select everything from 541 (including 541) up to '33' by itself (not including 33). It will be 5 chunks of numbers. Should be this:
541 3 1224979098644774913 7 12249790986447749126) Delete it.
7) Make sure there is 1 (and only 1) space before the 33 that you left alone and the number 0 before it.
8 ) Save and play.
Allow player to select King's/Kingdom Banners1. Make a backup of presentations.txt
2. Open presentations.txt
3. Search for "prsnt_banner_selection"
4. Find the first number after "-60.000000" (in Native it is 35). It should be the 5th number after "prsnt_banner_selection"
5. Subtract two from this number and change it (in Native, change 35 to 33).
6. Find the first instance of 2121 by itself.
7. Select beginning with 2121 up until you see 2122 by itself. Do not select 2122. This selection should include 9 blocks of numbers. It should look like this:
2121 3 1224979098644774915 432345564227567637 432345564227567631 2106 2 1224979098644774914 1224979098644774915
8. Delete the selected code.
9. Ensure there is 1 (and only 1) space between the 2122 you left alone and the string of numbers that comes before it.
10. Go to the following row, beginning with "-62.000000".
11. Find the first instance of 2109 by itself.
12. Three numbers to the right of 2109, find the number "8" alone. It should look like this:
2109 2 144115188075856423 8
13. Change the lone "8" to a "9"
14. Save and play.
Add minimap and order panel to Quick/Custom Battles0) Make a backup of mission_templates.txt (found in your Warband\Modules\Native\ folder)
1) Open mission_templates.txt
2) Search for "quick_battle" to find the correct missions
3) For quick_battle_battle (field battles, beginning around line 1168), scroll down past a series of numbers to the first number that is on a line by itself--in Native, this number is 10 (around line 1203).
4) Change 10 to 12 (add two to the number)
5) Scroll down further, past a few more lines of numbers (beginning with -21.0000 etc). Find the first blank line.
6) Paste in the following code on the next two lines:
0.000000 0.000000 0.000000 0 3 73 1 22 2147484551 1 1513209474796486693 900 1 1513209474796486693
0.100000 0.000000 0.000000 0 2 903 1 1513209474796486693 1 1 936748722493063537
7) For siege battles (quick_battle_siege), find the first solo number--in Native, 19 (around line 1270)
8 ) Change 19 to 21 (add 2)
9) Scroll down further, past a few more lines of numbers (beginning with -19.0000 etc). Find the first blank line.
10) Paste in the following code on the next two lines:
0.000000 0.000000 0.000000 0 3 73 1 22 2147484551 1 1513209474796486693 900 1 1513209474796486693
0.100000 0.000000 0.000000 0 2 903 1 1513209474796486693 1 1 936748722493063537
11) Save. Play. Enjoy.
Change battle starting order from "Charge" to "Hold Position" or "Follow Me"0) Make a backup of mission_templates.txt (found in your Warband\Modules\Native\ folder)
1) Open up mission_templates.txt (turn off Wordwrap or use Notepad++, etc)
2) Search for "lead_charge" (should be around line 369)
3) Find the line of code that begins with "0.000000 0.000000" (it follows a line beginning with "-19.000000 0.000000" and comes before a line that begins with "30.000000 0.000000"; around line 383)
4) Select that entire line
5a) To make open field battles begin with your troops HOLDING, replace it with the following:
0.000000 0.000000 100000000.000000 0 11 2133 2 144115188075856297 0 2133 2 144115188075856298 0 2133 2 144115188075856299 0 1 1 936748722493063616 1 1 936748722493063652 2133 2 144115188075856300 2 1700 1 1224979098644774912 1770 2 1224979098644774913 1224979098644774912 1107 1 0 1790 3 1224979098644774913 9 0 1107 1 1
5b) To make open field battles begin with your troops FOLLOWING, replace it with the following:
0.000000 0.000000 100000000.000000 0 11 2133 2 144115188075856297 0 2133 2 144115188075856298 0 2133 2 144115188075856299 0 1 1 936748722493063616 1 1 936748722493063652 2133 2 144115188075856300 2 1700 1 1224979098644774912 1770 2 1224979098644774913 1224979098644774912 1107 1 0 1790 3 1224979098644774913 9 1 1107 1 1
6) Save and play!
1) Open up mission_templates.txt
2) Search for "lead_charge" (should be around line 369)
3) Find the first line of code that begins with "0.000000 0.000000" (it follows a line beginning with "-19.000000 0.000000" and comes before a line that begins with "30.000000 0.000000"; around line 383)
4) Select that entire line
5) Replace it with the following:
0.000000 0.000000 100000000.000000 0 13 2133 2 144115188075856297 0 2133 2 144115188075856298 0 2133 2 144115188075856299 0 1 1 936748722493063617 1 1 936748722493063653 2133 2 144115188075856300 2 2133 2 144115188075857082 0 2133 2 144115188075857083 0 1700 1 1224979098644774912 1770 2 1224979098644774913 1224979098644774912 1107 1 0 1790 3 1224979098644774913 9 0 1107 1 1
6) Save and play!
Add "Enable cheat mode" to Camp's "Take an Action" menu1. Make a back up copy of menus.txt
2. Open menus.txt with a decent text editor (Notepad++ or the like, or at the very least make sure wordwrap is off on Notepad)
3. Find the line that begins menu_camp_action (line 57 in Native 1.143)
4. Add 2 to the final number in that line (in Native 1.143, change 6 to 8 ).
5. On the next line, which in Native begins with "mno_camp_recruit_prisoners", locate a good place to add the cheat option. It should not be the first option, or the last option, so locate a place in between other options. The end of an option is a bunch of numbers and the beginning of the next option is marked by " . mno_action_"
6. At the place described above, paste in the following block of text AFTER the set of numbers and BEFORE the '.'
. mno_action_disable_cheat_mode 1 31 2 144115188075856163 1 Disable_cheat_mode. 2 2133 2 144115188075856163 0 2060 1 864691128455135259 . mno_action_enable_cheat_mode 1 31 2 144115188075856163 0 Enable_cheat_mode. 2 2133 2 144115188075856163 1 2060 1 864691128455135259
7. Make sure that before the leading ". mno_action_disable" there are exactly 2 spaces between the '.' and the numbers that come before it, and that there are exactly 2 spaces after the trailing 'numbers' before the next ". mno_action_"
8. Save. Play.
De-horsed Mounted Troops become Infantry0) Go to your ...Warband\Modules\Native\ folder (or the ...\Modules\ folder of a mod you are trying to add this to)
1) Make a backup copy of mission_templates.txt
2) Open mission_templates.txt (if you use Notepad, be sure Wordwrap is turned off)
3) Find the line beinning with "mst_lead_charge"
4) A few lines below this, find a number by itself on a line (in Native, 21)
5) Add four to this number and replace it (in Native, change 21 to 25)
6) Immediately below this number, add the following four lines on their own line:
-25.000000 0.000000 0.000000 0 12 2071 1 1224979098644774912 4 0 2147485352 1 1224979098644774912 1715 2 1224979098644774913 1224979098644774912 30 2 1224979098644774913 0 1712 1 1224979098644774913 1702 1 1224979098644774913 1707 1 1224979098644774913 5 0 2133 2 1224979098644774913 -1 3 0 505 3 1224979098644774912 45 1224979098644774913
-26.000000 0.000000 0.000000 0 9 2071 1 1224979098644774912 2147485352 1 1224979098644774912 525 3 1224979098644774913 1224979098644774912 45 30 2 1224979098644774913 0 1712 1 1224979098644774913 1702 1 1224979098644774913 1707 1 1224979098644774913 1783 2 1224979098644774913 0 505 3 1224979098644774913 46 0
-25.000000 0.000000 0.000000 0 2 2071 1 1224979098644774912 505 3 1224979098644774912 46 -1
1.000000 0.000000 0.000000 0 9 12 1 1224979098644774912 1712 1 1224979098644774912 565 3 1224979098644774912 46 0 1702 1 1224979098644774912 1773 2 1224979098644774913 1224979098644774912 2147484193 3 1224979098644774912 46 1224979098644774913 525 3 1224979098644774914 1224979098644774912 46 1783 2 1224979098644774912 1224979098644774914 3 0
7) If you wish, do the same with mst_village_attack_bandits and mst_village_raid, the two other mission templates it could apply for. (Add 4 to the number you find on a line by itself following the heading, then paste those four lines immediately following the number you changed.)
Save. Play!
Foot Archers out of Ammo become Infantry
0) Go to your ...Warband\Modules\Native\ folder (or the ...\Modules\ folder of a mod you are trying to add this to)
1) Make a backup copy of mission_templates.txt
2) Open mission_templates.txt (if you use Notepad, be sure Wordwrap is turned off)
3) Find the line beginning with "mst_lead_charge"
4) A few lines below this, find a number by itself on a line (in Native, 21)
5) Add three to this number and replace it (in Native, change 21 to 24)
6) Immediately below this number, add the following three lines on their own line:
-58.000000 0.000000 0.000000 0 25 2072 1 1224979098644774912 30 2 1224979098644774912 0 1570 2 1224979098644774913 1224979098644774912 1073741855 2 1224979098644774913 8 31 2 1224979098644774913 9 2071 1 1224979098644774914 1712 1 1224979098644774914 1702 1 1224979098644774914 1707 1 1224979098644774914 1727 3 1224979098644774915 1224979098644774914 0 2147483680 2 1224979098644774915 0 1714 2 1224979098644774916 1224979098644774914 31 2 1224979098644774916 -1 2133 2 1224979098644774917 1 4 0 1073742365 3 144115188075856273 0 3 541 3 144115188075856273 0 2 1770 2 1224979098644774918 1224979098644774914 1073741855 2 1224979098644774918 144115188075856302 31 2 1224979098644774918 144115188075856304 2133 2 1224979098644774917 0 3 0 31 2 1224979098644774917 1 1783 2 1224979098644774914 0 505 3 1224979098644774914 46 0
-25.000000 0.000000 0.000000 0 2 2071 1 1224979098644774912 505 3 1224979098644774912 46 -1
1.000000 0.000000 0.000000 0 9 12 1 1224979098644774912 1712 1 1224979098644774912 565 3 1224979098644774912 46 0 1702 1 1224979098644774912 1773 2 1224979098644774913 1224979098644774912 2147484193 3 1224979098644774912 46 1224979098644774913 525 3 1224979098644774914 1224979098644774912 46 1783 2 1224979098644774912 1224979098644774914 3 0
7) If you wish, do the same with mst_village_attack_bandits and mst_village_raid, the two other field-battle mission templates. You could do siege templates, too if you would like. (Add 3 to the number you find on a line by itself following the heading, then paste the above lines immediately following the number you changed.)
Save. Play!
Change the Player's Party Map Icon to others Natively AvailableTo try different icons already available in the game, open simple_triggers.txt
Find the line:
0.000000 20 1541 3 1224979098644774912 360287970189639680 8 2133 2 1224979098644774913 -1 4 0 31 2 144115188075856181 0 4 0 30 2 1224979098644774912 0 2133 2 1224979098644774913 1297036692682702849 5 0 2133 2 1224979098644774913 1297036692682702848 3 0 5 0 31 2 144115188075856181 1 2133 2 1224979098644774913 1297036692682702875 5 0 31 2 144115188075856181 2 2133 2 1224979098644774913 1297036692682702876 3 0 2147483679 2 1224979098644774913 144115188075856756 2133 2 144115188075856756 1224979098644774913 1676 2 648518346341351424 1224979098644774913
Then locate this string of numbers within it:
2133 2 1224979098644774913 1297036692682702849
This is the command that sets the Player's MOUNTED icon.
For that last number, add 1 to it to try the next icon. (ex: 1297036692682702850) Add 1 more to try the next, etc. You could do this about 10 times to try the various party icons out...then you'll start hitting the icons for towns and villages. So if you want your party to look like a village walking, well you could do that too I suppose.
The list of icons you are going through is in the file map_icons.txt
Without changing anything, that number represents "player_horseman" and you'll continue moving down the list for each 1 you add to the number.
Modifying the on-foot one for the player would be the next block of numbers that starts with 2133
2133 2 1224979098644774913 1297036692682702848
the long number ending in 48 is the on foot icon. Like with the mounted one, just start counting up and changing the last two digits of that number to change what icon displays when the player is on foot.
To try different icons already available in the game, open simple_triggers.txt
Find the line:
0.000000 25 1541 3 1224979098644774912 360287970189639680 8 2133 2 1224979098644774913 -1 4 0 31 2 144115188075855872 1 2133 2 1224979098644774913 1297036692682703069 5 0 4 0 31 2 144115188075856144 0 4 0 30 2 1224979098644774912 0 2133 2 1224979098644774913 1297036692682703075 5 0 2133 2 1224979098644774913 1297036692682702848 3 0 5 0 31 2 144115188075856144 1 2133 2 1224979098644774913 1297036692682702875 5 0 31 2 144115188075856144 2 2133 2 1224979098644774913 1297036692682702876 3 0 3 0 2147483679 2 1224979098644774913 144115188075856786 2133 2 144115188075856786 1224979098644774913 1676 2 648518346341351424 1224979098644774913
Then locate this string of numbers within it:
2133 2 1224979098644774913 1297036692682703075
This is the command that sets the Player's MOUNTED icon.
Without changing anything, that number ending in 75 represents "player_lord" found near the end of the list of available map icons found in map_icons.txt As you can see there are icons to help you match the other lords right around there, so you could subtract 1 from the number ending in 75 (ex: 1297036692682703074) to get the icon for the "ewro_lord". Subtract 1 more to try the next, etc. You could do this about 5 times to try the various party icons out...then you'll start hitting the icons for towns and villages. So if you want your party to look like a village walking, well you could do that too I suppose. There's also an "extra icon" 1 above the player_lord icon...and toward the very beginning of the file are the definitions for the Native Warband icons, though I haven't tested if they work.
Modifying the on-foot one for the player would be the next block of numbers that starts with 2133
2133 2 1224979098644774913 1297036692682702848
the long number ending in 48 is the on foot icon, at the beginning of the file, called simply "player". Like with the mounted one, just start counting up and changing the last digits of that number to change what icon displays when the player is on foot.
Change Your Kingdom Name from "Rebels"If you begin as a rebellion, you are stuck as a rebellion. If you start your own kingdom anew, you can change the name as you wish.
To get around this silly coding, you can make the following .txt changes:
1. Open menus.txt
2. Find "action_rename_kingdom"
3. Change the 3 that follows those words to a 2
4. Delete a string of 4 numbers that follows that 2: 31 2 144115188075856576 15. Make sure there is 1 and only 1 space between the 2 you entered and the new number that follows it.
6. Save, play.
You'll then find the option in your Camp->Take an Action menu.
Enable ability to Change Banner without the Cheatmenu1. Open menus.txt
2. Find "mno_action_modify_banner"
3. Delete this string of numbers that immediately follows it: 1 31 2 144115188075856163 14. In its place, put a 0
5. Save, play.
You'll then find the option in your Camp->Take an Action menu.
1) Open menus.txt, after making a backup copy
2) Find:
. mno_action_modify_banner 1 31 2 144115188075856134 1 {!}Cheat:_Modify_your_banner.
3) Replace "1 31 2 144115188075856134 1" with a 0
4) Save, play.
Force First-Person Camera in Singleplayer (requires Warband Script Enhancer)You need to play through the Warband Script Enhancer launcher for this to work.
1. Make a backup of mission_templates.txt
2. Familiarize yourself with the file, as you'll need to paste the above code many places if you want this forcing to be complete; this one example for the main battle template "lead_charge" will need to be repeated pretty much everywhere except the multiplayer_*, tutorial_*, quick_battle_* and conversation_* named templates
3. Find the template called "lead_charge", it starts like this in Native 1.143:
mst_lead_charge lead_charge 65538 8
You_lead_your_men_to_battle.
4 1 4160 0 16 12 0
0 4160 0 16 0 0
4 8320 0 16 12 0
4 8320 0 16 0 0
21
-25.000000 0.000000 0.000000 0 15 2071 1 1224979098644774912 1 2 936748722493063549 1224979098644774912 2133 2 1224979098644774913 5000 1718 2 1224979098644774914 1224979098644774912 2171 2 1224979098644774915 1224979098644774914 2107 2 1224979098644774915 35 2105 2 1224979098644774913 1224979098644774915 2136 3 1224979098644774916 0 3000 2105 2 1224979098644774913 1224979098644774916 1716 2 1224979098644774917 1224979098644774912 1671 2 1224979098644774918 1224979098644774917 2121 3 1224979098644774919 1224979098644774918 70 2107 2 1224979098644774919 30 2105 2 1224979098644774913 1224979098644774919 505 3 1224979098644774912 16 1224979098644774913
....etc....
3. Increase the 'trigger count number'--the number on a line by itself, above the first trigger (triggers start with 3 numbers out to 6 decimal places, as the one that starts with -25 above shows)--by 1. So here, change 21 to 22.
4. Right below that number (hit enter to create a new line) paste your new trigger code:
0.000000 0.000000 0.000000 2 2147487252 0 3605 1 1 05. That's it. Now in normal field battles, you'll be forced into 1st person.
6. Repeat this for the other templates that you want to include the forcing in (as noted above there are some you can skip--you must skip conversation_encounter)
7. Save the file.
8. Play by launching Warband with the Warband Script Enhancer, WSELoader.exe
WFaS: Increase number of mercenaries available in camps0. Backup scripts.txt
1. Open scripts.txt, and fine the line "set_merch_limit" (it is called every week to calculate the number of available mercenaries.)
2. Find the block of numbers in the line following that script name:
2105 2 1224979098644774917 5 2112 3 1224979098644774917 0 40 2105 2 1224979098644774918 5 2112 3 1224979098644774918 0 40 2105 2 1224979098644774919 4 2112 3 1224979098644774919 0 32This is adding troops and then clamping the total available number in a range for infantry, musketeers, and cavalry in turn.
3. The '5's and '4' that stand alone are the number of troops that are added each week.
The '0 40's and '0 32' is the range within which the number of available troops are clamped (never less than 0, never more than 39/31).
4. Edit those to your liking.
5. Save, play.
Add XP cheat options to dialogs with regular troops (accessed via your party window), if the cheatmenu is activeHaving seen a number of these threads come and go, I figured it was time to throw the code together to do this.
0. Backup conversation.txt
1. Open conversation.txt
2. Add 2 to the number at the top of the file (native 1.153 change 2769 to 2771)
3. At the very bottom of the file, add
dlga_regular_member_talk:do_regular_member_view_char 69631 1320 1 30 2 144115188075856163 1 Upgrade_One_Member 1322 11 2133 2 1224979098644774912 -1 1650 2 1224979098644774913 648518346341351424 6 3 1224979098644774914 0 1224979098644774913 1652 3 1224979098644774915 648518346341351424 1224979098644774914 31 2 1224979098644774915 144115188075855987 2133 2 1224979098644774912 1224979098644774914 2133 2 1224979098644774913 0 3 0 2147483679 2 1224979098644774912 -1 1 2 936748722493063190 144115188075855987 1670 3 648518346341351424 1224979098644774912 72057594037927936 NO_VOICEOVER
dlga_regular_member_talk:do_regular_member_view_char.1 69631 1320 1 30 2 144115188075856163 1 Upgrade_Full_Stack 1322 13 2133 2 1224979098644774912 -1 1650 2 1224979098644774913 648518346341351424 6 3 1224979098644774914 0 1224979098644774913 1652 3 1224979098644774915 648518346341351424 1224979098644774914 31 2 1224979098644774915 144115188075855987 2133 2 1224979098644774912 1224979098644774914 2133 2 1224979098644774913 0 3 0 2147483679 2 1224979098644774912 -1 1 2 936748722493063190 144115188075855987 1653 3 72057594037927937 648518346341351424 1224979098644774912 2107 2 72057594037927936 72057594037927937 1670 3 648518346341351424 1224979098644774912 72057594037927936 NO_VOICEOVER
4. Save, play.