PDA

View Full Version : [REQ] how to mod the chrono parts of the clock


Ali Fish
03-12-10, 03:46 PM
i have made a nice kreigsmarine facia for the clock, its a very dark face. the problem is the the chronograph moving parts are always blue. anyone any expereince with this ? need a solution. thx.

Decoman
03-12-10, 04:02 PM
The blue dial/arm is caused in part by the alpha channel. Somewhere, there is probably a setting that tells that dial to be colored blue. Varying degrees of alpha 50% vs 30% for example, will lead to a different shades of blue.

So the dial/arm is both colored and transparent.

The stopwatch clock texture is the texture file called clock.dds.

I believe I saw a config file that has text that dictates where the dials are positioned, and perhaps how the clock works to some extent.

When firing a torpedo, a red dial/arm will appear indicating time to impact. This dial/arm uses apparantly the same clock.dds texture, just colored with red instead of blue.

Ali Fish
03-12-10, 04:10 PM
understood!. if anybody happens to find the file. pls let me know if i dont find it first.

WIP
http://i1003.photobucket.com/albums/af156/AliFishGMT/Misc/cfeb9d63.jpg

Decoman
03-12-10, 04:28 PM
This one might be it, but I thought I saw another file yesterday, I am not sure:

D:\Games\Ubisoft\Silent Hunter 5\data\Menu\cfg\dials.cfg

There are also PY (python?) files lying around.

Decoman
03-12-10, 05:54 PM
Found it:
D:\Games\Ubisoft\Silent Hunter 5\data\Menu\Pages\Page Clock.cfg

Example:
[G29 I5]
Name=Chronometer Minute
Type=1031;Stat bmp array
ItemID=0x2902000F
ParentID=0x29020000
Pos=116,-94,8,52
Zone= 840 614 8 52 0 1 0x2902000C 0.5 -0.09 0x2902000F -0.5 0 0 0
Color=0x80FE
Materials=1
Display=5;Linear&rotation
Mat 0=data/menu/skins/american/gui/clock.dds
Crop 0=0.910156,0.410156,0.015625,0.203125
MatFlags=0x9
TexFmt=0x0
Drag=false
BmpState=1
NeedFocus=false
SelOne=false
IdGroup=0
StatesColors=0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF

AVGWarhawk
03-12-10, 05:57 PM
StatesColors=0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF


These are your colors I believe. I think you have to find the correct sequence of letters and number for the color you want.

Decoman
03-12-10, 06:01 PM
I found the small dials/arms:

D:\Games\Ubisoft\Silent Hunter 5\data\Menu\Gui\Chrono.dds

The dials/arms are like the blue stopwatch dial/arm, determined by the alpha. Seems like they are colored red.

Here is also a small metal dot, found at the center of the stopwatch.

Ali Fish
03-12-10, 07:26 PM
Found it:
D:\Games\Ubisoft\Silent Hunter 5\data\Menu\Pages\Page Clock.cfg

Example:
[G29 I5]
Name=Chronometer Minute
Type=1031;Stat bmp array
ItemID=0x2902000F
ParentID=0x29020000
Pos=116,-94,8,52
Zone= 840 614 8 52 0 1 0x2902000C 0.5 -0.09 0x2902000F -0.5 0 0 0
Color=0x80FE
Materials=1
Display=5;Linear&rotation
Mat 0=data/menu/skins/american/gui/clock.dds
Crop 0=0.910156,0.410156,0.015625,0.203125
MatFlags=0x9
TexFmt=0x0
Drag=false
BmpState=1
NeedFocus=false
SelOne=false
IdGroup=0
StatesColors=0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF

notice the American/gui/clock.dds, my game is reading my mod from the german/gui/clock.dds....?

These are your colors I believe. I think you have to find the correct sequence of letters and number for the color you want.

these colours come in the format #000064 this is blue etcetc, not correct format it seems.(#FFFFFF) is red in photoshop...

I found the small dials/arms:

D:\Games\Ubisoft\Silent Hunter 5\data\Menu\Gui\Chrono.dds

The dials/arms are like the blue stopwatch dial/arm, determined by the alpha. Seems like they are colored red.

Here is also a small metal dot, found at the center of the stopwatch.

i have changed this file also, changed to to yellow no change to the ingame end result.

stumped on this one :(, they could work like the others, not sure why they dont..

Frederf
03-12-10, 07:59 PM
Photoshop displays 4-channel images (RGB-A) in not a direct way. It shows Alpha information via a red tint (purely arbitrary choice). Check your channels tab and select/deselect channels to get a feel for what's going on.

#FFFFFF is white #000000 is black, pure red would be #FF0000.

Ali Fish
03-12-10, 08:44 PM
:yeah:Sorted !:yeah: an extra large cookie for Decoman !

http://i1003.photobucket.com/albums/af156/AliFishGMT/Misc/cd0513d7.jpg

it was this line "Color=C3BD9F" found in the page clock.ini , which makes a whole lot of sense next to those other numers that didnt fall into the photoshop format..

why it says its read from the american GUI though is a complete mystery. why this game is full of Sh4 content is a mystery too.

Decoman
03-13-10, 03:44 AM
Did you not c that clock up, or is that a part of the original texture. It eh sort of stands out abit. :hmmm:

Ali Fish
03-13-10, 08:03 AM
not sure what u mean ...?

Decoman
03-13-10, 08:39 AM
:) I dare you to open your window and yell out "not c" as loud as you can.

I was listening to a youtube video of a lecture in physics, and the professor was solving some algebra, and then he in said something like.

A is not B, B is not A, and B is not C. And then it struck me how funny it was.

Ali Fish
03-13-10, 05:41 PM
emm... ok. youve lost me. lol

"or is that a part of the original texture. It eh sort of stands out abit. :hmmm: "

what stands out a bit ?

Decoman
03-13-10, 05:49 PM
That swastika symbol, it just occurred to me, is it glued to the moving dial/arm?

Ali Fish
03-13-10, 05:57 PM
it is a feature on the chrono. decided i dont like it,