DavidGriffith / inform6lib

The Inform6 interactive fiction standard library (moved to https://gitlab.com/DavidGriffith/inform6lib)
Other
22 stars 9 forks source link

Using found_in property with "take all" results in Programming Error using Glulx #6

Closed noobanidus closed 9 years ago

noobanidus commented 10 years ago

The precise error message is: "triet to test "in" or "notin" of <illegal object number 1>".

Example code to reproduce this, compiling with the -G flag:

Constant Story "Test";
Constant Headline "^An attempt to test!^";

Include "Parser";
Include "VerbLib";

Object Test_Room "test room",
    with
        description     "This room is just a simple test. You can't do anything, nor go anywhere.",
    has
        light
;

Object Test_Object "a nothing",
    with
        name            'nothing',
        description     "Made of nothing, tastes like nothing.",
        found_in        Test_Room,
    has
        scenery
;

[ Initialise;
    location = Test_Room;
];

Include "Grammar";

Modifying the found_in attribute of Test_Object results in the error message occurring as soon as the game starts.

DavidGriffith commented 10 years ago

I can't get this bug to manifest with the latest commit (2e3f3f134f97ef606b2ea3d3a604855ca7aa160e). What were you using?

noobanidus commented 10 years ago

Just cloned the repository instead of using the version I had from ifarchive. It appears to still be doing this, so perhaps it is something to do with the compiler: I'm using 6.33 for Win32 date 10th May 2014, also found on ifarchive.

DavidGriffith commented 10 years ago

That's the same version I'm using, but compiled for Linux amd64. Can you send me the compiled game that shows this misbehavior?

DavidGriffith commented 9 years ago

I can't reproduce this bug, so I'm closing it.