AI script error [buld 2016-05-12.dbea229]

Describe your experience with the latest version of FreeOrion to help us improve it.

Moderator: Oberlus

Forum rules
Always mention the exact version of FreeOrion you are testing.

When reporting an issue regarding the AI, if possible provide the relevant AI log file and a save game file that demonstrates the issue.
Post Reply
Message
Author
AndrewW
Juggernaut
Posts: 791
Joined: Mon Feb 04, 2013 10:15 pm

AI script error [buld 2016-05-12.dbea229]

#1 Post by AndrewW »

Begin Turn 291
Waiting for Other Players
AI 2: AI Error: AI script error in "generate_resources_orders""
"FOCUS_RESEARCH"

User avatar
MatGB
Creative Contributor
Posts: 3310
Joined: Fri Jun 28, 2013 11:45 pm

Re: AI script error [buld 2016-05-12.dbea229]

#2 Post by MatGB »

Ah ha!

Nothing to do with the stuff I'm testing and something in Trunk as I've rebased. Yeah, I'm getting the same thing, on the grounds I know when I compiled it's therefore something in Merge pull request #580 from LGM-Doyle/refactor_ResourcesAI_py · freeorion/freeorion@dbea229.

Andrew, are you playing a completely new game or have you loaded from save? I've done the latter, so it might be old system vs new system issues.
Mat Bowles

Any code or patches in anything posted here is released under the CC and GPL licences in use for the FO project.

AndrewW
Juggernaut
Posts: 791
Joined: Mon Feb 04, 2013 10:15 pm

Re: AI script error [buld 2016-05-12.dbea229]

#3 Post by AndrewW »

MatGB wrote:Andrew, are you playing a completely new game or have you loaded from save? I've done the latter, so it might be old system vs new system issues.
Well, new for this build but have loaded from a save.

LGM-Doyle
Programmer
Posts: 219
Joined: Mon Feb 29, 2016 8:37 pm

Re: AI script error [buld 2016-05-12.dbea229]

#4 Post by LGM-Doyle »

Andrew, to be clear you started a game, saved the game and then loaded the same game all with the new build.

If so, could you post your AI_2.log, freeoriond.log and freeorion.log and I will look into it.

The most important file is probably AI_2.log.

Also, does it happen every time you reload. With only one file. Or intermittently.

AndrewW
Juggernaut
Posts: 791
Joined: Mon Feb 04, 2013 10:15 pm

Re: AI script error [buld 2016-05-12.dbea229]

#5 Post by AndrewW »

LGM-Doyle wrote:Andrew, to be clear you started a game, saved the game and then loaded the same game all with the new build.
Yes.
LGM-Doyle wrote:If so, could you post your AI_2.log, freeoriond.log and freeorion.log and I will look into it.
Here you go.
LGM-Doyle wrote:Also, does it happen every time you reload. With only one file. Or intermittently.
Yes, every time.
AI_2.log
(82.42 KiB) Downloaded 40 times
freeoriond.log
(79.44 KiB) Downloaded 42 times
freeorion.log
(27 KiB) Downloaded 38 times

LGM-Doyle
Programmer
Posts: 219
Joined: Mon Feb 29, 2016 8:37 pm

Re: AI script error [buld 2016-05-12.dbea229]

#6 Post by LGM-Doyle »

Andrew, thank you for uploading those files, but they don't show the error happening.

I need files where the game was started/loaded before the error happened and run just past the turn.
Could you reload at turn 289, hit end turn 3 times and send those log files.

Thanks in advance.

User avatar
MatGB
Creative Contributor
Posts: 3310
Joined: Fri Jun 28, 2013 11:45 pm

Re: AI script error [buld 2016-05-12.dbea229]

#7 Post by MatGB »

I'm now getting the same in a game that I've been playing since the beginning, the AI log is 1.2Mb compressed so can't upload it here, I've saved the zips so if you need it I'll put it on Dropbox or something.
Mat Bowles

Any code or patches in anything posted here is released under the CC and GPL licences in use for the FO project.

AndrewW
Juggernaut
Posts: 791
Joined: Mon Feb 04, 2013 10:15 pm

Re: AI script error [buld 2016-05-12.dbea229]

#8 Post by AndrewW »

LGM-Doyle wrote:I need files where the game was started/loaded before the error happened and run just past the turn.
Could you reload at turn 289, hit end turn 3 times and send those log files.
Sorry, those where old log files actually. Seems the location for these files has changed...
AI_2.zip
(159.06 KiB) Downloaded 49 times
freeoriond.log
(145.56 KiB) Downloaded 39 times
freeorion.log
(15.35 KiB) Downloaded 36 times

LGM-Doyle
Programmer
Posts: 219
Joined: Mon Feb 29, 2016 8:37 pm

Re: AI script error [buld 2016-05-12.dbea229]

#9 Post by LGM-Doyle »

Thank you. That is exactly what I needed.

It is entirely my mistake.

I am working on a fix.

LGM-Doyle
Programmer
Posts: 219
Joined: Mon Feb 29, 2016 8:37 pm

Re: AI script error [buld 2016-05-12.dbea229]

#10 Post by LGM-Doyle »

I think that https://github.com/freeorion/freeorion/pull/668 fixes the problem.

Post Reply