🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: net.games.emp
Article #306

Some `empcre' bugs

#306
From: Ken C. Wellsch
Date: Wed, 24 Oct 1984 18:01
51 lines
2949 bytes
These are bugs that I have found in the `empcre' program.  The version
that I am referring to was released I believe this spring (April 84
possibly).  These bugs will probably only be of interest to the person
running the game.  To fix them probably requires the source for
`empcre'. (Happy disassembling!)

  (1)	The locations of `big meteor' impacts are supposed to be
	spaced apart reasonably well (like volcanos). This doesn't
	occur because of a straight-forward bug. To keep impacts
	reasonably well spaced `empcre' tries to find a random location
	that is above some lower limit (`[lolim= ]') from all the other
	impact locations. The function `ndst' is used to find the
	minimum distance from an x,y pair to all x,y pairs in a table
	(`coord' structure of previous locations). The mistake in
	`empcre' is to call `ndst' with the very first location.  How
	far is a point from NO others?  Well, `ndst' says it is zero.
	The procedure reduces the lower limit if we have been
	repeatedly unsuccessful in finding a random point greater than
	this lower limit. Unfortunately the procedure continually try
	to find a location, reducing the lower limit to -1 for which the
	minimum distance of separation is satisfied. (0 > lolim)

	  The solution is to compute the first x,y pair then enter
	this procedure starting with the second.

  (2)   The locations of `small meteor' impacts also have the same
  	problem as in bug (1). The solution is the same.

  (3)	The last bug I have found is a cosmetic one. When the `world
	creator' specifies the `-trace' flag, the map that results is
	not correct. A ` ' represents water, a `^' mountains, but where
	are the `-' for wilderness?

	  The problem is the result of adding the wasteland sector (`\' or
	`@'). The string " ^s-" is indexed by sector-type, unfortunately
	a wilderness sector is 4. So nothing is printed for the
	wilderness sectors but a ` '.

	The solution is to change this string to " ^s@-".


A final bit of information about `empcre': there is a flag called
`locflag' which is not made public. It is for testing purposes. The
locations of volcanos, big meteor impacts, small meteor impacts, gold
strikes, and oil deposits are destructively changed to sector-types
`s', `*', `+', `g', and `o' respectively. One needs to generate a map
of the world after the `creation' to see this.

				
				Ken Wellsch
		{ ihnp4 | utcsrgv | allegra } ! watmath ! water!kcwellsch
Technical Details
Message-ID: <70@water.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!watmath!water!kcwellsch

Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: version B 2.10.1 6/24/83; site water.UUCP
Path: arc1-ca.pugleaf.net!utzoo!watmath!water!kcwellsch
From: kcwellsch@water.UUCP (Ken C. Wellsch)
Newsgroups: net.games.emp
Subject: Some `empcre' bugs
Message-ID: <70@water.UUCP>
Date: Wed, 24-Oct-84 14:01:28 EDT
Article-I.D.: water.70
Posted: Wed Oct 24 14:01:28 1984
Date-Received: Thu, 25-Oct-84 02:54:11 EDT
Organization: U of Waterloo, Ontario
Lines: 51