SUBSIM Radio Room Forums
Sailor Steve supports Subsim through his many Amazon purchases, you can too!
Want to support Subsim and make Amazon pay for it? Click here to start any Amazon shopping.


SUBSIM: The Web's #1 BBS for all submarine and naval simulations!

Go Back   SUBSIM Radio Room Forums > Sonalysts Combat Sims > DW Mod Workshop
Forget password? Reset here

Reply
 
Thread Tools Search this Thread Display Modes
Old 02-21-2012, 07:52 PM   #1
Fearless
Grey Wolf
 
Join Date: Feb 2007
Location: Within Arms Reach
Posts: 807
Downloads: 95
Uploads: 0
Default Sonar Color Display Change

Could anyone advise how I can change the Sonar Display Color from Orange to Blue in using a HEX Editor?

This would be greatly appreciated.
__________________
Fearless

Comp Specs:
Intel Core 2Duo Processor E6300 (1.86Ghz, 2MB L2 Cache,1066 MHz FSB, EM64T); 3GB PC2-4200/DDR2-533 RAM; Vista HP
NVidia GForce 9500GT - 512MB Graphics Card; HP W1907 widescreen monitor
Fearless is offline   Reply With Quote
Old 02-22-2012, 03:01 AM   #2
Krabb
Torpedoman
 
Join Date: Apr 2009
Posts: 118
Downloads: 30
Uploads: 0
Default

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.
Krabb is offline   Reply With Quote
Old 02-23-2012, 01:03 AM   #3
Fearless
Grey Wolf
 
Join Date: Feb 2007
Location: Within Arms Reach
Posts: 807
Downloads: 95
Uploads: 0
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

Comp Specs:
Intel Core 2Duo Processor E6300 (1.86Ghz, 2MB L2 Cache,1066 MHz FSB, EM64T); 3GB PC2-4200/DDR2-533 RAM; Vista HP
NVidia GForce 9500GT - 512MB Graphics Card; HP W1907 widescreen monitor
Fearless is offline   Reply With Quote
Old 02-23-2012, 03:42 AM   #4
Krabb
Torpedoman
 
Join Date: Apr 2009
Posts: 118
Downloads: 30
Uploads: 0
Default

If I'm not mistaken, for SonarDemon.dll offset is 0x00011064.
Krabb is offline   Reply With Quote
Old 02-23-2012, 04:08 PM   #5
Fearless
Grey Wolf
 
Join Date: Feb 2007
Location: Within Arms Reach
Posts: 807
Downloads: 95
Uploads: 0
Default

Quote:
Originally Posted by Krabb View Post
If I'm not mistaken, for SonarDemon.dll offset is 0x00011064.
Thanks for that Krabb... I tried the setting changes but only the text Heading colour changed to Blue.. The waterfall remained unchanged (Orange).
__________________
Fearless

Comp Specs:
Intel Core 2Duo Processor E6300 (1.86Ghz, 2MB L2 Cache,1066 MHz FSB, EM64T); 3GB PC2-4200/DDR2-533 RAM; Vista HP
NVidia GForce 9500GT - 512MB Graphics Card; HP W1907 widescreen monitor
Fearless is offline   Reply With Quote
Old 02-24-2012, 01:55 AM   #6
Krabb
Torpedoman
 
Join Date: Apr 2009
Posts: 118
Downloads: 30
Uploads: 0
Default

There are two other offsets in SonarDemon.dll: 0x00011064 and 0x0001106C. The first should be for the font color, and others for the background color and the signal color.

You can find them yourself, in NON_NUKE_SUB there are two color versions for each sonar station: standard and with '_b" in the name. Just binary compare them. I used standard fc utility, it gives the following:
Code:
>fc /b SonarDemon.dll SonarDemon_b.dll

000027A1: FF 00
000027A2: 7D AF
000027A3: 00 FF
00011064: FF 00
00011065: 7D AF
00011066: 00 FF
0001106C: 00 FF
0001106D: FF 00
See all offsets I mentioned? Just compare the files and try the offsets found.
Krabb is offline   Reply With Quote
Old 02-27-2012, 01:53 AM   #7
Fearless
Grey Wolf
 
Join Date: Feb 2007
Location: Within Arms Reach
Posts: 807
Downloads: 95
Uploads: 0
Default

Much appreciated Krabb.

That worked.
__________________
Fearless

Comp Specs:
Intel Core 2Duo Processor E6300 (1.86Ghz, 2MB L2 Cache,1066 MHz FSB, EM64T); 3GB PC2-4200/DDR2-533 RAM; Vista HP
NVidia GForce 9500GT - 512MB Graphics Card; HP W1907 widescreen monitor
Fearless is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 01:17 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Copyright © 1997- 2013 Subsim