SUBSIM Radio Room Forums
The newest naval sim by Totem Games!

SUBSIM: The Web's #1 BBS for all submarine and naval simulations since 1997

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

Reply
 
Thread Tools Display Modes
Old 08-28-2010, 05:57 PM   #1
h.sie
Admiral
 
Join Date: Jul 2008
Posts: 2,192
Downloads: 131
Uploads: 0


Default Realism- and gameplay-related hardcode fixes for SH3.EXE

Realism- and Gameplay-related hardcode fixes for SH3.EXE
-- The inofficial Patch v1.6 for Silent Hunter 3 --

Stable version:V16B1
Date of this post: May. 23th 2012

Here I present my inofficial hardcode patch for the Silent Hunter 3 executable. Due to copyright issues and in order to prevent illegal software duplication, I cannot share the patched sh3.exe - I can only offer a Patch-Kit for you to patch the executable by yourself. This makes sure that only a legal owner of the software can use these fixes.

Download

V16B1-Readme in ENGLISH can be found here:
http://www.mediafire.com/?jl18d352j54g1ie

V16B1-Dokumentation in DEUTSCH guggsdu hier:
http://www.mediafire.com/view/?z5dv44e11aium7k

V16B1-Patch-Kit (including Readme) can be found here:
http://www.mediafire.com/?27tcm2yg29gsqqc


Hardcode-Fixes Overview

This in only a very brief overview about the Hardcode Fixes. Details and installation instructions can be found in the Readme (see above!). Due to Stieblers cool OptionsSelector tool, most of the Fixes can individually switched ON/OFF. Even the 4GB-patch can be applied with his Selector.

1. Realistic Repair Times.
Repair times of all U-boat equipment take 60 times longer than before. The factor of 60 is user-adjustable.

2. Inaccurate range-estimations
Inaccurate range estimations for WatchOfficer (->Nearest visual contact) and WeaponsOfficer (-> Solution to target). No gods-eye firing solutions anymore. Before this mod: "Range: 8932m, Herr Kaleun". Now: "Range: 9000m, Herr Kaleun".

3. Snorkel-Fix
Speed restriction when snorkelling - wind speed dependent!

4. Periscope-Fix
Periscopes nearly useless for higher speeds, since blur effect simulates periscopes vibrations. At higher speeds, periscopes are moved down automatically.

5. Hydrophone-Fix
Hydrophones useless when diesels are working. When snorkelling, you must stop diesels in order to use hydrophones. Otherwise you'll hear nothing. No sound contact reports when diesels are working.

6. External torpedo reload fix
  • No reload of external torpedoes possible during bad weather.
  • Speed restriction to "slow" during external reload.
  • No diving possible during reload of external torpedoes.
7. Internal torpedo reload fix
No reload of internal torpedoes during storm and when surfaced. During storm one has to dive below 16m in order to reload internal torpedoes.

8. "Crash dive blues"-Bugfix (by h.sie and Stiebler)
From now on, you don't lose control over the sub anymore if you interrupt a crash dive before the sub has reached its designated crash dive depth.

9. Watch Officer automatically moves to bridge when surfacing

The lazy watch officer now automatically moves to the bridge when surfacing.

10. Fog warning
During high time compression (TC) it can happen that suddenly heavy fog occurs (or disappears), but the player doesn't even notice it and so he won't be able to act according to that new situation. This fix reduces TC>16 to TC=16 whenever fog occurs or disappears in order to warn the player. Additionally, the watch officer reports "fog sighted" resp. "fog disappearing".

11. Oxygen-Supply - by LGN1 (idea) and h.sie (programming)
So far, SH3 models a 100% renewable oxygen (O2) supply. That means: After a long period of diving, say 40 hours, it was sufficient to surface and after that the Uboat was able to dive for 40 hours again and again. With this fix, O2 is divided into two parts: A renewable part and a non-renewable part. The renewable part is the O2 in the air of the Uboat. This part is sufficient for a diving period of about 5-7 hours. During this time the LI informs you about the O2 content of the air, starting at the normal value 21% and slowly decreasing to the critical value of 17%. At 17%, the LI automatically starts to add O2 from the oxygen-supply (contained in pressure bottles). This botteled O2 supply is sufficient for a long diving period of about 30 - 100 hours (depending on Uboat type), but that O2-supply is non-renewable! That means: It is not filled up when surfacing. Only the O2 in the air is restored to the normal value of 21% when surfacing. From now on the Player has to act economically regarding O2 supply, what adds a new strategical component to the game.

