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!
Modding the unit conversion from FoG Empire to FoG II
-
- Field of Glory 2
- Posts: 28053
- Joined: Sun Dec 04, 2005 6:25 pm
Re: Modding the unit conversion from FoG Empire to FoG II
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
Re: Modding the unit conversion from FoG Empire to FoG II
Thank you very much, Richard! That was exactly the answer I was looking for.
-
- Sergeant - 7.5 cm FK 16 nA
- Posts: 209
- Joined: Wed Jan 02, 2019 9:27 pm
Re: Modding the unit conversion from FoG Empire to FoG II
Hello Richard,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.
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 ?
-
- Field of Glory 2
- Posts: 28053
- Joined: Sun Dec 04, 2005 6:25 pm
Re: Modding the unit conversion from FoG Empire to FoG II
Yes. It would require modding the TranslateLiaisonUnitToFOGCampaignUnits() function in LiaisonTools.BSFFrenchDude wrote: ↑Fri Jan 03, 2020 7:55 pmHello Richard,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.
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 ?
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