|Anonymous | Login | Signup for a new account||2019-05-26 20:43 PDT|
|Main | My View | View Issues | Change Log | Roadmap|
|View Issue Details|
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0002069||Documentation, Examples, and Web Site||Examples||public||2018-08-03 14:45||2018-08-09 20:28|
|Target Version||Fixed in Version|
|Summary||0002069: Example 376 "Complimentary Peanuts" Produces a Run-Time Error|
|Description||The example looks for the topic understood when asking someone for something. According to the action index, asking someone for something is not treated as speech. The system generates a run-time an error when it tries to get the topic understood.|
I think this isn't a coding issue. The example just needs to be modified, removing the following line:
Asking someone for something is speech.
|Minimal Source Text To Reproduce|
Play the Complimentary Peanuts example. Ask Martha for rations.
|Additional Information||FWIW, the error message is:|
*** Run-time problem P41: Attempt to match a snippet value which is currently invalid: words 0 to -1.
|Tags||No tags attached.|
The summary should say: Example number 376 "Complimentary Peanuts" Produces a Run-Time Error.
This tool likes to convert the hash symbol followed by a number to a reference to another ticket. Sorry about the reporting error.
The suggested fix looks right. Without the "Asking someone for something is speech" declaration, ASK MARTHA FOR RATIONS is caught by the first rule, which correctly selects the third table row because the player's command contains "RATIONS".
|2018-08-03 14:45||CJGidman||New Issue|
|2018-08-03 14:47||CJGidman||Note Added: 0004795|
|2018-08-09 20:20||zarf||Summary||Example 0000376 "Complimentary Peanuts" Produces a Run-Time Error => Example 376 "Complimentary Peanuts" Produces a Run-Time Error|
|2018-08-09 20:28||zarf||Note Added: 0004796|
|2018-08-09 20:28||zarf||Status||new => confirmed|
|Copyright © 2000 - 2010 MantisBT Group|