12. U-Tanker Mod - by Stiebler and h.sie
Everyone complains that, when you dock at a U-tanker in mid-ocean, you lose all your current renown/tonnage for medal purposes, you get a full refuelling, full repairs, full torpedo load-out and you lose the patrol grid which BdU ordered. No longer! With this Fix, you get only 1-4 air torpedoes, you retain the patrol grid details, you receive some repairs to your hull-integrity (but not to equipment) and you receive a fuel upgrade, of up to 30% of the full capacity.

13. BDU-Messages Mod

Instead of the monotonic 2-3 standard BDU responses to status reports, there are now 28 different messages the BDU will send, depending on your tonnage sunk, fuel supply, hull damage, remaining torpedoes.

14. Radar Fix

Radar automatically switches back to ON state, when it has been switched OFF in high waves. Additionally, now the default state is OFF when a game is loaded.

15. WarNews - by Stiebler and h.sie
TC doesn't drop down to 1 when a radio message is received.

16. Wolfpack Mod (!!!) - by h.sie (programming) and LGN1 (idea)
When you find a convoy and send a contact report, it can now happen that BDU orders to shadow the convoy and send contact reports every hour, until a wolfpack consisting of AI-Uboats has arrived and collectively attack the convoy.

17. Torpedo Failure Fix - by h.sie (programming) and LGN1 (failure model)
Models higher dud rates during the torpedo crisis until 1942, and also models duds resulting from too shallow torpedo depth settings.

18. Night Vision Fix - by Makman94, Rubini and h.sie (programming)
Reduced visible range at night.

19. Diesel Damages Fix
Risk of random diesel damages when agonizing diesels with flank speed.

20. Bad Weather Fix
Shortened time periods with heavy fog.

21. Collision Damage Fix
Enlarged damage to the Uboats pressure hull when rammed by surface ship (e.g. escort).

22. Battery Discharge Fix
No movement anymore when submerged and battery empty.

23. SalvoSelectorSwitch Bugfix
Little bugfix for Salvo selector



Compatibility with Supermods:

1) GWX: Yes.
2) NYGM: Yes - except for the longer repair times fix.
3) LSH: Not tested yet, but should work.
4) WAC: Not tested yet. Should work, if you use stock repair times instead of LRT.
5) CCom: Not tested yet, but should work.


Additional Notes:

1) Don't use any of the older LRT (Longer Repair Times) or LLRT (Little Longer Repair Times) mod.

2) Do not load save-games produced with an older version of the patched exe. I suggest to patch only when you start a new career.

3) This patch adds code to sh3.exe. Some Antivirus-Programs maybe don't like this.

4) The patcher will remove the copy protection of your sh3.exe. Since this is not legal, you must not use this patcher if you have a copy-protected version.

5) USE MY PATCHES ON YOUR OWN RISK. ALTHOUGH I TRY TO WORK ACCURATE, THERE STILL REMAINS A LITTLE CHANCE FOR A PROGRAM CRASH (CTD), WHICH COULD CORRUPT DATA.


-------------------------------------------------------------------------------------------------------
Original first post:
-----------------
Finally, I found out where in the allocated memory sh3.exe stores the amount of damage of all the uboat compartments and equipments and, much more important, I also found the assembler routines which modify the damage amount. So I was able to change the damage status, repair times and flooding level of abitrary compartments and equipments during gameplay using an little external program! For example, I set a certain 32 Bit Floating-Point value to 1.0 and immediately I heard "Periscope destroyed, captain". Setting it back to 0.0 completely repairs the periscope.
I am lightly optimistic, that realistic repair times AND realistic flooding behaviour can be done with a little assembler code. Hope I can solve the mentioned problem.
__________________
My Mediafire page: http://www.mediafire.com/hsie

Last edited by h.sie; 05-23-2012 at 02:08 AM. Reason: status change
h.sie is offline   Reply With Quote
Old 08-28-2010, 06:20 PM   #2
Stormfly
The Old Man
 
Join Date: Sep 2002
Posts: 1,391
Downloads: 348
Uploads: 0
Default

