Script error using a mod

Post Reply
erikthejohn
Private First Class - Opel Blitz
Private First Class - Opel Blitz
Posts: 4
Joined: Sat Aug 09, 2014 3:44 pm

Script error using a mod

Post 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
fog.jpg (34.97 KiB) Viewed 1364 times
Schweetness101
Captain - Heavy Cruiser
Captain - Heavy Cruiser
Posts: 928
Joined: Tue Nov 29, 2016 6:12 am

Re: Script error using a mod

Post 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?
My Mods:
Ancient Greek https://www.slitherine.com/forum/viewtopic.php?p=977908#p977908
Dark Ages Britain https://www.slitherine.com/forum/viewtopic.php?t=106417
Anarchy (Medieval) https://www.slitherine.com/forum/viewtopic.php?p=987488#p987488
rbodleyscott
Field of Glory 2
Field of Glory 2
Posts: 28323
Joined: Sun Dec 04, 2005 6:25 pm

Re: Script error using a mod

Post 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.
Richard Bodley Scott

Image
rbodleyscott
Field of Glory 2
Field of Glory 2
Posts: 28323
Joined: Sun Dec 04, 2005 6:25 pm

Re: Script error using a mod

Post 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).
Richard Bodley Scott

Image
erikthejohn
Private First Class - Opel Blitz
Private First Class - Opel Blitz
Posts: 4
Joined: Sat Aug 09, 2014 3:44 pm

Re: Script error using a mod

Post 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?
rbodleyscott
Field of Glory 2
Field of Glory 2
Posts: 28323
Joined: Sun Dec 04, 2005 6:25 pm

Re: Script error using a mod

Post 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.
Richard Bodley Scott

Image
rbodleyscott
Field of Glory 2
Field of Glory 2
Posts: 28323
Joined: Sun Dec 04, 2005 6:25 pm

Re: Script error using a mod

Post 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.
Richard Bodley Scott

Image
erikthejohn
Private First Class - Opel Blitz
Private First Class - Opel Blitz
Posts: 4
Joined: Sat Aug 09, 2014 3:44 pm

Re: Script error using a mod

Post by erikthejohn »

Thanks for the suggestions.
Post Reply

Return to “Field of Glory II: Modding”