Skip to content

[Minor] Fix desync caused by units with DeploysInto - #1525

Merged
CrimRecya merged 5 commits into
Phobos-developers:developfrom
CrimRecya:develop-DeployDesyncFix
Apr 11, 2025
Merged

CrimRecya merged 5 commits into
Phobos-developers:developfrom
CrimRecya:develop-DeployDesyncFix

Conversation

@CrimRecya

@CrimRecya CrimRecya commented Feb 12, 2025 •

Copy link
Copy Markdown
Contributor

Game removes deploying vehicles from map temporarily to check if there's enough space to deploy into a building when displaying allow/disallow deploy cursor. This can cause desyncs if there are certain types of units around the deploying unit because the OccupationFlags may be accidentally cleared, or the order of the objects linked list may be scrambled.

About implementation:
This is a hook separated from #1479 .
This solution completely abandons the method of removing and then adding, and solves the problem by directly excluding specific units.

Other related repairs:
Fix unit's self-destruct when using trigger 107 to teleport the MCV.
Fix reconnection error when moving MCV with Teleport locomotion.

@github-actions github-actions Bot added the Minor Minor feature and/or fix, not a lot of changes or they are not significant label Feb 12, 2025
@CrimRecya CrimRecya added Needs testing Minor Minor feature and/or fix, not a lot of changes or they are not significant and removed Minor Minor feature and/or fix, not a lot of changes or they are not significant labels Feb 12, 2025
@CrimRecya CrimRecya changed the title [Minor] Try fixing desync caused by units with DeployInto [Minor] Try fixing desync caused by units with DeploysInto Feb 12, 2025
@github-actions

github-actions Bot commented Feb 12, 2025 •

Copy link
Copy Markdown

Nightly build for this pull request:

This comment is automatic and is meant to allow guests to get latest nightly builds for this pull request without registering. It is updated on every successful build.

@CrimRecya CrimRecya changed the title [Minor] Try fixing desync caused by units with DeploysInto [Minor] Fix desync caused by units with DeploysInto Feb 13, 2025
@Coronia Coronia added ❓Crash / Desync ❓Phobos bug Something isn't working properly ❓Vanilla bug Vanilla game bugs that are requested to be fixed labels Feb 21, 2025
@TaranDahl TaranDahl added the ⚙️T1 T1 maintainer review is sufficient label Feb 21, 2025
@Coronia

Coronia commented Mar 25, 2025

Copy link
Copy Markdown
Contributor

think this PR should still be addressed before a real 0.4 release. We'd better come up with a decision of whether current implementation should be adjusted sooner

@Metadorius

Copy link
Copy Markdown
Member

Other related repairs:
Fix unit's self-destruct when using trigger 107 to teleport the MCV.
Fix reconnection error when moving MCV with Teleport locomotion.

You should add credits for that :P

@CrimRecya
CrimRecya merged commit 4f45f26 into Phobos-developers:develop Apr 11, 2025
@CrimRecya
CrimRecya deleted the develop-DeployDesyncFix branch April 11, 2025 18:02
Coronia pushed a commit that referenced this pull request Apr 12, 2025
Game removes deploying vehicles from map temporarily to check if there's
enough space to deploy into a building when displaying allow/disallow
deploy cursor. This can cause desyncs if there are certain types of
units around the deploying unit because the OccupationFlags may be
accidentally cleared, or the order of the objects linked list may be
scrambled.

About implementation:
This is a hook separated from #1479 .
This solution completely abandons the method of removing and then
adding, and solves the problem by directly excluding specific units.

Other related repairs:
Fix unit's self-destruct when using trigger 107 to teleport the MCV.
Fix reconnection error when moving MCV with Teleport locomotion.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

❓Crash / Desync Fix and merge this Minor Minor feature and/or fix, not a lot of changes or they are not significant ❓Phobos bug Something isn't working properly ⚙️T1 T1 maintainer review is sufficient Tested ❓Vanilla bug Vanilla game bugs that are requested to be fixed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants