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

Users who are viewing this thread

Phelix - Ah, I forgot all about that little string I added. Yeah, you would need to change it to 45 since the script has changed. I just tested it and the change still works in 1.003. If you compare the scripts, it's mostly the last part that has changed. The hero penalty and leadership bonus parts are the same, so editing those numbers still works fine. I guess I should edit the post to inform people of this :smile:

That 1/2 change does have an oddity, though: It halves each stack of troops, but it only saves whole numbers - so it rounds down for morale penalty for them. So 1 troop = 0 morale loss, 2 = 1, and 3 = 1. It isn't a huge thing if you only have 1 stack of troops, but if you have 10 different stacks, all odd, you basically get 5 morale for free. The rounding down is the same reason most recruits costs 1 (the actual cost is 1.96, rounded down to 1) while Nord recruits cost 3 when they are only 2 levels higher.
 
Just to clarify, this works great in 1.003. I changed both party size and morale without a problem.

just make sure you save the old script file and move it to a different location incase you mess something up!
 
what i want to know is how you make it so that the lords also have bigger armies? does this include them too?
 
Nope, this is only for you.

The size of Lord parties are in party_get_ideal_size. Here it is:

party_get_ideal_size -1
25 21 1 1224979098644774912 2133 2 1224979098644774913 30 4 0 541 3 1224979098644774912 0 13 1652 3 1224979098644774914 1224979098644774912 0 2204 2 1224979098644774915 1224979098644774912 2133 2 1224979098644774913 10 2170 3 1224979098644774916 1369094286720630785 1224979098644774914 2172 3 1224979098644774917 1224979098644774914 3 2107 2 1224979098644774916 5 2105 2 1224979098644774913 1224979098644774916 2105 2 1224979098644774913 1224979098644774917 520 3 1224979098644774918 1224979098644774914 7 2123 3 1224979098644774919 1224979098644774918 25 2105 2 1224979098644774913 1224979098644774919 4 0 542 3 1224979098644774915 10 1224979098644774914 2105 2 1224979098644774913 100 3 0 3 0 2171 2 1224979098644774920 360287970189639680 2120 3 1224979098644774921 90 1224979098644774920 2107 2 1224979098644774913 1224979098644774921 2108 2 1224979098644774913 90 2133 2 72057594037927936 1224979098644774913
The lime green 30 is the base party size. The first red number is the bonus per point of leadership that lords get (default is 5, same as for you), the second is the amount of renown needed per extra troop - also the same as for you. You could tweak the first up or the second down to increase AI lord parties. The blue number is the bonus that kings get for being kings - 100 default, which is why they run with larger parties.

The limit is then modified by player level. The way this works is it takes the player's level plus 90, divided by 90, then multiplied into the limit. The two yellow 90's are this section. You could increase the first 90 to basically increase the player's level when used for the equation. If you make it 100, then it would be like having 10 levels above what you actually are. You could also reduce or increase the effect of the player's level by changing both numbers. At 90, they increase the limit by 1.11% per player level. If you upped them both to 200, for example, it would reduce that to 0.5% per player level. If you reduced them both to 10, it would make that a whopping 10% per player level.

Effectively this is just the maximum party size for the lords, they'll still need time to recruit troops and grow to the new number.
 
thanks this is really what i needed, but i am having problems now. every time a window pops up saying party limit reached and several of my soldiers had to leave because this ???

Even though my party limit is very high number ???
 
thats odd... I never tested the party size changes in 1.003, so I never got that. I searched triggers.txt, simple_triggers.txt, and scripts.txt and didn't find anywhere else that it checks leadership skill other than 4 places that I knew about: the companion limit (that you edited), the ideal size (for heroes, see post above), the place where reading the book adds 1 leadership, and the check for escaping prisoners that joined you which leadership reduces. None of them have anything set to remove party members due to being over the limit...

It must be some obscure trigger that I'm not seeing that takes scripts to compare. Possibly it's checking ideal size? Try editing ideal size (the one for AI heroes above your post) and see if that fixes it.

Is anyone else getting this problem?
 
Yes, I am having the same problem with my party, only I've got a maximum of 350ish soldier who can follow, but I get told my party is to big and 3 soldiers leave (Wich is allways my 3 best units of course  :roll: )... But 347 (again 347ish, not really sure about the #) is an ok # of followers... I've also noticed some odd things about the prisoners (even though thats in a totaly diffrent post  :wink: ) I'm able to keep 250 (25 per prisoner management point) but I'm told my party limit is exceeded at 190... Hmmm, not that a biggie for me, found out that 350ish was enough followers, and a 190 prisoners are just a pain, any more and I'll just wait for a prisoner execution button...  :razz:
 
