I’ve been playing around with this release and, working through some of the examples in the DM4, I’ve noticed a couple of issues:
1. An issue with examining objects in closed transparent containers
Constant Story "CLOSED TRANSPARENT CONTAINERS";
Constant Headline "^An Interactive Bug Reproduction^";
Include "Parser";
Include "VerbLib";
Object Start_Room "Somewhere",
with description "You're not sure where you are.",
has light;
Object -> glass_cube "glass cube"
with name 'glass' 'cube',
has container transparent;
Object -> -> rock "rock"
with name 'rock';
[ Initialise;
location = Start_Room;
];
Include "Grammar";
Expected behavior: The rock can be seen inside the transparent container, but not interacted with since it’s not open.
Actual behavior:
2. An issue with the after rule for Insert not being called.
(Noticed this when experimenting with Ruins and wondering why putting a treasure into the packing case didn’t increase my score.)
Constant Story "INSERTION RULES";
Constant Headline "^An Interactive Bug Reproduction^";
Include "Parser";
Include "VerbLib";
Object Start_Room "Somewhere",
with description "You're not sure where you are.",
has light;
Object -> packing_case "packing case"
with name 'packing' 'case',
before [;
Receive: print "[packing_case: before: Receive]^";
],
after [;
Receive: print "[packing_case: after: Receive]^";
],
has static container openable open;
Object -> rock "rock"
with name 'rock',
before [;
Insert: print "[rock: before: Insert]^";
],
after [;
Insert: print "[rock: after: Insert]^";
];
[ Initialise;
location = Start_Room;
];
Include "Grammar";
Expected behavior: The rock’s after rule for Insert is called since none of the other 3 rules returns true and since Insert is a substantive action that changes the game state.
Actual behavior:
It’s been years since I’ve really messed around with Inform 6, so I’d like to get a sanity check on these in case I’m doing something wrong.
Thanks.