Repository navigation
Conversation
Author
|
I've simply fixed my own ZE server, and want to share the changes with all of you out there :) I will do my best to help you incorporate the required changes into CS2Fixes, please let me know if you need me to do something. |
PtxDK
marked this pull request as ready for review
November 17, 2026 23:58
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Player joins can crash in
Hook_PostEventAbstractbecause the engine passes aNetMessageInfo_t*, while the old hook treats it as anINetworkMessageInternal*and callsGetNetMessageInfo(). Update the SDK to published commita508eb5ed5fb36f4067fa36a1c33f5fec7d73066, migrate the hook and outgoing message lookups/allocation to metadata pointers, and match the SDK'sClientPutInServerType_thook argument.Separately, ZR class application caused first-person weapon/model clipping on the tested server. Add
zr_class_model_override(default1); setting it to0skips class model and skin replacement while retaining tint, scale and gameplay attributes. This is an administrator-controlled workaround, not a repair to custom-model rendering.Crash evidence
On Linux x86_64, the server loaded the map successfully but terminated with
SIGSEGVwhen a player joined. The captured fault is in CS2Fixes v2.1'sHook_PostEventAbstract; this is a game-process segmentation fault, not a Linux kernel panic. The affected upstream source is687f51a, using SDK30c1a859fe846846081ce0e6125c23e497a9a186.Relevant GDB excerpt, abridged for readability. Original memory addresses are preserved; source paths are shortened and template/argument lists abbreviated with
...:The faulting source line at
src/virtual_hooks.cpp:378is:NetMessageInfo_t* info = pEvent->GetNetMessageInfo();The updated SDK declares the event parameter as
NetMessageInfo_t*. Calling anINetworkMessageInternalvirtual method on that metadata pointer is the ABI mismatch addressed here.After deploying the final build, the player completed join, infection and reconnect tests. Ad hoc log checks and a separate debugger-detach step produced the following summary (these labels are validation output, not CS2 engine log messages):
The console counts cover entries after the latest active-map marker. The original server process remained running and its game port was still listening.
These log checks were subsequently packaged into cs2-log-validator, with documentation and automated tests. The results above came from the original ad hoc checks rather than the later packaged version. The standalone tool does not attach or detach GDB.
Validation
2d48fa801aaad10b7ca14186db160970f1250fb2, including the published SDK pin, passed Linux Docker Compose compilation (--abort-on-container-exit --exit-code-from cs2fixes-build). The build checkout remained clean.zr_class_model_override 0.0; default1preserves existing model