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

Escorted movement crash #11562

Open
1 task done
MitjaCernko opened this issue May 4, 2024 · 2 comments
Open
1 task done

Escorted movement crash #11562

MitjaCernko opened this issue May 4, 2024 · 2 comments

Comments

@MitjaCernko
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Game Version

4.11.9 (build 993)

Describe the bug

Game crashes when trying to proceed to the next turn, due to a scheduled movement of an escorted pair of units (Great General and Mechanized Infantry).

Steps to Reproduce

  1. Load save attached below and proceed to next turn (crash).
  2. Reload and find the only unit with a "Moving" action (last Mechanized Infantry unit).
  3. Either break the escort or cancel the move to prevent the crash.

Screenshots

No response

Link to save file

Error report and save:
https://pastebin.com/J0m26VZN

Operating System

Android

Additional Information

After encountering the crash scenario (post-win state), I narrowed down the problematic movement orders until only one unit remained and still triggered the crash.

The only noteworthy hints might be that I remember linking and unlinking the pair of units multiple times in the preceeding turn(s), possibly while embarked. Also, I noticed that the "Moving" action is listed with only one of the units (not sure if it's intentional).

@MitjaCernko MitjaCernko added the bug label May 4, 2024
@tuvus
Copy link
Collaborator

tuvus commented May 11, 2024

Ooooh, that's an annoying bug. I see what the problem is now.
The mechanized infantry along with the great general are trying to reach the destination (-31, -13). Both of them try and find their own path to the tile to move to this turn (-30, -13). However, because the mechanized infantry has 3 movement and is directing the movement it can move through the hill at (-29, -13) with no problem. The great general on the other hand moves there and uses up all of it's movement so it can't move to (-30, -13) when the mechanized infantry wants to, so it raises an error.

Now to try and work out a fix...

@tuvus
Copy link
Collaborator

tuvus commented May 23, 2024

For a report on this bug, I did try out a solution but encountered some serious errors on the way. I would estimate that fixing this would take a lot of time which I don't currently have. Considering that the AI doesn't use it, most players probably won't encounter this and that players can keep on playing by unlinking the units, I am going to be putting it on a low priority. I'll see when I have time to look into it farther.

Thanks for reporting this though!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants