Repository navigation
Conversation
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.
What this changes
Guards against a null actor pointer in AI message sending when a linked actor has already despawned (
*** exception c0000005 accessing 0x5f0).tools/game_sites.py: added thestale_actor_ai_msgsite (1.9.00x7000bbb670), its entry inOPTIONAL_GROUPS, andKNOWN['1.9.0'].tools/patches.py: added_stale_actor_ai_msgto guardldr x20, [x1, #0x5f0]whenx1(returned by0x700056b818in0x70009782e4) is null, clearing[x0 + 0x14]and returningfalsevia the function's owncbz x21early-exit epilogue.Fixes #1130
How it was tested
On Windows 11 (
NVIDIA GeForce RTX 3050 Laptop GPU, MSYS2 UCRT64clang):tools/venv/Scripts/python.exe tools/test_game_sites.py:ok: 46 checks.tools/venv/Scripts/python.exe tools/test_layout.py:ok: 59 checks.tools/venv/Scripts/python.exe tools/game_sites.py find extracted/exefs/main:stale_actor_ai_msg: 0x7000bbb670.git diff --check: clean.build/swgame.dllandbuild/savagewind.exe(make gen && make -j8,1.9.0, 269 sites).SAVAGEWIND_TEST_WARP=plateau,SAVAGEWIND_EXIT_AT=2400, 144 fps): reached frame 2242 cleanly with no crashes.Checklist
testand opened againsttest