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

Reply
 
Thread Tools Display Modes
Old 03-12-10, 03:46 PM   #1
Ali Fish
Seaman
 
Join Date: Mar 2010
Posts: 33
Downloads: 5
Uploads: 0
Default [REQ] how to mod the chrono parts of the clock

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.
Ali Fish is offline   Reply With Quote
Old 03-12-10, 04:02 PM   #2
Decoman
Frogman
 
Join Date: Sep 2005
Location: Oslo, Norway
Posts: 306
Downloads: 24
Uploads: 0
Default

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.
Decoman is offline   Reply With Quote
Old 03-12-10, 04:10 PM   #3
Ali Fish
Seaman
 
Join Date: Mar 2010
Posts: 33
Downloads: 5
Uploads: 0
Default

understood!. if anybody happens to find the file. pls let me know if i dont find it first.

WIP
Ali Fish is offline   Reply With Quote
Old 03-12-10, 04:28 PM   #4
Decoman
Frogman
 
Join Date: Sep 2005
Location: Oslo, Norway
Posts: 306
Downloads: 24
Uploads: 0
Default

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 is offline   Reply With Quote
Old 03-12-10, 05:54 PM   #5
Decoman
Frogman
 
Join Date: Sep 2005
Location: Oslo, Norway
Posts: 306
Downloads: 24
Uploads: 0
Default

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
Decoman is offline   Reply With Quote
Old 03-12-10, 05:57 PM   #6
AVGWarhawk
Lucky Jack
 
AVGWarhawk's Avatar
 
Join Date: Jun 2005
Location: In a 1954 Buick.
Posts: 28,256
Downloads: 90
Uploads: 0


Default

Quote:
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.
__________________
“You're painfully alive in a drugged and dying culture.”
― Richard Yates, Revolutionary Road
AVGWarhawk is offline   Reply With Quote
Old 03-12-10, 06:01 PM   #7
Decoman
Frogman
 
Join Date: Sep 2005
Location: Oslo, Norway
Posts: 306
Downloads: 24
Uploads: 0
Default

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.
Decoman is offline   Reply With Quote
Old 03-12-10, 07:26 PM   #8
Ali Fish
Seaman
 
Join Date: Mar 2010
Posts: 33
Downloads: 5
Uploads: 0
Default

Quote:
Originally Posted by Decoman View Post
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....?

Quote:
Originally Posted by AVGWarhawk View Post
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...

Quote:
Originally Posted by Decoman View Post
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..
Ali Fish is offline   Reply With Quote
Old 03-12-10, 07:59 PM   #9
Frederf
Seasoned Skipper
 
Join Date: Apr 2005
Posts: 665
Downloads: 79
Uploads: 1
Default

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.
Frederf is offline   Reply With Quote
Old 03-12-10, 08:44 PM   #10
Ali Fish
Seaman
 
Join Date: Mar 2010
Posts: 33
Downloads: 5
Uploads: 0
Default

Sorted ! an extra large cookie for Decoman !



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.

Last edited by Ali Fish; 03-12-10 at 09:01 PM.
Ali Fish is offline   Reply With Quote
Old 03-13-10, 03:44 AM   #11
Decoman
Frogman
 
Join Date: Sep 2005
Location: Oslo, Norway
Posts: 306
Downloads: 24
Uploads: 0
Default

Did you not c that clock up, or is that a part of the original texture. It eh sort of stands out abit.
Decoman is offline   Reply With Quote
Old 03-13-10, 08:03 AM   #12
Ali Fish
Seaman
 
Join Date: Mar 2010
Posts: 33
Downloads: 5
Uploads: 0
Default

not sure what u mean ...?
Ali Fish is offline   Reply With Quote
Old 03-13-10, 08:39 AM   #13
Decoman
Frogman
 
Join Date: Sep 2005
Location: Oslo, Norway
Posts: 306
Downloads: 24
Uploads: 0
Default

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.
Decoman is offline   Reply With Quote
Old 03-13-10, 05:41 PM   #14
Ali Fish
Seaman
 
Join Date: Mar 2010
Posts: 33
Downloads: 5
Uploads: 0
Default

emm... ok. youve lost me. lol

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

what stands out a bit ?
Ali Fish is offline   Reply With Quote
Old 03-13-10, 05:49 PM   #15
Decoman
Frogman
 
Join Date: Sep 2005
Location: Oslo, Norway
Posts: 306
Downloads: 24
Uploads: 0
Default

That swastika symbol, it just occurred to me, is it glued to the moving dial/arm?
Decoman is offline   Reply With Quote
Reply

Thread Tools
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 11:39 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.