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

0 Members and 1 Guest are viewing this topic.

Nahkuri

  • You Talkin' to me?
  • Grandmaster Knight
  • *
  • Frozen Hillbilly Eurotrash
    • View Profile
  • Faction: Neutral
  • MP nick: irc://Nahkuri, KorpseFvkk
Re: Max Army Size and Morale - Easy to change in scripts.txt
« Reply #30 on: May 13, 2008, 04:39:23 PM »
I just came in my pants.

You just wrote exactly the kind of instructions I had hoped for. Thank you.

Question: Do I have to start a new game for the effects to kick in?
« Last Edit: May 13, 2008, 05:07:44 PM by Nahkuri »
slither slither slither slither slither

Narduiran

  • Sergeant at Arms
  • *
    • View Profile
  • Faction: Rhodok
  • WB
Re: Max Army Size and Morale - Easy to change in scripts.txt
« Reply #31 on: May 13, 2008, 05:15:11 PM »
It's actually possible to have a huge army without too much morale hit, but it requires a LOT of work. I have 9 heroes, and since some don't like each others, I need to keep morale decked out to 99 at all times so none quits. That requires a fight with poor odds every day or so.

What I find annoying is that in the 150 days I've been playing this character, I only lost one battle, the 9 of us VS 42 Swadian Man at Arms (I got couched by the 3 last ones  :( ) and won so many battles with incredibly poor odds and I still have to fight to keep those heroes with me. There should be some kind of modifier that lowers the morale hit if you're on a continuous winning streak. Right now, I cannot idle anywhere for more than one day or else I'll lose 3-4 heroes on 9.

That means I can't be a vassal, because then I have to follow some idiotic lord half the time and idle in the middle of nowhere. And If I don't do it, some heroes will be upset cause we don't finish the quest. Basically, the only way I have to play this party is to be on my own, and to constantly fight poor odds. It's doable, but it's VERY intensive.

Llew

  • Cheap ass bum
  • Grandmaster Knight
  • *
    • View Profile
  • Faction: Vaegir
  • MP nick: nK_Llew
  • M&BWB
Re: Max Army Size and Morale - Easy to change in scripts.txt
« Reply #32 on: May 13, 2008, 05:36:41 PM »
Question: Do I have to start a new game for the effects to kick in?
That's what I'm wondering. I don't think so though, because your party size is changing all the time anyway, so it shouldn't be stored in the save file.

Quote
I've been lurking, I just haven't posted in a while. I had fun making some mods way back when, then I went on to other games. I still checked this occasionally though, and the .950/.951 releases intrigued me enough to draw me back in. Funnily enough, I was going to go back to modeling for kicks and realised I totally forgot how. Haha, I guess I might play with it till I remember one of these days... I did enjoy making all those swords before.
I enjoyed the weapons.  :P

Lyx

  • Sergeant
  • *
  • Mr. "gameplay over realism"
    • View Profile
  • Faction: Neutral
Re: Max Army Size and Morale - Easy to change in scripts.txt
« Reply #33 on: May 13, 2008, 05:51:28 PM »
The hack works instantly - no need to start a new game.

TheMageLord

  • The Handyman Can
  • Knight
  • *
    • View Profile
  • Faction: Neutral
  • M&BWB
Re: Max Army Size and Morale - Easy to change in scripts.txt
« Reply #34 on: May 13, 2008, 06:42:10 PM »
As Lyx said, you don't have to start a new game. It takes effect immediately.

Taimat, Modifying morale per troop requires an extra line. I went ahead and added a divide to the equation, so if you want to modify the number of troops per morale lost you will need this script:

Quote
get_player_party_morale_values -1
 50 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 2108 2 1224979098644774916 1 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
The bits I added are in red. The 50 is just the code telling it how many lines of script it is supposed to be reading, it was changed from 49 to 50 so it will read the extra line correctly. All the other highlighted red parts is the divide coding, with the blue number following it being the number of troops per 1 morale penalty. Keep it at 1 for no change, or whatever number you want to require higher troop numbers per morale penalty. A 5 would mean every 5 troops minuses 1 morale.

I also highlighted the two numbers from the first post (morale penalty per hero, and morale bonus per leadership) in lime green just in case you were having trouble finding them with the extra line of coding.

Enjoy. I didn't really think about it before, but simply cutting the morale per regular troop in half allows for larger armies without the problems that way more morale per leadership can cause. Like the no food penalty of 30 being pointless since leadership was adding so much :)

Oh, and TJL: the default max troops is 10 base, 3 per leadership, and 1 more per 25 renown. As shown in the companion limit script in the topic.

-edit - for those of you looking at this for 1.003, the script has changed but this change can still work. The first number has changed to 44, since 5 lines of code were removed in 1.003. So that needs to be 45 if you add in the line. Other than that the code doesn't need to be changed, if you put it in the right spot it still works.
It does have one minor oddity - it only stores whole numbers, so any odd numbered troop stacks will be halved and rounded down - in effect giving a free troop for morale calculations for every odd troop stack.  In one stack of troops it would only amount to .5 morale, but if you had 10 stacks, all odd, it would be 5.
« Last Edit: October 01, 2008, 06:28:37 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...

