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

Reply
 
Thread Tools Display Modes
Old 04-21-11, 03:26 PM   #1
h.sie
Admiral
 
Join Date: Jul 2008
Posts: 2,192
Downloads: 135
Uploads: 0


Default

@USNSRCaseySmith: As SqareSteelBar wrote: use Stieblers great HSieOptionsSelector to apply the 4GB patch.

Being able to modify hardcode opens all possibilities. In my tests for a bouyancy mod I could even make the Uboat fly. Wolfpacks are possible. One can even make sh3.exe to act like a table calculation instead of a Uboat sim. All can be done now - In theory!

In practice I have to restrict on easy-to-fix realism related modifications. I won't spend any time for graphical stuff, because that's hard to do in assembler and in my opinion SH3's graphics are okay and I don't care wheather ships have long or short wakes or similar.

Without SDK and with my restricted insight into the code, I can only change a game variable (say: speed) in dependency of another variable (say: windspeed). That's possible. Other stuff is much harder to do. Automatically moving the 1WO to the bridge, for example, took 2 months.

Hope you like my fixes.
h.sie
__________________
My Mediafire page: http://www.mediafire.com/hsie
h.sie is offline   Reply With Quote
Old 04-21-11, 04:11 PM   #2
Magic1111
Silent Hunter
 
Join Date: Sep 2008
Location: Germany - Sailing on U-96 in North Atlantic
Posts: 4,516
Downloads: 784
Uploads: 0


Default

Quote:
Originally Posted by h.sie View Post
Automatically moving the 1WO to the bridge, for example, took 2 months.
h.sie
Yepp, that´s was a really breakthrough in SH3 Modding !!!
Wonderful work h.sie, I would never played without your patch !!!

Best regards,
Magic
__________________
Magic1111 is offline   Reply With Quote
Old 04-21-11, 05:38 PM   #3
Salvadoreno
Grey Wolf
 
Join Date: May 2005
Posts: 887
Downloads: 119
Uploads: 0
Default

What a breakthrough! Amazing!!!

Unfortunately the readme, foR SOME reason, wont open . Ive downloaded 3 times but no txt program i have can run it...

Can somebody explain, in laymen terms, how to install this patch without exploding my comp. Ive finally got my mods in order and would love to add this fix on top of my mods, without creating CTDs in current game. Of course i will install in port after my current patrol.
__________________
Salvadoreno is offline   Reply With Quote
Old 04-21-11, 05:57 PM   #4
Wreford-Brown
Sea Lord
 
Join Date: Nov 2007
Location: In sight of Stonehenge
Posts: 1,749
Downloads: 51
Uploads: 26
Default

Quote:
Originally Posted by Salvadoreno View Post
What a breakthrough! Amazing!!!

Unfortunately the readme, foR SOME reason, wont open . Ive downloaded 3 times but no txt program i have can run it...

Can somebody explain, in laymen terms, how to install this patch without exploding my comp. Ive finally got my mods in order and would love to add this fix on top of my mods, without creating CTDs in current game. Of course i will install in port after my current patrol.
Cut straight from the Readme:

Quick Manual: Patching SH3.EXE


1) Create empty Working Directory somewhere on your Disk (where you have write permission.)

2) Download latest V15_Patch-Kit archive and extract all contained files into the Working Directory.

3) Copy your original (unpatched) sh3.exe into that Working Directory.

4) Start Patch_SH3.bat. If your sh3.exe is compatible, it will be patched. Otherwise not. Before patching, the skript automatically makes a backup of your original file called sh3.old.

5) If step 4 was successful, your new sh3.exe contains ALL of the fixes!

6) Start HsieOptionsSelector.exe in order to individually enable/disable the fixes as you like. This tool also allows to apply the 4GB-Patch.

7) Install necessary additional files contained in the mod called Supplement to V15 (JSGME) using JSGME.

