Repository navigation
fix: "<item> - received / given" messages name the item again - #540
Merged
Merged
Conversation
…iveInvItems) Like the engine, CreateInvItem(s) makes the created item the scripts' global 'item'. G2's B_GiveInvItems reads item.name right after CreateInvItems; without it the print was " - otrzymałeś" / "2 przedm. - otrzymałeś ()" and ZenKit logged 'Accessing member "C_ITEM.NAME" without an instance set' (Cavalorn, Dexter, Greg).
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
The "... - received" / "... - given" messages name the item again (e.g. "Pochodnia - otrzymałeś" instead of
" - otrzymałeś", "2 przedm. - otrzymałeś (Pochodnia)" instead of "... ()").
VmNpcInventoryExternalDomain.CreateInvItem/CreateInvItems: like the engine, the created item becomes the scripts'global
item(OpenGothic does the same increate_invitems).Why
Playtest 2026-11-22 (G2 Night of the Raven): every item given in a dialog (Cavalorn, Dexter, Greg) printed an
empty name. The log showed
ZenKit DaedalusVm: Accessing member "C_ITEM.NAME" without an instance setright beforeeach print. G2's
B_GiveInvItemsreadsitem.nameright afterCreateInvItems, and we never setitemthere.No issue exists for it.
How to test manually
Accessing member "C_ITEM.NAME" without an instance setafter these dialogs.Save/load
No state.
itemis a script global that the next item external overwrites anyway.Known gaps / follow-ups
AI usage
Claude found the cause in the user's session log and wrote the fix. The user found the bug in a playtest.