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 05-03-17, 05:42 PM   #1
Tycho
Sonar Guy
 
Join Date: Oct 2009
Location: Sofia, Bg
Posts: 384
Downloads: 264
Uploads: 1


Default Tycho Sh3 Patch




Tycho Sh3 Patch



This is "sh3.exe" patch, that change some bytes values in the file, to give you control over things, that is not possible through usual modding.
It is compatible with everything, but if you use "H.Sie patch" and "Stiebler add-on", "TychoSh3Patch" must be installed last.
This patch will not work by default with Steam version of the "sh3.exe"! In order to use it, you must first apply "H.Sie patch".



Instruction:


 


This patch will change your "sh3.exe" file.
You have to follow some rules, to avoid possible problems:
1. Archive and keep somewhere safe your original "sh3.exe" file.
2. There are other patches, that make changes to the "sh3.exe" file, like "Hardcode fixes (H.Sie)" and "Add-on for hardcore fixes (Stiebler)", install these before my patch.
3. When you are dealing with such patches, you must always start from original "clean" "sh3.exe" file.
Here I think of four variants:
  • Your SH3 is not Steam version, and you do not use "H.Sie fixes" and "Stiebler add-on": you take your original "sh3.exe" and patch it with my patch.
  • You use "H.Sie fixes": you take your original "sh3.exe" and patch and set-up it according to H.Sie's instructions. After that you copy this already patched "sh3.exe" file and patch it with my patch.
  • You use "H.Sie fixes" and "Stiebler add-on": you take your original "sh3.exe" and patch it with "H.Sie fixes", then patch and set-up it with "Stiebler add-on", according to Stiebler's instructions. After that you copy this already patched "sh3.exe" file and patch it with my patch.
  • If you use the Steam version of the game. You must first use the "Hardcode fixes (H.Sie)" before my patch. "Add-on for hardcore fixes (Stiebler)" is optional, but also before my patch.



How to install:


 


Download link
Extract the "WorkFolder", there must have four files:
  • binpatch.exe
  • Remove.bat
  • TychoSh3Patch.bat
  • TychoSh3Patch.map
Copy your "sh3.exe" file and paste it here, in "WorkFolder".
Start the file: "TychoSh3Patch.bat"
After "sh3.exe" is patched, copy the file back to the game folder (or mod-folder for JSGME install).

Many things in this patch are colors, so the colors are picked according to my personal preferences, and to fit with my installation.
It also come with two additional files (again, my personal preferences), ready for JSGME install:
- "StrTactMap.tga", transparent layer over the map that is supposed to give feeling of paper.
- "Terrain.act", map colors gradient, determines colors on map for different water depths and different terrain highs.
You can use this JSGME ready folder to install already patched sh3.exe. Put it before the "data" folder and activate it with JSGME.




How to edit (if you want personal adjustments):


 


Many things in this patch are colors, so you can change the colors to your desire. It is very simple, but you must know or learn, what the hex values are.
The file "TychoSh3Patch.map" contain all the changes. This is text file, open and edit it with notepad.
You will see many lines, like:
000AA535: 88 ff
000AA536: 55 18
000AA537: 55 1d
000AA538: 55 ba
This is: Go to address: 000AA535, original byte: 88, change to byte: ff
Do not change the address and original byte!!!
All other lines that start with @@@ or # are comments, and don't do anything. These are used to describe and separate things.
If you edit the patch yourself, and for example, in process of testing different colors, you want to change something, don't patch already patched "sh3.exe", always start from unpatched by "TychoSh3Patch" copy.
Or first use the "Remove.bat" file, to reverse the changes.

Example for change colors:
You must first know the hex value for desired color.
Most graphic editors have field for the color in hex values. If not, the internet is full of such converters.



Then, the words in ".exe" file are in reverse order, you need to read backwards.
If your color choice is RGBA: 1F45B4FF
In .exe it must be ABGR: FF B4 45 1F
Be careful, to not change a byte value itself, B4 must stay B4 not 4B.
So, in "TychoSh3Patch.map" you edit it, like:
000AA535: 88 ff
000AA536: 55 b4
000AA537: 55 45
000AA538: 55 1f

