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

Fix server error when claiming amber before initializing kaleidoscape #1066

Merged
merged 2 commits into from
Sep 7, 2024

Conversation

SapiensAnatis
Copy link
Owner

@SapiensAnatis SapiensAnatis commented Sep 7, 2024

Currently the server throws an error if you try and claim a present orother reward containing Kaleidoscape amber before unlocking the Kaleidoscape mode. This is because it can't find the DbPlayerDmodeInfo
to update.

This was never really a problem until the introduction of the save editor, where people seem to be quite commonly hitting this case.

Introduce a reward handler for these which can initialize the Kaleidoscape data when attempting to claim a present.

It seems that having any kaleidoscape data initialized will then lead the game to skip the kaleidoscape intro (and calling /dmode/entry) so there shouldn't be any PK conflicts.

Currently the server throws an error if you try and claim a present or
other reward containing Kaleidoscape amber before unlocking the
Kaleidoscape mode. This is because it can't find the DbPlayerDmodeInfo
to update.

This was never really a problem until the introduction of the save
editor, where people seem to be quite commonly hitting this case.

Introduce a reward handler for these which can initialize the
Kaleidoscape data when attempting to claim a present.

TODO:
- [ ] Check the behaviour for claiming a dmode present and THEN entering
kaleidoscape for the first time. If the game still calls /dmode/entry
we will get a PK conflict
@SapiensAnatis SapiensAnatis merged commit 215d400 into main Sep 7, 2024
7 checks passed
@SapiensAnatis SapiensAnatis deleted the fix/dmode-present branch September 7, 2024 17:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant