View Single Post
Old 02-23-12, 02:03 AM   #3
Fearless
Ace of the Deep
 
Join Date: Feb 2007
Location: Adelaide, Australia
Posts: 1,046
Downloads: 340
Uploads: 1
Default

Quote:
Originally Posted by Krabb View Post
As posted by dasOoops from RedRogers you need two offsets:

Interfaces/NON_NUKE_SUB/SonarBB.dll, offset 0x16048: RR GG BB,
Interfaces/NON_NUKE_SUB/SonarNB.dll, offset 0x14184: RR GG BB.

I use HxD as HEX-editor.



Here's what you need to do:
  • Open the file.
  • Go to offset (press Ctrl+G, enter offset value without 0x prefix).
  • Set the color in 3 bytes, starting from the offset given.
    For SonarBB.dll there will be lines like:
    Code:
    Offset(h)  00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F
    00016030   E5 F7 30 27 00 00 00 00 00 00 00 00 00 00 00 00   å÷0'............
    00016040   59 00 00 00 58 00 00 00 FF 7D 00 00 00 FF 00 00   Y...X...ÿ}...ÿ..
    00016050   12 28 00 00 19 28 00 00 05 28 00 00 13 28 00 00   .(...(...(...(..
    I've marked the bytes you need, ignore cryptic symbols on the right. So, FF is hex-number for red, 7D - green and 00 - blue. Just replace them with hex-numbers for your color. But do not add any new bytes, just replace the existing!
  • Save the file.
Much appreciated... I actually checked the Virginia class and used 00 AF FF for the colour change.

How or where could I do this change in the SonarDemon.dll?
__________________
Fearless

System Specs: AMD Ryzen 7 5800X 8 Core 16 Thread CPU, 3.8GHz Base Clock, 4.7GHz Boost, 105W TDP, 32MB L3 cache | MSI GeForce RTX3060Ti 8Gb Graphics | Corsair Vengeance RGB Pro 32Gb (2x16Gb) 3200 MHz CL16 DDR4 Ram | Samsung 970 Evo Plus NVMe SSD 1TB | Seagate Barracuda 2.5in 2TB HDD | AOC QHD 165 Hz FreeSync HDR curved 31.5in Monitor | ASUS ROG Strix LC 240 ARGB AIO Liquid CPU Cooler White Edition | ASUS ROG Strix Gold 750W Modular Power Supply | Corsair iCUE 5000X RGB Tempered Glass Mid Tower Case White.
Fearless is offline   Reply With Quote