Author Topic: Max Army Size and Morale - Easy to change in scripts.txt  (Read 80763 times)

0 Members and 1 Guest are viewing this topic.

TheMageLord

  • The Handyman Can
  • Knight
  • *
    • View Profile
  • Faction: Neutral
  • M&BWB
Max Army Size and Morale - Easy to change in scripts.txt
« on: May 11, 2008, 04:55:43 AM »
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:
Quote
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:
Quote
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.
« Last Edit: October 09, 2008, 10:19:46 PM by TheMageLord »
I shall destroy you! I shall cleave off your limbs with a dull axe, rip off your head with my bare hands, tear out your eyes with a rusty SPOON! So please stand there while I find the time. Oh, so busy...

Erwin

  • Squire
  • *
  • Permanently Banned
    • View Profile
  • Faction: Neutral
Re: Max Army Size and Morale - Easy to change in scripts.txt
« Reply #1 on: May 11, 2008, 06:02:41 AM »
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? :|

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

Destichado

  • Squire
  • *
  • Armourphile
    • View Profile
    • Des's paintings, smithings & armourings at DeviantArt
  • Faction: Swadian
Re: Max Army Size and Morale - Easy to change in scripts.txt
« Reply #2 on: May 11, 2008, 08:19:48 AM »



Oooooh.  Handy8-)

 Thanks!

nonrumpali

  • Sergeant
  • *
  • Just let me help myself to this gun over here...
    • View Profile
  • Faction: Neutral
Re: Max Army Size and Morale - Easy to change in scripts.txt
« Reply #3 on: May 11, 2008, 08:26:24 AM »
Yes, finally. The module.ini editing was taking me nowhere.

Sabin Stargem

  • Sergeant
  • *
    • View Profile
Re: Max Army Size and Morale - Easy to change in scripts.txt
« Reply #4 on: May 11, 2008, 09:06:17 AM »
Nifty!  Goddess knows that my army tends towards the bitter without regular skirmishes.  Thank ye!

TurinTurambar

  • Recruit
  • *
    • View Profile
Re: Max Army Size and Morale - Easy to change in scripts.txt
« Reply #5 on: May 11, 2008, 09:24:42 AM »
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
  • *
    • View Profile
  • Faction: Vaegir
Re: Max Army Size and Morale - Easy to change in scripts.txt
« Reply #6 on: May 11, 2008, 02:32:28 PM »
I couldnt have found this at a better time.

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


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

Badbru

  • Sergeant
  • *
    • View Profile
Re: Max Army Size and Morale - Easy to change in scripts.txt
« Reply #7 on: May 11, 2008, 02:45:53 PM »
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
  • *
    • View Profile
  • Faction: Neutral
  • M&BWB
Re: Max Army Size and Morale - Easy to change in scripts.txt
« Reply #8 on: May 11, 2008, 03:22:26 PM »
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 :)
« Last Edit: May 11, 2008, 03:27:15 PM by TheMageLord »
I shall destroy you! I shall cleave off your limbs with a dull axe, rip off your head with my bare hands, tear out your eyes with a rusty SPOON! So please stand there while I find the time. Oh, so busy...

RayvenQ

  • Knight at Arms
  • *
  • We are Ancient
    • View Profile
Re: Max Army Size and Morale - Easy to change in scripts.txt
« Reply #9 on: May 11, 2008, 03:41:28 PM »
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.
"We're the Death Korp of Krieg son. Did you think that was just a pretty name? We never retreat. We fight and we die, that's the Krieg way" Lieutenant Konarski, 933rd Death Korp of Krieg, Tarsis Ultra.

TurinTurambar

  • Recruit
  • *
    • View Profile
Re: Max Army Size and Morale - Easy to change in scripts.txt
« Reply #10 on: May 11, 2008, 05:58:41 PM »
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
  • *
    • View Profile
  • Faction: Neutral
Re: Max Army Size and Morale - Easy to change in scripts.txt
« Reply #11 on: May 11, 2008, 11:19:39 PM »
MANY thanks. I've been wanting something like this for a long time now.

Finally I can experience total war  :D
The scars you can't see are the hardest to heal.

hayabusa12

  • Sergeant Knight at Arms
  • *
  • Boy lesbian wonder.
    • View Profile
  • Faction: Vaegir
Re: Max Army Size and Morale - Easy to change in scripts.txt
« Reply #12 on: May 11, 2008, 11:27:39 PM »
Many thanks, friend.  :) 

@ Maecon if you wish to truly experience total war, get the (mostly)total war music pack! http://www.mbrepository.com/modules/PDdownloads/singlefile.php?cid=6&lid=710
I'm so fat and disgusting, even my teachers laugh when I waddle into class.

I want to end my pathetic, sedentary life with a shard of glass.

Thin and popular kids will die.

TheMango55

  • Regular
  • *
    • View Profile
Re: Max Army Size and Morale - Easy to change in scripts.txt
« Reply #13 on: May 12, 2008, 12:21:54 AM »
Sweet, now all we need is to be able to get more troops from the villages.

TheMageLord

  • The Handyman Can
  • Knight
  • *
    • View Profile
  • Faction: Neutral
  • M&BWB
Re: Max Army Size and Morale - Easy to change in scripts.txt
« Reply #14 on: May 12, 2008, 12:31:00 AM »
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.
I shall destroy you! I shall cleave off your limbs with a dull axe, rip off your head with my bare hands, tear out your eyes with a rusty SPOON! So please stand there while I find the time. Oh, so busy...