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 > SH5 Mods Workshop
Forget password? Reset here

Reply
 
Thread Tools Display Modes
Old 10-15-11, 08:46 PM   #226
csvscs96
Bilge Rat
 
Join Date: Oct 2011
Posts: 1
Downloads: 1
Uploads: 0
Default

i have a problem , i did everything according to the post instruction but when i go to the hyrdophone station, the sonarman reports ship bearing 62 but on the chart at the upper left corner says bearing 56..
csvscs96 is offline   Reply With Quote
Old 10-15-11, 09:59 PM   #227
kylania
Silent Hunter
 
Join Date: Aug 2006
Posts: 3,528
Downloads: 117
Uploads: 0
Default

Welcome to the forums!

Each contact will be detectable in a range of degrees, and your sonar man will usually call out the loudest, middle, bearing for the contact. If you hop on the hydrophone you should be able to hear this.

Then again, I've seen times where the sonar guy is totally off. He'll call one degree and i'll listen and it'll be 20-30 degrees off entirely. He was also detecting my own screws as unknown when the engines turned off and the boat at a stop, so... I dunno really.

Try a save and reload, worked for me in that one 'sonar guy can't hear straight' situation.
__________________

kylania is offline   Reply With Quote
Old 10-21-11, 07:40 AM   #228
oakdesign
A-ganger
 
Join Date: Sep 2007
Posts: 76
Downloads: 65
Uploads: 0
Default

I'm using the Steam Version for SH so I could not use TDW's exe patcher and had to life with the hydro bug.
Yesterday I was on a patrol and was hydro hunting a target using the four bearing method. After I changed postition to take my forth bearing my dump sonar guy did't report a contact, so I jumped to the sonar station myself and the funny thing was
The target's ship class showed up within the complete 20° cone not only for the part of a second as before.
As I haven't changed anything on my mod soup and I have auto update for my steam games turned on it could be that I got a patched Steam SH5.exe?
Anyway I'm happy to have a functional hydrophone now and can go on hunting.

Last edited by oakdesign; 10-21-11 at 07:42 AM. Reason: typo
oakdesign is offline   Reply With Quote
Old 10-26-11, 09:08 PM   #229
Husksubsky
XO
 
Join Date: May 2008
Location: oslo,Norway
Posts: 424
Downloads: 254
Uploads: 0
Default

Let me try to get this right. I can patch the sh5.exe at any time? don t need to clear the modlist in JSGME? ( Does any mods change dh5.exe btw?)

I want patch 2 when using realnav or not. Does it add add text to the map or only the hydrophone notepad.

Do we need to do anything with these strings at all nowadays? Or does it automaticly read from menu that comes with Realnav

;820=Unknown
;821=Warship
;822=Merchant
;823=Submarine
;824=Aircraft
825=Land

Husksubsky is offline   Reply With Quote
Old 10-26-11, 09:29 PM   #230
kylania
Silent Hunter
 
Join Date: Aug 2006
Posts: 3,528
Downloads: 117
Uploads: 0
Default

Yeah, just run it once and you're set. The RealNav needs the three things set in the SH5 Patcher as well as the menu.txt changes in it's readme.txt.

But basically just run the patcher, do the 4 things at the top, then change colors for what you want and you're done with that till a reinstall or (heh, can't believe I'm gonna try to say this with a straight face...) a new patch from Ubisoft.
__________________

kylania is offline   Reply With Quote
Old 10-26-11, 10:56 PM   #231
Husksubsky
XO
 
Join Date: May 2008
Location: oslo,Norway
Posts: 424
Downloads: 254
Uploads: 0
Default

Quote:
Originally Posted by kylania View Post
Yeah, just run it once and you're set. The RealNav needs the three things set in the SH5 Patcher as well as the menu.txt changes in it's readme.txt.

But basically just run the patcher, do the 4 things at the top, then change colors for what you want and you're done with that till a reinstall or (heh, can't believe I'm gonna try to say this with a straight face...) a new patch from Ubisoft.
Thx Done.. I will never understand why those changes to menu.txt since there is allready a menu.txt there with those changes implemented.
This is my modlist btw
cheers
Magnum_Opus_v0_0_1
Enhanced FunelSmoke1.2_by HanSolo78
TheDarkWraith_DC_Water_Disturbances_v2_0_SH5
Dynamic Environment SH5 Basemod (realistic version) V2.1
Dynamic Environment SH5 Waves (realistic version) V2.1
Dynamic Environment SH5 Atlantic Floor V2.1
Dynamic Environmental SH5 Realistic Colors V2.1
Dynamic Environment SH5 Undersea (temperate and polar) V2.1
Dynamic Environmental SH5 Shallow Waters V2.1
Dynamic Environment SH5 Shallow Waters V2.1 Patch
FX_Update_0_0_19_ByTheDarkWraith
NewUIs_TDC_6_8_0_ByTheDarkWraith
NewUIs_TDC_6_8_0_Das_Boot_Crew_Mod_by_Illyustrator
NewUIs_TDC_6_8_0_No_Snorkel_Exhaust_Smoke
Manos Scopes-patch for 16x9
IO_StrategicMap_4_5_for_TDWv680
NewUIs_TDC_6_8_0_Real_Navigation
IRAI_0_0_30_ByTheDarkWraith
IRAI_0_0_30_No_hydrophone_on_surface
Stormys DBSM SH5 v1.3 Basemod
Stormys DBSM SH5 v1.3 optional -6db damped Sonarguy
Stormys DBSM SH5 v1.3 optional NavMap babelling
Stormys DBSM SH5 v1.3 optional remaining orig sounds converted to 22Khz
Stormys DBSM SH5 v1.3 additional crew sounds beta6
Stormys DBSM SH5 v1.3 optional louder engine sounds
Trevally Automated Scripts v0.6
Husksubsky is offline   Reply With Quote
Old 11-08-11, 10:11 PM   #232
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,962
Downloads: 147
Uploads: 5


