AI script error

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
User avatar
EricF
Space Dragon
Posts: 357
Joined: Fri Jul 29, 2016 10:12 am

AI script error

#1 Post by EricF »

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 and Programmer Emeritus
Posts: 4768
Joined: Sat Sep 22, 2012 6:25 pm

Re: AI script error

#2 Post by Dilvish »

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: 357
Joined: Fri Jul 29, 2016 10:12 am

Re: AI script error

#3 Post by EricF »

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: 357
Joined: Fri Jul 29, 2016 10:12 am

Re: AI script error

#4 Post by EricF »

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 58 times

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

Re: AI script error

#5 Post by EricF »

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

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

Re: AI script error

#6 Post by EricF »

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

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

Re: AI script error

#7 Post by EricF »

Save game file too large even zipped.

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

Re: AI script error

#8 Post by Dilvish »

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