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 > SH4 Mods Workshop
Forget password? Reset here

Reply
 
Thread Tools Display Modes
Old 02-19-08, 11:09 AM   #1
AVGWarhawk
Lucky Jack
 
AVGWarhawk's Avatar
 
Join Date: Jun 2005
Location: In a 1954 Buick.
Posts: 28,260
Downloads: 90
Uploads: 0


Default [TEC]Needle/pointer texture

Does anyone know what file the needle texture for the rudder gauge is located?
__________________
“You're painfully alive in a drugged and dying culture.”
― Richard Yates, Revolutionary Road
AVGWarhawk is offline   Reply With Quote
Old 02-19-08, 11:30 AM   #2
jimimadrid
Sonar Guy
 
Join Date: Jun 2005
Location: Augsburg, Germany
Posts: 385
Downloads: 115
Uploads: 19


Default

Look in Data\Menu\Gui\Layout\indicators.dds

Another needles are in Data\Menu\Gui\Layout\Dials_us_imperial.dds and Data\Menu\Gui\Layout\Dials_us_metric.dds

Hope it helps.
jimimadrid is offline   Reply With Quote
Old 02-19-08, 11:32 AM   #3
AVGWarhawk
Lucky Jack
 
AVGWarhawk's Avatar
 
Join Date: Jun 2005
Location: In a 1954 Buick.
Posts: 28,260
Downloads: 90
Uploads: 0


Default

Dials-metric has some needles but not the one I need. I will look at the other spot Thanks!
__________________
“You're painfully alive in a drugged and dying culture.”
― Richard Yates, Revolutionary Road
AVGWarhawk is offline   Reply With Quote
Old 02-19-08, 11:38 AM   #4
ReallyDedPoet
Canadian Wolf
 
ReallyDedPoet's Avatar
 
Join Date: Jul 2006
Location: Canada. The one and only, East Coast
Posts: 10,886
Downloads: 946
Uploads: 5


Default

You've crossed over to the dark side


RDP
__________________

Back in the Day



ReallyDedPoet is offline   Reply With Quote
Old 02-19-08, 06:32 PM   #5
AVGWarhawk
Lucky Jack
 
AVGWarhawk's Avatar
 
Join Date: Jun 2005
Location: In a 1954 Buick.
Posts: 28,260
Downloads: 90
Uploads: 0


Default

The indicator.dds are all white and I suspect for the gauges in the interior of the boat. Still no luck finding this bugger.
__________________
“You're painfully alive in a drugged and dying culture.”
― Richard Yates, Revolutionary Road
AVGWarhawk is offline   Reply With Quote
Old 02-20-08, 12:37 AM   #6
jimimadrid
Sonar Guy
 
Join Date: Jun 2005
Location: Augsburg, Germany
Posts: 385
Downloads: 115
Uploads: 19


Default

The Needles in the Indicator DDS are for the command gauges. There are four needles, and from the lower ones, the left one is the Needle of the rudder.

In the Menu1027 it gets will get black painted instead of the white color.

Here could be the solution. Try to pla with the color values

[G3F I45]
Name=Crt val
Type=1031;Stat bmp array
ItemID=0x3F1C0002
ParentID=0x3F1C0000
Pos=37,-10,16,70
Zone= 796 110 16 70 0 1 0x3F1C0000 0.5 -0.5 0x3F1C0002 -0.5 0.5 0 0
Color=0xFE
Materials=1
Display=5;Linear&rotation
Mat 0=data/menu/gui/layout/indicators.tga
Crop 0=0,0.996094,0.8125,-0.34375
MatFlags=0x29
TexFmt=0x0
Drag=false
BmpState=1
NeedFocus=true
SelOne=false
IdGroup=0
StatesColors=0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF

[G3F I46]
Name=New val
Type=1031;Stat bmp array
ItemID=0x3F1C0003
ParentID=0x3F1C0000
Pos=37,-10,16,70
Zone= 796 110 16 70 0 1 0x3F1C0000 0.5 -0.5 0x3F1C0003 -0.5 0.5 0 0
Color=0x969696C8
Materials=1
Display=5;Linear&rotation
Mat 0=data/menu/gui/layout/indicators.tga
Crop 0=0,0.996094,0.8125,-0.34375
MatFlags=0x29
TexFmt=0x0
Drag=false
BmpState=1
NeedFocus=true
SelOne=false
IdGroup=0
StatesColors=0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF
jimimadrid is offline   Reply With Quote
Old 02-20-08, 01:35 AM   #7
jimimadrid
Sonar Guy
 
