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 02-03-21, 06:18 PM   #1
Viktor_Prien
Navy Dude
 
Join Date: Jan 2010
Location: Italy
Posts: 178
Downloads: 313
Uploads: 0
Default Help with HEX Values

I would like to set the black colour for certain features of the map tools ( Otherwise the current light grey used is so faint that I can barely see the number values, for example after I draw a line with the ruler on the navigation map ) but I'm a total Hex editor nerd so I need some help.

Could please some good and gentle soul write me the correct code that I should put in the HEx editor to have the lines of interest displayed in black colour?

Here is what I get from the hex editor for the address of interest. If there are other lines lines/addresses I should edit, please write them, thanks.


Description: Marks
Address: 0x103F95
Code currently displayed in the Hex editor: 33 C0 C7 41 3C BB 44 44 44 89 41 2C 89 41 28 C2
The value I should add:

Description: New Marks
Address: 0x104489
Code currently displayed in the Hex editor: 4C 24 38 EB 08 C7 44 24 38 FE 11 11 88 8B 0D 60
The value I should add:

Description: New Ruler Line
Address: 0x104A84
Code currently displayed in the Hex editor:C7 44 24 20 FE 11 11 88 8B 15 34 5A 8A 00 D9 C9
The value I should add:

Description: Protractor Placed Mark
Address: 0x1055FF
Code currently displayed in the Hex editor:3B D0 74 0A 3B 53 48 74 05 8B 5B 3C EB 05 BB FE
The value I should add:

Description: Compass Placed Mark
Address: 0x105945
Code currently displayed in the Hex editor:33 C0 C7 41 3C BB 44 44 44 89 41 2C 89 41 28 89
The value I should add:

Description: Protractor New Placed Mark
Address: 0x105DF5
Code currently displayed in the Hex editor:C2 C7 44 24 40 FE 11 11 88 8B 15 DC 59 8A 00 D9
The value I should add:

Many thanks in advance to the " game files guru " that will help me!
Viktor_Prien is offline   Reply With Quote
Old 02-04-21, 12:59 AM   #2
Rosomaha
Loader
 
Join Date: Nov 2012
Location: Russia
Posts: 83
Downloads: 72
Uploads: 1
Default

I'm not a "guru", but the first question is: which particular file are you trying to edit?
Rosomaha is offline   Reply With Quote
Old 02-04-21, 02:08 AM   #3
Viktor_Prien
Navy Dude
 
Join Date: Jan 2010
Location: Italy
Posts: 178
Downloads: 313
Uploads: 0
Default

It's the SH5 .exe file.

I'm trying to follow the instructions indicated in this thread ( https://www.subsim.com/radioroom/sho...d.php?t=192896, see reply #2 ) but I do not know what are the values I have to set to change the colour to black.
Viktor_Prien is offline   Reply With Quote
Old 02-04-21, 04:27 AM   #4
gap
Navy Seal
 
Join Date: Jan 2011
Location: CJ8937
Posts: 8,214
Downloads: 793
Uploads: 10
Default

Wasn't there an option for recoloring those texts among TDW's patches?
__________________
_____________________
|May the Force be with you!|
...\/
gap is offline   Reply With Quote
Old 02-04-21, 06:25 AM   #5
Rosomaha
Loader
 
Join Date: Nov 2012
Location: Russia
Posts: 83
Downloads: 72
Uploads: 1
Default

