Page 1 of 1

Game crashes during AI naval phase in turn 33

Posted: Mon Aug 31, 2015 1:41 pm
by Robotron
Game crashes in turn 33 (standard 1914 game) during naval AI phase.

This is the second time I had this happening, forcing me to abandon a game I invested several hours in.

Here's the code snippet from the log, savegame and complete logfile included in attachment.

Code: Select all

[15:16:43][2652]AiMakeTurn() for neutral
[15:16:43][2652]*** Starting naval AI ***
[15:16:43][2652]*** Starting naval AI phase 2 ***
[15:16:43][2652]Phase start: entente
[15:16:43][2652]AiMakeTurn() for entente
[15:16:43][2652]*** Starting naval AI ***
[15:18:00][2652]Resume: false, ai/targeting_and_attack.lua:0: table index is NaN
[15:18:00][2652][C]:-1(global error) ai/ai.lua:0: ai/targeting_and_attack.lua:0: table index is NaN
By the way: is there a way to open and edit the files ending with ".ai" in /data/scripts/AI like "targeting and attack.ai" ?
These don't seem to be simple textfiles like the other .lua scripts, because if I open them in Notepad++ they appear all garbled.

Commander The Great War.zip
(140.18 KiB) Downloaded 131 times

Re: Game crashes during AI naval phase in turn 33

Posted: Wed Sep 09, 2015 10:51 am
by johnnybravo
Hi,

sorry to hear about your problems, there is a hope tho ;) Please unpack & drop attached *.lua file to data/scrips/ai directory (there should be *.ai with the same name there already) of CTGW installation and let me know if it helped.

There is no way to edit *.ai files but we plan to release original *.lua files (like the one attached) and those can be edited freely.

Re: Game crashes during AI naval phase in turn 33

Posted: Thu Sep 10, 2015 1:41 pm
by Robotron
It worked! Thank you SO much johnnybravo for this hotfix, you deserve a medal! :D

And great to see you are back here on the forum to help out personally, I almost wrote this otherwise brilliant game off due to that bug.

I assume this fix should be applied by all players of CTGW?

Cheers and thanks again!

Re: Game crashes during AI naval phase in turn 33

Posted: Thu Sep 10, 2015 1:52 pm
by johnnybravo
Great to hear, happy to help :)

I am working on other fixes now, after that I will post combined hotfix package, but yes, in the meantime if other players have similar problems they should use this one.

Cheers back!