Complete.Org: Mailing Lists: Archives: freeciv-dev: November 2001:
[Freeciv-Dev] Re: Randomness restoring after loading a saved game

[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]
To: Petr Baudis <pasky@xxxxxxxxxxx>
Cc: freeciv-dev@xxxxxxxxxxx
Subject: [Freeciv-Dev] Re: Randomness restoring after loading a saved game
From: Raimar Falke <hawk@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Fri, 30 Nov 2001 12:04:55 +0100
Reply-to: rf13@xxxxxxxxxxxxxxxxxxxxxx

On Fri, Nov 30, 2001 at 10:59:05AM +0100, Petr Baudis wrote:
> Hi,
>   I have weird problem with loading of a save game. When I ran an autogame 
> with
> both original and my version of AI, and it started to differ around year 
> +1000,
> 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).  
> As
> 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.


 email: rf13@xxxxxxxxxxxxxxxxx
 "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

[Prev in Thread] Current Thread [Next in Thread]