8) Copy patched sh3.exe back into your SH3-Installation (and store your original file sh3.old in case you don't like my work and want to reverse all changes) .


Documentation / Information

See 1st post of the Subsim-Thread
http://www.subsim.com/radioroom/showthread.php?t=174225

See also help file HSIEoptions.chm.


Important Notes

· You MAY NOT use this patching system in order to disable any copy protection, because that is illegal. So before patching, please read the EULA of your software to find out if your sh3 version uses copy protection or not.


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


· USE ON YOUR OWN RISK!


Credits

Many thanks to Stiebler for co-operation regarding some fixes and his comfortable HsieOptionsSelector.

Hope you like it!
h.sie

Sorry
__________________

All my mods are available at MediaFire:
SH3 Mods
Other modders SH3 mods
SH4 Mods
...you can't please all of the people all of the time...
Wreford-Brown is offline   Reply With Quote
Old 04-21-11, 06:00 PM   #5
reignofdeath
Stowaway
 
Posts: n/a
Downloads:
Uploads:
Default

Quote:
Originally Posted by h.sie View Post
@USNSRCaseySmith: As SqareSteelBar wrote: use Stieblers great HSieOptionsSelector to apply the 4GB patch.

Being able to modify hardcode opens all possibilities. In my tests for a bouyancy mod I could even make the Uboat fly. Wolfpacks are possible. One can even make sh3.exe to act like a table calculation instead of a Uboat sim. All can be done now - In theory!

In practice I have to restrict on easy-to-fix realism related modifications. I won't spend any time for graphical stuff, because that's hard to do in assembler and in my opinion SH3's graphics are okay and I don't care wheather ships have long or short wakes or similar.

Without SDK and with my restricted insight into the code, I can only change a game variable (say: speed) in dependency of another variable (say: windspeed). That's possible. Other stuff is much harder to do. Automatically moving the 1WO to the bridge, for example, took 2 months.

Hope you like my fixes.
h.sie
Well thats good then. Heres to more success and whatever other progress you have in store for the modding of the hard code!
  Reply With Quote
Old 04-21-11, 10:18 PM   #6
panzerschutze12ss
Watch
 
Join Date: Jan 2007
Posts: 30
Downloads: 648
Uploads: 0
Default

Could it be possable to fix the lazy helmsmen bug?
panzerschutze12ss is offline   Reply With Quote
Old 04-22-11, 03:45 AM   #7
h.sie
Admiral
 
Join Date: Jul 2008
Posts: 2,192
Downloads: 135
Uploads: 0


Default

please describe the "lazy helmsman bug".....
__________________
My Mediafire page: http://www.mediafire.com/hsie
h.sie is offline   Reply With Quote
Old 04-22-11, 04:18 AM   #8
makman94
Hellas
 
Join Date: Jul 2008
Posts: 2,294
Downloads: 184
Uploads: 7


Default

Quote:
Originally Posted by h.sie View Post
please describe the "lazy helmsman bug".....
hello H.Sie ,

i think he means this time delay that officers have at executing orders.
would be very nice (if it is easy 'fix') to make them execute immediatelly (especially the rudders orders time delay is very annoying)

also, have a look , (if it easy to find out) to make the boat turning at the ordered new course (it is ending with 1 to 1,5 degrees off most of the times)
__________________
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 04-22-11, 05:23 AM   #9
Kaleun Cook
Chief
 
Join Date: Apr 2007
Location: ger
Posts: 313
Downloads: 25
Uploads: 0
Default

Quote:
please describe the "lazy helmsman bug".....
I had to search the forum to find out what was meant and found this:
http://www.subsim.com/radioroom/showthread.php?t=182071

Quote:
Originally Posted by panzerschutze12ss
With the advent of patching the SHIII.exe file. Is it possable to be able to fix the lazy Helmsman now? As we know if you are navigating for a long distance without the using of the the ploting waypoint tool in a storm your helmsman is unable to keep his course. He will just sit there and let your boat drift off coures to nowhere (till he hits the English coast). Now in real life the boat will drift or slip do to the currents (not modeled in SHIII). But the helmsman would still keep you moving in the right direction. Could this be fixed now. It has been awhile since I played SH4 but my memory recalls that you did not have this problem in stormy seas, in fact the exact oposite in that the sub was on rails and never drifted of coures. Now that is not realistic either but i would take that over what we have now.
Kaleun Cook is offline   Reply With Quote
Old 04-22-11, 11:20 AM   #10
Pisces
Silent Hunter
 
Join Date: Dec 2004
Location: AN9771
Posts: 4,839
Downloads: 309
Uploads: 0
Default

Quote:
Originally Posted by h.sie View Post
please describe the "lazy helmsman bug".....
Quote:
Originally Posted by Kaleun Cook View Post
I had to search the forum to find out what was meant and found this:
http://www.subsim.com/radioroom/showthread.php?t=182071
Yes, that is it. As soon as the commanded course is achieved (or within some margin) the guy takes the day off. He just won't keep adjusting the rudder to keep the course. After that ownship course is left to the effects of wave-action and what not. Dereliction of duty, I say. Dead-reckoning navigation over long time periods is useless. He constantly homes in on waypoints, but not this. Would be great if you could build a PID-controller in his brain.

[EDIT] Warning, feature creep! With improvements based on experience!?!
__________________
My site downloads: https://ricojansen.nl/downloads

Last edited by Pisces; 04-22-11 at 11:31 AM.
Pisces is offline   Reply With Quote
Old 04-22-11, 08:33 AM   #11
h.sie
Admiral
 
Join Date: Jul 2008
Posts: 2,192
Downloads: 135
Uploads: 0


Default

I not seldom get requests via PM to mod some graphical stuff and my answer is NO. In order to give you an impression how hard this would be in assembler, I decided to post the assembler sources that are necessary for a simple graphical fix: Move the Watch Officer up to the bridge when surfacing. Maybe you understand now why I'm not cooperative.

//---------------------------------------------------------------
// Patch 7:
// Automatically move 1WO on bridge when surfacing
//---------------------------------------------------------------
patch7:
cmp byte ptr [Move1WO_Switch],0FF // Test Patch ON/OFF switch
jne patch7_ende

// Local Definitions / Pointers
define(Bridge_Status,05f6270)
define(Bridge_Data,05f6238)
define(BowQuarters_Status,05f6990)
define(BowQuarters_Data,05f6958)
define(SternQuarters_Status,05f6a74)
define(SternQuarters_Data,05f6a3c)

// Check if Officer-Slot on the bridge changes from invisible
// to visible. Only in this case: Try to move 1WO to the bridge
mov eax,[5449B0] // Prepare ptr to OfficerSlotBridgeVisible
mov eax,[eax+100] // Prepare ptr to OfficerSlotBridgeVisible
mov eax,[eax+1D38] // Prepare ptr to OfficerSlotBridgeVisible
mov bh,[eax+8C] // Load OfficerSlotBridgeVisible -> BH
mov bl,[OfficerSlotBridgeVisible_Old] // Load old value -> BL
mov [OfficerSlotBridgeVisible_Old],bh // Save current value as old value
cmp bx,0100 // Change from invisible to visible ??
jne patch7_ende // If not: exit patch

// OfficerSlotBridgeVisible changed from invisible to visible.
// First test if Officer Slot on bridge is empty.
cmp [Bridge_Status],(int)-1 // Is Officer Slot on bridge is empty?
jne patch7_ende // If not: exit patch

// Check if Turm damage is < 0.9 (Observations showed that Turm damage can
// be accessed via one of the following 2 pointers:
// Ptr1: Static=5547D4 Offsets: 4,14,14 OR
// Ptr2: Static=5547D4 Offsets: 14,14.
// If the difference of the 2 addresses referenced by these 2 pointers is
// smaller that 0x1000, then (according to observations), Ptr1 is the
// correct pointer, otherwise Ptr2.
mov eax,[5547D4] // Prepare Ptr1 and Ptr2
mov ebx,[eax+4] // Prepare Ptr1
mov ebx,[ebx+14] // Now [ebx+14] holds 1st possible address of Turm damage (Ptr1)
mov ecx,[eax+14] // Now [ecx+14] holds 2nd possible address of Turm damage (Ptr2)
// Now calculate eax = abs(ptr1-ptr2) = abs([ebx+14]-[ecx+14]) = abs(ebx-ecx)
mov edx,ecx
mov eax,ebx
sub eax,edx
cdq
xor eax,edx // now eax = abs(ptr1-ptr2)
// compare abs(ptr1-ptr2) with 0x1000
cmp eax,01000
jb short patch7_continue
mov ebx,ecx // Use Ptr2 instead of Ptr1
patch7_continue:
// [ebx+14] now holds the correct address of turm damage

fld dword ptr [ebx+14] // Load Turm Damage -> FPU
mov [esp-04],(float)0.9 // Load 0,9 for comparison
fcomp dword ptr [esp-04] // Compare with 0,9
fstsw ax
sahf
jae patch7_ende // If Turm damage >= 0,9 : exit patch
// Now: Officer Slot on bridge is empty and Turm Damage < 0,9

// Check if Bow Quarters contains an Officer
cmp [BowQuarters_Status],(int)-1 // If there is no Officer in Bow Quarters
je short Test_SternQuarters // Check if Stern Quarters contains Officer

// Bow Quarters contains Officer. Move him to the bridge.
mov esi,BowQuarters_Data // ptr to data transfer source -> ESI
mov edi,Bridge_Data // ptr to data transfer destination -> EDI
mov ecx,039 // 0x39 DWORDS to transfer
cld // Increment ESI and EDI after each transfer
repe movsd // Execute data transfer
mov [BowQuarters_Status],(int)-1 // Set Bow Quarters status to "No Officer"
mov [Bridge_Status],0 // Set Bridge status to "Officer present"
jmp short Refresh_Crew_Screen // Refresh Crew Screen if necessary

// Check if Stern Quarters contains an Officer
Test_SternQuarters:
cmp [SternQuarters_Status],(int)-1 // If there is no Officer in stern Quarters:
je short patch7_ende // ... -> exit patch

// Stern Quarters contains Officer. Move him to the bridge.
mov esi,SternQuarters_Data // ptr to data transfer source -> ESI
mov edi,Bridge_Data // ptr to data transfer destination -> EDI
mov ecx,039 // 0x39 DWORDS to transfer
cld // Increment ESI and EDI after each transfer
repe movsd // Execute data transfer
mov [SternQuarters_Status],(int)-1 // Set Stern Quarters status to "No Officer"
mov [Bridge_Status],0 // Set Bridge status to "Officer present"
jmp short Refresh_Crew_Screen // Refresh Crew Screen if necessary

// Refresh Crew Screen if necessary
Refresh_Crew_Screen:
mov eax,[6307BC] // Prepare ptr to current screen ID
cmp [eax+50],030 // Is Crew/Damage Screen visible
jne short patch7_ende // If not: No refresh necessary. Exit
// Crew Screen is visible. Do a refresh by changing to NavMap screen
// and immediately switch back to Crew Screen
mov ecx,[6307BC] // Prepare "Change Screen" call
push 0 // Prepare "Change Screen" call
push 0 // Prepare "Change Screen" call
push 040024 // Choose "NavMap"
call 50fef0 // call "Change Screen"
mov ecx,[6307BC] // Prepare "Change Screen" call
push 0 // Prepare "Change Screen" call
push 0 // Prepare "Change Screen" call
push 040030 // Choose "Crew Screen"
call 50fef0 // call "Change Screen"

patch7_ende:
__________________
My Mediafire page: http://www.mediafire.com/hsie
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 04:06 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.