Repository navigation
fix: G2 Old Camp NPCs sleep in their beds (oCMobDoor beds are NPC mobs) - #542
Merged
Merged
Conversation
…obs (BEDHIGH_2_OC) are AI_UseMob mobs Like the engine, a bed is a bed even when the world stores it as oCMobDoor. VobService skipped every oCMobDoor for the NPC mob list, so ZS_Sleep never found these beds and the Old Camp slept standing next to them. Real doors stay excluded (ZenKitExtension.IsBed: visual BED*). Ported from the experimental branch (c496efa).
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
In G2 the Old Camp NPCs (Valley of Mines) sleep in their beds again instead of standing next to them.
VobService.AddToMobInteractableList: a bed stored asoCMobDoor(G2'sBEDHIGH_2_OC) is listed as a bed mob forAI_UseMob/ZS_Sleep, like the engine. It is recognised by its visual (ZenKitExtension.IsBed: BED*), which is also howVobInitializerDomainalready builds it with the bed prefab.AI_UseMobmobs.[VobService] '<visual>' is an oCMobDoor bed - usable by NPCs.(category Vob)Why
The lost-fixes analysis of the experimental branch on 2026-11-22 found that
c496efa16(Old Camp beds) never reached develop. Develop skips everyoCMobDoorwhen it builds the NPC mob list, soZS_Sleepnever finds these beds. There is no issue for it.How to test manually
oCMobDoor bed - usable by NPCslines forBEDHIGH_2_OCbeds when the Valley of Mines loads.BEDHIGHbed still works in G2 Khorinis and in the Valley of Mines.Save/load
No new state. The mob list is rebuilt each time a world loads.
Known gaps / follow-ups
AI usage
Claude ported the fix from the experimental branch (
c496efa16) and made the bed check stricter (IsBed()instead of "visual doesn't start with DOOR"). The lost-fixes analysis found the gap.