Compilation of 82 little tweaks to the text files to change your gameplay(links)

Users who are viewing this thread

Gawain said:
I use several tweaks but one is causing M&B to crash before the main menu appears. The culprit is the 7. Make all parties that dislike you (like bandits) group up against you. The scripts.txt differs from the previous versions in this part. let_nearby_parties_join_current_battle -1 begins with 70 in 1.011 and not with 60 like in the guide. Would anyone have a solution?

can someone please address this? i would also like to use this script for 1.011.
 
Solecist , that one does work with 1.011, at least , i got it working from that description and I'm usually hopeless at such things! :smile:
 
hotmitts said:
Solecist , that one does work with 1.011, at least , i got it working from that description and I'm usually hopeless at such things! :smile:

haha, so sorry, i quoted the wrong post...let me edit that...
 
Thanks a lot, TheMageLord! I love working with these stuffs (despite my little knowledge of programming). Used to keep fiddling with Battlefield2 text files as well but they weren't too complicated like this.  :grin:
 
Frankoman said:
Is there a way to make villagers always fight back while attempting to raid, or at least fight back while I have a larger party?

Yes there is.
Open up menus.txt and search for village_start_attack, it should look like this:

menu_village_start_attack 512 Some_of_the_angry_villagers_grab_their_tools_and_prepare_to_resist_you._It_looks_like_you'll_have_a_fight_on_your_hands_if_you_continue. none 23 1 2 936748722493063239 648518346341351424 2133 2 1224979098644774912 72057594037927936 1 2 936748722493063239 144115188075856056 2133 2 1224979098644774913 72057594037927936 4 0 32 2 1224979098644774912 25 2060 1 864691128455135327 5 0 1073741855 2 1224979098644774913 0 31 2 144115188075856016 1 4 0 31 2 144115188075856016 1 2136 3 1224979098644774914 -30 -15 1 3 936748722493063320 144115188075856056 1224979098644774914 521 3 1224979098644774915 144115188075856056 7 32 2 1224979098644774915 0 1 3 936748722493063319 1224979098644774915 -3 3 0 2060 1 864691128455135327 5 0 31 2 144115188075856016 -1 2060 1 864691128455135329 3 0 2

If your party has 25 or less people in it the villagers will fight back.  Change the 25 in the file to a larger number to make them fight against larger parties, setting it to 1000 will make them fight you every time (unless you can bring 1001 soldiers of course).


Regarding the Make all parties that dislike you group up against you tweak, here's what I've got in my text files. There are some differences between 1.010 and 1.011 so I don't recommend copying and pasting the entire script, but the changes should work with both versions.

The first two numbers highlighted below represent the maximum distance a party can join at, for daytime and nighttime.  You can adjust them if you wish, although setting them too high can make the early game in particular quite difficult.

Open up scripts.txt and search for let_nearby_parties_join_current_battle, it should look like this:

let_nearby_parties_join_current_battle -1
70 23 2 1224979098644774912 1 23 2 1224979098644774913 2 2133 2 1224979098644774914 5 4 0 2273 0 2133 2 1224979098644774914 3 3 0 11 1 1224979098644774915 1680 2 1224979098644774916 1224979098644774915 2147483678 2 1224979098644774916 0 1694 2 1224979098644774917 1224979098644774915 2147483678 2 1224979098644774917 0 2290 2 1224979098644774918 1224979098644774915 2147483679 2 1224979098644774918 8 2281 3 1224979098644774919 1224979098644774915 648518346341351424 2147483678 2 1224979098644774919 1224979098644774914 2204 2 1224979098644774920 1224979098644774915 2204 2 1224979098644774921 144115188075856032 4 0 31 2 1224979098644774920 432345564227567629 2133 2 1224979098644774922 100 5 0 2190 3 1224979098644774922 1224979098644774920 432345564227567629 3 0 4 0 31 2 1224979098644774920 1224979098644774921 2133 2 1224979098644774923 100 5 0 2190 3 1224979098644774923 1224979098644774920 1224979098644774921 3 0 2133 2 1224979098644774924 1 4 0 2147483679 2 144115188075856032 144115188075856110 2133 2 1224979098644774924 2 3 0 4 0 31 2 1224979098644774912 0 2147483678 2 1224979098644774922 0 32 2 1224979098644774923 0 521 2 1224979098644774925 1224979098644774915 31 2 1224979098644774925 13 2290 2 1224979098644774926 1224979098644774915 2147483679 2 1224979098644774926 5 1663 2 1224979098644774915 1224979098644774924 2330 2 1 1224979098644774915 1106 1 216172782113783949 5 0 31 2 1224979098644774913 0 32 2 1224979098644774922 0 2147483678 2 1224979098644774923 0 2133 2 1224979098644774927 1 4 0 31 2 1224979098644774912 1 2133 2 1224979098644774927 0 31 2 1224979098644774920 144115188075856122 542 3 144115188075856122 7 360287970189639680 2133 2 1224979098644774927 1 3 0 31 2 1224979098644774927 1 521 2 1224979098644774925 1224979098644774915 31 2 1224979098644774925 13 1652 3 1224979098644774928 1224979098644774915 0 1 2 936748722493063317 1224979098644774928 2133 2 1224979098644774929 72057594037927936 30 2 1224979098644774929 0 1663 2 1224979098644774915 0 2330 2 1 1224979098644774915 1106 1 216172782113783950 3 0 3 0

