Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0002077Core InformRules and rulebookspublic2018-10-11 08:132018-10-11 08:13
ReporterSkinny Mike 
Assigned To 
PrioritynormalSeveritymildReproducibilityalways
StatusnewResolutionopen 
PlatformOSMac OS XOS Version10.9.5
Product Version6M62 
Target VersionFixed in Version 
Summary0002077: trouble with getting a rule and/or rulebook to return a list of numbers
DescriptionA number based rulebook producing a list of numbers can be successfully created and compiles, but when compiled to Glulx, the game runs and then freezes when the result is called.
Minimal Source Text To Reproduce
Lab is a room. 

The set rules is a number based rulebook producing a list of numbers.

A set rule for a number (called n) (this is the default set rule):
   let x be {1, 2};
   add n to x;
   say "[x].";
   rule succeeds with result x.
   
Instead of jumping:
   let y be 20;
   let z be the list of numbers produced by the set rules for y;
   say "Boo!";
   say "[z].".
Additional InformationOutput (when compiling to Glulx only):

>jump
1, 2 and 20.

followed by this error message at the bottom of the window:

Glulxe fatal error: Memory access out of range (-7FFFFFD2)

The code works as expected when compiled to zcode. Output:

>jump
1, 2 and 20.
Boo!
1, 2 and 20.

A thread was started here:

https://www.intfiction.org/forum/viewtopic.php?f=7&t=26709 [^]
TagsNo tags attached.
Effect(serious/mild) Game compiles but misbehaves
Attached Files

- Relationships

-  Notes
There are no notes attached to this issue.

- Issue History
Date Modified Username Field Change
2018-10-11 08:13 Skinny Mike New Issue


Copyright © 2000 - 2010 MantisBT Group
Powered by Mantis Bugtracker