Skip to content

tr1/savegame_bson: handle Lara animation shift#2661

Merged
lahm86 merged 1 commit intoLostArtefacts:developfrom
lahm86:issue-2654-sg-crash
Mar 21, 2025
Merged

tr1/savegame_bson: handle Lara animation shift#2661
lahm86 merged 1 commit intoLostArtefacts:developfrom
lahm86:issue-2654-sg-crash

Conversation

@lahm86
Copy link
Collaborator

@lahm86 lahm86 commented Mar 21, 2025

Resolves #2654.

Checklist

  • I have read the coding conventions
  • I have added a changelog entry about what my pull request accomplishes, or it is an internal change
  • I have added a readme entry about my new feature or OG bug fix, or it is a different change

Description

Prior to 4.8, Lara's legacy animation set could still be referenced from old savegames, but the case now is that only applicable animations are setup during level load, so after injections have reset the Lara object with the new values. This update shifts Lara's animation index to match her object if detected on load; a similar approach is already in place for TombATI saves.

@lahm86 lahm86 added TRX bug A bug with TRX TR1 labels Mar 21, 2025
@lahm86 lahm86 self-assigned this Mar 21, 2025
@lahm86 lahm86 requested review from a team as code owners March 21, 2025 09:29
@lahm86 lahm86 requested review from rr- and walkawayy and removed request for a team March 21, 2025 09:29
@github-project-automation github-project-automation bot moved this to In review in TRX Dev tracker Mar 21, 2025
@lahm86 lahm86 requested review from aredfan and removed request for a team March 21, 2025 09:29
Prior to 4.8, Lara's legacy animation set could still be referenced
from old savegames, but the case now is that only applicable animations
are setup during level load. This shifts Lara's animation index to
match her object if detected on load; a similar approach is already in
place for TombATI saves.

Resolves LostArtefacts#2654.
@lahm86 lahm86 force-pushed the issue-2654-sg-crash branch from 21b68cb to 204603a Compare March 21, 2025 09:30
@github-actions
Copy link

Copy link
Collaborator

@rr- rr- left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wish we had unit tests for code like this, that is vulnerable to accidental refactors.

@lahm86 lahm86 merged commit 6583b6f into LostArtefacts:develop Mar 21, 2025
8 checks passed
@github-project-automation github-project-automation bot moved this from In review to Done in TRX Dev tracker Mar 21, 2025
@lahm86 lahm86 deleted the issue-2654-sg-crash branch March 21, 2025 11:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

TR1 TRX bug A bug with TRX

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

TR1X - Loading savegames from an older version causes crash

3 participants