"Script error" trying to update my mod
Posted: Sun Aug 15, 2021 4:12 pm
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 ?
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 ?