seams that youre about to open Pandora`s Box

nice that you are kind enough to find this, man what other bad things are waiting for you in it...
__________________
Stormy......


Stormfly is offline   Reply With Quote
Old 08-29-2010, 08:50 AM   #3
Myxale
Admiral
 
Join Date: Feb 2006
Location: PQ AN 25
Posts: 2,177
Downloads: 64
Uploads: 0
Default

Looks like a great find.

Usually the Longer repair time mods were a trade off, between crew eff. and flood timer!

Will stay tuned!
__________________

SH3+GWX
SH5+WoS
Still Sailing....still Deep

Myxale is offline   Reply With Quote
Old 08-29-2010, 10:21 AM   #4
ryanwigginton
Weps
 
Join Date: Apr 2007
Location: Nottinghamshire
Posts: 372
Downloads: 65
Uploads: 0
Default

Awesome! I will start playing again if you crack this bad boy.
__________________
Windows 8 Pro 64-bit, Intel Core i7-2760QM @ 2.40GHz, 8GB RAM, AMD Radeon HD 6990M
ryanwigginton is offline   Reply With Quote
Old 08-30-2010, 01:04 AM   #5
h.sie
Admiral
 
Join Date: Jul 2008
Posts: 2,192
Downloads: 131
Uploads: 0


Default

Quote:
Originally Posted by Stormfly View Post
seams that youre about to open Pandora`s Box. nice that you are kind enough to find this, man what other bad things are waiting for you in it...
Quote:
Originally Posted by ryanwigginton View Post
Awesome! I will start playing again if you crack this bad boy.
I am not interested in "bad things" or to "crack" something. But I am very much interested to fix some bugs UBI wasn't able or willing to fix. UBI promised a "realistic simulation". that promise in mind, I bought that game twice (one early version with copy protection and one without protection). but the repair times, even in the latest patched version 1.4b, are far away from being realistic. and the available repair time mods are only workarounds and have negative side-effects on flooding behaviour as another poster already wrote.

The repair times of the compartments (command-room, engine-room) cannot be changed since they are directly linked to the flooding recovery times which I won't touch. But the repair times of all the equipment (periscopes, engines, pumps) can be changed by a arbitrary constant factor. what about a factor of 60?

Repairs which take 1 minute now will then take 1 hour and so on.

Still optimistic that it will work, but I have to become familiar with some floating-point assembler commands.
__________________
My Mediafire page: http://www.mediafire.com/hsie

Last edited by h.sie; 08-30-2010 at 08:34 AM.
h.sie is offline   Reply With Quote
Old 08-30-2010, 02:32 AM   #6
nemo7
Weps
 
Join Date: Dec 2009
Location: Averof's bunk
Posts: 357
Downloads: 368
Uploads: 0
Default

This will be a revolutionary find matey! I hope you can make a go of it...
__________________
Deep into that darkness peering, long I stood there wondering, fearing,
Doubting, dreaming dreams no mortal ever dared to dream before...
nemo7 is offline   Reply With Quote
Old 08-30-2010, 04:28 AM   #7
makman94
Hellas
 
Join Date: Jul 2008
Posts: 2,258
Downloads: 156
Uploads: 7


Default

this is very interesting H.Sie ! good luck to your 'research'
__________________

Knowledge is the only thing that nobody can ever take from you...



Mediafire page
: http://www.mediafire.com/folder/da50.../Makman94_Mods
makman94 is offline   Reply With Quote
Old 08-30-2010, 05:36 AM   #8
divingbluefrog
Medic
 
Join Date: Jan 2006
Posts: 164
Downloads: 63
Uploads: 1
Default

I'm sure you are aware of this thread :
http://www.subsim.com/radioroom/showthread.php?t=172432

It changed my life. Before, I was using LRT with some tweaking of mine, essentialy to keep the fatigue model on.

Now, I just have changed this few lines in the basic.cfg file :
NumberOfCrew5=10
Interval1_5=5.1
Interval2_5=1000;6.5
Interval3_5=1400;13.7


It gives me realistic repair times, many hours for heavy damaged equipment, no influence on crew efficiency in the other Uboat's compartments, no influence on fatigue model, and flooding recovery times that seem to be realistic too, 20mn for a 1% hull damage.
divingbluefrog is offline   Reply With Quote
Old 08-30-2010, 05:48 AM   #9
Stormfly
The Old Man
 
Join Date: Sep 2002
Posts: 1,391
Downloads: 348
Uploads: 0
Default

...with "bad things", i ment of course (from the view of a hardcore simmer) poor or missing simulation features and bugs.
__________________
Stormy......


Stormfly is offline   Reply With Quote
Old 08-30-2010, 07:02 AM   #10
h.sie
Admiral
 
Join Date: Jul 2008
Posts: 2,192
Downloads: 131
Uploads: 0


Default

Quote:
Originally Posted by divingbluefrog View Post
I'm sure you are aware of this thread :
http://www.subsim.com/radioroom/showthread.php?t=172432

It changed my life. Before, I was using LRT with some tweaking of mine, essentialy to keep the fatigue model on.

Now, I just have changed this few lines in the basic.cfg file :
NumberOfCrew5=10
Interval1_5=5.1
Interval2_5=1000;6.5
Interval3_5=1400;13.7


It gives me realistic repair times, many hours for heavy damaged equipment, no influence on crew efficiency in the other Uboat's compartments, no influence on fatigue model, and flooding recovery times that seem to be realistic too, 20mn for a 1% hull damage.
Hi divingbluefrog,

I read that post, but I didn't understand it completely. Two questions:

1) Did you also change the FloodingTimes in the Zones.cfg?

2) What are the other Interval2_X and Interval3_X values in your Basic.cfg?
(X goes from 1 to 13 or so. ) Or are they all the same???

Greetings,
h.sie
__________________
My Mediafire page: http://www.mediafire.com/hsie
h.sie is offline   Reply With Quote
Old 08-30-2010, 11:56 AM   #11
LGN1
Ace of the Deep
 
Join Date: Mar 2006
Posts: 1,095
Downloads: 143
Uploads: 11
Default

Great work, h.sie

While you are at it, maybe you can find out how the CO2 level in the sub works. I think at the moment you can stay submerged only 48 hours while in real life it was more like72 hours. Would be great if this could be fixed, too.

Cheers, LGN1
LGN1 is offline   Reply With Quote
Old 08-30-2010, 12:20 PM   #12
Magic1111
Kapitänleutnant Topp
 
Magic1111's Avatar
 
Join Date: Sep 2008
Location: Germany - Sailing on U-552 in North Atlantic
Posts: 4,414
Downloads: 771
Uploads: 0


Default

Quote:
Originally Posted by h.sie View Post

Still optimistic that it will work, but I have to become familiar with some floating-point assembler commands.
Hi h.sie !

This Thread is very interesting, and I wish you good luck for your work !!!

Best regards,
Magic
Magic1111 is offline   Reply With Quote
Old 08-30-2010, 12:50 PM   #13
CherryHarbey
Engineer
 
Join Date: Jul 2010
Location: Derby, UK
Posts: 200
Downloads: 86
Uploads: 0
Default

If you can get longer repair times, without the trade off that existing mods have, that would be great. The very best of luck with your work.
CherryHarbey is offline   Reply With Quote
Old 08-31-2010, 02:54 AM   #14
divingbluefrog
Medic
 
Join Date: Jan 2006
Posts: 164
Downloads: 63
Uploads: 1
Default

Hi,

1) Yes. I still use the zones.cfg provided by Nvdrifter in Drifter's Realism Mod v1.02a

2) The other values of Interval2_x and Interval3_x are pure stock, except for NumberOfCrew3 and 10 which Interval3_x values were inverted, so I made the correction.

Hope this helps.
divingbluefrog is offline   Reply With Quote
Old 08-31-2010, 06:01 AM   #15
h.sie
Admiral
 
Join Date: Jul 2008
Posts: 2,192
Downloads: 131
Uploads: 0


Default

it's getting better and better. I don't even have to patch the sh3.exe directly to apply the corrected assembler routines. using auto-assembler, they can be applied dynamically at game launch time to the sh3 routines in RAM. so I don't risk to get banned from this forum.

All seems to work well, but I still have to make some tests.

I have to damp down my euphoria, because these instant repair times bother me for 2 years now and the solution seems to come nearer and nearer.
__________________
My Mediafire page: http://www.mediafire.com/hsie

Last edited by h.sie; 08-31-2010 at 07:10 AM.
h.sie is offline   Reply With Quote
Reply

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 08:43 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © 1997- 2017 Subsim