[Freeciv-Dev] Re: Randomness restoring after loading a saved game
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
On Fri, Nov 30, 2001 at 10:59:05AM +0100, Petr Baudis wrote:
> I have weird problem with loading of a save game. When I ran an autogame
> both original and my version of AI, and it started to differ around year
> I thought I will be able to just reload the saved games from year +0800, turn
> on debug logging and happily hunt the problem down. However, when I will just
> load the saved game at year +0800 and start it, in year +1000 it is different
> than old saved game in year +1000 (both obviously ran with same civserver).
> one of the things which differ is random state, it looks to me that it is
> either not restored correctly or there is different count of myrand() calling.
> Is this a known issue? Can anyone please help me to find the problem?
I also got differt results in auto-games if a nation was split and a
new AI was introduced. The new AI did have different names. I have not
found the time to track this down. Enable debugging and the LOG_DEBUG
statement in myrand and do a diff on the files.
"I do feel kind of sorry for Microsoft. Their attornies and marketing
force must have tons of ulcers trying to figure out how to beat (not
just co-exist with) a product that has no clearly defined (read
suable) human owner, and that changes on an hourly basis like the
sea changes the layout of the sand on a beach. Severely tough to
fight something like that."
-- David D.W. Downey at linux-kernel