the-infocom-files / moonmist

Moonmist
4 stars 3 forks source link

"LOOK THROUGH YOUR KEYHOLE" prints garbage #42

Open eriktorbjorn opened 2 years ago

eriktorbjorn commented 2 years ago
>LOOK
(You are in the gallery.)
The gallery spans the top of the double stairways. You can go east to your
bedroom or west to Vivien's bedroom. Hallways lead to the northeast and
northwest. On the wall is a series of oil paintings of Lord Jack's ancestors.

>LOOK THROUGH YOUR KEYHOLE
Warning: @get_child called with object 0 (PC = 1073f) (will ignore further
occurrences)
Warning: @test_attr called with object 0 (PC = 997b) (will ignore further
occurrences)
Warning: @get_next_prop called with object 0 (PC = 99c3) (will ignore further
occurrences)
You peer intoWarning: @jin called with object 0 (PC = 63f0) (will ignore further
occurrences)
 aWarning: @set_attr called with object 0 (PC = 640b) (will ignore further
occurrences)
 ck  fPlease over:
(It's too dark to see!)

>LOOK THROUGH MY KEYHOLE
You peer into your bedroom:
You can't see anything suspicious.

Apparently the parser remaps "YOUR" to "MY", or something like that, because "YOUR" isn't an adjective for the KEYHOLE object. But then KEYHOLE-F tries to look up the adjective in CHAR-POSS-TABLE which doesn't have "YOUR", and that presumably leaves RM as 0 when it calls <ROOM-PEEK .RM T>.

I'm not sure how to fix that, though I'd probably leave CHAR-POSS-TABLE alone since it's used elsewhere. Perhaps simply add a special case in KEYHOLE-F to handle "YOUR" instead?