Some options in "TychoSh3Patch.map" are in disabled form, have "@@@" in front of the addresses. These are strictly for modders or in case of "a.g. mouse sensitivity patch", you must choose one of the options, and to uncomment only it:
  • Because it is more easy to patch it all in one, my patch also contain "a.g. mouse sensitivity patch": Subsim Thread.
    But for you it is in disabled form, all addresses line are commented with "@@@". Choose your desired slow down speed, then delete the "@@@" in front of the four addresses lines below.
  • Patch for default hardcoded scopes reticle is also in disabled form, because it is highly GUI dependant. If your GUI modder tell you so, delete the "@@@" in front of the addresses lines to get rid of these reticle.
  • Patch for extended map render is only if the GUI is HD and is set-up for this, otherwise is not needed, so in disabled form. To activate it, delete the "@@@" in front of the addresses lines.
  • You can disable/enable other options this way, just put or remove "@@@" in front of the addresses.




All my changes!!!

I - Colors:


 

1. Map border lines:
Nothing important here, map border lines are the three lines (one with two pixels and two with one pixel), that are placed around the map.
 



2. Map scale lines:
These are the lines, that appear on more close zoom, when the map zoom level goes from km to meters. I don't like that, prefer more clear map.
 

Before:

After:


3. Map scale numbers:
Nothing important here, these are colors for the digits and letters, that are used on map scale legend.
 



4. Equator and Greenwich lines:
 



5. Grid lines:
The colors of the lines, that form the Kriegsmarine grid system.
 



6. Grid letters and numbers:
The colors of the letters and digits, that are used for the Kriegsmarine grid system.

7. Map tools drawing:
The colors of the lines, that are drawing by the map tools. These are for when you draw or when you point something with the tool.

8. Map tools already drawn:
The colors of the lines, that are drawn by the map tools. These are for when are already drawn and just stay on the map.

9. Map tools highlight:
The colors of the lines, that are drawn by the map tools. These are for when you choose the tool, then all that is drawn by this tool will be highlighted with this color.

10. Course line highlight:
Color for highlighting the course line between boat and 1st waypoint.
 


*

*

*

*





II - Settings:


 

1. StrTactMap.tga:
This gives you the opportunity to adjust StrTactMap.tga opacity.

2. Long/Lat degrees label:
When the map zoom is on km level, the scales on the borders of the map represent longitude and latitude in degrees.
This will add numbers to these degrees, so it is now very easy to define geographic coordinates.
 

3. Map tools, number of decimal digits:
These gives you the opportunity to choose, how many digits you want after decimal point. That give you precision of measuring distances and angles.
Originally, for the tools are allowed only one digit after decimal point. This way, incorrect distances are showing.
For example between 250 and 300 meters you will see 0.3, now with 3 digits after decimal, it will be: 0.274
 

Before:

After:


4. Ruler line scale-rhombs:
These are the rhombs, that are placed on the ruler line, to distances equal to the map scale. My choose is to get rid of these.
 

Before:

After:


5. Sizes of begin\end - mark\arrow of the tools:
Marker mark size, ruler line start and end with cross "+", compass line start with "+" and end with arrow ">"...., the size for these things.

6. Expand Nav and Attack maps render limit:
From 1024x1024 to 2048x2048. In disabled form, because it is highly GUI dependant. To activate it, uncomment the addresses lines.
This only expand the limits. For desired resolution you set-up the "maps.cfg" file.

7. Scopes reticle:
Default hardcoded scopes reticle. In disabled form, because it is highly GUI dependant. Complete freedom, to make whatever reticle you want through ".tga" file.
 

UZO, this is not possible without "sh3.exe" editing:


8. Sea foam below 9 m/s:
Gives you the opportunity to choose, from what wind speed to start showing the sea foam.
 



9. Fixed intersection between upgrade page, equip option "none" and weather report, fog state "none".
 



Change the equip option "none" from string "4100=" to string "2800=" in en_menu.txt
Now you can have whatever weather report format you prefer, and this will not look strange in the upgrade page.

Bonus, my weather report format:
 

Code:
;; 3-Fog
4100=, Vis. good
4101=, Vis. moderate
4102=, Vis. bad
4103=, Vis. zero

;; 1-Clouds
4110=Blue sky
4111=Partly cloudy
4112=Overcast