Add the numbers highlighted in red below.  Delete the numbers highlighted in green above to make non-lord parties join against you, delete the numbers highlighted in orange above to make non-lord parties join with you.  Add the numbers highlighted in teal below to prevent caravans and villagers joining battles against you, add the numbers highlighted in maroon below to prevent caravans and villagers joining battles with you. 

You will then have to update the 70 to represent the new number of lines.  The red addition is +1 line, the green and orange sections are -2 lines each, and the teal and maroon sections are +3 lines each.  Add up the number of lines you have added and subtracted and then adjust the 70 by this amount.

let_nearby_parties_join_current_battle -1
70 23 2 1224979098644774912 1 23 2 1224979098644774913 2 2133 2 1224979098644774914 5 4 0 2273 0 2133 2 1224979098644774914 3 3 0 11 1 1224979098644774915 1680 2 1224979098644774916 1224979098644774915 2147483678 2 1224979098644774916 0 1694 2 1224979098644774917 1224979098644774915 2147483678 2 1224979098644774917 0 2290 2 1224979098644774918 1224979098644774915 2147483679 2 1224979098644774918 8 2147483679 2 1224979098644774918 0 2281 3 1224979098644774919 1224979098644774915 648518346341351424 2147483678 2 1224979098644774919 1224979098644774914 2204 2 1224979098644774920 1224979098644774915 2204 2 1224979098644774921 144115188075856032 4 0 31 2 1224979098644774920 432345564227567629 2133 2 1224979098644774922 100 5 0 2190 3 1224979098644774922 1224979098644774920 432345564227567629 3 0 4 0 31 2 1224979098644774920 1224979098644774921 2133 2 1224979098644774923 100 5 0 2190 3 1224979098644774923 1224979098644774920 1224979098644774921 3 0 2133 2 1224979098644774924 1 4 0 2147483679 2 144115188075856032 144115188075856110 2133 2 1224979098644774924 2 3 0 4 0 31 2 1224979098644774912 0 2147483678 2 1224979098644774922 0 32 2 1224979098644774923 0 521 2 1224979098644774925 1224979098644774915 2290 2 1224979098644774926 1224979098644774915 2147483679 2 1224979098644774926 5 1609 2 1224979098644774926 1224979098644774915 2147483679 2 1224979098644774926 576460752303423516 2147483679 2 1224979098644774926 576460752303423505 1663 2 1224979098644774915 1224979098644774924 2330 2 1 1224979098644774915 1106 1 216172782113783949 5 0 31 2 1224979098644774913 0 32 2 1224979098644774922 0 2147483678 2 1224979098644774923 0 2133 2 1224979098644774927 1 4 0 31 2 1224979098644774912 1 2133 2 1224979098644774927 0 31 2 1224979098644774920 144115188075856122 542 3 144115188075856122 7 360287970189639680 2133 2 1224979098644774927 1 3 0 31 2 1224979098644774927 1 521 2 1224979098644774925 1224979098644774915 31 2 1224979098644774925 13 1609 2 1224979098644774926 1224979098644774915 2147483679 2 1224979098644774926 576460752303423516 2147483679 2 1224979098644774926 576460752303423505 1652 3 1224979098644774928 1224979098644774915 0 1 2 936748722493063317 1224979098644774928 2133 2 1224979098644774929 72057594037927936 30 2 1224979098644774929 0 1663 2 1224979098644774915 0 2330 2 1 1224979098644774915 1106 1 216172782113783950 3 0 3 0
 
