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

This Month's Specials

Air Assault Task Force- Save $8.00
Bronze- Save $10.00

   







Go Back   .com.unity Forums > Illwinter Game Design > Dominions 3: The Awakening

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #37  
Old November 18th, 2007, 01:17 PM
Agrajag's Avatar

Agrajag Agrajag is offline
Lieutenant Colonel
 
Join Date: Jul 2004
Location: Israel
Posts: 1,449
Thanks: 4
Thanked 8 Times in 2 Posts
Agrajag is on a distinguished road
Default Re: Very serious combat bug?

Edi, I find it extremely unlikely that Dom3 uses any Windows related RNG. The most obvious reason is that most of the time replays work exactly the same on different OSs.
IIRC (this is from a topic that was discussed a very very long time ago) the difference between OSs was due to an oversight, where there was a phrase similar to "if (random() > random())" and on some OSs the left random() was called first and on others the right random() was called first, which obviously completely alters how the battle plays out.
This may be the time to point out that the battles have some random seed associated with them and are played by using that random seed to simulate the battle. (The simulation remains identical through replays and OS changes because the random values are fixed since they rely on the random seed)

As an aside, depending on how Dominions generates random numbers, something extremely unlikely may be a bug (though considering Johan's response, I really doubt it). If Dominions uses a (huge) "table" of "pre-randomized" numbers (basically, a gigantic "sequence" of numbers that have been generated through some awesome RNG [like random.org's]) and asking for a random number merely fetches a number from the table according to some sequence (for example, the random seed for a battle may be a place in the table, and asking for a random number fetches the number in that place, asking for another random number fetches the number in the following place etc.), it is possible that the table does not contain a sequence of numbers that will allow something this improbable, in which case a bug may be involved.

And of course there's also vfb's debug analysis which might also point to a bug.
EDIT: ^- or maybe not, that remains to be seen. (Just see when mine and his posts were made )
__________________
I'm in the IDF. (So any new reply by me is a very rare event.)
 

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 06:27 PM.


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