I am trying to fix a bug in The Time Machine that someone discovered.
There is a pocket watch that you can pick up and later in the game one of the NPCs tells you to put it on a desk. After you put it on the desk, when you try and pick up the watch you get a “That’s hardly portable.” message.
I created a small example with the same elements to test in isolation.
The player is in the Entryway. The Entryway is a room. The pocket watch is a thing. The pocket watch is in the Entryway. The pocket watch is portable. The Library is a room. The Library is west of the Entryway. The description of the Library is "There is a desk here." The desk is a thing. The desk is scenery in the Library. The desk is a supporter. The description of the desk is "A small standing desk." The Parlor is a room. The Parlor is north of the Library.
When run this code allows you to pick up the watch, put it on the desk in the library, and pick it up a second time.
Entryway You can see a pocket watch here. >take watch Taken. >w Library There is a desk here. >put watch on desk You put the pocket watch on the desk. >take watch Taken.
In the actual game, when you perform the same actions listed above you get the “That’s hardly portable.” message when trying to take the watch from the desk in the library.
With >action turned on in the actual game here is what is displayed when you perform the actions listed in the example (some interim steps are removed for clarity).
>take watch [taking the pocket watch] Taken. [taking the pocket watch - succeeded] >put watch on desk [putting the pocket watch on the desk] You put the pocket watch on the desk. [putting the pocket watch on the desk - succeeded] >take watch [taking the pocket watch] That's hardly portable. [taking the pocket watch - failed]
A >showme of the watch and desk in the actual game returns this.
>showme watch pocket watch - thing location: on the desk in the Library singular-named, improper-named; unlit, inedible, portable, handled list grouping key: none printed name: "pocket watch" printed plural name: none indefinite article: none description: "A simple pocket watch." initial appearance: none >showme desk desk - supporter pocket watch papers location: in the Library singular-named, improper-named; unlit, inedible, fixed in place, scenery; list grouping key: none printed name: "desk" printed plural name: "supporters" indefinite article: none description: "A small standing desk." initial appearance: none carrying capacity: 100
There must be some side effect introduced in the source code but I have not been able to discover anything yet. This is my first Inform 7 game so while I continue debugging this I thought I would post here to see if anyone else has ever run into a situation like this before.
I’m developing on a Mac using Inform v1.68.1 (6M62). The only extensions I’m using besides the ones included by default are:
Include Basic Help Menu by Emily Short. Include Punctuation Removal by Emily Short.
If anyone needs additional information please let me know.