Default

v1.0.21.0 released. See post #1.

This version adds the ability to define the default hydrophone volume used in-game. As the hydrophone volume cannot currently be changed in-game this allows you to define the volume wanted.

Using the patch file provided in the zip file will set the hydrophone volume to 1.0 (max volume). The stock value is 0.9 (so 1.0 will be a 10% increase in volume)

TheDarkWraith is offline   Reply With Quote
Old 11-09-11, 07:59 AM   #233
Magic1111
Silent Hunter
 
Join Date: Sep 2008
Location: Germany - Sailing on U-552 in North Atlantic
Posts: 4,429
Downloads: 783
Uploads: 0


Default

Quote:
Originally Posted by TheDarkWraith View Post
v1.0.21.0 released. See post #1.

This version adds the ability to define the default hydrophone volume used in-game. As the hydrophone volume cannot currently be changed in-game this allows you to define the volume wanted.

Using the patch file provided in the zip file will set the hydrophone volume to 1.0 (max volume). The stock value is 0.9 (so 1.0 will be a 10% increase in volume)

Good idea TDW, many thanks!!!

Best regards,
Magic
__________________
Magic1111 is offline   Reply With Quote
Old 11-10-11, 01:28 PM   #234
Loltak
Seaman
 
Join Date: Mar 2010
Posts: 37
Downloads: 62
Uploads: 0
Default

Quote:
Originally Posted by mobucks View Post
Don't sweat it too much Bob, many of us got along fine before these .exe patches came along. If you play map contacts on, the blue/black lines on the map render the hydro fix redundant, and if you play realism, you'll be using your ears more than your eyes, which seems more realistic anyway. As for the changing of line colors, one way to get around that is to look for map mods that change the colors of the map seawater, making the default grey lines you draw much easier to see.
So if i understand well, if i let the contact on the map (with or without color) this bug will no so "tragic" and i could not use this fix.
I ask this because buy the steam version is more convenience for me
Loltak is offline   Reply With Quote
Old 11-10-11, 01:45 PM   #235
Gerald
SUBSIM Newsman
 
Gerald's Avatar
 
Join Date: May 2008
Location: Close to sea
Posts: 24,238
Downloads: 548
Uploads: 0


@ Csvscs96! Welcome to SubSim
__________________
Nothing in life is to be feard,it is only to be understood.

Marie Curie





Gerald is offline   Reply With Quote
Old 11-12-11, 08:44 PM   #236
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,962
Downloads: 147
Uploads: 5


Default