Dear TheMageLord & Companions,
As of late, I have noticed that when you capture a enemy town, and have it assigned to your fiefdom, some towns usually get converted along with it. But, what gets me, is that you do not get taxes from these villages (even though they acquired your faction's colors upon town conversion), and you cannot build things in these villages, thus making them belong to no one (Lord-less villages?). I was wondering if it was possible to link villages to towns so I could collect taxes from them. If you don't quite understand, go to the Native version, capture Curaw, and you will see that Shulus, Bazeck, and Uslum will change factions as well, but you can't collect taxes from them. (Yes, I was assigned Curaw)

Thanks,
GLaDOS
 
I can explain why this happens, but I can't explain how to fix it.

You captured Curaw, and Curaw had a few set villages linked to it. You can't capture villages, so in order to take them to your fation you must take the castle that it is assigned to. Your faction leader hands out the fiefs. Since you captured Curaw, you get Curaw. Other lords, however, will eventually gain those fiefs. If you are incredibly lucky, you might get one of the fiefs (something I've only experienced once). You can't collect taxes or build in them mainly because they aren't your villages, but eventually someone elses.

Hope that explained things, I'll let the code geniuses explain a way to change that though.
 
thanks, hardrada. now if i wanted non-lord parties to join me, would i just delete the next "31 2 1224979098644774925 13" or would i need to adjust the initial number (70) to account for the missing lines?
 
Frankoman said:
I can explain why this happens, but I can't explain how to fix it.

You captured Curaw, and Curaw had a few set villages linked to it. You can't capture villages, so in order to take them to your fation you must take the castle that it is assigned to. Your faction leader hands out the fiefs. Since you captured Curaw, you get Curaw. Other lords, however, will eventually gain those fiefs. If you are incredibly lucky, you might get one of the fiefs (something I've only experienced once). You can't collect taxes or build in them mainly because they aren't your villages, but eventually someone elses.

Hope that explained things, I'll let the code geniuses explain a way to change that though.
So, even if they don't have a corresponding castle, they will be handed out to other lords... great... I still hope theres a way that I can a) Add those villages to my fiefdom, or b) link them to Curaw, which is in my fief. I know that when I captured Veluca, I got the 4 villages surrounding that, so why wouldn't I get these 3?
 
Has anybody thought of changing the amount of money you get after winning a battle?
Because I don't think of anyone who would take their riches to the battlefield.

How about a tweak that makes everybody lose morale if they don't camp at night? Is that possible?
 
solecist said:
If i wanted non-lord parties to join me, would i just delete the next "31 2 1224979098644774925 13" or would i need to adjust the initial number (70) to account for the missing lines?

You would need to change the 70 to 69 to account for the deleted line.  It doesn't need changing in the tweak I posted because we add one line and subtract one line.
 
A small tweak you might want to use:


