Closed curiousdannii-testing closed 2 years ago
557058:4c095ffd-6d6f-47ce-9e73-77c613347b86:
Comment by IvanR :
A much simpler source can produce a very similar error:
---------------------------
"Test" by Ivan R
House is a room.
A dog is in the room.
When play begins, now the dog is visible.
------------------------------
This results in an error that incorrectly points to the same line in the Standard Rules as yours does.
Resolved via this commit: https://github.com/ganelson/inform/commit/1a92fbc7251be3bff68cc0ca0e6fd8f819a148f5
Reported by : mattweiner
Description :
A rule that has "After doing something other than kissing Marie or giving the rose to Marie when Marie is visible" is improper, because you can't combine those action descriptions. But there are two issues with the error message:
The error message references the line in the Standard Rules that defines "visible" rather than the erroneous line in the code.
The error message describes the list of actions to avoid as though one were erroneous, but says both are ok. This looks like a return of http://inform7.com/mantis/view.php?id=1323.
Steps to reproduce :
Additional information :
Report:
(Each time Go or Replay is clicked, Inform tries to translate the source text into a working story, and updates this report.)
In Part SR1 - The Physical World Model, Section SR1/0 - Language in the extension Standard Rules by Graham Nelson:
Problem. You wrote 'Definition' , which seems to introduce a rule taking effect only if the action is 'doing something other than kissing Marie or giving the rose to Marie when Marie is visible'. The part after 'when' (or 'while') was fine, but the earlier words did not make sense as a description of an action. This looks like a list of actions to avoid: 'doing something other than kissing Marie' was okay; 'giving the rose to Marie' was okay; so I am unable to place this rule into any rulebook.
See the manual: 7.1 > 7.1. Actions
Because of this problem, the source could not be translated into a working game. (Correct the source text to remove the difficulty and click on Go once again.)
...if we omit "when Marie is visible" the error points at the correct line, but it still gives the wrong error message instead of the correct "this is a combination of actions which can't be mixed" message.
imported from: [Mantis 2008] improper "doing something other than this or that" description of actions yields a confusing error message