Hello.
I have a problem: every time I click on an increment to advance time, I receive an error message, which occurs twice. Time still advances so it doesn't make the game unplayable but it's quite annoying, especially in battle. The precise message is the following: 2.5.1 Function #58: the sequence contains no elements. I specify that this message started appearing after I transferred a ship to an NPR. I tried several things, including destroying the ship I had transferred but that didn't change anything. The previous saves also contain the bug so this doesn't seem to be a solution, unless we can go back more than two saves? If anyone has a solution that would be very helpful, thank you in advance.
As a general rule, its not a good idea to transfer ships to an NPR because they sometimes can struggle to classify them and therefore don't know how to use them.
In this case, the error is in the function SensorActivationDecision, which happens many times on every increment. The fact you only have the error twice per increment and it started when you transferred the ship, strongly suggests that was the problem.
This function is called for Fleets, not ships. When you deleted the ship, did you just delete it in the database? That won't work, as it wouldn't delete the parent fleet, or anything else connected to it.