AI script error

Describe your experience with the latest version of FreeOrion to help us improve it.
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
User avatar
EricF
Space Dragon
Posts: 314
Joined: Fri Jul 29, 2016 10:12 am

AI script error

#1 Post by EricF » Wed May 31, 2017 12:29 pm

Just an FYI, when I conquered the last AI planet, but the AI still had a few ships, I get this error msg;

AI_3: AI_Error: AI script error in "calculate_priorities": "Unable to find key in unordered_map."
AI_3: AI_Error: AI script error in "assign_military_fleets_to_systems": "Unable to find key in unordered_map."

User avatar
Dilvish
AI Lead, Programmer
Posts: 4736
Joined: Sat Sep 22, 2012 6:25 pm

Re: AI script error

#2 Post by Dilvish » Wed May 31, 2017 6:09 pm

Thanks. If you could post the AI_3.log from that game (or post a zipped savegame file for it) that should have a little more info about just where in the code those errors are coming from.
If I provided any code, scripts or other content here, it's released under GPL 2.0 and CC-BY-SA 3.0

User avatar
EricF
Space Dragon
Posts: 314
Joined: Fri Jul 29, 2016 10:12 am

Re: AI script error

#3 Post by EricF » Wed May 31, 2017 9:05 pm

Yea sorry, I should have thought of that. I don't have that game anymore.
I just finished a new game and didn't notice that error msg this time.

User avatar
EricF
Space Dragon
Posts: 314
Joined: Fri Jul 29, 2016 10:12 am

Re: AI script error

#4 Post by EricF » Wed Jun 07, 2017 4:58 am

OK, got the exact same error msg again on a new game. Same situation. Conquer AI's last planet but he still has warships.
Here is the AI log
AI_13.rar
(344.64 KiB) Downloaded 7 times

User avatar
EricF
Space Dragon
Posts: 314
Joined: Fri Jul 29, 2016 10:12 am

Re: AI script error

#5 Post by EricF » Wed Jun 07, 2017 4:59 am

freeorion log
freeorion.rar
(192.03 KiB) Downloaded 6 times

User avatar
EricF
Space Dragon
Posts: 314
Joined: Fri Jul 29, 2016 10:12 am

Re: AI script error

#6 Post by EricF » Wed Jun 07, 2017 5:00 am

freeoriond log
freeoriond.rar
(399.71 KiB) Downloaded 7 times

User avatar
EricF
Space Dragon
Posts: 314
Joined: Fri Jul 29, 2016 10:12 am

Re: AI script error

#7 Post by EricF » Wed Jun 07, 2017 5:01 am

Save game file too large even zipped.

User avatar
Dilvish
AI Lead, Programmer
Posts: 4736
Joined: Sat Sep 22, 2012 6:25 pm

Re: AI script error

#8 Post by Dilvish » Wed Jun 07, 2017 5:11 am

That AI log file is helpful, thanks. I'll see what I can do.
If I provided any code, scripts or other content here, it's released under GPL 2.0 and CC-BY-SA 3.0

Post Reply