Sibilance

  • Knight at Arms
  • *
  • Dr. Kissinger is an honorary Harlem Globetrotter
    • View Profile
    • [quote author=kazuma link=topic=43667.msg1136031#msg1136031 date=1219806450] To the dull peasant, charisma persuades. To the philosopher, intelligence persuades.   To the somewhat educated nobleman's son:  a mix of both might be best.   To the M&
  • Faction: Bandit
  • MP nick: Sibilance
  • M&BWB
Re: Max Army Size and Morale - Easy to change in scripts.txt
« Reply #35 on: May 13, 2008, 08:02:16 PM »
This is just fan-freaking-tastic. I'm being gentle so as not to take all the challenge out of it, but this gives Native just a little more charm for me. :D

AncientFM.com -- Streaming Musick of the Medieval and Renaissance. The best possible musical accompaniment for Mount & Blade!
(If I was a minstrel, I would start a Def Leppard tribute band and call it Cleft Leper.)

Calodine

  • Southern Poof
  • Grandmaster Knight
  • *
    • View Profile
  • Faction: Neutral
  • MP nick: irc://Calodine
Re: Max Army Size and Morale - Easy to change in scripts.txt
« Reply #36 on: May 13, 2008, 08:32:44 PM »
As Lyx said, you don't have to start a new game. It takes effect immediately.

Taimat, Modifying morale per troop requires an extra line. I went ahead and added a divide to the equation, so if you want to modify the number of troops per morale lost you will need this script:

Quote
get_player_party_morale_values -1
 50 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 2108 2 1224979098644774916 1 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
The bits I added are in red. The 50 is just the code telling it how many lines of script it is supposed to be reading, it was changed from 49 to 50 so it will read the extra line correctly. All the other highlighted red parts is the divide coding, with the blue number following it being the number of troops per 1 morale penalty. Keep it at 1 for no change, or whatever number you want to require higher troop numbers per morale penalty. A 5 would mean every 5 troops minuses 1 morale.

I also highlighted the two numbers from the first post (morale penalty per hero, and morale bonus per leadership) in lime green just in case you were having trouble finding them with the extra line of coding.

Enjoy. I didn't really think about it before, but simply cutting the morale per regular troop in half allows for larger armies without the problems that way more morale per leadership can cause. Like the no food penalty of 30 being pointless since leadership was adding so much :)

Oh, and TJL: the default max troops is 10 base, 3 per leadership, and 1 more per 25 renown. As shown in the companion limit script in the topic.

Thankie :P And yeah, that was my problem with it too :P
im digging it. I'd hit that hard man. In fact I'd hit that so hard i'd probably puncture something, and you'd start bleeding internally and shit, and i'd still be ******** you right up until your dead. Then I'd make a protein shake, drink that shit, have a smoke, come back and continue ******** your corpse, and i'd keep ******** it until your ghost had babies.

Uzik

  • Recruit
  • *
    • View Profile
Re: Max Army Size and Morale - Easy to change in scripts.txt
« Reply #37 on: May 13, 2008, 09:19:04 PM »
This is an amazing find.

I used to be unable to siege a lot of larger cities because my 81 vs 300 just didn't work no matter what I tried.

While I think a more reasonable solution would be putting a limit on lord armies, at least now I don't need to maintain 70+ hired blades to be able to take on lord armies!

Anunnak

  • Sergeant
  • *
  • Remember to Plunder BEFORE you Pillage!
    • View Profile
  • Faction: Nord
  • M&BWB
Re: Max Army Size and Morale - Easy to change in scripts.txt
« Reply #38 on: May 15, 2008, 03:41:24 AM »
Thank you Themagelord!  lol I can now field 798 Nords!  Which way is England from Calradia?
But with my Castle in the South I can recall some troops now and control about 115 without worrying too much about food supplies... as I think 500+ troops will eat so much you'll be on a campaign of hunger woes.
Qui Bibit dormit, qui dormit non peccat, qui non peccat, sanctus est, Ergo: Qui bibit sanctus est.

vahtar

  • Recruit
  • *
    • View Profile
Re: Max Army Size and Morale - Easy to change in scripts.txt
« Reply #39 on: May 17, 2008, 09:27:27 AM »
thanks for the party size increase TheMageLord
but do you know how to increase party size in m&b 808?

nonrumpali

  • Sergeant
  • *
  • Just let me help myself to this gun over here...
    • View Profile
  • Faction: Neutral
  • M&BWB
Re: Max Army Size and Morale - Easy to change in scripts.txt
« Reply #40 on: May 17, 2008, 10:59:39 AM »
thanks for the party size increase TheMageLord
but do you know how to increase party size in m&b 808?

skill_prisoner_management_bonus = 5
skill_leadership_bonus = 5
base_companion_limit = 5

Edit these in the native module.ini to your liking.

vahtar

  • Recruit
  • *
    • View Profile
Re: Max Army Size and Morale - Easy to change in scripts.txt
« Reply #41 on: May 17, 2008, 11:33:53 AM »
thanks nonrumpali

isi

  • Veteran
  • *
    • View Profile
Re: Max Army Size and Morale - Easy to change in scripts.txt
« Reply #42 on: May 17, 2008, 08:28:40 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 :)

Agree entirely !  :D  i had seen some lords carrying a lot more troops than i, with a lot less renown ! they cheated, so, we need to make the game suited to some aspects of the game. i saw a a lord with 146 renown was carring 200+ troops and i had 800+ renown and could only carry 100 +/-

if i had more inventory slots, it would be nice too.
so, it takes me to the following issues :

1) - is it possible to increase more inventory slots ? or change the ones given ? but carrying too much, is supposed to slow us down, right !?
2) - so, it's possible to reduce the food consumption troops eat ? thanks  :D

