thinking cap
#34
Hi,

Levels is enough, games just make it multiple levels.

I never could understand how this would work. Let me explain my understanding, and perhaps you'll point out where my mistake lies:

When the program starts, the memory it will use is initialized to zeros.
When a game is started, the seconds since (whatever) registers are used as the base seed for everything in the dungeons.
For each dungeon level,
-- the layout of the level is generated, along with the monsters, etc.
-- for all the "random" effects on that level storage is allocated and initialized (this is where the bug is -- some stuff is not initialized and so stays zero)
When a player's character enters a dungeon level, the information for that level (including the storage for the random effects) is loaded.

OK, now here is what I don't understand. Since the storage for the level is loaded when you enter the level, then the values in that storage overwrite what was previously in those memory locations. The stuff that was mistakenly initialized to zero (i.e., not initialized) would still be zero regardless of what was in that memory before. Now, when a new game is started (without quitting Diablo) the last game will have left miscellaneous junk in the memory it used, and this junk will be what is in the uninitialized space -- and that is where the randomness can come in. So I can see it becoming random after multiple games, but I can't for multiple levels.

So, what is wrong with my understanding of how the game works?

--Pete

How big was the aquarium in Noah's ark?

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)