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

Do not unload groups asked for by quests #2212

Merged
merged 1 commit into from
Jun 16, 2023
Merged

Do not unload groups asked for by quests #2212

merged 1 commit into from
Jun 16, 2023

Conversation

scooterboo
Copy link
Contributor

@scooterboo scooterboo commented Jun 16, 2023

Description

Do not unload groups asked for by quests due to distance.

When you are too far away from a group when QUEST_EXEC_REFRESH_GROUP_SUITE happens, the group will instantly be unloaded (after patching the error in SceneScriptManager's refreshGroupSuite) and any suite information that is different from the default will be lost.

I tried saving and loading this suite information, but that just caused the suite to keep loading even after the quest was done.

Hartie talked about saving monster, gadget, quest marker, ect whereabouts, but I think a more quick solution is to just not unload these quest exec groups in the first place.

Issues fixed by this PR

This fixes at least five bugs:

prologue act 2: tear does not appear in chest. The chest was too far away and it's default, boring contents were loaded instead.

prologue act 3: after breaking storm barrier, next quest marker doesn't load. The marker was too far away to load.

Bomber girl story quest: Enter the tavern and nothing happens. Tavern is in a different world. this means it was too far away to load the suite and keep it.

Bomber girl story quest: Nothing at the dig spot. The dig spot is way too far away from the city to load the suite and keep it.

Fire dude story quest: No attackers at the bridge. The other end of the bridge is juuust long enough to be outsize the loading zone. Hitting the trigger from the bridge side was close enough to make the suite load.

Type of changes

  • Bug fix
  • New feature
  • Enhancement
  • Documentation

Checklist:

  • My code follows the style guidelines of this project
  • My pull request is unique and no other pull requests have been opened for these changes
  • I have read the Contributing note and Code of conduct
  • I am responsible for any copyright issues with my code if it occurs in the future.

@KingRainbow44 KingRainbow44 merged commit 6da5343 into Grasscutters:development Jun 16, 2023
@scooterboo scooterboo deleted the patch-2 branch June 18, 2023 06:46
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.

2 participants