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:
And the morale script:
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.
First the size script:
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.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
And the morale script:
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.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
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.