Hello,

Wanted to repost here what Phil Carmody wrote on usenet. Talks about HLA Exception (3) when running the HLA Adventure under Linux. See post below.


From: Phil Carmody (thefatphil_demunge@yahoo.co.uk)
Subject: Re: HLA Adventure ready for mass consumption! :)
View: Complete Thread (2 articles)
Original Format
Newsgroups: alt.lang.asm
Date: 2003-05-11 01:53:49 PST


On Sat, 10 May 2003 22:39:42 +0000, Paul Allen Panks wrote:

> Okay, I think I've got what I needed done. Yes, there are a few errors
> here and there, but the demo is ready to roll. You can download it
> here:
>
> http://members.tripod.com/~panks/hlaadv.html

While placing data in rooms:

begin westf;
// We need to multiply ebx by 4 because 32-bit integers are 4-bytes
// Not my fix. Suggested by someone on aoaprogramming yahoo group.
mov(7,ebx);
mov(4,lo); // put lantern in small room r#4
mov(8,ebx);
mov(99,lo); // put oil in shop inventory r#99
...

you could simply store the object id and room id in an array, and have teh
movs all donein a loop. Butthen again I'm a firm believer in having
things data-driven.


Alas all I get from the .exe using WiNE/Linux is an alert box saying

HLA Exception (3)
Value out of range

Phil


Regards,

Paul Panks
dunric@yahoo.com
Posted on 2003-05-11 18:38:24 by Paul Panks

Hello,

Wanted to repost here what Phil Carmody wrote on usenet. Talks about HLA Exception (3) when running the HLA Adventure under Linux. See post below.


Alas all I get from the .exe using WiNE/Linux is an alert box saying

HLA Exception (3)
Value out of range

Phil


Value out of range usually happens when you call an HLA Standard Library
function and one of the parameters contains a value that is, well, out of range.
E.g., you might call a string function with an index into the string that goes way
beyond the end of the string.
My guess is that the call to the console routines like gotoxy, etc., don't deal with
the fact that Wine may have a much smaller screen than you normally run with the
program under Windows. I've had similar problems with console.hhf apps under
Windows in the past (I develop on a 1200x1024 screen and then the program
bombs on a machine running 640x480).
Cheers,
Randy Hyde
Posted on 2003-05-11 20:48:52 by rhyde
I'm not too sure how Wine works (does it emulate Windows?), but that sounds about right. Certainly the readjusting of the screen size may have been a factor.

Sincerely,

Paul Panks
dunric@yahoo.com
Posted on 2003-05-11 21:36:43 by Paul Panks