Page 1 of 1

"Script error" trying to update my mod

Posted: Sun Aug 15, 2021 4:12 pm
by FrenchDude
Hey guys ! after being away for a while, i returned to FOGE and tried to update my Empire TT Mod, in order to make it compatible with FOGE 1.39 (the last time my mod was updated was for 1.34)

I updated the CSV files in my games/Field of glory Emires/ SCENARIOS / My mod / DATA, and didn't touch anything in the main game installation folder, nor did I modify anything outside of the mod's folder, as usual.

Howerver, whenever i try to launch a campaign using my custom scenario, i get this error and the game crashes :

"Script Error in DATA/UI/BATTLEPREVIEW.BSF :
Failed to find variable Faction-Ethnic : Did you forget to predefine it?
Context : FUNCTION BattleConn_Export

ethnicside =
Faction_Ethnic(gBattleDesc.factionID[unitside][0] );
idside =
Faction_Liaison_SideID(gBattleDesc.factionID[unitside][0] );
BattleConn_MapUnit(unitID, squad);
squadtemp = squad;

Modded_UnitType(ethnicside, sq
"
What should I do in order to fix this ?

Re: "Script error" trying to update my mod

Posted: Mon Aug 16, 2021 7:31 am
by Pocus
Hi there,

The function is now named Faction_Society :D

Re: "Script error" trying to update my mod

Posted: Thu Aug 19, 2021 6:00 pm
by FrenchDude
Pocus wrote: Mon Aug 16, 2021 7:31 am Hi there,

The function is now named Faction_Society :D
Hello Pocus :D !

So it means that I have to replace "Faction_Ethnic" with "Faction_Society " in the BattlePreview.BSF document ?

Re: "Script error" trying to update my mod

Posted: Mon Aug 23, 2021 1:56 pm
by Pocus
Indeed!