Modding the unit conversion from FoG Empire to FoG II

Post Reply
Bercor
Corporal - 5 cm Pak 38
Corporal - 5 cm Pak 38
Posts: 36
Joined: Tue Feb 19, 2019 12:36 am

Modding the unit conversion from FoG Empire to FoG II

Post by Bercor » Wed Aug 14, 2019 2:49 pm

Hello,

I would like to know which files I have to change to mod the unit conversion from Empires to FoG II. I know the UNITS.CSV in the Empires DATA folder mentions the unit conversion into FoG II, but is that all I need to change or there are other necessary files in the FoG II data folder? Thanks in advance!

rbodleyscott
Field of Glory 2
Field of Glory 2
Posts: 22496
Joined: Sun Dec 04, 2005 6:25 pm

Re: Modding the unit conversion from FoG Empire to FoG II

Post by rbodleyscott » Wed Aug 14, 2019 3:11 pm

You don't need to mod anything at the FOG2 end, unless you want to disable the code that converts Pre-Marian legions in the proportion of 2 hastati/principes and 1 triarii FOG2 units, or the code that converts horse archers into a mix of light horse and cavalry.
Richard Bodley Scott

Image

Bercor
Corporal - 5 cm Pak 38
Corporal - 5 cm Pak 38
Posts: 36
Joined: Tue Feb 19, 2019 12:36 am

Re: Modding the unit conversion from FoG Empire to FoG II

Post by Bercor » Wed Aug 14, 2019 4:25 pm

Thank you very much, Richard! That was exactly the answer I was looking for.

FrenchDude
Administrative Corporal - SdKfz 251/1
Administrative Corporal - SdKfz  251/1
Posts: 138
Joined: Wed Jan 02, 2019 9:27 pm

Re: Modding the unit conversion from FoG Empire to FoG II

Post by FrenchDude » Fri Jan 03, 2020 7:55 pm

rbodleyscott wrote:
Wed Aug 14, 2019 3:11 pm
You don't need to mod anything at the FOG2 end, unless you want to disable the code that converts Pre-Marian legions in the proportion of 2 hastati/principes and 1 triarii FOG2 units, or the code that converts horse archers into a mix of light horse and cavalry.
Hello Richard,

What if a modder wants to create units in FOG Empires that would work like the pre-Marian Legions or the horse archers, converting one FOGE Unit to two different FOG2 units (or perhaps three even) ? Is there a way to do it ?

rbodleyscott
Field of Glory 2
Field of Glory 2
Posts: 22496
Joined: Sun Dec 04, 2005 6:25 pm

Re: Modding the unit conversion from FoG Empire to FoG II

Post by rbodleyscott » Sat Jan 04, 2020 10:09 am

FrenchDude wrote:
Fri Jan 03, 2020 7:55 pm
rbodleyscott wrote:
Wed Aug 14, 2019 3:11 pm
You don't need to mod anything at the FOG2 end, unless you want to disable the code that converts Pre-Marian legions in the proportion of 2 hastati/principes and 1 triarii FOG2 units, or the code that converts horse archers into a mix of light horse and cavalry.
Hello Richard,

What if a modder wants to create units in FOG Empires that would work like the pre-Marian Legions or the horse archers, converting one FOGE Unit to two different FOG2 units (or perhaps three even) ? Is there a way to do it ?
Yes. It would require modding the TranslateLiaisonUnitToFOGCampaignUnits() function in LiaisonTools.BSF

To avoid modding your main build, this would need to be done as a Global Mod, by placing the modded LiaisonTools.bsf file in /Documents/My Games/FieldOfGlory2/MODS/YourModName/Data/Scripts

You can then activate that global mod when playing Empires.
Richard Bodley Scott

Image

Post Reply

Return to “Field of Glory II: Modding”