;; 2-Rain
4120=
4121= (rain)
4122= (rain squall)

4128=%s%s%s|Wind speed: %d m/s, direction %3d°

10. a.g. mouse sensitivity patch:
Gives you the opportunity to choose the mouse sensitivity. In disabled form, because it is highly dependant of your mouse and its settings.


Tycho
__________________
If you ride like lightning, you're gonna crash like thunder.

Last edited by Tycho; 11-13-18 at 08:18 AM. Reason: new version
Tycho is offline   Reply With Quote
Old 05-03-17, 11:09 PM   #2
hauangua
Grey Wolf
 
hauangua's Avatar
 
Join Date: Jul 2011
Location: Verona, Italy
Posts: 926
Downloads: 1411
Uploads: 0
Default

Can this mod work with Stiebler patch?
__________________
Parked under the balcony with my U-27 waiting Juliet finish makeup
hauangua is offline   Reply With Quote
Old 05-04-17, 12:33 AM   #3
HW3
Navy Seal
 
Join Date: Apr 2005
Location: Gresham Oregon
Posts: 6,510
Downloads: 453
Uploads: 0


Default

Yes, there are instructions included in the readme on how to do it.
__________________


"Some ships are designed to sink...others require our assistance." Nathan Zelk
HW3 is offline   Reply With Quote
Old 05-04-17, 12:55 AM   #4
hauangua
Grey Wolf
 
hauangua's Avatar
 
Join Date: Jul 2011
Location: Verona, Italy
Posts: 926
Downloads: 1411
Uploads: 0
Default

Quote:
Originally Posted by HW3 View Post
Yes, there are instructions included in the readme on how to do it.
Thanks HW3
__________________
Parked under the balcony with my U-27 waiting Juliet finish makeup
hauangua is offline   Reply With Quote
Old 05-05-17, 01:50 PM   #5
Andy 01288
Swabbie
 
Join Date: Oct 2014
Location: England
Posts: 7
Downloads: 184
Uploads: 0
Default At last......

THANK YOU TYCHO! Very much. Fanbloodytastic I reckon.
Proper plotting at last.....

Regards,

Andy 01288
Andy 01288 is offline   Reply With Quote
Old 05-05-17, 06:20 PM   #6
makman94
Hellas
 
Join Date: Jul 2008
Posts: 2,325
Downloads: 182
Uploads: 7


Default

EXCELLENT ....just excellent !