Now clear. In principle, all the necessary instructions have already been given there, I have little idea what can be added.
You need to change the 4 bytes (XX XX XX XX) responsible for the color in the specified address lines. (# FF222222, BB444444, FE111188, EE000000, …). If change on black : on FF000000, or FE000000, or 00000000, … or your other version of black.

For example:

Quote:
Description: Marks
Address: 0x103F95
Code currently displayed in the Hex editor: 33 C0 C7 41 3C BB 44 44 44 89 41 2C 89 41 28 C2
The value I should add:
33 C0 C7 41 3C FF 00 00 00 89 41 2C 89 41 28 C2

Quote:
Description: Protractor Placed Mark
Address: 0x1055FF
Code currently displayed in the Hex editor: 3B D0 74 0A 3B 53 48 74 05 8B 5B 3C EB 05 BB FE 11 11 88 (?)
111188
The value I should add:
3B D0 74 0A 3B 53 48 74 05 8B 5B 3C EB 05 BB FF 00 00 00

Quote:
Description: Compass Placed Mark
Address: 0x105945
Code currently displayed in the Hex editor: 33 C0 C7 41 3C BB 44 44 44 89 41 2C 89 41 28 89
The value I should add:
33 C0 C7 41 3C FF 00 00 00 89 41 2C 89 41 28 89

...etc
Rosomaha is offline   Reply With Quote
Old 02-04-21, 08:55 AM   #6
Viktor_Prien
Navy Dude
 
Join Date: Jan 2010
Location: Italy
Posts: 178
Downloads: 313
Uploads: 0
Default

Quote:
Originally Posted by Rosomaha View Post
Now clear. In principle, all the necessary instructions have already been given there, I have little idea what can be added.
You need to change the 4 bytes (XX XX XX XX) responsible for the color in the specified address lines. (# FF222222, BB444444, FE111188, EE000000, …). If change on black : on FF000000, or FE000000, or 00000000, … or your other version of black.

For example:


33 C0 C7 41 3C FF 00 00 00 89 41 2C 89 41 28 C2


3B D0 74 0A 3B 53 48 74 05 8B 5B 3C EB 05 BB FF 00 00 00



33 C0 C7 41 3C FF 00 00 00 89 41 2C 89 41 28 89

...etc
First of all thanks for your help!!!!! You're great Herr Kaleun!

Second: I'm an idiot...I have now ( finally!!!) understood how it works ( Again thanks to you! )


There is only one left that I do not know how to edit it correctly because the FF is the last of the 16 couples of numbers ( or rather FE ) in the hex editor so there is not enough space left to write FF 00 00 00.

(0x1055FF) 3B D0 74 0A 3B 53 48 74 05 8B 5B 3C EB 05 BB FE

What part I have to edit of it? What I have to do in this case?

My guess is that the code becomes 3B D0 74 0A 3B 53 48 74 05 8B 5B 3C EB 05 BB 00 --> Is this correct? * Somehow it seems to work ( Changed FE with 00 )


Again many many thanks for your help, it has been crucial!!!!



Last edited by Viktor_Prien; 02-04-21 at 10:30 AM.
Viktor_Prien is offline   Reply With Quote
Old 02-04-21, 11:03 AM   #7
Rosomaha
Loader
 
Join Date: Nov 2012
Location: Russia
Posts: 83
Downloads: 72
Uploads: 1
Default

Quote:
Originally Posted by Viktor_Prien View Post
I'm an idiot...
It's okay, I'm the same myself, and what makes it worse is that in foreign languages, too. “byte, bit, digit…-Damn it!” .

Initially, I personally did not search for anything, I took your written sets and compared it with the finished information from the topic at your link. The author has already identified the necessary addresses in the file, and the most used defult color codes for these functions of the game, and listed them. And then it's easier. In addition, “HEX-color codes” have a characteristic combination of letters and / or numbers, in small groups of code you can identify them even intuitively. You can Google "color codes", I even met online "color code converters", including those that allow you to find out the color code through a "pipette" from a sample – if you have a problem with generating the right code of the right color.

Well, I think, you understand which group of all the numbers you list is the defining one for our purposes.

Quote:
Originally Posted by Viktor_Prien View Post
(0x1055FF) 3B D0 74 0A 3B 53 48 74 05 8B 5B 3C EB 05 BB FE

What part I have to edit of it? What I have to do in this case?

My guess is that the code becomes 3B D0 74 0A 3B 53 48 74 05 8B 5B 3C EB 05 BB 00 --> Is this correct?
Now I looked at the file at this specified address. And according to it, the required value is located just above the one you selected. I think you need to change the underlined:

Rosomaha is offline   Reply With Quote
Old 02-04-21, 12:33 PM   #8
Viktor_Prien
Navy Dude
 
Join Date: Jan 2010
Location: Italy
Posts: 178
Downloads: 313
Uploads: 0
Default

Done! Again many thanks товарищ командир!
Viktor_Prien is offline   Reply With Quote
Old 02-04-21, 10:57 PM   #9
Viktor_Prien
Navy Dude
 
Join Date: Jan 2010
Location: Italy
Posts: 178
Downloads: 313
Uploads: 0
Default

Quote:
Originally Posted by gap View Post
Wasn't there an option for recoloring those texts among TDW's patches?
There was in previous versions but now there seems to be not anymore or maybe it's in the scripts folders ( I didn't check ) or at least I didn't find it.
At least in the OFEV there is not any option for editing the tools markings colours on the nav. map ( There are a few options but none covers this aspect )
Viktor_Prien is offline   Reply With Quote
Old 02-05-21, 09:37 AM   #10
gap
Navy Seal
 
Join Date: Jan 2011
Location: CJ8937
Posts: 8,214
Downloads: 793
Uploads: 10
Default

Quote:
Originally Posted by Viktor_Prien View Post
There was in previous versions but now there seems to be not anymore or maybe it's in the scripts folders ( I didn't check ) or at least I didn't find it.
Yes, that's weird, I re-checked TDW's patcher documentation, and I found no trace of the plotting line color patch. It is odd, because I remember that that was one of the first patches released.

Not too bad anyway, you managed changing those colors anyway, and in the process you have learned something new

Quote:
Originally Posted by Viktor_Prien View Post
At least in the OFEV there is not any option for editing the tools markings colours on the nav. map ( There are a few options but none covers this aspect )
No, those colors are hardcoded, so the option to change them can't be there. OFEV only modifies UI scripts and .ini files.
__________________
_____________________
|May the Force be with you!|
...\/
gap is offline   Reply With Quote
Old 02-05-21, 10:14 AM   #11
LesBaker
Loader
 
