🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.atari.st
Article #35526

Re: Moria

#35526
From: Stephen Jacobs
Date: Thu, 15 Dec 1988 14:50
25 lines
1902 bytes
In article <5083@lifia.imag.fr>, bradon@lifia.imag.fr (bradon) writes:
> I have got Moria on my ST but there seems to be a bug because I walk four steps
> and the game is blocked the only thing I can do is to reset my computer.
> 
> Can somebody help me please ?

I would like to apologise to everyone who has been annoyed by this bug.  It is
due to the way the random number generator is initialized.  It can be avoided
by setting the correct time and date before starting the game (every time).
Thanks to Jim Wilson, keeper of umoria, for finding the problem.  

The random number generator used in ST moria constructs an unsigned long from
the middle bits of the output of 3 multiplicative congruential generators
(Lehmer grammars).  Unfortunately, I didn't check to avoid the seeds being
chosen as zero before starting (there's also an error in updating, but that
causes no obvious problems in this application).  I have a time setter in my
auto folder, so when the random number initialization routine reads the clock,
it gets lots of non-zero bits.  If the clock isn't set, 2 or 3 of the Lehmer
grammars will be initialized with 0 and stay that way.  I think this gets used
as an index in looking in a table that starts with 1, but I'm not sure.

Anyone who has the source code should fix the random number generator in 
specials.c to avoid initialization with 0-s.  I will fix this along with some
other stuff in a couple of months, and at least get new versions to some 
servers.~r
Technical Details
Message-ID: <7174@chinet.chi.il.us>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!attcan!uunet!lll-winken!lll-tis!ames!pacbell!att!chinet!saj
References: <5082@lifia.imag.fr> <5083@lifia.imag.fr>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!attcan!uunet!lll-winken!lll-tis!ames!pacbell!att!chinet!saj
From: saj@chinet.chi.il.us (Stephen Jacobs)
Newsgroups: comp.sys.atari.st
Subject: Re: Moria
Summary: Bug in ST Moria
Message-ID: <7174@chinet.chi.il.us>
Date: 15 Dec 88 14:50:08 GMT
References: <5082@lifia.imag.fr> <5083@lifia.imag.fr>
Organization: Chinet - Chicago Public Access UNIX
Lines: 24