Hello - I’m testing the Automap extension in a small example game, the code I’m using is below and seems to run fine inside Inform7, however when I go to Release it so I can play it via Gargoyle I keep coming up with the error message which I’ve tacked on at the very end of this post. I have no idea how to resolve it. If anyone could tell me what I’m doing wrong I would much appreciate it. Thanks for any help!
[code]“Glimmr Automap Test” by Dustin Neff
Include Automap by Mark Tilford.
Include Glimmr Automap by Erik Temple.
Include Glimmr Automap Tileset by Erik Temple.
Include Glimmr Bitmap Font by Erik Temple.
Section - Compass
Section - Compass End
[Before looking for the first time:
say "This is a small example for Glimmr Automap, a graphical front-end to Mark Tilford's Automap extension. It generates a map as the player explores the world of the game, with very little effort needed on the part of the author.
This example for the Glimmr Automap extension adds new behavior to our procedurally generated map. Clicking on a room in the map will now produce the command GO TO <ROOM>. To query the map about the name of a room, press the ? button, then click on the room you wish to query. Zoom the map by using the + and - buttons."]
Use automap hide paths through closed doors.
The map-window is a map-display window spawned by the main-window. The position is g-placeabove. The measurement of the map-window is 50. The associated canvas of the map-window is the map-canvas.
The map-canvas is a g-canvas. The associated canvas of a g-element is the map-canvas.
When play begins:
follow the opening up the map window rules.
Understand “[any room]” as going by name. Understand “go to [any room]” as going by name.
Going by name is an action applying to one thing.
Check going by name:
if the noun is the location, say “You’re already in [the location].” instead;
if the noun is not adjacent and the noun is unvisited, say “That noun did not make sense in this context.” instead.
Carry out going by name:
let aim be the best route from the location to the noun, using doors;
if aim is not a direction, say “You can’t think how to get there from here.” instead;
say “(heading [aim])[command clarification break]”;
try going aim;
if the location is not the noun, say “You’ll have to stop here.”
Automap graphlink rule for a room (called the target):
let target-text be the printed name of the target in upper case;
change glulx replacement command to “GO TO [target-text]”;
exit.
Section 1 - Hit Points
A person has a number called maximum hit points. A person has a number called current hit points.
An animal has a number called maximum hit points. An animal has a number called current hit points.
The maximum hit points of the player is 35. The maximum hit points of the animal is 5.
When play begins:
repeat with victim running through people:
now the current hit points of the victim is the maximum hit points of the victim.
Definition: a person is dead if his current hit points are less than 0.
[Section 1.1 - Diagnosis
Diagnosing is an action applying to one visible thing. Understand “diagnose [something]” as diagnosing.
Check diagnosing:
if the noun is not a person, say “Only people can have diagnoses.” instead.
Carry out diagnosing:
say “[if the noun is the player]You have[otherwise][The noun] has[end if] [current hit points of the noun] out of a possible [maximum hit points of the noun] hit points remaining.” ]
Section 1.2 - Weapons
A weapon is a kind of thing. A weapon has a number called the maximum damage. The maximum damage of a weapon is usually 4.
The player carries a weapon called a mace. The maximum damage of the mace is 3.
Understand the commands “attack” and “punch” and “destroy” and “kill” and “murder” and “hit” and “thump” and “break” and “smash” and “torture” and “wreck” as something new.
Attacking it with is an action applying to one visible thing and one carried thing. Understand “attack [someone] with [something preferably held]” as attacking it with.
Understand the commands “punch” and “destroy” and “kill” and “murder” and “hit” and “thump” and “break” and “smash” and “torture” and “wreck” as “attack”.
The attacking it with action has a number called the damage inflicted.
Setting action variables for attacking something with something:
let the maximum attack be the maximum damage of the second noun;
now the damage inflicted is a random number between 1 and the maximum attack.
Check an actor attacking something with something (this is the can’t attack with something that isn’t a weapon rule):
if the second noun is not a weapon:
if the actor is the player, say “[The second noun] does not qualify as a weapon.”;
stop the action.
Check an actor attacking something with something (this is the can’t attack a non-person rule):
if the noun is not a person:
if the actor is the player, say “[The noun] has no life to lose.”;
stop the action.
Carry out an actor attacking something with something (this is the standard attacking it with a weapon rule):
decrease the current hit points of the noun by the damage inflicted;
if the noun is dead, remove the noun from play.
Report attacking a dead person with something (this is the death-report priority rule):
say “You attack with [the second noun], killing [the noun]!” instead.
Report attacking someone with something (this is the normal attacking report rule):
say “You attack [the noun] with [the second noun], causing [damage inflicted] point[s] of damage!” instead.
Section 2 - Scene
The Courtyard is a room. The Palace is north of the Courtyard.
The guard dog is a male animal in the Courtyard. The description is “He looks mean and nasty.”
There is a club in the Courtyard. “There’s a gnarled old club here studded with thorns.” Understand “stick” as club. The club is a weapon.
Instead of going north in the Courtyard:
if the dog is in the Courtyard:
say “The dog snarls at you and won’t let you through the door!”;
otherwise:
continue the action.
The Fountain is west of the Courtyard.
The Drawbridge is east of the Courtyard.
[/code]
When I Release so I can play the example with Gargoyle I get this error:
Packaging up for Release - Failed
Glimmer Automap Test Materials
Release
Glimmr Automap Test.gblorb
Inform translated your source text as usual, to manufacture a ‘story file’: all of that worked fine. But the Release then went wrong, for the following reason:
Fatal error: unable to read data: filename ‘C:\Documents and Settings\Loree\Desktop\Glimmer Automap 02-27-2011\Glimmer Automap Test Materials\Figures\Automap_Tileset_059.png’