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

0 Members and 2 Guests are viewing this topic.

FleshyStarfish

  • Sergeant at Arms
  • *
  • Fleshster
    • View Profile
  • Faction: Nord
Re: Max Army Size and Morale - Easy to change in scripts.txt
« Reply #90 on: September 24, 2008, 10:48:32 AM »
Please post if you end up changing this file for all forum members to see.  I also hate having only a 5 bonus party member size increase.

FS
hay wud up guys u shud mak a mod about lyk stuff i dunno wut but it wuld b kool lyk mabe gangstas were u start ur gang n fite mofos huh

Crispy129

  • Veteran
  • *
    • View Profile
Re: Max Army Size and Morale - Easy to change in scripts.txt
« Reply #91 on: September 24, 2008, 02:37:06 PM »
Is there any word on when the module system for 1.003 is coming out?

Banjeeboy

  • Sergeant
  • *
    • View Profile
Re: Max Army Size and Morale - Easy to change in scripts.txt
« Reply #92 on: September 26, 2008, 01:27:34 PM »
Thanks a lot for posting these findings, very helpful!

kwekl

  • Squire
  • *
    • View Profile
Re: Max Army Size and Morale - Easy to change in scripts.txt
« Reply #93 on: September 26, 2008, 01:45:09 PM »
just tested, works fine with version 1

Muglos

  • Sergeant
  • *
    • View Profile
  • Faction: Neutral
Re: Max Army Size and Morale - Easy to change in scripts.txt
« Reply #94 on: September 26, 2008, 03:53:30 PM »
Where are the script files? I can't seem to find them in the M&B Directory.

*EDITED*

Nevermind. I found it.  :wink:
"People should know when they're conquered. Wouldn't you agree?"

Marbon

  • Recruit
  • *
    • View Profile
  • Faction: Swadian
Re: Max Army Size and Morale - Easy to change in scripts.txt
« Reply #95 on: September 27, 2008, 04:39:30 PM »
I think I’ve found another way. :shock:

Go to Mount & Blade / Modules / Hundred Years War and find “quick_strings” (.txt)

Open it and search the line:

qstr_Current_party_morale Current_party_morale_is_{reg5}.^Current_party_morale_modifiers_are:^^Base_morale:__+50^Party_size:_{s2}{reg1}^Leadership:_{s3}{reg2}^Food_variety:_{s4}{reg3}{s5}{s6}^Recent_events:_{s7}{reg4}^TOTAL:__{reg5}

This line is on 50% of this document (press ctrl+f and search for “Current_party_morale”)

You can change Base_morale:__+50 to +150 or more, just like you want.

With this value on 150 or 250 there are no more problems with morale :D


TheMageLord

  • The Handyman Can
  • Knight
  • *
    • View Profile
  • Faction: Neutral
  • M&BWB
Re: Max Army Size and Morale - Easy to change in scripts.txt
« Reply #96 on: September 27, 2008, 05:08:45 PM »
Hate to ruin your idea, but all that's editing is the string that tells you you have +50 morale. All you're doing is having the game say "You have +250 morale!" even though the effects are still "You have +50 morale!"

Quick strings are just stored strings for things like menus to call from. In the module system they are stored in the menus file itself, but in the text files they are separated out. You CAN edit the base morale, though. Just look in the get_player_party_morale_values script and find the only 50 in the whole thing. It's about halfway through. As far as I can tell, that's where base morale gets added in. You can also edit the strings file to make it show you the new number correctly, since like you found that string just stores 50 directly.
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...

Marbon

  • Recruit
  • *
    • View Profile
  • Faction: Swadian
Re: Max Army Size and Morale - Easy to change in scripts.txt
« Reply #97 on: September 27, 2008, 05:57:27 PM »
... oops  :cry:

OK, thanks for the information,

(as you can see I'm not a professional)

Phelix

  • Recruit
  • *
    • View Profile
  • Faction: Khergit
Re: Max Army Size and Morale - Easy to change in scripts.txt
« Reply #98 on: October 01, 2008, 12:36:17 PM »
First of all, I just wanna thank you for all the great script mods you've thought me! :D

I also have a question, I see that the get_player_party_morale_values -1 has been changed a bit since previous versions, it now starts with 44 and not 49 to begin with, and I'm not sure if changing it to 50 and adding your string will work. I suspect it is as easy as changing it to 45 instead of 50 and then adding your string, but would like to hear what you think (oh grand master of codes :P ), before I fudge things up on a whole new plain. :twisted: Am I doing something wrong or is the info on how to change get_player_party_morale_values -1 outdated?

Keep up the good work, tweaking, it's the small things that makes it grand ;)

Amman de Stazia

  • Master Knight
  • *
  • schizophrenic? There's three of us now!
    • View Profile
  • Faction: Neutral
Re: Max Army Size and Morale - Easy to change in scripts.txt
« Reply #99 on: October 01, 2008, 12:58:03 PM »
I guess the challenge is in the balance - I personally upgrade the leadership bonus heavily, because otherwise the player can never match the lords party sizes.  OK, half the fun is smashing Harlaus 165 with my 40, but to storm a city, more than 75 would be nice - except when I go up to 90 or 100 troops, desertion kicks in even with nonstop pillaging and fighting.

Good to know about the NPC's - I thought it was just the Geroian trainer who ruined morale!
http://forums.taleworlds.net/index.php/topic,12250.msg208344.html#msg208344

Family IS more important than Mount and Blade. 

Family D'Stazia.  (A, K and S )

PS - this line plugs TPW - The Peninsular War mod.http://forums.taleworlds.net/index.php/topic,42454.0.html

TheMageLord

  • The Handyman Can
  • Knight
  • *
    • View Profile
  • Faction: Neutral
  • M&BWB
Re: Max Army Size and Morale - Easy to change in scripts.txt
« Reply #100 on: October 01, 2008, 06:22:15 PM »
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 :)

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.
« Last Edit: October 01, 2008, 06:42:44 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...

LordWilliams

  • Recruit
  • *
    • View Profile
  • Faction: Swadian
Re: Max Army Size and Morale - Easy to change in scripts.txt
« Reply #101 on: October 01, 2008, 06:48:37 PM »
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!

Tidemand

  • Sergeant Knight
  • *
    • View Profile
  • Faction: Bandit
Re: Max Army Size and Morale - Easy to change in scripts.txt
« Reply #102 on: October 01, 2008, 08:49:12 PM »
what i want to know is how you make it so that the lords also have bigger armies? does this include them too?
This hammer-swinger's talkin' to you

TheMageLord

  • The Handyman Can
  • Knight
  • *
    • View Profile
  • Faction: Neutral
  • M&BWB
Re: Max Army Size and Morale - Easy to change in scripts.txt
« Reply #103 on: October 01, 2008, 09:16:58 PM »
Nope, this is only for you.

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

Quote
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.
« Last Edit: October 04, 2008, 10:18:47 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...

dzorro

  • Knight at Arms
  • *
    • View Profile
  • Faction: Neutral
Re: Max Army Size and Morale - Easy to change in scripts.txt
« Reply #104 on: October 04, 2008, 03:42:19 PM »
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 ???