"Script error" trying to update my mod

Moderator: Pocus

Post Reply
FrenchDude
Sergeant - 7.5 cm FK 16 nA
Sergeant - 7.5 cm FK 16 nA
Posts: 215
Joined: Wed Jan 02, 2019 9:27 pm

"Script error" trying to update my mod

Post 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 ?
Pocus
Ageod
Ageod
Posts: 7052
Joined: Tue Oct 02, 2012 3:05 pm

Re: "Script error" trying to update my mod

Post by Pocus »

Hi there,

The function is now named Faction_Society :D
AGEOD Team - Makers of Kingdoms, Empires, ACW2, WON, EAW, PON, AJE, RUS, ROP, WIA.
FrenchDude
Sergeant - 7.5 cm FK 16 nA
Sergeant - 7.5 cm FK 16 nA
Posts: 215
Joined: Wed Jan 02, 2019 9:27 pm

Re: "Script error" trying to update my mod

Post 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 ?
Pocus
Ageod
Ageod
Posts: 7052
Joined: Tue Oct 02, 2012 3:05 pm

Re: "Script error" trying to update my mod

Post by Pocus »

Indeed!
AGEOD Team - Makers of Kingdoms, Empires, ACW2, WON, EAW, PON, AJE, RUS, ROP, WIA.
Post Reply

Return to “Field of Glory: Empires - Tech Support”