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, 10:57 PM   #5
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   #6
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-04-21, 06:25 AM   #7
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   #8
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   #9
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   #10
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
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 12:29 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.