Max Army Size and Morale - Easy to change in scripts.txt

Users who are viewing this thread

TheMageLord

The Handyman Can
Knight at Arms
M&BWB
I wanted to be able to command larger armies, so I peeked in the scripts.txt file and found the ones that set them. Even without the source, it's easily changed. I then realised with my larger army sizes, morale was horrible. So I changed that too. Heres the scripts and what you need to change. You'll have to open scripts.txt in the native folder, find the appropriate script, and change the right numbers.

First the size script:
game_get_party_companion_limit -1
12 2133 2 1224979098644774912 360287970189639680 2133 2 1224979098644774913 10 2170 3 1224979098644774914 1369094286720630785 1224979098644774912 2172 3 1224979098644774915 1224979098644774912 3 2107 2 1224979098644774914 3 2105 2 1224979098644774913 1224979098644774914 2105 2 1224979098644774913 1224979098644774915 520 3 1224979098644774916 1224979098644774912 7 2123 3 1224979098644774917 1224979098644774916 25 2105 2 1224979098644774913 1224979098644774917 2133 2 72057594037927936 1224979098644774913 2075 1 72057594037927936
The 3 red numbers are what you can easily change. The first (default 10) is the base party size. The second (default 3, or default 5 in 1.003) is the bonus per point of leadership. The third (default 25) is the amount of renown you need for an additional troop (so lower is more here). You can set these to whatever you like, I put 9999 in the first two and 1 in the third as a test and ended up with insane party size limits.

And the morale script:
get_player_party_morale_values -1
49 1650 2 1224979098644774912 648518346341351424 2133 2 1224979098644774913 0 6 3 1224979098644774914 0 1224979098644774912 1652 3 1224979098644774915 648518346341351424 1224979098644774914 4 0 1507 1 1224979098644774915 2105 2 1224979098644774913 3 5 0 1653 3 1224979098644774916 648518346341351424 1224979098644774914 2105 2 1224979098644774913 1224979098644774916 3 0 3 0 2133 2 144115188075856282 1224979098644774913 2170 3 1224979098644774917 1369094286720630785 360287970189639680 2122 3 144115188075856283 1224979098644774917 7 2133 2 1224979098644774918 144115188075856283 2106 2 1224979098644774918 144115188075856282 2105 2 1224979098644774918 50 2133 2 1224979098644774919 0 2133 2 144115188075856284 0 6 3 1224979098644774920 288230376151711778 288230376151711792 150 1 1224979098644774920 4 0 33 3 1224979098644774920 288230376151711778 288230376151711790 2105 2 1224979098644774919 1 3 0 527 3 1224979098644774921 1224979098644774920 1 2105 2 144115188075856284 1224979098644774921 3 0 2105 2 1224979098644774918 144115188075856284 4 0 31 2 1224979098644774919 0 2133 2 144115188075856285 30 2106 2 1224979098644774918 144115188075856285 5 0 2133 2 144115188075856285 0 3 0 2133 2 144115188075856286 0 4 0 32 2 144115188075856027 0 1 1 936748722493063280 2133 2 1224979098644774922 72057594037927936 2122 3 144115188075856286 144115188075856027 10 2108 2 144115188075856286 1224979098644774922 2112 3 144115188075856286 1 31 2106 2 1224979098644774918 144115188075856286 3 0 2112 3 1224979098644774918 0 100 2133 2 72057594037927936 1224979098644774918
Again, the two red numbers are what you can change. The 3 is the amount of morale that "hero" troops negate (not including you, as of 1.003). You can set this to 1 to make you and your companions only subtract 1 morale, or 0 for none at all. The second number (default 7) is how much morale leadership gives as a bonus. You can set this as whatever you want, I set mine at 30 so with 10 leadership I get a 300 morale bonus and can lead very large armies without horrible morale problems like the npcs. You could set it even higher.

I hope people find this as useful as I have, I've been having a ball running around with my big army without having to grind fights for morale.

Note: This does cause some minor oddities due to the way the rest of the game is set up. The size report screen doesn't show the new numbers for bonuses, but still displays the maximum correctly - otherwise the size change works perfectly. The morale bonus is a bit weird when you first start out (gives you a big recent events negative if you start with leadership, I guess its part of a script to give you a low morale starting? not sure). It also doesn't allow you to gain over 99 morale, so recent event morale will cap at 0 if you have a small party. Morale from bonuses and negatives also caps out at 99 before it applies recent event morale, so if you have a big negative there from retreating a bunch or something it can still cause low morale even if you have a huge surplus from leadership bonus - but since 0 seems to be the lowest recent event morale goes from just passing time you can now travel around without worry of morale grind. Funnily enough, leadership bonus CAN counteract the "no food" penalty, so you can run around with no food and still have happy troops with enough bonus there. I'm not sure if you lose troops or anything due to having no food or not, I always feed them anyway.

-edit - For those of you changing morale for 1.003, it still works but the script has changed. It is a bit shorter. The parts where you can edit the hero penalty and the leadership bonus are the same, though.

-edit2- Some people have been experiencing problems with this tweak, it may no longer work in 1.003. By all accounts it SHOULD work, but it doesn't seem to - maybe the party size checks have been moved into the engine or something? I can't find anywhere else that either morale or party size are being set, so I'm a bit puzzled. Feel free to give it a try still, but don't be too surprised if it doesn't work right.

