Page 1 of 1
Script error using a mod
Posted: Mon Dec 12, 2022 7:24 pm
by erikthejohn
Hello,
I wanted to try: Ode to Europa Barbarorum
https://www.slitherine.com/forum/viewtopic.php?t=93494
I followed the instructions and the mod looks good in Empires, but when i start a battle and exporting it to FOG2 (of course using the Global Mod TT_Mod_RiseOfAi_Combined) i got a script error. See attached image.
Regards
Erik

- fog.jpg (34.97 KiB) Viewed 1363 times
Re: Script error using a mod
Posted: Tue Dec 13, 2022 6:45 am
by Schweetness101
it looks like the mod has an extra end parenthesis in the section mentioned in Campaign.BSF, probably at the end of the calling getterraindensity. You could try opening up the file and editing it yourself?
Re: Script error using a mod
Posted: Tue Dec 13, 2022 7:55 am
by rbodleyscott
The engine parser was tightened up a few updates ago, so that it won't accept extra brackets in code lines. (Previously it just ignored them). A lot of the vanilla scripts had to be edited accordingly.
As Schweetness says, you can fix the issue in the mod by removing the extra bracket at the end of the GetTerrainDensity line.
Once you have corrected that error, more may appear, until you have eliminated all such extra brackets in the Mod scripts.
Re: Script error using a mod
Posted: Tue Dec 13, 2022 8:31 am
by rbodleyscott
There is also this, from the FOGE modding forum:
gaius21 wrote: ↑Tue Feb 08, 2022 8:09 pm
hey, since update 1.5.4 in fog2 i cant import my battles from empires. while loading i get an error message.
gaius21 wrote: ↑Thu Feb 17, 2022 3:06 pm
if anyone has the same problem as me above, i solved it by removing the rogueAI mod from the files. the newest version of that mod seems to work ok but the current ode to europa barbarorum uses an older version which throws ctds when exporting battles to fog2.
Of course, what is really needed is for the mod author to update the mod to work with the current version of FOG2. But he may possibly need to make further tweaks after the FOG2 6th DLC is released (some time next year).
Re: Script error using a mod
Posted: Tue Dec 13, 2022 11:25 am
by erikthejohn
Thanks for the replays. So, took more time than expected, more errors than ive expected. Even installde a "code helper program" to make it easier for the task.
It all went well untill the "incorrect numbers of parameters" showed up and.. then i gave up. I can count and erase parentheses but parameters?
gaius21 wrote: ↑Thu Feb 17, 2022 3:06 pm
if anyone has the same problem as me above, i solved it by removing the rogueAI mod from the files. the newest version of that mod seems to work ok but the current ode to europa barbarorum uses an older version which throws ctds when exporting battles to fog2.
allright, so, easy thing to remove rogueAI mod?
Re: Script error using a mod
Posted: Tue Dec 13, 2022 12:15 pm
by rbodleyscott
erikthejohn wrote: ↑Tue Dec 13, 2022 11:25 am
gaius21 wrote: ↑Thu Feb 17, 2022 3:06 pm
if anyone has the same problem as me above, i solved it by removing the rogueAI mod from the files. the newest version of that mod seems to work ok but the current ode to europa barbarorum uses an older version which throws ctds when exporting battles to fog2.
allright, so, easy thing to remove rogueAI mod?
You probably need to ask here
https://www.slitherine.com/forum/viewto ... &start=120
since that is where gaius21 posted.
But then again, it was nearly a year ago.
You could try downloading the latest version of rogueAI and substituting the files in the other mod.
Or you could look at the latest version of roguedAI and try deleting the files it contains from the mod.
Re: Script error using a mod
Posted: Tue Dec 13, 2022 12:18 pm
by rbodleyscott
Ultimately the best solution would be to contact the author of the Ode to Europa Barbarorum mod and get him to update it to be compatible with the latest versions of both games.
Re: Script error using a mod
Posted: Tue Dec 13, 2022 1:55 pm
by erikthejohn
Thanks for the suggestions.