Modding Difficulty

Moderator: rbodleyscott

Post Reply
Acksord87
Private First Class - Opel Blitz
Private First Class - Opel Blitz
Posts: 2
Joined: Tue Jan 07, 2025 8:25 am

Modding Difficulty

Post by Acksord87 »

helloo, a friend of mine recommended this game and so far I've been having fun!

I recently tried to mod the game and I've already set up the mod folders, but where is the file that modifies the difficulty?
For instance, the easiest and hardest difficulty changes the elan or quality of the troops to above average and below average, respectively. How do I change it so that it removes those modifiers? I was planning to make the difficulty somewhat harder, where anything above difficulty III (or Baron) have enemy troops that are better quality
rbodleyscott
Field of Glory 2
Field of Glory 2
Posts: 28297
Joined: Sun Dec 04, 2005 6:25 pm

Re: Modding Difficulty

Post by rbodleyscott »

To eliminate/mod those changes you will need to mod in several places.

For the in-game effect: In the AdjustedExperience(me) and AdjustedElan(me) functions in Tools.BSF

For display purposes:
In the PrintUnitTypeQualityString(typeIndex, side) function in UITools.BSF

and for campaigns in

MPS_PrintQualityString(unitIndex, side) function in MultiPartSkirmishTools.BSF

and

MPSShowArmyRenderListItem(x, y, width, height, pass, flags, item, name) function in MultiPartSkirmishTools.BSF

If I was writing the code again, I would put the modification for difficulty setting in a separate function, so it could be modded only in one place.
Richard Bodley Scott

Image
Acksord87
Private First Class - Opel Blitz
Private First Class - Opel Blitz
Posts: 2
Joined: Tue Jan 07, 2025 8:25 am

Re: Modding Difficulty

Post by Acksord87 »

Thanks a bunch!!
Lysimachos
Lieutenant Colonel - Elite Panther D
Lieutenant Colonel - Elite Panther D
Posts: 1371
Joined: Tue Dec 08, 2009 9:38 am
Location: Italy

Re: Modding Difficulty

Post by Lysimachos »

rbodleyscott wrote: Tue Jan 07, 2025 10:29 am To eliminate/mod those changes you will need to mod in several places.

For the in-game effect: In the AdjustedExperience(me) and AdjustedElan(me) functions in Tools.BSF

For display purposes:
In the PrintUnitTypeQualityString(typeIndex, side) function in UITools.BSF

and for campaigns in

MPS_PrintQualityString(unitIndex, side) function in MultiPartSkirmishTools.BSF

and

MPSShowArmyRenderListItem(x, y, width, height, pass, flags, item, name) function in MultiPartSkirmishTools.BSF

If I was writing the code again, I would put the modification for difficulty setting in a separate function, so it could be modded only in one place.
Is it the same in FOG II?
"Audentis fortuna iuvat"
- Virgilius

(Good luck favours the brave)
rbodleyscott
Field of Glory 2
Field of Glory 2
Posts: 28297
Joined: Sun Dec 04, 2005 6:25 pm

Re: Modding Difficulty

Post by rbodleyscott »

Lysimachos wrote: Wed Aug 27, 2025 10:18 am
rbodleyscott wrote: Tue Jan 07, 2025 10:29 am To eliminate/mod those changes you will need to mod in several places.

For the in-game effect: In the AdjustedExperience(me) and AdjustedElan(me) functions in Tools.BSF

For display purposes:
In the PrintUnitTypeQualityString(typeIndex, side) function in UITools.BSF

and for campaigns in

MPS_PrintQualityString(unitIndex, side) function in MultiPartSkirmishTools.BSF

and

MPSShowArmyRenderListItem(x, y, width, height, pass, flags, item, name) function in MultiPartSkirmishTools.BSF

If I was writing the code again, I would put the modification for difficulty setting in a separate function, so it could be modded only in one place.
Is it the same in FOG II?
Yes
Richard Bodley Scott

Image
Post Reply

Return to “Field of Glory II: Medieval - Modding”