-edit3- I tested and tested this, and it works just fine for me - I'm not sure what might be causing the problems for all the reports... I'll leave mine edited for a while to make sure it doesn't glitch up unexpectedly later, but so far in an hour or so of testing I can't find any problems. If you can't get it to work for you, check your numbers - I set my party size numbers to 50 (base size) 10 (leadership bonus) and 10 (renown per extra troop) for reference.

Link to other tweaks.
 

Erwin

Banned
Wait, what? Having heroes actually incurs a morale penalty? You'd think the ordinary guys would be happy to have a lot of powerful champions in the front! Oh well, another thing in M&B that makes no sense. I'll just add it to the list then, shall I? :neutral:

Anyway, that's a very nice guide! Bookmark'd. :grin:
 
Thanks!

Just yesterday i was trying to do the same thing, editing my charisma and leadership, etc. Also, you should edit the items.txt and modify the amount of food in every food item, because with big parties you will have a supply problem.
 

rika

Regular
WF&S
I couldnt have found this at a better time.

I decided to rebel and I thought, im gonna need alot more troops   :sad:


and now all my cities are niclely garrision and im leading a warband of 300 so far  :twisted:
 

Badbru

Sergeant
Well, there's seven guys that are going to get bored with this game soon after editing all the challenge out of it.
 

TheMageLord

The Handyman Can
Knight at Arms
M&BWB
Editing all the challenge out? I hardly find roaming around with 300 men (like the npc heroes) and fighting their armies of 300+ in massive battles (battlesize changer) less challenging than the usual running around with 60 men frantically killing every bandit patrol to keep morale up and fighting skirmishes where you and your heroes slaughter 90% of the men. I take way more losses and have much more fun and challenge commanding my troops in a 300v300 mass battle than in small fights. Not to mention keeping an army of 300 fed, I have to constantly stop and buy out villages.

All this does is allow my 10 leadership commander to actually command. I can lead armies, like the npcs, and can participate in mass battles without having to be the marshal and lead around the npcs. In my game, lords leading armies of 300+ is pretty commonplace. The Vaegir king is currently running around with over 700 men by himself, with his entourage of lords totaling to about 3000.

Plus the next time the king says "Come to campaign with 196 troops" I can actually BRING that many troops, instead of going to him with a party of 100 whose morale dropped to piss poor on the walk over only to be told I don't have enough men.

Different style of gameplay? Yes. Less challenging? Hell no.

Oh, and good to know others have found this useful :smile:
 

RayvenQ

Knight at Arms
WBWF&SNW
Badbru said:
Well, there's seven guys that are going to get bored with this game soon after editing all the challenge out of it.

You know, some people play to just have fun, not to be challenged to their limit.
 
Badbru said:
Well, there's seven guys that are going to get bored with this game soon after editing all the challenge out of it.

Lol, i only want an opportuniy to finish an enemy faction. I have around 28 hours in the game and the situation of territory ownership is still the same as the beginning, when someone takes a city, one week after the other side takes it back or capture a enemy city so everything is the same.

And even now that i have a 200 soldiers company, i have to flee against +600 armies. And let's not speak about the maintenace of 200 soldiers. It's expensive.

In fact, after all the modifications i did to my charisma, leadership, morale and food, it's still not enough. The game is still broken. One party (mine) can't attack and defend in every place, and i can't count with the stupid AI to do a good work. Waiting for 0.96, with better AI and a faster renown rate adquisiton.
 

Maecon

Veteran
MANY thanks. I've been wanting something like this for a long time now.

Finally I can experience total war  :grin:
 

TheMageLord

The Handyman Can
Knight at Arms
M&BWB
Heh, you can already get a ridiculous number of troops from villages. All you have to do is get their loyalty up high. With 99 loyalty you can pull 25-35 or so troops out every couple days.
 

Lyx

Sergeant
TheMageLord said:
Heh, you can already get a ridiculous number of troops from villages. All you have to do is get their loyalty up high. With 99 loyalty you can pull 25-35 or so troops out every couple days.
Slightly OT: How would you address this?

Personally, i'd prefer if the "quantity-bonus" for high loyality were lower, but that we'd get better quality earlier. Also, one could "redirect" some of the "loyality-advantage" to something else than troops - i.e. getting trade-bonusses for that village.
 

Red River

Sergeant Knight
I'm content with my party size. what I want is to change the AI max army size to somethin' more appropriate with what this game was designed for...
 

gwharris

Sergeant at Arms
TheMageLord said:
Heh, you can already get a ridiculous number of troops from villages. All you have to do is get their loyalty up high. With 99 loyalty you can pull 25-35 or so troops out every couple days.

You can do better than that.  If their loyalty changes, then the Recruit Volunteers counter resets.  So, pull the 25-35, take a hostile action like force them to give you supplies, don't take any supplies, pull *another* 25-35, repeat as much as you like.
 

Erwin

Banned
Badbru said:
Well, there's seven guys that are going to get bored with this game soon after editing all the challenge out of it.
Count me out of that little statistic of yours, I solo most of the time. Challenge enough for you?
 
Top Bottom