Join Date: Jun 2014
Location: Netley Abbey, Southampton, United Kingdom
Posts: 90
Downloads: 521
Uploads: 5
Default

The change map colours patch is still there, you need to go through the 'generic patcher' to change it, its found in C:\Ubisoft\Silent Hunter5\TDW_GenericPatcher_v_1_0_168_0 open the GenericPatcher.exe and say yes to everything, once the patcher is running, open the 4th file down from the top C:\Ubisoft\Silent Hunter5\TDW_GenericPatcher_v_1_0_168_0\Patches\SH5 \TDW_SH5_Patches.sp5p (sh5) then open 'patches' foder and you can change the colours for the map in the 'Map Colors (map_colors) folder, once you have changed the colours save by taking a snapshot in the file folder to replace the current snapshot being used.


Les
LesBaker is offline   Reply With Quote
Old 02-05-21, 07:01 PM   #12
Viktor_Prien
Navy Dude
 
Join Date: Jan 2010
Location: Italy
Posts: 178
Downloads: 313
Uploads: 0
Default

Quote:
Originally Posted by LesBaker View Post
The change map colours patch is still there, you need to go through the 'generic patcher' to change it, its found in C:\Ubisoft\Silent Hunter5\TDW_GenericPatcher_v_1_0_168_0 open the GenericPatcher.exe and say yes to everything, once the patcher is running, open the 4th file down from the top C:\Ubisoft\Silent Hunter5\TDW_GenericPatcher_v_1_0_168_0\Patches\SH5 \TDW_SH5_Patches.sp5p (sh5) then open 'patches' foder and you can change the colours for the map in the 'Map Colors (map_colors) folder, once you have changed the colours save by taking a snapshot in the file folder to replace the current snapshot being used.


Les
Initially I was searching for it but I was unable to find it even after a detailed post I've found about it. Many thanks mate the info you provided will help me a lot!

Danke mein Herr!
Viktor_Prien is offline   Reply With Quote
Old 02-05-21, 07:17 PM   #13
Viktor_Prien
Navy Dude
 
Join Date: Jan 2010
Location: Italy
Posts: 178
Downloads: 313
Uploads: 0
Default

Maybe a stupid question... Why in the various patches contained in the patcher everything seems to be set at disabled? ( False ).

I was looking for example at the deck awash settings...In game I have it working but looking at the patch here ( same patch you indicated, 4th from top ) everything is set as " Enabled: False " ).

Shouldn't it be enabled instead?

( Just curious )

In addition...

Quote:
For Steam versions of the SH5.exe:
Unable to provide solution to Steam users. The steam sh5.exe uses a form of self-modifying code copy protection that 'unpacks' the code when the executable is run. This form isn't impossible to read and decipher it just takes longer and quite frankly the reward to time relationship isn't worth it for me (not to mention that I can't run the .exe since I don't own the steam version of the game - I own the boxed version of the game). Sorry all. This is one reason why I never buy Steam based games unless I have to.
I'm using a Steam version so I presume it will not work ( or is it just an old statement? )

REF. LINK: https://www.subsim.com/radioroom/sho...d.php?t=181433

Last edited by Viktor_Prien; 02-05-21 at 07:27 PM.
Viktor_Prien is offline   Reply With Quote
Old 02-05-21, 07:55 PM   #14
Viktor_Prien
Navy Dude
 
Join Date: Jan 2010
Location: Italy
Posts: 178
Downloads: 313
Uploads: 0
Default

I've made a quick test...It seems to work also with the Steam version ( At least speaking of changing the colour of the map tool markings )

I have also tried to enable the manual control of the dive planes but it doesn't seems to work ( I can use the dive planes only on " auto " as per normal )

I've never get that dive planes working manually....
Viktor_Prien is offline   Reply With Quote
Old 02-06-21, 05:36 AM   #15
Viktor_Prien
Navy Dude
 
Join Date: Jan 2010
Location: Italy
Posts: 178
Downloads: 313
Uploads: 0
Default

Small update after further tests:

- Even enabling the manual dive planes controls in the patcher, at least using TWoS, they doesn't seems to work.

On surface they work ( at the least the hands of the dials can be moved up/down ) but they do absolutely nothing ( The sub will remain always on the surface even if you set the dive planes for diving )
When submerging, instead, for example going at periscope depth, soon as the two dive planes operators sit at their place, both the dive planes works only on " Auto " again and you can't even move the hands of the dials in any way ( Manually I mean )

To be noted that what achieved on the surface ( Dials's hands at least moving ) can be achieved only running a saved campaign mission. In single mission ( I have used for the tests the German Jet Fighter one ) they do not work at all.



*I have still to test what happens starting a new campaign
Viktor_Prien 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:00 AM.


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.