To change speed of AI vs AI battles (by modifying damage each side takes each "round") change bolded numbers in scripts.txt.  First 20 50 1 relates to defender, second 20 50 1 relates to attacker. First number divides party strength, second is minimal strength used to calculate damage after division and third value is added to strength  I'm not sure if my description of this numbers is 100% correct but all in all it does what it should. I set first numbers to 1 and second to 500 in my mod and AI vs AI battles/assaults are much faster.
game_event_simulate_battle -1
204 21 1 1224979098644774912 22 1 1224979098644774913 4 0 2204 2 1224979098644774914 1224979098644774912 2204 2 1224979098644774915 1224979098644774913 2147483679 2 1224979098644774914 432345564227567629 2147483679 2 1224979098644774915 432345564227567629 2190 3 1224979098644774916 1224979098644774914 1224979098644774915 30 2 1224979098644774916 0 2075 1 1 5 0 2133 2 1224979098644774917 0 4 0 1073741855 2 144115188075856084 1224979098644774912 31 2 144115188075856084 1224979098644774913 2133 2 144115188075856084 -1 2133 2 144115188075855963 144115188075856085 2133 2 1224979098644774917 1 5 0 4 0 1073742365 3 1224979098644774912 2 1 541 3 1224979098644774913 2 1 2133 2 1224979098644774917 1 3 0 501 3 1224979098644774913 2 0 1662 2 1224979098644774912 648518346341351440 1662 2 1224979098644774913 648518346341351439 1 3 936748722493063209 648518346341351440 0 2133 2 1224979098644774918 72057594037927936 1 3 936748722493063209 648518346341351439 0 2133 2 1224979098644774919 72057594037927936 2123 3 1224979098644774918 1224979098644774918 20 2110 2 1224979098644774918 50 2111 2 1224979098644774918 1 2123 3 1224979098644774919 1224979098644774919 20 2110 2 1224979098644774919 50 2105 2 1224979098644774919 1 4 0 1073742365 3 1224979098644774912 0 2 541 3 1224979098644774912 0 3 2107 2 1224979098644774918 3 2108 2 1224979098644774918 2 2108 2 1224979098644774919 2 3 0 4 0 1697 3 1224979098644774913 1224979098644774918 648518346341351428 1662 2 1224979098644774913 648518346341351439 3 0 1 3 936748722493063238 648518346341351439 0 2133 2 1224979098644774920 72057594037927936 4 0 32 2 1224979098644774920 0 1697 3 1224979098644774912 1224979098644774919 648518346341351428 1662 2 1224979098644774912 648518346341351440 3 0 1 3 936748722493063238 648518346341351440 0 2133 2 1224979098644774921 72057594037927936 4 0 1073741855 2 1224979098644774920 0 31 2 1224979098644774921 0 4 0 31 2 1224979098644774920 0 31 2 1224979098644774921 0 2133 2 1224979098644774922 -1 2133 2 1224979098644774923 -1 2133 2 1224979098644774924 -1 5 0 31 2 1224979098644774920 0 2133 2 1224979098644774922 1224979098644774912 2133 2 1224979098644774923 1224979098644774913 2133 2 1224979098644774924 648518346341351439 5 0 2133 2 1224979098644774922 1224979098644774913 2133 2 1224979098644774923 1224979098644774912 2133 2 1224979098644774924 648518346341351440 3 0 4 0 30 2 1224979098644774922 0 1 2 936748722493063225 1224979098644774922 2133 2 1224979098644774925 72057594037927936 2204 2 1224979098644774926 1224979098644774925 2204 2 1224979098644774927 1224979098644774923 5 0 2133 2 1224979098644774925 -1 3 0 4 0 30 2 1224979098644774924 0 1650 2 1224979098644774928 1224979098644774924 5 0 2133 2 1224979098644774928 0 3 0 6 3 1224979098644774929 0 1224979098644774928 1652 3 1224979098644774930 1224979098644774924 1224979098644774929 1507 1 1224979098644774930 1 2 936748722493063521 1224979098644774930 500 3 1224979098644774930 10 -1 2136 3 1224979098644774931 0 100 2341 2 1 1224979098644774930 2343 2 2 1224979098644774926 2173 2 1224979098644774932 1224979098644774930 2343 2 3 1224979098644774932 4 0 30 2 1224979098644774931 50 1652 3 1224979098644774933 1224979098644774925 0 33 3 1224979098644774933 360287970189639870 360287970189640081 1611 3 1224979098644774925 1224979098644774930 1 32 2 72057594037927936 0 500 3 1224979098644774930 8 1224979098644774925 1105 1 216172782113783967 5 0 1106 1 1585267068834414652 3 0 4 0 2173 2 1224979098644774934 1224979098644774930 542 3 1224979098644774934 7 1224979098644774930 2133 2 144115188075855934 1 3 0 3 0 4 0 30 2 1224979098644774924 0 1651 2 1224979098644774928 1224979098644774924 5 0 2133 2 1224979098644774928 0 3 0 6 3 1224979098644774929 0 1224979098644774928 1656 3 1224979098644774930 1224979098644774924 1224979098644774929 1507 1 1224979098644774930 1 2 936748722493063521 1224979098644774930 2173 2 1224979098644774934 1224979098644774930 2341 2 1 1224979098644774930 2343 2 2 1224979098644774926 2343 2 3 1224979098644774934 1105 1 216172782113783968 3 0 4 0 30 2 1224979098644774924 0 1617 1 648518346341351425 2133 2 144115188075855900 0 1 3 936748722493063219 648518346341351425 1224979098644774924 1 3 936748722493063220 648518346341351425 1224979098644774924 1698 2 648518346341351425 1224979098644774922 1 2 936748722493063224 1224979098644774923 1 3 936748722493063534 648518346341351425 0 3 0 2133 2 1224979098644774917 1 4 0 30 2 1224979098644774924 0 521 3 1224979098644774935 1224979098644774923 0 1073741855 2 1224979098644774935 3 31 2 1224979098644774935 2 2133 2 144115188075855934 1 2204 2 1224979098644774936 1224979098644774922 2204 2 1224979098644774927 1224979098644774923 2330 2 1 1224979098644774923 2335 2 2 1224979098644774936 2335 2 3 1224979098644774927 1105 1 216172782113783969 4 0 31 2 144115188075856118 1224979098644774923 1 6 936748722493063510 18 360287970189639680 144115188075856118 0 144115188075856307 3 0 4 0 1650 2 1224979098644774928 1224979098644774922 32 2 1224979098644774928 0 1652 3 1224979098644774937 1224979098644774922 0 33 3 1224979098644774937 360287970189639870 360287970189640081 501 3 1224979098644774923 28 1224979098644774937 5 0 501 3 1224979098644774923 28 -1 3 0 1 3 936748722493063304 1224979098644774923 0 1 3 936748722493063276 1224979098644774923 1224979098644774936 4 0 31 2 1224979098644774927 432345564227567630 1 4 936748722493063341 864691128455135410 1224979098644774923 1224979098644774936 3 0 1 3 936748722493063465 1224979098644774923 -5 1 3 936748722493063172 1224979098644774923 1224979098644774936 1 2 936748722493063287 1224979098644774923 1 2 936748722493063287 1224979098644774923 3 0 3 0 4 0 541 3 1224979098644774913 0 13 2136 3 1224979098644774938 0 100 2147483678 2 1224979098644774938 25 32 2 1224979098644774920 0 1 3 936748722493063458 1224979098644774913 1000 3 0 4 0 541 3 1224979098644774912 0 13 2136 3 1224979098644774938 0 100 2147483678 2 1224979098644774938 25 32 2 1224979098644774921 0 1 3 936748722493063458 1224979098644774912 1000 3 0 2136 3 1224979098644774938 0 100 4 0 2147483678 2 1224979098644774938 10 2133 2 1224979098644774917 1 3 0 3 0 2075 1 1224979098644774917 3 0