As Lyx said, you don't have to start a new game. It takes effect immediately.

Taimat, Modifying morale per troop requires an extra line. I went ahead and added a divide to the equation, so if you want to modify the number of troops per morale lost you will need this script:
that script seems not to apply to troops recruited from the prisoners though ... do you have any idea where it might be !?


This will increase the number of prisoners that you can carry in a party (for each point of prisoners management):

Quote
game_get_party_prisoner_limit -1
 6 2133 2 1224979098644774912 360287970189639680 2133 2 1224979098644774913 0 2170 3 1224979098644774914 1369094286720630786 1224979098644774912 2122 3 1224979098644774913 1224979098644774914 5 2133 2 72057594037927936 1224979098644774913 2075 1 72057594037927936 

so, if i change what i presume to be the 5 multiplier to 20, i will be able to have 20x10= 200 prisoners !? (actualy, it's ok to get even more, as there's lots of enemies to take as prisoners)

Yeap !!! just tested it and works ! got 127 prisoners and recruited them after for my army, left them at a city of mine ... still, had -99 moral lost, which means i need to check that, so i don't loose so much moral when i ad troops to the party, it should be the other way around, i should gain moral ... but i'll setle with a less penality in ading new troops  :D
« Last Edit: May 17, 2008, 11:18:28 PM by isi »

TheMageLord

  • The Handyman Can
  • Knight
  • *
    • View Profile
  • Faction: Neutral
  • M&BWB
Re: Max Army Size and Morale - Easy to change in scripts.txt
« Reply #43 on: May 18, 2008, 02:02:55 AM »
That morale script isn't a penalty for adding new troops, its a penalty for HAVING troops. You get a negative for the party size. By default, each hero counts as 3 and each normal troop counts as 1. So if you have 8 heroes and 60 troops you get a permanent -84 to morale, which won't go down unless you get rid of troops.

The morale lost when you recruit from prisoners has nothing to do with this, but you could probably edit that easily too if you find the script for it. I never really recruit from prisoners, but I assume it's a recent event loss? If so, you can gain that back just by fighting some battles.
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...

isi

  • Veteran
  • *
    • View Profile
Re: Max Army Size and Morale - Easy to change in scripts.txt
« Reply #44 on: May 18, 2008, 02:18:20 AM »
That morale script isn't a penalty for adding new troops, its a penalty for HAVING troops. You get a negative for the party size. By default, each hero counts as 3 and each normal troop counts as 1. So if you have 8 heroes and 60 troops you get a permanent -84 to morale, which won't go down unless you get rid of troops.

yeas, i started looking that the party moral was reasonable. it's a nice thing. what was confusing me, whas that in the party reposrts, i still saw the base troops as the default ( 10 ) wile other status had changed accordingly.


The morale lost when you recruit from prisoners has nothing to do with this, but you could probably edit that easily too if you find the script for it. I never really recruit from prisoners, but I assume it's a recent event loss? If so, you can gain that back just by fighting some battles.

well, it's a great way to amass troops. just level a bunch of manhunters and level them up.
now go hunt a big group of Deserters.
take them to you're city and save.
offer them the chance to join until they accept and you can have huge groups to boost you're numbers.

ofcourse you suffer an event moral penalty of -99

so, put them in the garrison and go fight some bandits, come back and pick the troops back.


as for editing other stuff to avoid the moral penalty, i don't know where to look for, i deduced this prisoners capacity on my own, but it was sort of a little miracle, as i have no idea of much stuff.
i just based on you're work, as an example, and as i know each prisoner management allows 5 prisoners, deduced it might work, so, i looked for the number 5 in that line, changed it, confirmed it as working.  :lol:

as for the penalty, i don't know which values are in place, or which entry for that.  :oops: