SUBSIM Radio Room Forums



SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997

Go Back   SUBSIM Radio Room Forums > Silent Hunter 3 - 4 - 5 > SHIII Mods Workshop
Forget password? Reset here

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old 01-07-12, 04:53 AM   #11
h.sie
Admiral
 
Join Date: Jul 2008
Posts: 2,192
Downloads: 135
Uploads: 0


Default

@Olamagato: It would be a fatal beginners error to seed the pseudo-random generator with the same value every time a random number is generated, since this leads to identical series of numbers.

The random generator of sh3.exe is seeded only once at game start and then produces its series of pseudo random values. The seed value is dependent on system time (in milli-seconds!!) in order to prevent from reproduction.

The key for the random generator is 32 bit long, that means the series will be repeated after 2^32 = approx. 4.300.000.000 random numbers, what should be sufficient for our purposes.

Conclusio: The random number generator isn't the problem.

Remaining possible causes:

1) Programming error of h.sie
2) Error of some users (wrong depth setting in high windspeeds)

Anyhow, I'll try to reproduce that issue in the next time.
__________________
My Mediafire page: http://www.mediafire.com/hsie
h.sie is offline   Reply With Quote
 

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 Off

Forum Jump


All times are GMT -5. The time now is 03:24 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
Copyright © 1995- 2026 Subsim®
"Subsim" is a registered trademark, all rights reserved.