Join Date: Jun 2005
Location: Augsburg, Germany
Posts: 385
Downloads: 115
Uploads: 19


Default

That should be.



Line to change in the menu1024 is:
[G3F I45]
Color=0x969696C8

Or let JTxE do the work: http://www.subsim.com/radioroom/show...highlight=jtxe

Needed ini File:
Targetfile=Data\Menu\menu_1024_768.ini
[G3F I45]
Color=0x969696C8
jimimadrid is offline   Reply With Quote
Old 02-20-08, 08:30 AM   #8
AVGWarhawk
Lucky Jack
 
AVGWarhawk's Avatar
 
Join Date: Jun 2005
Location: In a 1954 Buick.
Posts: 28,260
Downloads: 90
Uploads: 0


Default

Great! I will give this a go! You said to play with color values. Do you know the letters/number to change so it will show white in color?
__________________
“You're painfully alive in a drugged and dying culture.”
― Richard Yates, Revolutionary Road
AVGWarhawk is offline   Reply With Quote
Old 02-20-08, 09:53 AM   #9
DrBeast
The Old Man
 
Join Date: Oct 2007
Location: Somewhere Out In Space
Posts: 1,408
Downloads: 36
Uploads: 0
Default

Hex code would be #FFFFFF, but that damn thing is not in hexadecimal code! I can't for the life of me figure out that format. I did manage to remove the black color from my home-brewed dials, but unfortunately I don't have the menu_1024.ini file here at work.
__________________



Let the Beast inside you free!
DrBeast is offline   Reply With Quote
Old 02-20-08, 10:10 AM   #10
jimimadrid
Sonar Guy
 
Join Date: Jun 2005
Location: Augsburg, Germany
Posts: 385
Downloads: 115
Uploads: 19


Default

You have to paint a new Indicator.dds with white needle. I suppose that the number only put a black layer over the image. Lowering the number of the color the alphachannel of the layer will be reduced and the original image appears.

This is how it works with the "new value" and "value" needles. "Value" needles are the original image, an "new value" are darker copies of the originals.
Therefore you should darken the new value needle:

[G3F I46]
Color=0x?????????

You should play a little around with this value.
jimimadrid is offline   Reply With Quote
Old 02-20-08, 10:11 AM   #11
AVGWarhawk
Lucky Jack
 
AVGWarhawk's Avatar
 
Join Date: Jun 2005
Location: In a 1954 Buick.
Posts: 28,260
Downloads: 90
Uploads: 0


Default

The Dr is in! I just want that one needle as white. If you could find out if you get a chance. Currently I have all the dials as clean black faces. These boats were new and so were the gauges. Making them look old is the wrong way to go IMHO. Anyway, the dial on the rudder gauge is now black with the white numbers (not yellowed like it has been around for 60 years). As a result, the black needle is hard to see and really needs to be white.
__________________
“You're painfully alive in a drugged and dying culture.”
― Richard Yates, Revolutionary Road
AVGWarhawk is offline   Reply With Quote
Old 02-20-08, 10:15 AM   #12
AVGWarhawk
Lucky Jack
 
AVGWarhawk's Avatar
 
Join Date: Jun 2005
Location: In a 1954 Buick.
Posts: 28,260
Downloads: 90
Uploads: 0


Default

Quote:
Originally Posted by jimimadrid
You have to paint a new Indicator.dds with white needle. I suppose that the number only put a black layer over the image. Lowering the number of the color the alphachannel of the layer will be reduced and the original image appears.

This is how it works with the "new value" and "value" needles. "Value" needles are the original image, an "new value" are darker copies of the originals.
Therefore you should darken the new value needle:

[G3F I46]
Color=0x?????????

You should play a little around with this value.
This is what I did, the texture for the indicator.dds is basically the shadow of the actual needle. In other words, if you click on the dial to have the rudder swing, there is a ghost white needle that shows up were you clicked. The hard color needle will swing around to were you clicked thus covering up the ghost needle. It took the indicator.dds texture and blackend in this needle for the rudder. When I tried it in game, all this did was make the once white ghost needle turn black. So, I'm guessing this is the wrong texture to fool with.
__________________
“You're painfully alive in a drugged and dying culture.”
― Richard Yates, Revolutionary Road
AVGWarhawk is offline   Reply With Quote
Old 02-20-08, 10:58 AM   #13
skwasjer
The Old Man
 
Join Date: Apr 2007
Location: Netherlands
Posts: 1,549
Downloads: 26
Uploads: 3
Default

