03-10-2004, 05:26 PM
I recall a discussion here (or possibly some other place) about how and what the game really do different and random when one use the -seed command and when one play single player. I have searched a lot but can't find the thread, does anyone recall it?
In any case, looking a bit at how the game handle objects (that is chests and such), it looks like the game actually uses one global seed stream for all objects in a game. That is, the seed set to each individual object is not used. The object seed would be used for all random results such as item type and quality (but NOT item properties). It is used also in many cases in seting up objects.
So in regard to using the seed command and to restart single player games, if one spawn the map in the same order, and operate objects in the same order (with the possible exception of objects that doesn't operate random results), one should get identical drop results as far as item type and quality goes I would say. This agrees with the experience of previously posted info. This is also why there is a difference between objects and monsters.
FOr the technical minded, this seed is stored in a structure pointed to at ptGame+10f0 The first two dwords in that structure is the seed. The structure also holds infro from the txt files for all objects in the game if my notes are correct. See phrozen keep for more info similar to this in the unit/game structure thread.
Hope this is of some use.
In any case, looking a bit at how the game handle objects (that is chests and such), it looks like the game actually uses one global seed stream for all objects in a game. That is, the seed set to each individual object is not used. The object seed would be used for all random results such as item type and quality (but NOT item properties). It is used also in many cases in seting up objects.
So in regard to using the seed command and to restart single player games, if one spawn the map in the same order, and operate objects in the same order (with the possible exception of objects that doesn't operate random results), one should get identical drop results as far as item type and quality goes I would say. This agrees with the experience of previously posted info. This is also why there is a difference between objects and monsters.
FOr the technical minded, this seed is stored in a structure pointed to at ptGame+10f0 The first two dwords in that structure is the seed. The structure also holds infro from the txt files for all objects in the game if my notes are correct. See phrozen keep for more info similar to this in the unit/game structure thread.
Hope this is of some use.
There are three types of people in the world. Those who can count and those who can't.