-
Notifications
You must be signed in to change notification settings - Fork 188
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
Quake 2 RTX dedicated server executable issues #86
Comments
Under the right conditions - cooperative game, friendly fire disabled through dmflags - a soldier accidentally shooting a corpse (misc_deadsoldier) caused that corpse to try and fight back. But corpses don't have any AI functions assigned, so that caused the server to execute code at null address. More technically, the T_Damage function is called with targ=dead and attacker=monster. The "friendly fire avoidance" code sets damage=0. Then the "do the damage" code is skipped because of that, and the function continues to execute assuming that the target is alive, and calls M_ReactToDamage on it. That function calls FoundTarget and HuntTarget, and the latter crashes. I'm not entirely certain that this is the right way to fix this, or skipping the call to T_Damage on zero damage would be better. That would prevent pointless monster infights in no-friendly-fire mode. Or is it better to still allow monster infights when friendly fire is disabled?
Fixed in 4132eed. See the notes to the commit - looks like you've found a very specific combination of settings to hit this bug, which was probably there since the original Q2. The change that I made prevents the crash, but it's still unclear what should be done with monster infighting in coop with no friendly fire. Currently, monsters can just be stuck in a loop shooting each other with no damage. |
Interesting, after doing more testing it seems as though the original game (through steam) also has this issue, so just hosting through quake 2 without the RTX server executable, it still crashes. I have also tried a few other dmflags, which seem to have the same issue. Thanks for the quick response, hope this extra info could be of use in the future I'll definitely test this commit, will it be available through steam, nvidia website, or just through GH? |
For now, just through github. But here's a binary game DLL for you with the fix, it should work with the official 1.3.0 release: |
I'm constantly getting crashes in dedicated server for co-op multiplayer
I am trying to play quake 2 RTX campaign on a dedicated server, but it crashes during gameplay after one or two levels, consistently and on two different systems.
The first system has a Nvidia RTX 2070 Super and a i7 7700k 16gb RAM. The same also happened on a Ryzen 3700X with a RTX 2080 Super 16gb RAM.
I followed the steps at this link:
https://www.nvidia.com/content/dam/en-zz/Solutions/geforce/news/quake-ii-rtx-june-6-release-date/Quake-II-RTX-Getting-Started.pdf
But i changed my server.cfg to be:
Perhaps there is an issue with this config file, below I will include the crash report.
Crash report:
The text was updated successfully, but these errors were encountered: