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

Remove unwanted offsets from CrashCatcher.cpp #385

Merged
merged 4 commits into from
Jan 22, 2024

Conversation

IrateRedKite
Copy link
Contributor

I've removed offsets from CrashCatcher.cpp that relate to NPC spawn distance and maximum scan range. These offsets are often adjusted server-side by mods, and frustratingly, crash catcher removes them. This has caused problems before, both for BMOD and other mods in the past (https://the-starport.com/forums/topic/6165/npc-spawn-distance/2?_=1705854248325).

Changes here link to #327 and should be propagated to 4.1, I would suggest maybe sticking these patches in core with a config option for server owners.

The offset adjustments are made in server.dll and are as follows:

0x86AEC
0x84018
0xD3D6E
0x58F46

@IrateRedKite
Copy link
Contributor Author

@oliverpechey Would you just be able to confirm this one is alright, as I think this will have much more of a potential impact on vanilla servers than it will modded ones.

@oliverpechey
Copy link
Member

Can we not just make them configurable instead of removing them? Don't wanna remove them if they're not in core yet.

@IrateRedKite
Copy link
Contributor Author

Can we not just make them configurable instead of removing them? Don't wanna remove them if they're not in core yet.

Was afraid you'd say this! I'll look at getting a config for CrashCatcher done this week. keen to get this merged as right now this specific offset causes issues with BMOD and we have to have a divergent plugin for it.

@IrateRedKite
Copy link
Contributor Author

I've updated the PR with a configuration option for CrashCatcher and these 3 offsets. This needs to be moved to core come 4.1 though!

@oliverpechey oliverpechey merged commit 4d7675b into master Jan 22, 2024
2 checks passed
@IrateRedKite IrateRedKite deleted the milo/crashcatcher-fix branch May 17, 2024 07:03
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.

Remove NPC Visibility and Spawning offset functions from CrashCatcher and move them to core
2 participants