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

Dolphins search for treasure toggle #5756

Closed

Conversation

HexedHero
Copy link
Contributor

I saw dolphins sync loading chunks on timings/spark almost every time I fed them fish, can be abused to heavily lag the server over and over and with multiple dolphins to almost have a player-caused deadlock. Tested locally.

@HexedHero HexedHero requested review from a team as code owners May 31, 2021 09:39
@Phoenix616
Copy link
Contributor

Phoenix616 commented May 31, 2021

I guess it doesn't hurt to have a full toggle for that function but isn't the impact already easily mitigable by using the seed based feature search? If that still causes sync loads then that would seem like a bug in that patch... maybe because it forces it to search non-discovered locations? The treasure-maps-return-already-discovered option obviously only applies to maps but the dolphins use the same method. (Although only with a radius of 50)

EDIT: Actually I just looked at my patches and saw that I already noticed that: The seed-based feature search will still load at least one chunk sync (which could even trigger chunk generation) which is necessary to get the exact structure location from the chunk data. The solution I came up with to simply return the chunk corner might not be exact enough (especially for Dolphins) and it also has the issue of pointing to y=0 making the Dolphin potentially try to swim to the bottom or something? Returns center now and checks if chunk isn't loaded which should make it more precise.

@stale
Copy link

stale bot commented Aug 19, 2021

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@HexedHero
Copy link
Contributor Author

Root issue fixed by #5760

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

Successfully merging this pull request may close these issues.

4 participants