HDIAndrew / EFS

12 stars 0 forks source link

Troops disappeared #79

Closed Azim03 closed 3 months ago

Azim03 commented 1 year ago

Description:

Expected behavior: have my troops :)

Actual behavior: troops disappered, maybe for the IA too the graphics of power's house get down for all

The game is load normally, then when i end turn troops have disappeared, garrison too, spaceship too but the game continue.

Game version:

EFS b5 version.

Steps to reproduce:

  1. start the game.
  2. Load the save
  3. pass text and end turn

SAV.zip

Matt-Caspermeyer commented 1 year ago

Okay, I am looking into this and can see your problem.

I'm not sure what is going on here and will report back after I've discovered what is happening...

Here's an update:

Would you happen to have some earlier saves from this playthrough (either the Log_Save or almMMDDa or b)?

What happens to you also happens to Li Halan and Hawkwood after you end your turn. Also, Hazat has already had this happen to them in your game as Aragon has already had the same thing happen to it.

So that's where we're at, I hope to discover something new sooner or later...

Here's another update:

So all the units between planets 13 to 35 are all gone! There is something going on with the "unit iterator" that causes a break in the doubly-linked list and then the list "skips" all the planets between 12 and 36 (they go in order, and the unit list is meant to be sorted by planet number, then x coordinates, and then y coordinates).

I'm not sure what's causing the list to become "broken" and then lose elements, but it has happened in your game already with Hazat losing all its units on Aragon (must have been quite a while back since they've built plenty of units since).

At this juncture, I'm not sure how to fix this, but will continue to work on it...

This may be my last update until we figure out how to fix it:

We're hoping @Lobachevskiy can work on this in the near future as it is beyond my capability to fix at this juncture. He may not be able to get to it for a week or so...

Matt-Caspermeyer commented 1 year ago

Unfortunately, no progess has been made on this issue due to a lack of expertise in this area for our team.

If you are an experienced C++ programmer and would like to help with this issue, please contact @HDIAndrew.

floralpond commented 3 months ago

Closing this issue as it appears to be fixed by some of our recent quality improvements.