Page 1 of 1

Modding Difficulty

Posted: Tue Jan 07, 2025 9:07 am
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

Re: Modding Difficulty

Posted: Tue Jan 07, 2025 10:29 am
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.

Re: Modding Difficulty

Posted: Tue Jan 07, 2025 11:35 am
by Acksord87
Thanks a bunch!!

Re: Modding Difficulty

Posted: Wed Aug 27, 2025 10:18 am
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?

Re: Modding Difficulty

Posted: Thu Aug 28, 2025 6:17 am
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