It adds more dynamism to play in my opinion. Makes computer vs computer battles a lot more like player vs computer battles. It just makes computer AI better, cause he wastes less time on that battles. No longer you will see AI assaulting castle walls for one week (assaulting not besieging). Or imagine situation where powerfull lord attacks weak caravan. And then fights for three days... One of the greatest medieval battles, battle of Grunwald (Tannenberg) where almost 70 000 people fought took less than one day... AI vs AI battle time in native is just hilarious in my opinion. One day max for a battle is just enough i think... I saw 9000 people attacking a castle with 200 men in it. Assault still took almost whole day, and that was with my changes on! Human can take 3 castles in one day.
 
thanks hardrada, i figured it was something like that.



Luisrah said:
How about a tweak that makes everybody lose morale if they don't camp at night? Is that possible?

i like that idea. i think it's stupid that there is no morale loss for something as crazy as marching without stopping for several nights in a row.
 
I'd like to request some tweak help with companions spawning in taverns.  I've spent two game weeks tramping all over creation, teleporting to every town every night, and I still can't find Artimenner.  Is there a way to make companions always spawn in some tavern somewhere unless they're in the party?
 
is there a way to change at what point reinforcements are brought into a battle? For example, lets say the intitial wave has lost 50% of their soldiers, at this point the reinforcements will spawn. Would it be possible to change it to bring reinforcements when all the soldiers from the initial wave have died?
 
GLaDOS said:
So, even if they don't have a corresponding castle, they will be handed out to other lords... great... I still hope theres a way that I can a) Add those villages to my fiefdom, or b) link them to Curaw, which is in my fief. I know that when I captured Veluca, I got the 4 villages surrounding that, so why wouldn't I get these 3?
One way to get all the associated villages is to go rebel.  After you don't get something you captured, renounce you oath and keep your properties.  All the associated villages of your towns and castles revert to you - at least they did in the last version.  Haven't got that far in 1.011 yet.
 
SwordChest said:
is it possible to change character names?

Yea, download the Unofficiail Troop Editor, from the unofficial editing tools thread. Once you get that it makes it extremely easy to change the names. The other way would be to edit the actual troops.txt file in you M&B module folder. Just be sure to back it up before you change it.
 
Back
Top Bottom