Repository navigation
Conversation
The equipment's hand ids run left 1, right 1, left 2, right 2, left 3, right 3 from +0x64, and the hand holds ids[2 * slot] with the left slot at +0xc (0x1a5e027 reads them so). Quake wrote its gun into left 1 alone, so a hunter with the second or third left slot up kept their own weapon in hand and saw no gun. The gun now goes in the selected left slot; a slot switched while Quake has the player gets its own weapon back first; left_weapon.txt keeps "<id> <slot>" (an older file, the id alone, is slot 1's), and a gun an older session left in another slot is given back. Checked headless on a copy of Kyo's save (left slot 2 up) on the v0.2.34 host with c7bd664's crash fix: five lamp travels between Central Yharnam and the Hunter's Dream with cutscenes in each and a left-slot switch both ways - the Church Cannon (WP_A_1752) in hand throughout, no crash. Builds clean on master. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Test build of fc02d19: Windows zip, Linux tarball and Steam Deck kit, unsigned, kept 14 days. |
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.
Quake's gun was invisible for any hunter with their second or third left-hand slot selected.
Cause
The equipment block (GameDataMan
+0x8→+0x240) keeps the hand weapon ids from+0x64in hand order: left 1, right 1, left 2, right 2, left 3, right 3. The hand holdsids[2 * slot], with the left slot index at+0xcand the right at+0x10(0x1a5e027reads them this way). Quake always wrote its gun intoids[0], left slot 1. With slot 2 or 3 up, the game kept the hunter's own weapon in part slot 7, which Quake then placed as the viewmodel, so no Quake gun appeared.Fix
left_slot(),left_weapon_id(slot)).left_weapon.txtnow stores<id> <slot>. An older file holding only the id reads as slot 1, and a gun an older session left in slot 1 is given back.Checks
WP_A_1752) was in hand throughout and nothing crashed. Before the fix, part slot 7 stayedWP_A_1000, the hunter's own weapon.-Wall); I haven't run it on the v0.2.35 host.🤖 Generated with Claude Code