(5)Txt Tweaks for Sands of Faith Updated 09-13-2016

Users who are viewing this thread

Subitai

Knight at Arms
Hey Guys,

I got permission from "thewanderingknight" himself to do a tweak thread kinda the same way I did for Europe1200.  Really, what this is about is trying to make it SUPER easy for people to apply the tweaks by placing them in spoilers.  Of course all the numbers and text will be specifically for Sands of Faith.

* Right now, just to let everyone know, i'm using version 1.0 txt files but for most of these tweaks it really doesn't matter and they should all work.  After v2.0 releases, I can easily make adjustments if necessary. 

Credit Due: I am not a coder...but I can stare at long lines of code and figure stuff out sometimes.  I cannot and DO-NOT take any credit for other peoples work, although I've actually made 2 myself :grin:  Most have been fairly easy to convert over to Sands of Faith, but some of them have taken me many hours of trial and error.

=========================================================================

START: As always when using tweaks like this make backups of your files and only Change things one at a time.  Unless you're like me and confident in changing a boatload of them at once!  :razz: 

How to level up your lords and change their equipment...with pics (Ref #6)
  Difficulty level:  Easy

Details: After you give a fief to a companion you can't level them up anymore, or change their equipment because they become lords. Same goes for lords you convinced to join your side.  In conversation.txt look for this line in RED
dlga_lord_talk:lord_talk_preoffer 69631 617  3 31 2 1 0 2147483680 2 144115188075856082 2 30 2 144115188075855902 0 I_have_an_offer_for_you.  770  0 NO_VOICEOVER

Easiest way to find line is to open the conversation.txt file:
Hit Crtl + A to "Select all" then Hit Ctrl + F to "Find"  Simply enter the 1st part of the line like:  "dlga_lord_talk:lord_talk_preoffer".... Boom easy to find. 

Paste this in Blue Below it:

dlga_lord_talk:lord_trade 69631 617 2 31 2 144115188075855899 432345564227567632 2147484208 3 144115188075855897 8 0 Let_me_see_your_equipment. 1745 0 NO_VOICEOVER
dlga_lord_trade:do_lord_trade 4095 1745 0 Very_well,_it's_all_here... 1746 1 2051 0 NO_VOICEOVER
dlga_do_lord_trade:lord_talk 4095 1746 0 Anything_else? 617 0 NO_VOICEOVER
dlga_lord_talk:view_lord_char_requested 69631 617 2 31 2 144115188075855899 432345564227567632 2147484208 3 144115188075855897 8 0 What_can_you_tell_me_about_your_skills? 1747 0 NO_VOICEOVER
dlga_view_lord_char_requested:do_lord_view_char 4095 1747 0 All_right,_let_me_tell_you... 1746 1 2046 0 NO_VOICEOVER


In case you need to see, this section of lines will look like this when you're done:

dlga_lord_talk:lord_talk_preoffer 69631 617  3 31 2 1 0 2147483680 2 144115188075856082 2 30 2 144115188075855902 0 I_have_an_offer_for_you.  770  0 NO_VOICEOVER
dlga_lord_talk:lord_trade 69631 617 2 31 2 144115188075855899 432345564227567632 2147484208 3 144115188075855897 8 0 Let_me_see_your_equipment. 1745 0 NO_VOICEOVER
dlga_lord_trade:do_lord_trade 4095 1745 0 Very_well,_it's_all_here... 1746 1 2051 0 NO_VOICEOVER
dlga_do_lord_trade:lord_talk 4095 1746 0 Anything_else? 617 0 NO_VOICEOVER
dlga_lord_talk:view_lord_char_requested 69631 617 2 31 2 144115188075855899 432345564227567632 2147484208 3 144115188075855897 8 0 What_can_you_tell_me_about_your_skills? 1747 0 NO_VOICEOVER
dlga_view_lord_char_requested:do_lord_view_char 4095 1747 0 All_right,_let_me_tell_you... 1746 1 2046 0 NO_VOICEOVER

dlga_lord_talk:lord_give_troops 69631 617  8 2147484208 3 144115188075855897 8 0 30 2 144115188075855902 0 520 3 1224979098644774912 144115188075855897 10 30 2 1224979098644774912 1 1694 2 1224979098644774913 1224979098644774912 2147483678 2 1224979098644774913 0 1 2 936748722493063881 144115188075855897 30 2 72057594037927936 1 I_want_to_give_some_troops_to_you.  771  0 NO_VOICEOVER

Notes:
I have applied this tweak and it works fine.  I started as King Baldwin at level 1, immediately found Companion "Catherine".    I then gave her a Fief on the spot.  I then had to wait 3 days for here to show up again and TADA!!! the tweak works.  I also checked all my other lords and I can give/change equipment and also update their skills.

Here are some pics of Lady Catherine on day 3:
mb1_1.jpg


mb2_1.jpg


mb3_1.jpg


mb4_1.jpg


mb5.jpg

P.S.  I never changed any of her stuff or took off any items and she was perfectly set up with the teutonic items!
************
This works perfectly for me as of right now and the only way it wouldn't work from a version point of view is if "thewanderingknight" had changed the last Dialog numbers in his newer versions....if so it will be an easy fix for me to update those numbers in v2.0

Tweak - How to Allow Accessing Inventory During a Siege (Ref # 1)
  Difficulty level:  Piece of Cake

**************************************
I personally only use this by Running back to my troops and then I hit the "I" key...I don't use it when I'm on the ladder or after I've entered the castle.

**************************************
The file you need to edit is mission_templates.txt

* You'll need to look for mst_castle_attack_walls_belfry and mst_castle_attack_walls_ladder.  Scan down the entries and you'll be looking near the bottom of these entries (right before the next mst_ entry). 
Look for: -22.000000 0.000000 0.000000  1 900 1 1513209474796486731  0

The red being the line you actually need to edit - that's telling the game what to do once you push the inventory key. The way it's set now tells you that you can't access your inventory. Instead we change it to this:
-22.000000 0.000000 0.000000  1 2075 1 1  0

**  All you actually have to change is the 900 to 2075 and the 1513209474796486731 to 1. This tells it to trigger the key as normal (aka open inventory) when you press the inventory key.

For clarity (in case I lost someone) What you'll want to see is this for the end of the belfry script:
Quote
936748722493063543 5 0 903 1 1513209474796486704 1 1 936748722493063811 31 2 144115188075856920 1 1 1 936748722493063809 5 0 903 1 1513209474796486731 31 2 144115188075856875 1 3 0
-22.000000 0.000000 0.000000  1 900 1 1513209474796486731  0
0.000000 0.000000 100000000.000000  1 1 1 936748722493063529  0

I changed it to:
36748722493063543 5 0 903 1 1513209474796486704 1 1 936748722493063811 31 2 144115188075856920 1 1 1 936748722493063809 5 0 903 1 1513209474796486731 31 2 144115188075856875 1 3 0
-22.000000 0.000000 0.000000  1 2075 1 1  0
0.000000 0.000000 100000000.000000  1 1 1 936748722493063529  0

And this for the end of the ladder one:
Quote
936748722493063543 5 0 903 1 1513209474796486704 1 1 936748722493063811 31 2 144115188075856920 1 1 1 936748722493063809 5 0 903 1 1513209474796486731 31 2 144115188075856875 1 3 0
-22.000000 0.000000 0.000000  1 900 1 1513209474796486731  0
-71.000000 0.000000 1.000000  0  46 2071 1 1224979098644774912 2072 1 1224979098644774913 214748367

I changed it to:
936748722493063543 5 0 903 1 1513209474796486704 1 1 936748722493063811 31 2 144115188075856920 1 1 1 936748722493063809 5 0 903 1 1513209474796486731 31 2 144115188075856875 1 3 0
-22.000000 0.000000 0.000000  1 2075 1 1  0
-71.000000 0.000000 1.000000  0  46 2071 1 1224979098644774912 2072 1 1224979098644774913 2147483679

Once these changes are done, the next time you siege a castle or defend a castle pressing "I" will open your inventory. Not quite as elegant as baggage boxes, but much simpler. Enjoy!

I tested it once today and it worked.

*Tweak to RAISE or Lower the chance of king giving you a property that you've captured. (Ref # 8:cool:
Originally by TML
IN Scripts.txt.

* WHY IS THIS SIGNIFICANT???  Because many times I have read where players are constantly being given their properties to them when in fact they don't really want them.  I've often heard of players complaining that they "Wish the King would NOT give them a captured castle and therefore the player would get the chance to rebel.  This tweak can help solve that problem. 


Actually this is only a small part of a larger posted tweak but I thought it might be useful.  There are a few other things going on to determine the calculations like:

1st, defining the value of towns, castles & villages. 2nd your Renown and relationship with king and 3rd a random number is generated....blah blah blah.

2nd, It then checks whether or not YOU'VE captured the place personally – if you did, it multiplies it by 3 and then divides it by 2. That effectively gives you a 50% higher score for capturing it. You could change these numbers to give the one capturing it an even bigger chance if you like.

To increase your chance: changing the blue 3 to 30 and the blue 2 to 1, that would result in whoever takes it getting it almost always.

To Decrease your chance for example to 1/5th : changing the blue 3 to 1 and the blue 2 to 5, that would decrease your chance for the King to give you the town or castle you just captured.

Sands of faith Lines to look for:
calculate_troop_score_for_center -1
58 23 2 1224979098644774912 1 23 2 1224979098644774913 2 2133 2 1224979098644774914 1 6 3 1224979098644774915 648518346341351446 648518346341351631 2133 2 1224979098644774916 0 4 0 31 2 1224979098644774912 360287970189639680 541 3 1224979098644774915 7 -2 2133 2 1224979098644774916 1 3 0 1073742365 3 1224979098644774915 7 1224979098644774912 31 2 1224979098644774916 1 4 0 541 3 1224979098644774915 0 3 2105 2 1224979098644774914 4 5 0 541 3 1224979098644774915 0 2 2105 2 1224979098644774914 2 5 0 2105 2 1224979098644774914 1 3 0 3 0 520 3 1224979098644774917 1224979098644774912 7 2120 3 1224979098644774918 500 1224979098644774917 2108 2 1224979098644774918 1224979098644774914 2136 3 1224979098644774919 50 100 2107 2 1224979098644774918 1224979098644774919 4 0 541 3 1224979098644774913 28 1224979098644774912 2107 2 1224979098644774918 3 2108 2 1224979098644774918 2 5 0 30 2 144115188075856289 0 561 3 1224979098644774913 402 1 541 3 1224979098644774913 402 1224979098644774912 2107 2 1224979098644774918 3 2108 2 1224979098644774918 2 5 0 30 2 144115188075856289 0 561 3 1224979098644774913 401 1 541 3 1224979098644774913 401 1224979098644774912 2107 2 1224979098644774918 3 2108 2 1224979098644774918 2 5 0 30 2 144115188075856289 0 540 3 1224979098644774912 60 1224979098644774913 2107 2 1224979098644774918 3 2108 2 1224979098644774918 2 3 0 4 0 31 2 1224979098644774912 360287970189639680 522 3 1224979098644774920 144115188075856275 11 1 2 936748722493063442 1224979098644774920 2133 2 1224979098644774921 72057594037927936 2107 2 1224979098644774921 2 2105 2 1224979098644774918 1224979098644774921 3 0 2133 2 72057594037927936 1224979098644774918

Notes:
I have used this tweak before in Hispania1200 with success and this mod is based off of it so I have not doubt this will work here.

Change the amount you get per prisoner (Ref #102)
(This does not effect the NORMAL Ransom Brokers amounts based on the type of prisoner you have)
- Super easy old Mount & Blade edit tweak from "red.murder1"

In Scripts.txt look for:

game_get_prisoner_price -1
13 21 1 1224979098644774912 4 0 33 3 144115188075855897 360287970189639894 360287970189639904 2171 2 1224979098644774913 1224979098644774912 2133 2 1224979098644774914 1224979098644774913 2105 2 1224979098644774914 10 2107 2 1224979098644774914 1224979098644774914 2108 2 1224979098644774914 6 5 0 2133 2 1224979098644774914 50 3 0 2133 2 72057594037927936 1224979098644774914 2075 1 72057594037927936

Notes:

- I tested 51 and it worked.  The default is 50 and whatever you set this number to will be the sell price for "Ramun the slave trader" and tavern keepers if you also enable that tweak as well.
 

Tweak to enable Tavern keeper to buy prisoners  (ref # 82)
Originally this was by TheMageLord for Vanilla Mount & Blade... but now I know how to make it work for warband. I also based this one off some tweak research I saw kefka95 post long ago.

Details:
- It wasn't like the original tweak at all????  No wonder I was having trouble...I had to add 2 more dialog lines but I got it work and it's clean too.  SWEET!

IN conversation.txt find this: dlga_tavernkeeper_talk:close_window 69631 1272  0 I_guess_I_should_leave_now.  6  0 NO_VOICEOVER

Next paste these 3 lines directly above it:

dlga_tavernkeeper_talk:ransom_broker_sell_prisoners 69631 1272  2 2159 1 72057594037927936 30 2 72057594037927936 1 I_have_prisoners_to_sell.  1748  0 NO_VOICEOVER
dlga_tavernkeeper_sell_prisoners:ransom_broker_sell_prisoners_2 4095 1748  0 Let_me_see_what_you_have...  1749  1 2044 0 NO_VOICEOVER
dlga_tavernkeeper_sell_prisoners_2:close_window 4095 1749  0 I'll_give_you_the_standard_rate_but_this_is_just_between_us_ok?  6  0 NO_VOICEOVER


When you're done it should look like this:

dlga_tavernkeeper_talk:ransom_broker_sell_prisoners 69631 1272  2 2159 1 72057594037927936 30 2 72057594037927936 1 I_have_prisoners_to_sell.  1748  0 NO_VOICEOVER
dlga_tavernkeeper_sell_prisoners:ransom_broker_sell_prisoners_2 4095 1748  0 Let_me_see_what_you_have...  1749  1 2044 0 NO_VOICEOVER
dlga_tavernkeeper_sell_prisoners_2:close_window 4095 1749  0 I'll_give_you_the_standard_rate_but_this_is_just_between_us_ok?  6  0 NO_VOICEOVER

dlga_tavernkeeper_talk:close_window 69631 1272  0 I_guess_I_should_leave_now.  6  0 NO_VOICEOVER

Notes:
- I had to rework this tweak and add lines to make this work... the way that kefka95 had it wasn't working at all for me.  Now I can pretty much add it to most Warband mods.

Future Tweaks...  if anyone was looking at the tweak thread that I did for Europe1200 and wanted me to make the adjustments for Sands of Faith just ask and I'll try.  No guarantees of course  :oops:

Here is thread: https://forums.taleworlds.com/index.php/topic,295324.0.html
===============
* BTW, I like allot of the default values that "thewanderingnight" has chosen to place in the mod.:smile:

I just started fooling around with these (below) on SOF today and here are the other tweaks I've tried just today just for a list of possibilities:

-Tweak % chance of capturing enemy lords (aka % chance for defeated lord being able to escape) (Ref #13) lowered from 70%  to 30% for test

-Change the minimum amount of damage for PLAYER and his Heros to Continue Fighting and Contribute to Party Skills.  Default is 5 player and 15 for heroes.

-Increase prisoner limit to 20 per skill =  works

-Dedicating tourney victory to ladies changed to + 7 relation gain for test

-Enable donate to villagers (when a village is poor) to get relation gain...also change the amount 

-Tweaked Right to Rule gained from Companions sent out ...set to 5 gain each for test

-Tweak the Honor gained after allowing a defeated Lord to go free (Ref # 55 & 65) Mod is set to 5

on and on
 
i found (80) Txt Tweaks for Europe 1200 in forum :grin:

and i know how to edit reinforcement waves, it is not 100% complete but good than default setting.
Mission_template.txt

Note:
red number:  edited value, blue number: default value
i only edit red number, and keep default value of blue number.
brown number: tested and work 100%, other value without mark brown number: still testing, but i think it work :grin:

----------------------------------------------------------------
Standard Battle (Attacker Waves) then (Attacker Threshold)-----here

1.000000 0.000000 5.000000  5 2147483678 2 144115188075856340 99 2370 1 1224979098644774912 30 2 1224979098644774912 10 2385 2 1224979098644774913 1 2147483678 2 1224979098644774913 6  2 1930 2 3 7 2105 2 144115188075856340 1

Siege With Tower (Defender Waves) then (Defender Threshold)

99 2147483680 2 144115188075856339 1224979098644774913 2385 2 1224979098644774914 0 2147483678 2 1224979098644774914 8 1930 2 4 7 2105 2 144115188075856339 1 3 0 4 0

Siege With Ladder (Defender Waves) then (Defender Threshold) tested!

99 2147483680 2 144115188075856339 1224979098644774913 2385 2 1224979098644774914 0 2147483678 2 1224979098644774914 8 1930 2 4 7 2105 2 144115188075856339 1 3 0 4 0


Siege With Ladder (Attacker Waves) then (Attacker Threshold)tested!
i found 2 values:

value 1:
1.000000 0.000000 5.000000  12 2133 2 1224979098644774912 1 4 0 30 2 144115188075856340 99 2122 3 1224979098644774913

value 2:
1.000000 0.000000 5.000000  12 2133 2 1224979098644774912 1 4 0 30 2 144115188075856340 99 2122 3 1224979098644774913

Village Raid (Defender Waves) then (Defenders Threshold)

1.000000 0.000000 5.000000  5 2147483678 2 144115188075856339 99 2370 1 1224979098644774912 30 2 1224979098644774912 10 2385 2 1224979098644774913 0 2147483678 2 1224979098644774913 6  2 1930 2 0 7 2105 2 144115188075856339

Village Raid (Attacker Waves) then (Attacker Threshold)--here

1.000000 0.000000 5.000000  5 2147483678 2 144115188075856340 99 2370 1 1224979098644774912 30 2 1224979098644774912 10 2385 2 1224979098644774913 1 2147483678 2 1224979098644774913 6 3 1930 2 3 7 2105 2 144115188075856340 1 2133 2 144115188075856332
 
Back
Top Bottom