![]() |
SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997 |
![]() |
#436 | |
Ocean Warrior
![]() |
![]() Quote:
Thank you very much! ![]() ![]()
__________________
. Where does human stupidity end? . ![]() ![]() El sueño de la razón produce monstruos © - and for some people awakening will be cruel |
|
![]() |
![]() |
![]() |
#437 |
Black Magic
![]() |
![]() |
![]() |
![]() |
![]() |
#438 |
Ace of the deep .
|
![]()
Could you redownload it please . I cannot access the file .
|
![]() |
![]() |
![]() |
#439 |
Ocean Warrior
![]() |
![]() ![]()
__________________
. Where does human stupidity end? . ![]() ![]() El sueño de la razón produce monstruos © - and for some people awakening will be cruel |
![]() |
![]() |
![]() |
#440 |
Black Magic
![]() |
![]()
Freakin gamefront is always having issues
![]() I posted an Alternate link at post #1 ![]() Someone just give me confirmation that everything is ok with this now. Everything works for me perfectly but I need to know it works perfectly for you all also ![]() |
![]() |
![]() |
![]() |
#441 | |
Ocean Warrior
![]() |
![]() Quote:
Everything works fine! Brains already shut down.. for the first time didn't saw the fifth change and thought that nothing works.. reinstalled the game again.. ![]() already 5:30 AM, It's time to sleep ![]() Thanks again.. ![]()
__________________
. Where does human stupidity end? . ![]() ![]() El sueño de la razón produce monstruos © - and for some people awakening will be cruel |
|
![]() |
![]() |
![]() |
#442 |
Ace of the deep .
|
![]()
You can call me the doctor . I jumped ahead in time , its 11:45 AM here .
|
![]() |
![]() |
![]() |
#443 |
Black Magic
![]() |
![]()
I'll take that as the hang/freeze problem is fixed then
![]() I have noticed that even though I set the duds to 100% I still get non-duds occassionally. I'll have to do more digging in SHSim.act to figure out why. I'm almost 100% certain it has to do with the code that gets the random number. The code calls MSVCR90.rand to get a random number. It then converts the value returned into a single-precision floating point number. Then it multiplies that number by what appears to be a conversion factor. Everywhere throughout SH5.exe and all the other .act files when MSVCR90.rand is called it's return value is always multiplied by this conversion factor. It's this conversion factor that throws me for a loop. I don't understand where they got it's value from. I need to figure out how MSVCR90.rand returns the random number (what registers it affects). I know EAX is affected and it appears ECX is also... EDIT: Found an old reference book of mine that gave me the info needed: rand returns the random value in EAX (31 bit number - high bit is always 0). The call to rand always trashes the ECX register - that's why ECX is always affected. 31 bits gives a max integer number of 4294967295. They are multiplying the random number returned by 0.003051851 (this value seems to change with every game load). What I need to do is scale the max 31 bit number to 100. So 4294967295 * x = 100. Do a little algebra....x = ~0.0000000232831... EDIT2: well MSVCR90.rand acts a little differently than my reference book says. The game always take the value in EAX and converts that to a floating point number. The high 16 bits of EAX are always 0 thus the maximum integer value is 65535. So 65535 * x = 100. Algebra says x = 0.0015259021896696. Time for a new version of the patcher again! Last edited by TheDarkWraith; 05-21-12 at 10:55 PM. |
![]() |
![]() |
![]() |
#444 |
Grey Wolf
![]() Join Date: Jan 2009
Location: Finland
Posts: 859
Downloads: 174
Uploads: 0
|
![]()
Great news TDW! Will test this in the evening!
The dud probability is a strange one, it really doesn't follow the percentage values in torpedo.sim. Of course it gives some direction, but like in previous games, we have put the percentage really high if we wan't to see duds. But this sounds just great, thanks! |
![]() |
![]() |
![]() |
#445 | |
Black Magic
![]() |
![]() Quote:
![]() - it will read in % chance for dud as read from sim file (value is between 0 and 100) - it will get a random number - it will scale that random number to be between 0 and 100 - it will compare % chance for dud to scaled random number to determine if dud or not That is how it should've been done in the first place ![]() |
|
![]() |
![]() |
![]() |
#446 |
Ace of the deep .
|
![]()
The only random numbers i have seen are in .
Silent Hunter 5\data\UPCDataGE\UserPlayerSettings Documents\SH5\data\cfg\UPCInitial\UserPlayerSettin gs |
![]() |
![]() |
![]() |
#447 |
Commander
![]() Join Date: May 2004
Location: Texas, USA
Posts: 470
Downloads: 78
Uploads: 0
|
![]()
Now how exactly do you do that, other than uninstalling and reinstalling SH5?
__________________
Ansonsten, Herr Lutter, ist alles in Butter Liqui-cooled Intel i2550K @ 4.2 GHz, 8 Gb RAM, GTX 970 GPU |
![]() |
![]() |
![]() |
#448 |
CINC Pacific Fleet
Join Date: Sep 2003
Location: Down Under
Posts: 34,788
Downloads: 171
Uploads: 0
|
![]()
Unfortunately the "how to use patcher" picture links are dead!
![]() http://www.subsim.com/radioroom/show...postcount=7773
__________________
Sub captains go down with their ship! |
![]() |
![]() |
![]() |
#449 | |
XO
![]() Join Date: Mar 2008
Posts: 424
Downloads: 341
Uploads: 0
|
![]() Quote:
Open by old SH5patcher and set these values (True) to False = Not patched? After this try to patch with newest one, again from False to True? |
|
![]() |
![]() |
![]() |
#450 |
Ace of the deep .
|
![]()
double click on the sh5patcher\file\open\TDW_SH5_Patches.s5p
select path to sh5exe ending with silent hunter 5 click ok make all False do the same for all the patches Extract the new patcher to your sh5 main game folder overwriting the old patcher . Repeat the process to enable true on all the patches . Copy the blue exe icon (4.17mb) to your desktop and launch from that . |
![]() |
![]() |
![]() |
|
|