Help modding the game - Building system, random claims, etc

Moderator: FOGK Moderators

Post Reply
SayNoToRngCrap
Private First Class - Opel Blitz
Private First Class - Opel Blitz
Posts: 3
Joined: Sun Jan 05, 2025 5:30 am

Help modding the game - Building system, random claims, etc

Post by SayNoToRngCrap »

Hello there!

I want to build what I want when I want!
In "field of glory: empires" i modded the game so that I can shuffle for free when clicking the button so that can choose the building that I want to build, which made the game much more enjoyable for me!

Please point to me where I can find the authority cost for buildings in the "construction edict" menu and the number of buildings in the list!


I dislike the random claims in the countries around!

Where can I find it to disable it?!


Other changes that I made already: 100% chance of positive prospecting roll, plus roll another time if resource already exist!!! No random bandits appear in my regions!!! No max region decisions! No infrastructure points lost for building nothing!! A few more to decrease all the random crap in the game!

Thanks in advance!
SayNoToRngCrap
Private First Class - Opel Blitz
Private First Class - Opel Blitz
Posts: 3
Joined: Sun Jan 05, 2025 5:30 am

Re: Help modding the game - Building system, random claims, etc

Post by SayNoToRngCrap »

How to bring back the old "Field of Glory: Empires" shuffle system with 1 turn shuffle for the cost of 1 infrastructure:

in the file Data\UI\RegionPanel.BSF find the code below:

// Click on Order structure button (the hammer button)
if (IsUIObject(id, "RegExp_Infra"))
{
if (event == 1) // right click
{
Region_Structures_SetShuffle(regionID, FALSE);
Region_Structures_Underway_Set(regionID, 0);
Region_Authority_SetEdictCost(regionID, 0) // AEP-comp, no more structure forcing through Authority
needsUpdate = REGIONPANEL_UPDATE_ACTION;
MapUI_UpdateFactionBar(TRUE);
}



Change Region_Structures_SetShuffle(regionID, FALSE);
to
Region_Structures_SetShuffle(regionID, TRUE);

Right click the construction button for the shuffle to appear!
SayNoToRngCrap
Private First Class - Opel Blitz
Private First Class - Opel Blitz
Posts: 3
Joined: Sun Jan 05, 2025 5:30 am

Re: Help modding the game - Building system, random claims, etc

Post by SayNoToRngCrap »

Mini mod: All buildings that cost less than 174 infrastructure to build will cost 0 authority to force build

Find the file scripts\Faction.bsf
Find :

#define FPAC_CostDivider 50
#define FPAC_CostMin 1


Change it to:

#define FPAC_CostDivider 350
#define FPAC_CostMin 0

Find:
value = DivideAndRound(value * modifier, 100);
value = BoundInt(value, 25, 250);

Change it to:
value = DivideAndRound(value * modifier, 100);
value = BoundInt(value, 25, 350);
Post Reply

Return to “Field of Glory: Kingdoms - Modding and Scenarios”