Page 1 of 1

Modding the unit conversion from FoG Empire to FoG II

Posted: Wed Aug 14, 2019 2:49 pm
by Bercor
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!

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

Posted: Wed Aug 14, 2019 3:11 pm
by rbodleyscott
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.

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

Posted: Wed Aug 14, 2019 4:25 pm
by Bercor
Thank you very much, Richard! That was exactly the answer I was looking for.

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

Posted: Fri Jan 03, 2020 7:55 pm
by FrenchDude
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 ?

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

Posted: Sat Jan 04, 2020 10:09 am
by rbodleyscott
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.