thinking cap
#16
Small technical nit.

>IIRC, the value for each shrine was calculated but not
>stored. Since the compiler that Buzzard used set
>unused memory to zero (not required in ANSI C),

Correct so far.


> that
>meant the first shrine or two were using a "random"
>zero to figure what slot to hit. Again, IIRC, slot 0 is
>the "shield" (left hand of the paper doll) slot.

Well, the seed is 0, but the slot calculated from a seed is not the same as the seed. The seed would go through one update before you can get a slot out of it and that would not be slot 0 (which is either the amulet or the head, not sure, by the way). The resulting slot from a 0 start seed however will be one of the jewlery slots, and I think it takes 2 or 3 tries before an actual slot is hit and that would be the shield slot.



> After
>loading a few levels (games? -- I really don't
>remember the details),

Levels is enough, games just make it multiple levels.

> the grunge that accumulated
>in memory would start to give Hidden shrines
>something more along the lines of "random" behavior.

You. It is thus actually not random until it catches on to a random seed whenn it turns very random. But since you can't tell when it do that by playing, one can at least say it gets more and more random :)



>Also, I might be mistaken, but I believe it was Jarulf
>that pointed all this out.


Well, I was the one who found the reason and exact nature of the bug. It had LONG been noted that the hidden shrine seemed to not at all give random results. The fact that it did so at times after playing many levels just diluted the result and made it harder to pinpoint. Checking the actual initialization code though made it completely obvious they forgot to save a seed in the correct variable for the shrine Hi,

IIRC, the value for each shrine was calculated but not stored. Since the compiler that Buzzard used set unused memory to zero (not required in ANSI C), that meant the first shrine or two were using a "random" zero to figure what slot to hit. Again, IIRC, slot 0 is the "shield" (left hand of the paper doll) slot. After loading a few levels (games? -- I really don't remember the details), the grunge that accumulated in memory would start to give Hidden shrines something more along the lines of "random" behavior. Also, I might be mistaken, but I believe it was Jarulf that pointed all this out.

:D
There are three types of people in the world. Those who can count and those who can't.
Reply


Messages In This Thread
thinking cap - by jet - 03-08-2003, 03:39 AM
thinking cap - by the Langolier - 03-08-2003, 04:57 AM
thinking cap - by Virgil Tibbs - 03-08-2003, 06:31 AM
thinking cap - by !!SaLtMaN!! - 03-31-2003, 01:48 AM
thinking cap - by LemmingofGlory - 03-31-2003, 02:42 PM
thinking cap - by --Pete - 03-31-2003, 03:24 PM
thinking cap - by !!SaLtMaN!! - 04-01-2003, 12:30 AM
thinking cap - by Elric of Grans - 04-01-2003, 01:06 AM
thinking cap - by --Pete - 04-01-2003, 01:17 AM
thinking cap - by LemmingofGlory - 04-01-2003, 01:25 AM
thinking cap - by Elric of Grans - 04-01-2003, 01:33 AM
thinking cap - by --Pete - 04-01-2003, 01:46 AM
thinking cap - by LemmingofGlory - 04-01-2003, 02:31 AM
thinking cap - by !!SaLtMaN!! - 04-02-2003, 04:41 AM
thinking cap - by the Langolier - 04-02-2003, 08:30 AM
thinking cap - by Jarulf - 04-02-2003, 12:22 PM
thinking cap - by --Pete - 04-02-2003, 09:50 PM
thinking cap - by !!SaLtMaN!! - 04-03-2003, 10:58 PM
thinking cap - by Vandiablo - 04-04-2003, 06:41 AM
thinking cap - by Elric of Grans - 04-04-2003, 06:55 AM
thinking cap - by Vandiablo - 04-04-2003, 07:29 AM
thinking cap - by Jarulf - 04-04-2003, 07:58 AM
thinking cap - by Thecla - 04-04-2003, 10:42 AM
thinking cap - by --Pete - 04-04-2003, 03:15 PM
thinking cap - by LemmingofGlory - 04-04-2003, 06:07 PM
thinking cap - by Jarulf - 04-04-2003, 07:58 PM
thinking cap - by Thecla - 04-05-2003, 02:28 AM
thinking cap - by --Pete - 04-05-2003, 03:02 AM
thinking cap - by Vandiablo - 04-05-2003, 07:21 AM
thinking cap - by Thecla - 04-05-2003, 08:31 AM
thinking cap - by --Pete - 04-05-2003, 04:00 PM
thinking cap - by Bolty - 04-05-2003, 06:31 PM
thinking cap - by Jarulf - 04-05-2003, 08:12 PM
thinking cap - by --Pete - 04-05-2003, 08:42 PM
thinking cap - by Vandiablo - 04-06-2003, 06:03 AM
thinking cap - by Elric of Grans - 04-06-2003, 07:20 AM
thinking cap - by Jarulf - 04-06-2003, 08:58 PM
thinking cap - by Thecla - 04-06-2003, 11:27 PM
thinking cap - by Vandiablo - 04-07-2003, 08:05 AM
thinking cap - by Elric of Grans - 04-07-2003, 08:09 AM
thinking cap - by Jarulf - 04-07-2003, 04:33 PM
thinking cap - by --Pete - 04-07-2003, 05:51 PM
thinking cap - by Vandiablo - 04-15-2003, 04:38 AM
thinking cap - by Zenda - 04-16-2003, 02:15 PM
thinking cap - by Dixen Andomiel - 04-17-2003, 06:28 AM
thinking cap - by Yogi_Baar - 04-17-2003, 07:19 AM
thinking cap - by Cytrex - 04-17-2003, 10:36 AM
thinking cap - by LemmingofGlory - 04-18-2003, 02:05 AM
thinking cap - by Vandiablo - 04-18-2003, 06:29 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)