Working on next patch since I'm stuck in Portland, OR currently. The goal of this next patch is to fix the bug where CO2 is still generated when snorkel is raised. I've isolated the CO2 generation function and as you can see below it has nothing in it that looks to see if snorkel is raised or even present on the sub (my comments are included so you can 'see' what's going on)

Maybe some of you all will recognize some of these hard coded values in the code. I'd like to figure out what these values are.

Oh and another thing I noticed is that CO2 level is compared to a value that looks like a maxiumum CO2 level (0.899). CO2 levels > 10% are fatal are they not??

Code:
014D3BC0  /. 55             PUSH EBP                                 ;  Computes new CO2 percentage
014D3BC1  |. 8BEC           MOV EBP,ESP                              ;  create stack frame
014D3BC3  |. 83EC 58        SUB ESP,58                               ;  create temp variables
014D3BC6  |. 894D A8        MOV DWORD PTR SS:[EBP-58],ECX            ;  store pointer to memory locations at bottom of stack
014D3BC9  |. 8B45 A8        MOV EAX,DWORD PTR SS:[EBP-58]            ;  load EAX with pointer to memory variables
014D3BCC  |. 8378 14 00     CMP DWORD PTR DS:[EAX+14],0              ;  checking to see if something is enabled or not. What is it???
014D3BD0  |. 75 07          JNZ SHORT sh5.014D3BD9                   ;  if enabled then jump (this means we are generating CO2)
014D3BD2  |. 32C0           XOR AL,AL                                ;  not enabled: zero out AL
014D3BD4  |. E9 22030000    JMP sh5.014D3EFB                         ;  no CO2 generation - jump to end of function
014D3BD9  |> 8B4D A8        MOV ECX,DWORD PTR SS:[EBP-58]            ;  is enabled: copy pointer to memory locations to ECX
014D3BDC  |. 8B51 14        MOV EDX,DWORD PTR DS:[ECX+14]            ;  load pointer into EDX
014D3BDF  |. 8B45 A8        MOV EAX,DWORD PTR SS:[EBP-58]            ;  copy pointer to memory locations into EAX
014D3BE2  |. 8B48 14        MOV ECX,DWORD PTR DS:[EAX+14]            ;  load pointer into ECX
014D3BE5  |. 8B12           MOV EDX,DWORD PTR DS:[EDX]
014D3BE7  |. 8B82 F4020000  MOV EAX,DWORD PTR DS:[EDX+2F4]
014D3BED  |. FFD0           CALL EAX                                 ;  moves a byte into AL (denoting whether submerged or not - 1 = submerged)
014D3BEF  |. 0FB6C8         MOVZX ECX,AL                             ;  move AL into ECX first zeroing out ECX
014D3BF2  |. 85C9           TEST ECX,ECX                             ;  test ECX to see if 0 or not (if 0 then surfaced)
014D3BF4  |. 75 07          JNZ SHORT sh5.014D3BFD                   ;  if not 0 (then sub is submerged) then jump
014D3BF6  |. B0 01          MOV AL,1                                 ;  was 0 (sub is surfaced): load 1 into AL
014D3BF8  |. E9 FE020000    JMP sh5.014D3EFB                         ;  jump to end of function (no CO2 generation)
014D3BFD  |> 8B55 A8        MOV EDX,DWORD PTR SS:[EBP-58]            ;  was not 0 (sub is submerged): copy pointer to memory locations into EDX
014D3C00  |. 8B42 14        MOV EAX,DWORD PTR DS:[EDX+14]            ;  load pointer into EAX
014D3C03  |. 8B4D A8        MOV ECX,DWORD PTR SS:[EBP-58]            ;  copy pointer to memory locations into ECX
014D3C06  |. 8B49 14        MOV ECX,DWORD PTR DS:[ECX+14]            ;  load pointer into ECX
014D3C09  |. 8B10           MOV EDX,DWORD PTR DS:[EAX]
014D3C0B  |. 8B82 DC010000  MOV EAX,DWORD PTR DS:[EDX+1DC]
014D3C11  |. FFD0           CALL EAX                                 ;  loads a pointer into EAX (what is this pointer??)
014D3C13  |. 8945 F8        MOV DWORD PTR SS:[EBP-8],EAX             ;  store pointer into stack variable
014D3C16  |. 837D F8 00     CMP DWORD PTR SS:[EBP-8],0               ;  compare stack variable to 0
014D3C1A  |. 75 07          JNZ SHORT sh5.014D3C23                   ;  if not 0 then jump
014D3C1C  |. 32C0           XOR AL,AL                                ;  is 0: zero out AL
014D3C1E  |. E9 D8020000    JMP sh5.014D3EFB                         ;  jump to end of function (no CO2 generation)
014D3C23  |> F3:0F1005 9079>MOVSS XMM0,DWORD PTR DS:[1597990]        ;  not 0: load CO2 generation rate? into XMM0 - hard coded value (value loaded was 48.0)
014D3C2B  |. F3:0F1145 F4   MOVSS DWORD PTR SS:[EBP-C],XMM0          ;  store XMM0 to temp variable
014D3C30  |. D945 F4        FLD DWORD PTR SS:[EBP-C]                 ;  load temp variable to top of floating point stack
014D3C33  |. D9E8           FLD1                                     ;  load +1.0 to top of floating point stack
014D3C35  |. DEF1           FDIVRP ST(1),ST                          ;  computes 1.0 (ST0) divided by CO2 generation rate? (ST1), places result back on top of stack, pops top of floating point stack
014D3C37  |. D95D FC        FSTP DWORD PTR SS:[EBP-4]                ;  store result into temp variable and pop top of floating point stack (CO2 generation rate per person??)
014D3C3A  |. D945 FC        FLD DWORD PTR SS:[EBP-4]                 ;  load temp variable (CO2 generation rate per person??) onto top of floating point stack
014D3C3D  |. D84D 08        FMUL DWORD PTR SS:[EBP+8]                ;  multiply result by floating point number (357.1)
014D3C40  |. DC35 D8745901  FDIV QWORD PTR DS:[15974D8]              ;  divide by floating point value (3600.0 i.e. 1 hour)
014D3C46  |. D95D F0        FSTP DWORD PTR SS:[EBP-10]               ;  store result (total CO2 generation rate per second) into temp variable and pop top of floating point stack
014D3C49  |. 8B4D A8        MOV ECX,DWORD PTR SS:[EBP-58]            ;  copy pointer to memory locations into ECX
014D3C4C  |. 8B51 14        MOV EDX,DWORD PTR DS:[ECX+14]            ;  load pointer into EDX
014D3C4F  |. 8B45 A8        MOV EAX,DWORD PTR SS:[EBP-58]            ;  copy pointer to memory locations into EAX
014D3C52  |. 8B48 14        MOV ECX,DWORD PTR DS:[EAX+14]            ;  load pointer into ECX
014D3C55  |. 8B12           MOV EDX,DWORD PTR DS:[EDX]
014D3C57  |. 8B82 20020000  MOV EAX,DWORD PTR DS:[EDX+220]
014D3C5D  |. FFD0           CALL EAX                                 ;  Loads the current CO2 percentage onto top of floating point stack
014D3C5F  |. D95D EC        FSTP DWORD PTR SS:[EBP-14]               ;  store current CO2 percentage to temp variable and pop top of floating point stack
014D3C62  |. FF15 FC605401  CALL DWORD PTR DS:[<&Utils.?GetGameplayS>;  Utils.?GetGameplaySettings@@YAPAUGameplaySettings@@XZ
014D3C68  |. 8378 08 00     CMP DWORD PTR DS:[EAX+8],0               ;  comparing some game play setting to 0 (to see if enabled or not) - Gameplay setting most likely Limited O2 - need to verify this!
014D3C6C  |. 74 60          JE SHORT sh5.014D3CCE                    ;  if gameplay setting not enabled then jump
014D3C6E  |. D945 EC        FLD DWORD PTR SS:[EBP-14]                ;  gameplay setting enabled: load current total CO2 percentage to top of floating point stack
014D3C71  |. DD05 48E95401  FLD QWORD PTR DS:[154E948]               ;  either loads minimum O2 percentage or maximum CO2 percentage - hard coded value (value was 0.899)
014D3C77  |. DFF1           FCOMIP ST,ST(1)                          ;  compares value just loaded (ST0) to current total CO2 percentage (ST1) and pops top of floating point stack
014D3C79  |. DDD8           FSTP ST                                  ;  pop top of floating point stack
014D3C7B  |. 72 17          JB SHORT sh5.014D3C94                    ;  if value loaded was less than current total CO2 percentage then jump
014D3C7D  |. 8B4D A8        MOV ECX,DWORD PTR SS:[EBP-58]            ;  value loaded greater than current CO2 percentage: copy pointer to memory locations into ECX
014D3C80  |. 8B51 14        MOV EDX,DWORD PTR DS:[ECX+14]            ;  load pointer into EDX
014D3C83  |. D945 F0        FLD DWORD PTR SS:[EBP-10]                ;  load total CO2 generation rate per second onto top of floating point stack
014D3C86  |. D88A 58040000  FMUL DWORD PTR DS:[EDX+458]              ;  multiply total CO2 generation rate per second (ST0) by some floating point value (factor? value was 1.0)
014D3C8C  |. D845 EC        FADD DWORD PTR SS:[EBP-14]               ;  add current CO2 percentage to total CO2 generation rate per second (ST0)
014D3C8F  |. D95D EC        FSTP DWORD PTR SS:[EBP-14]               ;  store new current CO2 percentage to temp variable and pop top of floating point stack
014D3C92  |. EB 1B          JMP SHORT sh5.014D3CAF                   ;  skip over if value loaded was less than current CO2 percentage
014D3C94  |> D945 F0        FLD DWORD PTR SS:[EBP-10]                ;  value loaded less than current total CO2 percentage:
014D3C97  |. DC35 C8715901  FDIV QWORD PTR DS:[15971C8]
014D3C9D  |. 8B45 A8        MOV EAX,DWORD PTR SS:[EBP-58]
014D3CA0  |. 8B48 14        MOV ECX,DWORD PTR DS:[EAX+14]
014D3CA3  |. D889 58040000  FMUL DWORD PTR DS:[ECX+458]
014D3CA9  |. D845 EC        FADD DWORD PTR SS:[EBP-14]
014D3CAC  |. D95D EC        FSTP DWORD PTR SS:[EBP-14]
014D3CAF  |> 51             PUSH ECX                                 ;  store pointer to memory locations on stack (just a placeholder will be overwritten)
014D3CB0  |. D945 EC        FLD DWORD PTR SS:[EBP-14]                ;  load new current CO2 percentage to top of floating point stack
014D3CB3  |. D91C24         FSTP DWORD PTR SS:[ESP]                  ;  store new current CO2 percentage to current stack location and pop top of floating point stack
014D3CB6  |. 8B55 A8        MOV EDX,DWORD PTR SS:[EBP-58]            ;  copy pointer to memory locations into EDX
014D3CB9  |. 8B42 14        MOV EAX,DWORD PTR DS:[EDX+14]            ;  load pointer into EAX
014D3CBC  |. 8B4D A8        MOV ECX,DWORD PTR SS:[EBP-58]            ;  copy pointer to memory locations into ECX
014D3CBF  |. 8B49 14        MOV ECX,DWORD PTR DS:[ECX+14]            ;  load pointer into ECX
014D3CC2  |. 8B10           MOV EDX,DWORD PTR DS:[EAX]
014D3CC4  |. 8B82 24020000  MOV EAX,DWORD PTR DS:[EDX+224]
014D3CCA  |. FFD0           CALL EAX                                 ;  ensure new current CO2 percentage in range 0.0 to 1.0
014D3CCC  |. EB 1C          JMP SHORT sh5.014D3CEA                   ;  skip over gameplay setting not enabled
014D3CCE  |> 51             PUSH ECX                                 ;  gameplay setting not enabled:
014D3CCF  |. D9EE           FLDZ
014D3CD1  |. D91C24         FSTP DWORD PTR SS:[ESP]
014D3CD4  |. 8B4D A8        MOV ECX,DWORD PTR SS:[EBP-58]
014D3CD7  |. 8B51 14        MOV EDX,DWORD PTR DS:[ECX+14]
014D3CDA  |. 8B45 A8        MOV EAX,DWORD PTR SS:[EBP-58]
014D3CDD  |. 8B48 14        MOV ECX,DWORD PTR DS:[EAX+14]
014D3CE0  |. 8B12           MOV EDX,DWORD PTR DS:[EDX]
014D3CE2  |. 8B82 24020000  MOV EAX,DWORD PTR DS:[EDX+224]
014D3CE8  |. FFD0           CALL EAX
014D3CEA  |> DD05 08725901  FLD QWORD PTR DS:[1597208]               ;  load a floating point value onto top of floating point stack (hard coded memory location - value was 0.75)
014D3CF0  |. D945 EC        FLD DWORD PTR SS:[EBP-14]                ;  load new current CO2 percentage to top of floating point stack
014D3CF3  |. DFF1           FCOMIP ST,ST(1)                          ;  compares new current CO2 percentage (ST0) to hard coded value (ST1) and pop top of floating point stack
014D3CF5  |. DDD8           FSTP ST                                  ;  pop top of floating point stack
014D3CF7  |. 0F82 AC000000  JB sh5.014D3DA9                          ;  if new current CO2 percentage (ST0) was less than hard coded value (ST1) then jump
014D3CFD  |. C745 E4 000000>MOV DWORD PTR SS:[EBP-1C],0              ;  new current CO2 percentage was greater than hard coded value:
014D3D04  |. 8B4D F8        MOV ECX,DWORD PTR SS:[EBP-8]
014D3D07  |. 8B11           MOV EDX,DWORD PTR DS:[ECX]
014D3D09  |. 8B4D F8        MOV ECX,DWORD PTR SS:[EBP-8]
014D3D0C  |. 8B82 E0000000  MOV EAX,DWORD PTR DS:[EDX+E0]
014D3D12  |. FFD0           CALL EAX
014D3D14  |. 8945 E8        MOV DWORD PTR SS:[EBP-18],EAX
014D3D17  |. EB 09          JMP SHORT sh5.014D3D22
014D3D19  |> 8B4D E4        /MOV ECX,DWORD PTR SS:[EBP-1C]
014D3D1C  |. 83C1 01        |ADD ECX,1
014D3D1F  |. 894D E4        |MOV DWORD PTR SS:[EBP-1C],ECX
014D3D22  |> 8B55 E4         MOV EDX,DWORD PTR SS:[EBP-1C]
014D3D25  |. 3B55 E8        |CMP EDX,DWORD PTR SS:[EBP-18]
014D3D28  |. 7D 7F          |JGE SHORT sh5.014D3DA9
014D3D2A  |. 8B55 E4        |MOV EDX,DWORD PTR SS:[EBP-1C]
014D3D2D  |. 8B45 F8        |MOV EAX,DWORD PTR SS:[EBP-8]
014D3D30  |. E8 4BE1DFFF    |CALL sh5.012D1E80
014D3D35  |. 8945 E0        |MOV DWORD PTR SS:[EBP-20],EAX
014D3D38  |. 6A 0B          |PUSH 0B
014D3D3A  |. 8B45 E0        |MOV EAX,DWORD PTR SS:[EBP-20]
014D3D3D  |. 8B10           |MOV EDX,DWORD PTR DS:[EAX]
014D3D3F  |. 8B4D E0        |MOV ECX,DWORD PTR SS:[EBP-20]
014D3D42  |. 8B42 14        |MOV EAX,DWORD PTR DS:[EDX+14]
014D3D45  |. FFD0           |CALL EAX
014D3D47  |. 0FB6C8         |MOVZX ECX,AL
014D3D4A  |. 83F9 01        |CMP ECX,1
014D3D4D  |. 75 55          |JNZ SHORT sh5.014D3DA4
014D3D4F  |. 8B55 E0        |MOV EDX,DWORD PTR SS:[EBP-20]
014D3D52  |. 8955 DC        |MOV DWORD PTR SS:[EBP-24],EDX
014D3D55  |. D945 08        |FLD DWORD PTR SS:[EBP+8]
014D3D58  |. DC35 D8745901  |FDIV QWORD PTR DS:[15974D8]
014D3D5E  |. DC0D C8715901  |FMUL QWORD PTR DS:[15971C8]
014D3D64  |. D95D D8        |FSTP DWORD PTR SS:[EBP-28]
014D3D67  |. D945 D8        |FLD DWORD PTR SS:[EBP-28]
014D3D6A  |. DC35 88795901  |FDIV QWORD PTR DS:[1597988]
014D3D70  |. D95D D8        |FSTP DWORD PTR SS:[EBP-28]
014D3D73  |. 51             |PUSH ECX
014D3D74  |. D945 D8        |FLD DWORD PTR SS:[EBP-28]
014D3D77  |. D91C24         |FSTP DWORD PTR SS:[ESP]
014D3D7A  |. E8 61C60300    |CALL sh5.015103E0
014D3D7F  |. 8BC8           |MOV ECX,EAX
014D3D81  |. E8 9AC70300    |CALL sh5.01510520
014D3D86  |. 8845 D7        |MOV BYTE PTR SS:[EBP-29],AL
014D3D89  |. 0FB645 D7      |MOVZX EAX,BYTE PTR SS:[EBP-29]
014D3D8D  |. 83F8 01        |CMP EAX,1
014D3D90  |. 75 12          |JNZ SHORT sh5.014D3DA4
014D3D92  |. 6A 02          |PUSH 2
014D3D94  |. 8B4D DC        |MOV ECX,DWORD PTR SS:[EBP-24]
014D3D97  |. 8B11           |MOV EDX,DWORD PTR DS:[ECX]
014D3D99  |. 8B4D DC        |MOV ECX,DWORD PTR SS:[EBP-24]
014D3D9C  |. 8B82 E0000000  |MOV EAX,DWORD PTR DS:[EDX+E0]
014D3DA2  |. FFD0           |CALL EAX
014D3DA4  |>^E9 70FFFFFF    \JMP sh5.014D3D19
014D3DA9  |> DD05 48E95401  FLD QWORD PTR DS:[154E948]               ;  new current CO2 percentage was less than hard coded value: load hard coded value to top of floating point stack (value was 0.8999)
014D3DAF  |. D945 EC        FLD DWORD PTR SS:[EBP-14]                ;  load new current CO2 percentage to top of floating point stack
014D3DB2  |. DFF1           FCOMIP ST,ST(1)                          ;  compare new current CO2 percentage (ST0) to hard coded value (ST1) and pop top of floating point stack
014D3DB4  |. DDD8           FSTP ST                                  ;  pop top of floating point stack
014D3DB6  |. 0F82 AA000000  JB sh5.014D3E66                          ;  if new current CO2 percentage is less than hard coded value then jump
014D3DBC  |. C745 CC 000000>MOV DWORD PTR SS:[EBP-34],0              ;  new CO2 percentage is greater than hard coded value:
014D3DC3  |. 8B4D F8        MOV ECX,DWORD PTR SS:[EBP-8]
014D3DC6  |. 8B11           MOV EDX,DWORD PTR DS:[ECX]
014D3DC8  |. 8B4D F8        MOV ECX,DWORD PTR SS:[EBP-8]
014D3DCB  |. 8B82 E0000000  MOV EAX,DWORD PTR DS:[EDX+E0]
014D3DD1  |. FFD0           CALL EAX
014D3DD3  |. 8945 D0        MOV DWORD PTR SS:[EBP-30],EAX
014D3DD6  |. EB 09          JMP SHORT sh5.014D3DE1
014D3DD8  |> 8B4D CC        /MOV ECX,DWORD PTR SS:[EBP-34]
014D3DDB  |. 83C1 01        |ADD ECX,1
014D3DDE  |. 894D CC        |MOV DWORD PTR SS:[EBP-34],ECX
014D3DE1  |> 8B55 CC         MOV EDX,DWORD PTR SS:[EBP-34]
014D3DE4  |. 3B55 D0        |CMP EDX,DWORD PTR SS:[EBP-30]
014D3DE7  |. 7D 7D          |JGE SHORT sh5.014D3E66
014D3DE9  |. 8B55 CC        |MOV EDX,DWORD PTR SS:[EBP-34]
014D3DEC  |. 8B45 F8        |MOV EAX,DWORD PTR SS:[EBP-8]
014D3DEF  |. E8 8CE0DFFF    |CALL sh5.012D1E80
014D3DF4  |. 8945 C8        |MOV DWORD PTR SS:[EBP-38],EAX
014D3DF7  |. 6A 0B          |PUSH 0B
014D3DF9  |. 8B45 C8        |MOV EAX,DWORD PTR SS:[EBP-38]
014D3DFC  |. 8B10           |MOV EDX,DWORD PTR DS:[EAX]
014D3DFE  |. 8B4D C8        |MOV ECX,DWORD PTR SS:[EBP-38]
014D3E01  |. 8B42 14        |MOV EAX,DWORD PTR DS:[EDX+14]
014D3E04  |. FFD0           |CALL EAX
014D3E06  |. 0FB6C8         |MOVZX ECX,AL
014D3E09  |. 83F9 01        |CMP ECX,1
014D3E0C  |. 75 53          |JNZ SHORT sh5.014D3E61
014D3E0E  |. 8B55 C8        |MOV EDX,DWORD PTR SS:[EBP-38]
014D3E11  |. 8955 C4        |MOV DWORD PTR SS:[EBP-3C],EDX
014D3E14  |. D945 08        |FLD DWORD PTR SS:[EBP+8]
014D3E17  |. DC35 D8745901  |FDIV QWORD PTR DS:[15974D8]
014D3E1D  |. D95D C0        |FSTP DWORD PTR SS:[EBP-40]
014D3E20  |. D945 C0        |FLD DWORD PTR SS:[EBP-40]
014D3E23  |. DC35 88795901  |FDIV QWORD PTR DS:[1597988]
014D3E29  |. D95D C0        |FSTP DWORD PTR SS:[EBP-40]
014D3E2C  |. 51             |PUSH ECX
014D3E2D  |. D945 C0        |FLD DWORD PTR SS:[EBP-40]
014D3E30  |. D91C24         |FSTP DWORD PTR SS:[ESP]
014D3E33  |. E8 A8C50300    |CALL sh5.015103E0
014D3E38  |. 8BC8           |MOV ECX,EAX
014D3E3A  |. E8 E1C60300    |CALL sh5.01510520
014D3E3F  |. 8845 BF        |MOV BYTE PTR SS:[EBP-41],AL
014D3E42  |. 0FB645 BF      |MOVZX EAX,BYTE PTR SS:[EBP-41]
014D3E46  |. 83F8 01        |CMP EAX,1
014D3E49  |. 75 16          |JNZ SHORT sh5.014D3E61
014D3E4B  |. 51             |PUSH ECX
014D3E4C  |. D9E8           |FLD1
014D3E4E  |. D91C24         |FSTP DWORD PTR SS:[ESP]
014D3E51  |. 8B4D C4        |MOV ECX,DWORD PTR SS:[EBP-3C]
014D3E54  |. 8B11           |MOV EDX,DWORD PTR DS:[ECX]
014D3E56  |. 8B4D C4        |MOV ECX,DWORD PTR SS:[EBP-3C]
014D3E59  |. 8B82 00010000  |MOV EAX,DWORD PTR DS:[EDX+100]
014D3E5F  |. FFD0           |CALL EAX
014D3E61  |>^E9 72FFFFFF    \JMP sh5.014D3DD8
014D3E66  |> DD05 A0715901  FLD QWORD PTR DS:[15971A0]               ;  new CO2 percentage is less than hard coded value: load top of floating point register with hard coded value (value was 0.9900)
014D3E6C  |. D945 EC        FLD DWORD PTR SS:[EBP-14]                ;  load top of floating point register with new current CO2 percentage
014D3E6F  |. DFF1           FCOMIP ST,ST(1)                          ;  compare new current CO2 percentage (ST0) to hard coded value (ST1) and pop top of floating point stack
014D3E71  |. DDD8           FSTP ST                                  ;  pop top of floating point stack
014D3E73  |. 0F82 80000000  JB sh5.014D3EF9                          ;  if new current CO2 percentage is less than hard coded value then jump
014D3E79  |. C745 B4 000000>MOV DWORD PTR SS:[EBP-4C],0              ;  new current CO2 value greater than hard coded value:
014D3E80  |. 8B4D F8        MOV ECX,DWORD PTR SS:[EBP-8]
014D3E83  |. 8B11           MOV EDX,DWORD PTR DS:[ECX]
014D3E85  |. 8B4D F8        MOV ECX,DWORD PTR SS:[EBP-8]
014D3E88  |. 8B82 E0000000  MOV EAX,DWORD PTR DS:[EDX+E0]
014D3E8E  |. FFD0           CALL EAX
014D3E90  |. 8945 B8        MOV DWORD PTR SS:[EBP-48],EAX
014D3E93  |. EB 09          JMP SHORT sh5.014D3E9E
014D3E95  |> 8B4D B4        /MOV ECX,DWORD PTR SS:[EBP-4C]
014D3E98  |. 83C1 01        |ADD ECX,1
014D3E9B  |. 894D B4        |MOV DWORD PTR SS:[EBP-4C],ECX
014D3E9E  |> 8B55 B4         MOV EDX,DWORD PTR SS:[EBP-4C]
014D3EA1  |. 3B55 B8        |CMP EDX,DWORD PTR SS:[EBP-48]
014D3EA4  |. 7D 53          |JGE SHORT sh5.014D3EF9
014D3EA6  |. 8B55 B4        |MOV EDX,DWORD PTR SS:[EBP-4C]
014D3EA9  |. 8B45 F8        |MOV EAX,DWORD PTR SS:[EBP-8]
014D3EAC  |. E8 CFDFDFFF    |CALL sh5.012D1E80
014D3EB1  |. 8945 B0        |MOV DWORD PTR SS:[EBP-50],EAX
014D3EB4  |. 6A 0B          |PUSH 0B
014D3EB6  |. 8B45 B0        |MOV EAX,DWORD PTR SS:[EBP-50]
014D3EB9  |. 8B10           |MOV EDX,DWORD PTR DS:[EAX]
014D3EBB  |. 8B4D B0        |MOV ECX,DWORD PTR SS:[EBP-50]
014D3EBE  |. 8B42 14        |MOV EAX,DWORD PTR DS:[EDX+14]
014D3EC1  |. FFD0           |CALL EAX
014D3EC3  |. 0FB6C8         |MOVZX ECX,AL
014D3EC6  |. 83F9 01        |CMP ECX,1
014D3EC9  |. 75 2C          |JNZ SHORT sh5.014D3EF7
014D3ECB  |. 8B55 B0        |MOV EDX,DWORD PTR SS:[EBP-50]
014D3ECE  |. 8955 AC        |MOV DWORD PTR SS:[EBP-54],EDX
014D3ED1  |. 8B4D AC        |MOV ECX,DWORD PTR SS:[EBP-54]
014D3ED4  |. E8 671B0400    |CALL sh5.01515A40
014D3ED9  |. 0FB6C0         |MOVZX EAX,AL
014D3EDC  |. 83F8 01        |CMP EAX,1
014D3EDF  |. 75 16          |JNZ SHORT sh5.014D3EF7
014D3EE1  |. 51             |PUSH ECX
014D3EE2  |. D9E8           |FLD1
014D3EE4  |. D91C24         |FSTP DWORD PTR SS:[ESP]
014D3EE7  |. 8B4D AC        |MOV ECX,DWORD PTR SS:[EBP-54]
014D3EEA  |. 8B11           |MOV EDX,DWORD PTR DS:[ECX]
014D3EEC  |. 8B4D AC        |MOV ECX,DWORD PTR SS:[EBP-54]
014D3EEF  |. 8B82 00010000  |MOV EAX,DWORD PTR DS:[EDX+100]
014D3EF5  |. FFD0           |CALL EAX
014D3EF7  |>^EB 9C          \JMP SHORT sh5.014D3E95
014D3EF9  |> B0 01          MOV AL,1                                 ;  new current CO2 value less than hard coded value: move 1 into AL
014D3EFB  |> 8BE5           MOV ESP,EBP                              ;  kill stack frame
014D3EFD  |. 5D             POP EBP                                  ;  restore base pointer
014D3EFE  \. C2 0400        RETN 4                                   ;  return to caller popping 4 from stack
now I just have to find the snorkel in the exe

Last edited by TheDarkWraith; 11-12-11 at 08:59 PM.
TheDarkWraith is offline   Reply With Quote
Old 11-13-11, 03:26 AM   #237
Lt. Surge
Swabbie
 
Join Date: Nov 2011
Posts: 6
Downloads: 0
Uploads: 0
Default

hi,
I downloaded the patcher and I try to open the TDW_SH5_Patches.s5p file but the program pops up with:
error reading patch file.

Is there a place i need to install the program (eg. in SH5 folder) or is the file corrupted when downloading.

Cheers.
Lt. Surge is offline   Reply With Quote
Old 11-13-11, 05:23 AM   #238
Trevally.
Navy Seal
 
Join Date: Apr 2007
Location: AN1536 (Orkney)
Posts: 5,451
Downloads: 166
Uploads: 28


Default

Quote:
Originally Posted by TheDarkWraith View Post
Oh and another thing I noticed is that CO2 level is compared to a value that looks like a maxiumum CO2 level (0.899). CO2 levels > 10% are fatal are they not??
Im sure you only get the co2 warning at 10% but can go higher. Im not sure how much higher as I always panic and surface with the warning

Quote:
Originally Posted by Lt. Surge View Post
hi,
I downloaded the patcher and I try to open the TDW_SH5_Patches.s5p file but the program pops up with:
error reading patch file.

Is there a place i need to install the program (eg. in SH5 folder) or is the file corrupted when downloading.

Cheers.
Try using 7zip to extract the download http://www.7-zip.org/
__________________
Trevally Mods for SH5
Trevally. is offline   Reply With Quote
Old 11-13-11, 06:39 AM   #239
tonschk
Admiral
 
Join Date: Mar 2007
Posts: 2,200
Downloads: 172
Uploads: 0
Default

Quote:
Originally Posted by TheDarkWraith View Post

The goal of this next patch is to fix the bug where CO2 is still generated when snorkel is raised. I've isolated the CO2 generation function and as you can see below it has nothing in it that looks to see if snorkel is raised or even present on the sub
__________________
What we do in life echoes in Eternity
tonschk is offline   Reply With Quote
Old 11-13-11, 07:46 AM   #240
TheBeast
The Old Man
 
Join Date: Jan 2010
Location: Lynnwood, WA
Posts: 1,533
Downloads: 876
Uploads: 23


Default

Quote:
Originally Posted by TheDarkWraith View Post
CO2 levels > 10% are fatal are they not??
If I remember correctly, IRL, Co2 level of => 10% crew begin losing mental facalties and levels => 15%, crew begin to pass out.

Regards!
TheBeast
__________________
Fear me! I am, TheBeastBelow

SHIV-MediaFire | SHV-MediaFire
TheBeast is offline   Reply With Quote
Reply


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:55 PM.


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