Page 1 of 1

AI error

Posted: Fri Feb 19, 2021 2:36 am
by BTA

Code: Select all

[18 Feb 20:27:17] AI_1: 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 "/snap/freeorion/160/share/freeorion/default/python/AI/FreeOrionAI.py", line 70, in _error_handler
    res = func(*args, **kwargs)
  File "/snap/freeorion/160/share/freeorion/default/python/common/listeners.py", line 42, in wrapper
    res = funct(*args)
  File "/snap/freeorion/160/share/freeorion/default/python/AI/FreeOrionAI.py", line 348, in generateOrders
    action()
  File "/snap/freeorion/160/share/freeorion/default/python/AI/FleetUtilsAI.py", line 594, in issue_fleet_orders_for_fleet_missions
    mission.issue_fleet_orders()
  File "/snap/freeorion/160/share/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 "/snap/freeorion/160/share/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"):

[18 Feb 20:27:17] AI_1: AI_Error: AI script error : _freeorion_tools.py:assertion_fails():373  - Assertion failed! Traceback (most recent call last):   File "/snap/freeorion/160/share/freeorion/default/python/AI/FreeOrionAI.py", line 70, in _error_handler
    res = func(*args, **kwargs)
  File "/snap/freeorion/160/share/freeorion/default/python/common/listeners.py", line 42, in wrapper
    res = funct(*args)
  File "/snap/freeorion/160/share/freeorion/default/python/AI/FreeOrionAI.py", line 348, in generateOrders
    action()
  File "/snap/freeorion/160/share/freeorion/default/python/AI/FleetUtilsAI.py", line 594, in issue_fleet_orders_for_fleet_missions
    mission.issue_fleet_orders()
  File "/snap/freeorion/160/share/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'm going to save, exit, rolad or start over

Re: AI error

Posted: Fri Feb 19, 2021 2:39 am
by BTA
I am playing v0.4.10+ weekly-test-builds (build 2021-02-01.996d1e6) CMake on Fedora 33 on a UX430U Zenbook

Re: AI error

Posted: Fri Feb 19, 2021 2:55 am
by BTA
oh well, reboot did not fix. restart & pray harder

Re: AI error

Posted: Fri Feb 19, 2021 7:29 am
by Ophiuchus
BTA wrote: Fri Feb 19, 2021 2:39 am I am playing v0.4.10+ weekly-test-builds (build 2021-02-01.996d1e6) CMake on Fedora 33 on a UX430U Zenbook
Are you sure? That error messages come from a snap.

Re: AI error

Posted: Wed Feb 24, 2021 3:24 am
by LienRag
Ophiuchus wrote: Fri Feb 19, 2021 7:29 am
BTA wrote: Fri Feb 19, 2021 2:39 am I am playing v0.4.10+ weekly-test-builds (build 2021-02-01.996d1e6) CMake on Fedora 33 on a UX430U Zenbook
Are you sure? That error messages come from a snap.
That version message is what latest Snap channel gives.

Re: AI error

Posted: Wed Feb 24, 2021 7:31 am
by Ophiuchus
The AI tries to split a fleet when it shouldnt (empty fleet or fleet with a single ship).
I think this should not be problem for your game but it might indicate an error in the logic which releases a part of the fleet. (AIFleetMission.py#542 - if ship_rating > allowance:)
BTA wrote: Fri Feb 19, 2021 2:39 am I am playing v0.4.10+ weekly-test-builds (build 2021-02-01.996d1e6) CMake on Fedora 33 on a UX430U Zenbook
Ok, so you are playing using the snap and not a building by yourself with CMake, right.

Please provide the complete AI log and if possible a save game. AI log level should be on debug.