i really missed the decimal digits to degrees tool and a precission to the circle tool BUT....,especially, this ruler is AVESOME (no need of the Malloy's 'heavy' on screen tool anymore) ....great job Tycho,just GREAT !


thank you for sharing all this stuff mate (all features are really great in there)
__________________
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 05-05-17, 06:25 PM   #7
álvaro
Torpedoman
 
Join Date: Mar 2010
Posts: 112
Downloads: 1474
Uploads: 0
Default

@Tycho:

It´s Fantastic!! Excellent!! Perfect!!

__________________
NYGM Tonnage War Mod - More than a mod: it's an experience!
álvaro is offline   Reply With Quote
Old 05-06-17, 02:25 AM   #8
Kendras
Stowaway
 
Posts: n/a
Downloads:
Uploads:
Icon9

Hi,

I followed your instructions, but when I start the .bat file, I get this error message :

a8911: 80 c0, but currently 1F

Fail.


Any idea ?
  Reply With Quote
Old 05-06-17, 03:54 AM   #9
Tycho
Sonar Guy
 
Join Date: Oct 2009
Location: Sofia, Bg
Posts: 384
Downloads: 264
Uploads: 1


Default

Quote:
Originally Posted by Kendras View Post
but when I start the .bat file, I get this error
Are this for first time? Or you try to edit and patch already patched exe?
If you make some editings you need always patch the unpatched by Enhanced Map Drawing sh3.exe file.
__________________
If you ride like lightning, you're gonna crash like thunder.
Tycho is offline   Reply With Quote
Old 05-06-17, 03:58 AM   #10
Kendras
Stowaway
 
Posts: n/a
Downloads:
Uploads:
Default

Quote:
Originally Posted by Tycho View Post
Are this for first time? Or you try to edit and patch already patched exe?
If you make some editings you need always patch the unpatched by Enhanced Map Drawing sh3.exe file.
Yes, first time I try to open your .bat file. SH3.exe is not patched with H.Sie nor Stiebler.

My SH3 is a Steam version.
  Reply With Quote
Old 05-06-17, 04:27 AM   #11
Tycho
Sonar Guy
 
Join Date: Oct 2009
Location: Sofia, Bg
Posts: 384
Downloads: 264
Uploads: 1


Default

Quote:
Originally Posted by Kendras View Post
Yes, first time I try to open your .bat file. SH3.exe is not patched with H.Sie nor Stiebler.

My SH3 is a Steam version.
Now I see that the Steam sh3.exe is different.
So, this patch is not for Steam version.
Till tomorrow will make it for Steam.
__________________
If you ride like lightning, you're gonna crash like thunder.
Tycho is offline   Reply With Quote
Old 05-06-17, 07:13 AM   #12
Tycho
Sonar Guy
 
Join Date: Oct 2009
Location: Sofia, Bg
Posts: 384
Downloads: 264
Uploads: 1


Default

Quote:
Originally Posted by Kendras View Post
My SH3 is a Steam version.
Quote:
Originally Posted by Tycho View Post
Now I see that the Steam sh3.exe is different.
So, this patch is not for Steam version.
Till tomorrow will make it for Steam.
Oops!
For Steam users:
It will be too complicated to make it for patch that is intended only to change some byte values here and there. As has said, I am not competent for this.
But don't worry, there have a solution. For Steam users, you need to patch the sh3.exe first with "H.Sie fixes" and if desired "Stiebler Add-on". Then, the sh3.exe will be ready for my patch.
In any case, I can not imagine how someone will play the game without "H.Sie fixes" and "Stiebler Add-on", this is inhuman.
__________________
If you ride like lightning, you're gonna crash like thunder.
Tycho is offline   Reply With Quote
Old 05-06-17, 09:50 AM   #13
Kendras
Stowaway
 
Posts: n/a
Downloads:
Uploads:
Default

Quote:
Originally Posted by Tycho View Post
Oops!
For Steam users:
It will be too complicated to make it for patch that is intended only to change some byte values here and there. As has said, I am not competent for this.
But don't worry, there have a solution. For Steam users, you need to patch the sh3.exe first with "H.Sie fixes" and if desired "Stiebler Add-on". Then, the sh3.exe will be ready for my patch.
In any case, I can not imagine how someone will play the game without "H.Sie fixes" and "Stiebler Add-on", this is inhuman.
OK. It works for me. Can I delete the sh3.exe.bak file ?
  Reply With Quote
Old 05-06-17, 11:57 AM   #14
Tycho
Sonar Guy
 
Join Date: Oct 2009
Location: Sofia, Bg
Posts: 384
Downloads: 264
Uploads: 1


Default

Quote:
Originally Posted by Kendras View Post
Can I delete the sh3.exe.bak file ?
Yes, just always keep your original sh3.exe somewhere safe.


Let's discuss something. Soon I will make new version.
There I choose to get rid of these rombs on the ruler line.
I make it by multiplay the distance where these will be puts by 100000 times.
So, now only one romb will appears if you have line over 25000 km and you are zoomed on 250 meters map scale. For all other cases, are not enough space in the world. My max zoom is limited to 500 meters map scale, so I will not have a single romb, irrespective of the distance of the line. The final distance on the end of the line will stay.

But, by this multiplication have other possibilities, for example, to make the rombs to appears on nautical mile scale. Like on this screen, the final distance on the line is in meters but the rombs are placed on 5 and 10 miles.

 


It is also valid for the final distances. I can make one or two of the range tools, to be measured in nautical miles. Will not make it for myself, I like it in meters, but I'm telling you about the possibilities.
Here, the ruler is in meters, the compass is in nm and show 1 nm.
 
__________________
If you ride like lightning, you're gonna crash like thunder.
Tycho is offline   Reply With Quote
Old 05-06-17, 12:45 PM   #15
Kendras
Stowaway
 
Posts: n/a
Downloads:
Uploads:
Default

I would like the compass in meters.

I would like the ruler in nautical miles for the rombs, and in meters for the final distance.

One question : How do you convert a specific color into bytes ?
  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 05:58 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.