Reply-To: "Kent Tessman" <kent@remove-to-reply.generalcoffee.com>
From: "Kent Tessman" <kent@remove-to-reply.generalcoffee.com>
Newsgroups: rec.arts.int-fiction
References: <2muv7ucdf0ghdvmh5mlkt4a8tf0n73n73u@4ax.com>
Subject: Re: [HUGO] Runtime erro when assigning preposition to object
Lines: 38
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2600.0000
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
Message-ID: <4%Zf8.23662$tA.3893815@news20.bellglobal.com>
Date: Sat, 2 Mar 2002 01:08:01 -0500
NNTP-Posting-Host: 64.229.223.27
X-Complaints-To: abuse@sympatico.ca
X-Trace: news20.bellglobal.com 1015049280 64.229.223.27 (Sat, 02 Mar 2002 01:08:00 EST)
NNTP-Posting-Date: Sat, 02 Mar 2002 01:08:00 EST
Organization: Bell Sympatico
Path: news.duke.edu!newsgate.duke.edu!nntp-out.monmouth.com!newspeer.monmouth.com!news.maxwell.syr.edu!sunqbc.risq.qc.ca!torn!webster!nf1.bellglobal.com!nf2.bellglobal.com!news20.bellglobal.com.POSTED!not-for-mail
Xref: news.duke.edu rec.arts.int-fiction:100921

"Dana Clarke" <joeynipp@bellsouth.net> wrote in message
news:2muv7ucdf0ghdvmh5mlkt4a8tf0n73n73u@4ax.com...
> When the player then types "Stand up" or "Get out of my chair" or
> anything else that will cause HUGO to perform the DoExit routine, the
> program halts with a runtime error that says:
>
> "Property element out of range: 2"
>
> and the game terminates.

From the sounds of it, the game isn't terminating.  You must be running in
the debugger, no?  (That's a debugger runtime warning.)  When it returns you
to the debugger window, it's simply because execution has been interrupted
to alert you to the problem.  (You can turn runtime warnings off, if you
like, but they're frequently very helpful.)

In this particular case, the library is looking for a second value for the
preposition property; since you've specified one, it's looking for its
counterpart.

Try changing:

preposition "on"

to

preposition "on", "off"

and see if that doesn't solve your problem.

(It will work fine, mind you, if you just resume execution--it'll just use
the default preposition as usual.  In the engine, without runtime warnings,
you wouldn't notice a thing.)

--Kent



