Problems and solutions for installing or running FreeOrion, including discussion of bugs if needed before posting a bug report on GitHub. For problems building from source, post in Compile.
[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):
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.
Any code or patches in anything posted here is released under the CC and GPL licences in use for the FO project.