SUBSIM Radio Room Forums

SUBSIM Radio Room Forums (https://www.subsim.com/radioroom/index.php)
-   SHIII Mods Workshop (https://www.subsim.com/radioroom/forumdisplay.php?f=195)
-   -   Realism- and gameplay-related hardcode fixes for SH3.EXE (https://www.subsim.com/radioroom/showthread.php?t=174225)

h.sie 11-14-11 05:21 PM

Cool, I could put the whole Torpedo failure code into a special library file named hsie.act and two small binary files, which I can offer as JSGME-Mod. No patching necessary for testing this fix. Only thing left to do: Parameter fine-adjustment.

dariocapcro 11-14-11 06:08 PM

croatia
 
Speaking of realism in the SH 3 plotted course and driving, in bad weather, submariners did not know where they are, there is a kind of mod?

dariocapcro 11-14-11 06:11 PM

croatia
 
... and why there is no able to use electric motors on the surface?

Letum 11-14-11 09:37 PM

Looks like the DL link is down.

Magic1111 11-15-11 05:01 AM

Quote:

Originally Posted by Letum (Post 1787891)
Looks like the DL link is down.

For me h.sie´s MediaFire Page work...! Please try again!

Best regards,
Magic

LGN1 11-15-11 02:09 PM

Quote:

Originally Posted by h.sie (Post 1787761)
Cool, I could put the whole Torpedo failure code into a special library file named hsie.act and two small binary files, which I can offer as JSGME-Mod. No patching necessary for testing this fix. Only thing left to do: Parameter fine-adjustment.

Hi h.sie,

does that mean that you can now provide a fix via a .act file and players can enable/disable the fix via JSGME, i.e., an option selector is no longer required because selecting different fixes can be done via JSGME?

Cheers, LGN1

h.sie 11-15-11 03:14 PM

Hi LGN1,

yes, that could be a consequence. In principle, I can now offer all my code in one or more .act files, which could be enabled / disabled using JSGME, without OptionsSelector.

BUT:

1) Coding directly into sh3.exe is much easier for me.

2) Coding directly into sh3.exe is less risky regarding stability.

Thus, I'll stick at the current patching system including OptionsSelector, but from now on I can provide new fixes in .act files (for JSGME) for testing purposes, without the need to offer a new patch-kit for every single new fix I publish. This will lower the frequency of new major updates (V16B, V16C), but will make testing and development easier. A new major update will then contain all new and well-tested fixes that have been developed since the last major update.

h.sie 11-15-11 03:50 PM

Torpedo Failures Fix V1.0 Beta available

Features:
- models torpedo crisis until 1942
- models duds resulting from too shallow torpedo depth settings.

Notes:
- Install via JSGME.
- Only compatible to sh3.exe V16A3.
- Updates V16A3 to V16A4

Fix consists of a DLL named hsie.act and three binary files containing the code for the torpedo failures. On game load, when sh3.exe loads hsie.act, the code will be automatically applied to sh3.exe.

Download here:
http://www.mediafire.com/?4rnx2kb6leneg3f

Failure model: LGN1
Programming: h.sie
Credits to reaper7 (for his important code finding).

The image below shows how torpedo failure rates are calculated:

http://www.mediafire.com/imgbnc.php/...d5848efe6g.jpg


The Depth D1 is the windspeed-dependent wave amplitude.
D1 can be calculated:

D1 = 0.25 * Windspeed = Windspeed / 4

Torpedoes above D1 are surface runners and lead to a failure probability of p = 98% (see red part of the diagram).

The depth D2 can be calculated:

D2 = 0.4 * Windspeed = 4 * Windspeed / 10

Water below Depth = D2 is assumed to be calm. Torpedos below D2 will have a low failure probability of p = po. The value of po depends on the time (torpedo crisis until 1942) and the pistol chosen (magnetic/impact). Details see below.

The area between the depths D1 and D2 is the area of turbolences. Here, the failure probability sinks linear with rising depth from p=98% at Depth = D1 to the small value of p=po at Depth = D2.

Failure rate po for Impact pistol:
- until June'40: 25%
- until June'42: 10%
- after June'42: 2%

Failure rate po for Magnetic pistol:
- until June'40: 7%
- until June'42: 5%
- after June'42: 1%

The torpedo failures caused by this fix are ADDED to the already existing failures, resulting from bad impact angle etc.

The fix models a failure by simply setting the torpedo depth to 25m.
http://www.mediafire.com/i/?q99adby0s1btwn5

Fish In The Water 11-15-11 03:56 PM

A very interesting technique. Quite the innovation, thank you and congrats on the creativity! :salute:

reaper7 11-15-11 04:19 PM

Quote:

Originally Posted by h.sie (Post 1788300)
Torpedo Failures Fix V1.0 Beta available

On game load, when sh3.exe loads hsie.act, the code will be automatically applied to sh3.exe.

Confirmed that code is being read into Sh3. Sh3 is reading as V1.6A4 in Game Menu.
Going to test Torpedoes now :up:


EDIT: Working ok, Got 2 out of 4 deep runners in 12 meter/sec winds :up:.

h.sie 11-15-11 05:30 PM

Thanks, reaper. Good to know it works. Do you have 64 or 32 Bit Windows?

urfisch 11-15-11 05:51 PM

Using the wolfpack mod and i am very satisfied til know. Really great work! Thanks a lot!

:yeah:

During the game, i came back to my favorite modding topic of the last month: water. I created some nice looking new stuff. But i came across an old question, which always was impossible to answer...foam beeing created, also on low windspeeds.

;)

I saw the data, in the sh3.exe or the env.act file. There the foam is defined and rendered onto the water.

What do you think, H.Sie...is it big work to change the parameters, so also on low wind we can have (maybe a certain) foam?

:06:

Robin40 11-16-11 12:38 AM

@h.sie
may this patch be applied to existing career saved games?

dariocapcro 11-16-11 06:58 AM

Hello everyone, I do not know whether there is a mod handmade navigation, total realism in mapping the course, in bad times of the German submariners did not know where they are, and made me who can explain how can I make changes to the game, it's about 3 sh:salute:

h.sie 11-16-11 11:29 AM

@urfisch: Thank you. Glad you like it. I must admit that sea foam is currently not on top of my todo-list.

@Robin40: Can be enabled anytime.

@dariocapro: Try to switch off map contacts in the realism options menu. If I remember correctly, you then have to navigate manually. But that is not in the area of my expertise.


All times are GMT -5. The time now is 07:47 AM.

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