Quote:
Originally Posted by DrBeast
Hex code would be #FFFFFF, but that damn thing is not in hexadecimal code! I can't for the life of me figure out that format. I did manage to remove the black color from my home-brewed dials, but unfortunately I don't have the menu_1024.ini file here at work.
0x... format is hex format, just not 'html'. The '0x' is a hex specifier in programming languages like C++/C#.

Unfortunately I am no menu.ini guru so I don't know what order the hex data is written (the game reverses several other data as well (also in .dat files)).

So it could be:
0xRRGGBBAA or 0xBBGGRRAA

I'm sure one of the other menu guru's has the final answer.

One way or the other, 0xFFFFFFFF is white.
skwasjer is offline   Reply With Quote
Old 02-21-08, 06:47 AM   #14
DrBeast
The Old Man
 
Join Date: Oct 2007
Location: Somewhere Out In Space
Posts: 1,408
Downloads: 36
Uploads: 0
Default

Quote:
Originally Posted by AVGWarhawk
Quote:
Originally Posted by jimimadrid
You have to paint a new Indicator.dds with white needle. I suppose that the number only put a black layer over the image. Lowering the number of the color the alphachannel of the layer will be reduced and the original image appears.

This is how it works with the "new value" and "value" needles. "Value" needles are the original image, an "new value" are darker copies of the originals.
Therefore you should darken the new value needle:

[G3F I46]
Color=0x?????????

You should play a little around with this value.
This is what I did, the texture for the indicator.dds is basically the shadow of the actual needle. In other words, if you click on the dial to have the rudder swing, there is a ghost white needle that shows up were you clicked. The hard color needle will swing around to were you clicked thus covering up the ghost needle. It took the indicator.dds texture and blackend in this needle for the rudder. When I tried it in game, all this did was make the once white ghost needle turn black. So, I'm guessing this is the wrong texture to fool with.
No, the indicator is right. There are two values in menu1024 for defining "go-to" and active needle position.

[G3F I45] stores current needle position, [G3F I46] is the "go-to" position. So what you need to do is also tweak the Color=xxxxxxxxxx of I45. I thought this case was resolved, so I didn't bring along my home-brew. I have found the perfect (to me) color conditions.

Quote:
Originally Posted by skwasjer
Quote:
Originally Posted by DrBeast
Hex code would be #FFFFFF, but that damn thing is not in hexadecimal code! I can't for the life of me figure out that format. I did manage to remove the black color from my home-brewed dials, but unfortunately I don't have the menu_1024.ini file here at work.
0x... format is hex format, just not 'html'. The '0x' is a hex specifier in programming languages like C++/C#.

Unfortunately I am no menu.ini guru so I don't know what order the hex data is written (the game reverses several other data as well (also in .dat files)).

So it could be:
0xRRGGBBAA or 0xBBGGRRAA

I'm sure one of the other menu guru's has the final answer.

One way or the other, 0xFFFFFFFF is white.
Cheers for that. It was the last two figures that eluded me. Now, if only I could figure out what AA stands for (as obviously RRGGBB is for Red Green Blue).

ETA: Never mind, did a google search and found it. AA is for alpha channel transparency; 00 is for fully transparent, FF is for fully solid. Well, glad to have this nut cracked!
__________________



Let the Beast inside you free!

Last edited by DrBeast; 02-21-08 at 06:57 AM.
DrBeast is offline   Reply With Quote
Old 02-21-08, 07:10 AM   #15
DrBeast
The Old Man
 
Join Date: Oct 2007
Location: Somewhere Out In Space
Posts: 1,408
Downloads: 36
Uploads: 0
Default

OK, AVGWarhawk, let's summarize. If I understand this correctly, you want a fully white needle for your rudder, correct?
Here's what to do: leave the texture as is (you might as well paint it pink, it won't matter!).

Go to [G3F I45], change Color=0xWhatever to read

Code:
Color=0xFFFFFFFF
That will make the needle white.

Now, to differentiate the needle of your current rudder position from the "go-to"position (i.e. the one you get when you click somewhere on the gauge to have the rudder swing there), we're gonna make that second needle a bit grey.

Go to [G3F I46] and change Color=0xWhatever to

Code:
Color=0x999999FF
If it seems too dark for you, try

Code:
Color=0xCCCCCCFF
Hopefully, it'll work.

Below is a random internet site with hexadecimal color codes:

http://www.johncfish.com/bggallery/otherchart/index.htm
__________________



Let the Beast inside you free!
DrBeast 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 02:47 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright © 1995- 2025 Subsim®
"Subsim" is a registered trademark, all rights reserved.