Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AI script Error [Version: 2021-02-09.cb4b741] #3311

Closed
jinlan opened this issue Feb 16, 2021 · 2 comments
Closed

AI script Error [Version: 2021-02-09.cb4b741] #3311

jinlan opened this issue Feb 16, 2021 · 2 comments
Assignees
Labels
category:bug The Issue/PR describes or solves a perceived malfunction within the game. component:AI The Issue/PR deals with the Python AI decision making code or affects it. status:won't fix The Issue won't be fixed as implementation or maintainance effort required would be execessive.

Comments

@jinlan
Copy link

jinlan commented Feb 16, 2021

Happens in AI turn, don't know how to reproduce.

[16 二月 21:11:32] AI_4: AI_Error: AI script error : _freeorion_tools.py:assertion_fails():373  - Assertion failed: Can't split last ship from fleet. Traceback (most recent call last):   File "F:/Game\FreeOrion\default\python\AI\FreeOrionAI.py", line 70, in _error_handler
    res = func(*args, **kwargs)
  File "F:/Game/FreeOrion/default/python\common\listeners.py", line 42, in wrapper
    res = funct(*args)
  File "F:/Game\FreeOrion\default\python\AI\FreeOrionAI.py", line 348, in generateOrders
    action()
  File "F:/Game\FreeOrion\default\python\AI\FleetUtilsAI.py", line 594, in issue_fleet_orders_for_fleet_missions
    mission.issue_fleet_orders()
  File "F:/Game\FreeOrion\default\python\AI\AIFleetMission.py", line 546, in issue_fleet_orders
    new_fleet_id = FleetUtilsAI.split_ship_from_fleet(fleet_id, ship_id)
  File "F:/Game\FreeOrion\default\python\AI\FleetUtilsAI.py", line 237, in split_ship_from_fleet
    if assertion_fails(fleet.numShips > 1, "Can't split last ship from fleet"):

[16 二月 21:11:32] AI_4: AI_Error: AI script error : _freeorion_tools.py:assertion_fails():373  - Assertion failed! Traceback (most recent call last):   File "F:/Game\FreeOrion\default\python\AI\FreeOrionAI.py", line 70, in _error_handler
    res = func(*args, **kwargs)
  File "F:/Game/FreeOrion/default/python\common\listeners.py", line 42, in wrapper
    res = funct(*args)
  File "F:/Game\FreeOrion\default\python\AI\FreeOrionAI.py", line 348, in generateOrders
    action()
  File "F:/Game\FreeOrion\default\python\AI\FleetUtilsAI.py", line 594, in issue_fleet_orders_for_fleet_missions
    mission.issue_fleet_orders()
  File "F:/Game\FreeOrion\default\python\AI\AIFleetMission.py", line 547, in issue_fleet_orders
    if assertion_fails(new_fleet_id and new_fleet_id != INVALID_ID):

I will upload save file later on.

save: 92
Load the save and end turn.

@jinlan jinlan added the category:bug The Issue/PR describes or solves a perceived malfunction within the game. label Feb 16, 2021
@geoffthemedio geoffthemedio added the component:AI The Issue/PR deals with the Python AI decision making code or affects it. label Feb 16, 2021
@geoffthemedio geoffthemedio added this to the v0.5 milestone Feb 16, 2021
@Cjkjvfnby
Copy link
Contributor

I'll take a look at it in the next couple of days.

@Cjkjvfnby
Copy link
Contributor

@jinlan, thank you for the report and the save-file.

I have checked, this is not an error, it's just a warning. This situation is handled in the code and it does not affect the AI behavior in a bad way. Since this is a rare case I don't plan to investigate it further. Feel free to reopen the issue if this warning will happen too often.

I have updated how the warning is reported to make it less confusing. #3320

@geoffthemedio geoffthemedio added the status:won't fix The Issue won't be fixed as implementation or maintainance effort required would be execessive. label Feb 22, 2021
@Vezzra Vezzra modified the milestones: v0.5, Gateway to the Void Feb 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:bug The Issue/PR describes or solves a perceived malfunction within the game. component:AI The Issue/PR deals with the Python AI decision making code or affects it. status:won't fix The Issue won't be fixed as implementation or maintainance effort required would be execessive.
Projects
None yet
Development

No branches or pull requests

4 participants