Skip to content

fix: recognise renumbered EModifierValue stat types so stat_modifier_events works on build 10854 - #34

Open
ghaif wants to merge 1 commit into
pnxenopoulos:mainfrom
ghaif:fix/stat-modifier-events-build-10854
Open

fix: recognise renumbered EModifierValue stat types so stat_modifier_events works on build 10854#34
ghaif wants to merge 1 commit into
pnxenopoulos:mainfrom
ghaif:fix/stat-modifier-events-build-10854

Conversation

@ghaif

@ghaif ghaif commented Aug 15, 2026

Copy link
Copy Markdown

Problem

stat_modifier_events and the boon-dev stat-modifiers command return 0 rows on build 10854 demos. The dataset should list permanent stat pickups (health, spirit_power, fire_rate, weapon_damage, cooldown_reduction, ammo).

Cause

The field is not renamed: m_PlayerDataGlobal.m_vecStatViewerModifierValues.{i}.{m_SourceModifierID,m_eValType,m_flValue} still resolves. The EModifierValue enum was renumbered between build 10725 and 10854, so the hardcoded m_eValType constants no longer match any entry and every pickup is dropped.

stat 10725 10854
health 31 43
spirit_power 51 158
fire_rate 79 91
weapon_damage 18 19
cooldown_reduction 109 98
ammo 172 63

Fix

Match each stat against both value sets. They are disjoint and the array only holds these six stats, so this keeps 10725 working and fixes 10854 with no build-number gate. Both the boon-dev command and the Python dataset are updated to stay in sync. Adds stat_index unit tests for both value sets and an unknown value.

stat_modifier_events and boon-dev stat-modifiers returned 0 rows on build 10854 demos. The m_eValType field (EModifierValue enum) still resolves, but the enum values were renumbered between build 10725 and 10854, so the hardcoded constants no longer matched any entry and every pickup was dropped.

Match each of the six pickup stats against both the old and new eValType values. The value sets are disjoint and the array only holds these six stats, so this keeps build 10725 working and fixes 10854 with no build-number gate. Adds stat_index unit tests.
@ghaif
ghaif force-pushed the fix/stat-modifier-events-build-10854 branch from 2b5e6d6 to 13e3447 Compare August 16, 2026 17:22
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.

1 participant