Skip to content

fix: ServerHash regex off-by-one in listen channel#1407

Merged
cadon merged 1 commit into
cadon:devfrom
WSG-ViViV:dev
May 12, 2026
Merged

fix: ServerHash regex off-by-one in listen channel#1407
cadon merged 1 commit into
cadon:devfrom
WSG-ViViV:dev

Conversation

@WSG-ViViV
Copy link
Copy Markdown
Contributor

@WSG-ViViV WSG-ViViV commented May 11, 2026

Summary

The regex ^event: server (\-?\d+)$ captures the hash in Groups[1], but the code reads Groups[2]. ServerHash is therefore always empty for event: server events, which makes AsbServerDataSent route the multipliers JSON into the creature-import branch where it fails silently (no BlueprintPath) and gets dropped.

@coldino confirmed on #1406 that the mod is sending multipliers through the export server — so the mechanism was correct, ASB just wasn't parsing the hash.

Fix

- ServerHash = matchServerHash.Groups[2].Value
+ ServerHash = matchServerHash.Groups[1].Value

Test plan

  • .\build.ps1 — builds, 64/64 tests pass.
  • Verified on an ASA cluster with custom rates: before the fix Settings → Multipliers stayed at ASA Official defaults despite event: server events arriving; after the fix the cluster's actual values (Taming 5x, EggHatch 5x, BabyMature 5x, etc.) auto-apply on the next push from the mod.

Developed with AI assistance.
Bug observation, reproduction, build, testing, and integration decisions on my side;
AI used for codebase navigation, root cause analysis support, and
drafting this PR description.

Groups[2] doesn't exist; the hash is in Groups[1]. The empty ServerHash
caused server-multipliers events to fall into the creature import branch
and be silently dropped. Cluster rates now auto-apply on the next push.
@cadon cadon merged commit 4397dd3 into cadon:dev May 12, 2026
1 check passed
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.

2 participants