How often is that triggering? It might be some new trigger, but without the module system triggers are hard to search through. Given an approximate hours would make it easier to find the trigger causing it.
 
It's actually 0.5% decrease in renown, and it's weekly - and nothing in that has anything to make you lose troops. The renown loss wouldn't be enough to affect troop slots by more than 1. You'd need 5000 renown to lose a troop slot every week.
 
This is superbly helpful, MageLord.  Thanks much.

edit: meant to post this in your list of tweaks, but here works, I guess.  Thanks again.  :grin:
 
Ive got a problem like that too, except I dont have troops leave, I just cant get anymore. I just got up to 99 troops and when I tried to recruit more, it wouldnt let me hire mercs, heros, or go to villages. I then tried disbanding some of my troops and I managed to get my total over 100.

It seems like it just wont go up anymore eventhough my total is like 300+

=S
 
I edited the first post to include a note about people having trouble. I can't figure out what exactly is causing it, though. I can't find any kind of desertion trigger to see how that works (not even the one for low morale, it's either hard coded or I'm just totally overlooking it).

Ararius, looking where it actually lets you recruit things it doesn't actually call any scripts - it just uses a function called party_get_free_companions_capacity to determine whether or not you have space. I think in .960 this function used the script for party size, but maybe in 1.003 it doesn't? I know the script is used for the displayed maximum, but if the function doesn't use the script anymore then it wouldn't work. Thats the only reason I can think of it not working right...

I'll try making all these changes myself later, I've been playing with normal party sizes. Maybe I can figure something out with a bit of testing. I've been mostly working on new tweaks instead of supporting this older one :grin:
 
I had a similar problem where my 'party was too big'. Only for me the entire party left instead of a few. All I had left was me and 1 hero. I had my morale per point of leadership set to 1000, but after changing it down to a more reasonable 30 my army no longer deserts.

I can only guess pushing it too high causes some sort of bug or overflow - since it was telling me my 'leadership wasn't high enough' to keep all of my troops - or any of them for that matter.
 
Well, I started a new game, and eventually got well over 150 troops at my disposal and was going 'round owning untill I ran into the kings party, where I then lost about 60 troops.

So now here I at at close to 90ish saying that I cant hire more troops

=S

I can get higher, it says I can get higher (on the party screen) but it wont let me Dx
 
All these reports people have been making are... weird.

I spent about an hour testing this doing every possible thing I could think of to get something to happen, but it all worked perfectly? It displays the intermediate troop numbers that it adds up wrong - but the max at the bottom number is correct and I've killed off half my army, re-recruited them all, disbanded a bunch, recruited more, stationed some in a castle, fought a bunch of battles, etc - and I can't get it to bug out.

What numbers does everyone reporting this have set for the party sizes? I edited mine to be 50 base size, 10 for each point of leadership, and 10 renown per additional troop. My party size is 385 and I recruited 385 troops, an ingame week and many battles later I still have 385 with no problems.

The only time I got the troops exceeded leadership thing with a bunch deserting me was when I changed the numbers back and waited a day. With my party size set back at the default 170 I had about 180 leave on the first night.

Something is apparently causing your party size scripts to bug out and set the size to a crazy number, but I can't figure out what might be causing this.
 
Well, I set my total starting to 150 and didnt change the other things (except for moral, that went up to like 80)

Another wired thing was it reding out certain upgrades. Like it wouldnt allow me to upgrade my my troops down the melee line, but allowing it for the range and cavalry line.

I wish I could tell you more but I have no idea whats up =S

:Edit:
About the upgrade thing, it says in red no slot for upgrading to x unit

Also, when I was recruiting guys from people I rescued, I was able to hire certain guys and not others.
 
It sounds like your problem isn't the maximum party size, it's the maximum slots. That has nothing to do with this script.

How many different troops do you have? Heroes are each 1, then every different troop type is 1. I think the limit was 32? Any over that and you can't hire more new types or upgrade to new types (unless the entire stack is ready to upgrade).
 
TheMageLord said:
It sounds like your problem isn't the maximum party size, it's the maximum slots. That has nothing to do with this script.

How many different troops do you have? Heroes are each 1, then every different troop type is 1. I think the limit was 32? Any over that and you can't hire more new types or upgrade to new types (unless the entire stack is ready to upgrade).

Ahhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh

I did NOT know that >.>

yea thats my problem I guess.... Blast me and having troops from every nation >.>.

Is there any way to increase the slot size?
 
Back
Top Bottom