|View Issue Details [ Jump to Notes ] ||[ Issue History ] [ Print ] |
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0001006||Core Inform||Rules and rulebooks||public||2012-09-21 19:31||2014-05-07 07:33|
|Assigned To||graham|| |
|Product Version||6G60|| |
|Target Version||Fixed in Version||6L02|| |
|Summary||0001006: "No outcome" rulebook outcome cannot be printed|
|Description||It's rather easy for the "outcome of the rulebook" phrase to return no outcome (0), but if you try to print this, you get a run-time error.|
I suppose this could be considered invalid code, but it's easy to do by accident, so I think it's worth handling.
The fix would be to add a special case to the the RulebookOutcomePrintingRule() I6 function -- if the argument is zero, print something special. (Probably "no outcome".)
|Minimal Source Text To Reproduce|
The Kitchen is a room.
Instead of jumping:
follow the visibility rules;
say "Outcome: [outcome of the rulebook]."
! [** Programming error: tried to print (string) on something not a string **]
|Tags||No tags attached.|
|Effect||(serious/mild) Game compiles but misbehaves|