Repository navigation
fix: every SVM key finds its C_SVM line - G2 smalltalk/fight lines, G1 guard warnings - #543
Merged
Merged
Conversation
…ented" errors, G1 full key names work The SVM key -> C_SVM member switch only listed G1's keys, so G2's ($SMALLTALK25-30, $MONSTERKILLED, $CHEERFRIEND01/02, $GOODMONSTERKILL, $NOTBAD, $DIEENEMY, $PICKLOCKORKEYMISSING, ...) logged an error. The lines still played through OutputSvm's SVM_<voice>_<key> fallback, but GoToNpc.HasSvm saw no line and the log was flooded. Keys not in the switch are now found by name among all string members of ZenKit's SvmInstance (G1 and G2, cached once, '_' ignored), which also covers G1's full names $IWillTeachYouRespectForForeignProperty and $YouViolatedForbiddenTerritory (experimental f2efdc0). $DOESNTWORK maps to ZenKit's DoesntMork typo, $NOLEARNYOUREBETTER to its own line instead of NoLearnYouAlreadyKnow. Unknown keys (a mod's own C_SVM member) warn once per world.
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
Every SVM key a script uses now finds its line in the game's C_SVM. The "key $X not (yet) implemented" errors are gone, and G1's full key names work.
ZenKitExtension.GetAudioName: keys that aren't in the switch are found by name among all members of ZenKit'sSvmInstance(G1 and G2). The lookup ignores$,_and case, and the member list is built once. Examples:$SMALLTALK28→Smalltalk28,$MONSTERKILLED,$GOLD_30→Gold30.$IWillTeachYouRespectForForeignPropertyand$YouViolatedForbiddenTerritory. With those, guards only moved their lips; this is the missing part of experimental f2efdc0.$DOESNTWORK→ ZenKit'sDoesntMork(a typo in ZenKit).$NOLEARNYOUREBETTERnow plays its own line instead of NoLearnYouAlreadyKnow.[Svm] Key ... is no C_SVM member ZenKit knows.OutputSvm then still tries the vanillaSVM_<voice>_<key>name.Why
The playtest log from 2026-11-22 (G2 Night of the Raven, develop) had
Error [Misc] key $X not (yet) implementedfor$SMALLTALK28-30,$MONSTERKILLED,$CHEERFRIEND01/02,$GOODMONSTERKILL,$NOTBAD,$MISSINGITEM,$DIEENEMY,$PICKLOCKORKEYMISSINGand more. The switch only knew G1's keys. Most lines still played through the fallback, but the log was flooded, andGoToNpctreated those keys as "no line". The lost-fixes analysis of the experimental branch also found the two G1 key names from f2efdc0 missing. No issue exists.How to test manually
Save/load
No state.
Known gaps / follow-ups
SVM_<voice>_<key>naming fallback.SvmInstanceassumes its string properties are only C_SVM members.AI usage
Claude found the cause in the user's playtest log and wrote the fix. The lost-fixes analysis compared the experimental branch with develop.