SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997 |
|
02-03-21, 06:18 PM | #1 |
Navy Dude
Join Date: Jan 2010
Location: Italy
Posts: 178
Downloads: 313
Uploads: 0
|
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! |
02-04-21, 12:59 AM | #2 |
Loader
Join Date: Nov 2012
Location: Russia
Posts: 83
Downloads: 72
Uploads: 1
|
I'm not a "guru", but the first question is: which particular file are you trying to edit?
|
02-04-21, 02:08 AM | #3 |
Navy Dude
Join Date: Jan 2010
Location: Italy
Posts: 178
Downloads: 313
Uploads: 0
|
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. |
02-04-21, 04:27 AM | #4 |
Navy Seal
Join Date: Jan 2011
Location: CJ8937
Posts: 8,214
Downloads: 793
Uploads: 10
|
Wasn't there an option for recoloring those texts among TDW's patches?
|
02-04-21, 10:57 PM | #5 | |
Navy Dude
Join Date: Jan 2010
Location: Italy
Posts: 178
Downloads: 313
Uploads: 0
|
Quote:
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 ) |
|
02-05-21, 09:37 AM | #6 | |
Navy Seal
Join Date: Jan 2011
Location: CJ8937
Posts: 8,214
Downloads: 793
Uploads: 10
|
Quote:
Not too bad anyway, you managed changing those colors anyway, and in the process you have learned something new No, those colors are hardcoded, so the option to change them can't be there. OFEV only modifies UI scripts and .ini files. |
|
02-04-21, 06:25 AM | #7 | |||
Loader
Join Date: Nov 2012
Location: Russia
Posts: 83
Downloads: 72
Uploads: 1
|
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:
Quote:
Quote:
...etc |
|||
02-04-21, 08:55 AM | #8 | |
Navy Dude
Join Date: Jan 2010
Location: Italy
Posts: 178
Downloads: 313
Uploads: 0
|
Quote:
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. |
|
02-04-21, 11:03 AM | #9 | |
Loader
Join Date: Nov 2012
Location: Russia
Posts: 83
Downloads: 72
Uploads: 1
|
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:
|
|
02-04-21, 12:33 PM | #10 |
Navy Dude
Join Date: Jan 2010
Location: Italy
Posts: 178
Downloads: 313
Uploads: 0
|
Done! Again many thanks товарищ командир!
|
|
|