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

Users who are viewing this thread

Guys i changed leadership morale boost so it shows now +300 in morale report in game but.. I still have low morale, wtf? It shows bull**** numbers no logic like for example:

Base morale +50
leadership +300
food +50
army size -80
events -20

amount +64

WTF? Why 64 what the hell?
 
so here's the native 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



And here is my script, that is from the Throne Conquest V2 mod from workshop, if you can help me would be great !

get_player_party_morale_values -1
69 1 1 936748722493063217 1650 2 1224979098644774912 648518346341351424 2133 2 1224979098644774913 0 2133 2 1224979098644774914 0 6 3 1224979098644774915 1 1224979098644774912 1652 3 1224979098644774916 648518346341351424 1224979098644774915 4 0 1507 1 1224979098644774916 2105 2 1224979098644774913 1 2105 2 1224979098644774914 1 5 0 1653 3 1224979098644774917 648518346341351424 1224979098644774915 2105 2 1224979098644774913 1224979098644774917 3 0 3 0 2107 2 1224979098644774914 4 2133 2 144115188075857015 1224979098644774913 2170 3 1224979098644774918 1369094286720630785 360287970189639680 4 0 31 2 144115188075856281 432345564227567633 522 3 1224979098644774919 144115188075856281 11 31 2 1224979098644774919 360287970189639680 2122 3 144115188075857016 1224979098644774918 15 5 0 2122 3 144115188075857016 1224979098644774918 12 3 0 2133 2 1224979098644774920 144115188075857016 2106 2 1224979098644774920 144115188075857015 2105 2 1224979098644774920 50 2105 2 1224979098644774920 1224979098644774914 2133 2 1224979098644774921 0 2133 2 144115188075857017 0 6 3 1224979098644774922 288230376151711859 288230376151711875 1 3 936748722493063450 1224979098644774922 41 527 3 1224979098644774923 1224979098644774922 1 2120 3 1224979098644774924 144115188075857104 1 2107 2 1224979098644774923 1224979098644774924 2105 2 144115188075857017 1224979098644774923 2105 2 1224979098644774921 1 3 0 2121 3 1224979098644774925 288230376151711875 288230376151711859 2105 2 1224979098644774921 1224979098644774925 2107 2 144115188075857017 1224979098644774921 2108 2 144115188075857017 1224979098644774925 2105 2 1224979098644774920 144115188075857017 2171 2 1224979098644774926 360287970189639680 2107 2 1224979098644774926 3 2105 2 1224979098644774920 1224979098644774926 4 0 31 2 144115188075857017 0 2133 2 144115188075857018 30 2106 2 1224979098644774920 144115188075857018 5 0 2133 2 144115188075857018 0 3 0 2133 2 144115188075857019 0 4 0 32 2 144115188075856851 0 1 1 936748722493063406 2133 2 1224979098644774927 72057594037927936 2122 3 144115188075857019 144115188075856851 10 2111 2 1224979098644774927 1 2108 2 144115188075857019 1224979098644774927 2112 3 144115188075857019 1 31 2106 2 1224979098644774920 144115188075857019 3 0 2133 2 72057594037927937 1224979098644774920 2112 3 1224979098644774920 0 100 2133 2 72057594037927936 1224979098644774920
 
Heres Mine T.T help I doubt anyone here will even look but I will try anyways cause the morale for the mod Parabellum is horrible (I also adjusted some of the script to 9999 to the 2 two I can find anyways)

get_player_party_morale_values -1
54 1650 2 1224979098644774912 648518346341351424 2133 2 1224979098644774913 0 6 3 1224979098644774914 1 1224979098644774912 1652 3 1224979098644774915 648518346341351424 1224979098644774914 4 0 1507 1 1224979098644774915 2105 2 1224979098644774913 1 5 0 1653 3 1224979098644774916 648518346341351424 1224979098644774914 2105 2 1224979098644774913 1224979098644774916 3 0 3 0 2133 2 144115188075856824 1224979098644774913 2170 3 1224979098644774917 1369094286720630785 360287970189639680 4 0 31 2 144115188075856287 432345564227567635 522 3 1224979098644774918 144115188075856287 11 31 2 1224979098644774918 360287970189639680 2122 3 144115188075856825 1224979098644774917 15 5 0 2122 3 144115188075856825 1224979098644774917 12 3 0 2133 2 1224979098644774919 144115188075856825 2106 2 1224979098644774919 144115188075856824 2105 2 1224979098644774919 50 2133 2 144115188075856826 0 6 3 1224979098644774920 288230376151711864 288230376151711879 1 3 936748722493063458 1224979098644774920 41 527 3 1224979098644774921 1224979098644774920 1 2107 2 1224979098644774921 3 2108 2 1224979098644774921 2 2105 2 144115188075856826 1224979098644774921 3 0 2105 2 1224979098644774919 144115188075856826 4 0 31 2 144115188075856826 0 2133 2 144115188075856827 30 2106 2 1224979098644774919 144115188075856827 5 0 2133 2 144115188075856827 0 3 0 2133 2 144115188075856828 0 4 0 32 2 144115188075856754 0 1 1 936748722493063414 2133 2 1224979098644774922 72057594037927936 2122 3 144115188075856828 144115188075856754 10 2111 2 1224979098644774922 1 2108 2 144115188075856828 1224979098644774922 2112 3 144115188075856828 1 31 2106 2 1224979098644774919 144115188075856828 3 0 2112 3 1224979098644774919 0 100 2133 2 72057594037927936 1224979098644774919
 
TheMageLord said:
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.

I know this is outdated but ill try anyway I tried to apply this to brytenwalda and couldn't get it to work and ideas on how to do it?


game_get_party_companion_limit2 -1
9 2133 2 1224979098644774912 360287970189639680 2133 2 1224979098644774913 5 2170 3 1224979098644774914 1369094286720630785 1224979098644774912 2172 3 1224979098644774915 1224979098644774912 3 2107 2 1224979098644774914 5 2105 2 1224979098644774913 1224979098644774914 2105 2 1224979098644774913 1224979098644774915 2133 2 72057594037927936 1224979098644774913 2075 1 72057594037927936
game_get_party_companion_limit -1
17 2133 2 72057594037927967 0 2133 2 72057594037927936 72057594037927967 2133 2 72057594037927968 0 1650 2 1224979098644774912 648518346341351424 6 3 1224979098644774913 0 1224979098644774912 1652 3 1224979098644774914 648518346341351424 1224979098644774913 1507 1 1224979098644774914 2170 3 1224979098644774915 1369094286720630785 1224979098644774914 2105 2 72057594037927968 1224979098644774915 3 0 2105 2 72057594037927936 72057594037927968 2172 3 72057594037927969 360287970189639680 3 2105 2 72057594037927936 72057594037927969 520 3 72057594037927970 360287970189639680 7 2108 2 72057594037927970 3 2105 2 72057594037927936 72057594037927970 2075 1 72057594037927936
 
Back
Top Bottom