.com.unity Forums
  The Official e-Store of Shrapnel Games

This Month's Specials

Raging Tiger- Save $9.00
winSPMBT: Main Battle Tank- Save $6.00

   







Go Back   .com.unity Forums > Illwinter Game Design > Dominions 2: The Ascension Wars

Reply
 
Thread Tools Display Modes
  #1  
Old January 12th, 2004, 09:58 AM
PhilD's Avatar

PhilD PhilD is offline
First Lieutenant
 
Join Date: Sep 2003
Location: Bordeaux, France
Posts: 794
Thanks: 0
Thanked 0 Times in 0 Posts
PhilD is on a distinguished road
Default Incompatible battle replays across OSes

In my first email game, I had the same problem twice: the battle replay I watched (on a Linux machine) was very different from the one announced in the Messages. The second time around, I took the time to watch the replay under Windows, and it was much more accurate.

This seems to indicate that the method used to store the replays is NOT compatible across platforms. I'd heard of replay errors before, but if my guess is correct, this will most probably kill my enjoyment of PBEM; I believe it's a serious bug.

I've read that the .trn files only store the random generator seeds, and the replays are recalculated by the game. If so, then it might be a simple inconsistency in random number generators, and reasonably easy to fix (add the same random number generator to all Versions instead of using libraries that might be incompatible).

Did anybody else notice this trend? I suppose most players are using Windows, but there must be a reasonable number of Linux/MacOS/Solaris Users too...
Reply With Quote
  #2  
Old January 12th, 2004, 10:21 AM
Saber Cherry's Avatar

Saber Cherry Saber Cherry is offline
Major General
 
Join Date: Oct 2003
Location: Crystal Tokyo
Posts: 2,453
Thanks: 0
Thanked 0 Times in 0 Posts
Saber Cherry is on a distinguished road
Default Re: Incompatible battle replays across OSes

Yes, it is VERY annoying!!! Watching your troops win a glorious victory, then looking at the casualty list to see that you actually lost, and all your leaders were killed. I didn't realize the problem was OS differences. Dumb C - that's why I like Java. Well, one reason.

-Cherry
__________________
Cherry
Reply With Quote
  #3  
Old January 12th, 2004, 10:53 AM

PDF PDF is offline
Colonel
 
Join Date: Apr 2002
Location: Near Paris, France
Posts: 1,566
Thanks: 0
Thanked 0 Times in 0 Posts
PDF is on a distinguished road
Default Re: Incompatible battle replays across OSes

Hi Phil,
The OS "bug" would explain the strange things we observed in our game replays indeed
Did you notice oddities in the Last turn's battles ? I was present in 3 of them and observed another between you and Abysia. On my Win machine the battles were consistent with the results (on the first battle the end of the battle was quite strange, with your winning troops suddenly all killed ...).
Anyway you should send the trn files to IW people so they examine what happens.
Reply With Quote
  #4  
Old January 12th, 2004, 12:35 PM
Johan K's Avatar

Johan K Johan K is offline
Brigadier General
 
Join Date: Aug 2003
Location: Mictlan
Posts: 1,767
Thanks: 12
Thanked 165 Times in 22 Posts
Johan K is on a distinguished road
Default Re: Incompatible battle replays across OSes

The OS inconsistency is not related to the random number generator (hopefully) as Dominions uses its own random number algorithm. But something sure seems to be weird.
__________________
http://www.illwinter.com
Reply With Quote
  #5  
Old January 12th, 2004, 03:10 PM

Pocus Pocus is offline
Lieutenant Colonel
 
Join Date: Apr 2003
Location: Nuts-Land, counting them.
Posts: 1,329
Thanks: 1
Thanked 0 Times in 0 Posts
Pocus is on a distinguished road
Default Re: Incompatible battle replays across OSes

and cant it be related to the rounding of some results, which would vary depending of the OS or the processor. Dunno how your algorithm works, but if it takes for example the 25th decimal of a number at a given time, like say

ln(0.123456789)
=
-2.091864070778393122967989 *7* 441961
on windows (being 7 there)
then perhaps it will be slightly different in linux.
?
__________________
Currently playing: Dominions III, Civilization IV, Ageod American Civil War.
Reply With Quote
  #6  
Old January 12th, 2004, 06:36 PM
Johan K's Avatar

Johan K Johan K is offline
Brigadier General
 
Join Date: Aug 2003
Location: Mictlan
Posts: 1,767
Thanks: 12
Thanked 165 Times in 22 Posts
Johan K is on a distinguished road
Default Re: Incompatible battle replays across OSes

The random number generation itself should be foolproof. Only table lookups and some xor. Unfortunatelly the random number generation is only 0.0001% of what might go wrong, so your idea might still have some merit. The battles use sinus (sinf()) calculations and those might just be bad if those calculations should be significantly differnt on different machines. Definitely worth some thought...
__________________
http://www.illwinter.com
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT -4. The time now is 02:00 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©1999 - 2024, Shrapnel Games, Inc. - All Rights Reserved.