View Full Version : 24-hour analog clock
Fahnenbohn
11-12-14, 06:49 AM
Hello every one,
I've recently read the topic about the analog clock by Tycho (http://www.subsim.com/radioroom/showthread.php?t=208895). I found his idea very interesting and the result is very nice. But as we are supposed to sail all over the seas (and sometimes in arctic waters with days without sun or without night), far away of any society, we have to know if it's 8 o'clock AM or 8 o'clock PM. So I've made a 24-hour analog clock, with the same face as in the film "The enemy below" (1957).
Download here : ftp://hartmuthaas.no-ip.org/public/S...DS/FAHNENBOHN/ (ftp://hartmuthaas.no-ip.org/public/Sharing/SH3COMMUNITYMODS/FAHNENBOHN/)
(User : Maik, Password : Woelfe)
http://nsm08.casimages.com/img/2014/11/16//14111608355418069012710250.png (http://www.casimages.com/img.php?i=14111608355418069012710250.png)
-----------
(First version)
It works perfectly, the numbers are not very clear but the hands are very accurate. I have not added the second hand, as I don't see the point. Here a picture :
http://nsm08.casimages.com/img/2014/11/12//14111212262918069012698419.png (http://www.casimages.com/img.php?i=14111212262918069012698419.png)
If I have enough time and if enough people are interested, I could release this little mod for download. Tell me what you think about.
And thank you Tycho for your detailed explanation in your topic, it has saved me a lot of time !
Greetings,
Fahnenbohn
I have not added the second hand, as I don't see the point.
With second hand I don't need draggable chrono for 3 min and 15 sec trick, the four bearings method and others time measurements. I recommend you to add second hand.
Don't wait, just release it. I'll point this in first post in my topic, to have various choices is nice.
BigWalleye
11-12-14, 11:59 AM
With second hand I don't need draggable chrono for 3 min and 15 sec trick, the four bearings method and others time measurements. I recommend you to add second hand.
Don't wait, just release it. I'll point this in first post in my topic, to have various choices is nice.
I agree with Tycho. I hope you will incorporate this easy addition to your 24-hour clock. I added a second hand to my analog watch so I could make timing measurement "on the fly." The stopwatch is cumbersome, and since it can only be started and stopped on the scope screens, all measurements have to be made on the fly anyway. This way, there is always a seconds clock available, and the minutes difference is actually easier to read than on the stopwatch.
Since Ahnenerbe (Kudos to him!) did the tricky part, figuring out how to add the second hand to dials.cfg, a second hand on any timepiece is a thoroughly useful addition.
makman94
11-12-14, 12:53 PM
Hello every one,
I've recently read the topic about the analog clock by Tycho (http://www.subsim.com/radioroom/showthread.php?t=208895). I found his idea very interesting and the result is very nice. But as we are supposed to sail all over the seas (and sometimes in arctic waters with days without sun or without night), far away of any society, we have to know if it's 8 o'clock AM or 8 o'clock PM. So I've made a 24-hour analog clock, with the same face as in the film "The enemy below" (1957). It works perfectly, the numbers are not very clear but the hands are very accurate. I have not added the second hand, as I don't see the point. Here a picture :
If I have enough time and if enough people are interested, I could release this little mod for download. Tell me what you think about.
And thank you Tycho for your detailed explanation in your topic, it has saved me a lot of time !
Greetings,
Fahnenbohn
very nice clock - idea Fahnenbohn :up:
as you designing it from scratch why not making it a little bigger ? will be more detailed and much easier to read
Fahnenbohn
11-12-14, 01:18 PM
@ Tycho and BigWalleye : OK, I'm going to add a second hand.
@ Manos : Yes, this one is two times smaller than the first one I did. But as it took up too much space on the screen, I reduced it. But it remains perfectly readable ! ...
Fahnenbohn
11-12-14, 03:59 PM
http://nsm08.casimages.com/img/2014/11/12//14111209400518069012700141.png (http://www.casimages.com/img.php?i=14111209400518069012700141.png)
This is the original size of my clock. It would be nice to make it movable when the mouse goes on the upper edge of the screen, as the white compass. But I still don't know how to do...
makman94
11-12-14, 04:20 PM
This is the original size of my clock. It would be nice to make it movable when the mouse goes on the upper edge of the screen, as the white compass. But I still don't know how to do...
i didn't meant to make it twice bigger. this clock is ,indead, a huge clock.
my suggestion was to make it a little bigger (for example a factor of 1.2 is shown at the pic) just for the seconds marks to be more readable ( maybe i am getting older but were not so clear to me)
http://i62.tinypic.com/2qun251.jpg
about your question: put the clock at the position you want on screen and then add the line ''VertSlide=xxx'' at the end of the clock's menu entry.
the ''xxx'' is determing how many pixels you want your image to slide to upper direction and hide . pay attention to the dimensions of menu entry 'box' as ,by a carefully selection, you can totally hide your image and make it slide out only when you place your cursor real close to screen's edge
ps1: the command ''HorizSlide=xxx'' is for use if you want to make your image slide at a horizontal direction
ps2: what is the ''white compass''?
off-topic: let me show you my new stopwatch.:)
http://oi58.tinypic.com/mj7ifl_th.jpg (http://oi58.tinypic.com/mj7ifl.jpg)
Fahnenbohn
11-12-14, 05:38 PM
@ makman : I've tried your solution, but it doesn't seem to work. Is there anything wrong in my text :
[G3F I345]
Name=Clock Face
Type=1031;Stat bmp array
ItemID=0x3FE00000
ParentID=0x3F000000
Pos=1,740,155,155
Materials=1
Display=0;No stretch
Mat 0=data/menu/gui/24_Clock.tga
MatFlags=0x29
TexFmt=0x9
Drag=false
BmpState=1
NeedFocus=true
SelOne=true
IdGroup=0
StatesColors=0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF
VertSlide=180
And here is the white compass (maybe i didn't well explain myself) :
http://nsm08.casimages.com/img/2014/11/12//14111211341318069012700403.png (http://www.casimages.com/img.php?i=14111211341318069012700403.png)
@ Tycho : very nice dial, you are good at graphic design, I especially like the reflection effect. :up:
I'm away from my computer and SH3 now, but try with menu group, like that:
[G3F I344]
Name=Clock Slide out
Type=1026
ItemID=0x3FE0000A
ParentID=0x3F000000
Pos=1,740,155,155
VertSlide=180
[G3F I345]
Name=Clock Face
Type=1031;Stat bmp array
ItemID=0x3FE00000
ParentID=0x3FE0000A
Pos=0,0,155,155
Materials=1
Display=0;No stretch
Mat 0=data/menu/gui/24_Clock.tga
MatFlags=0x29
TexFmt=0x9
Drag=false
BmpState=1
NeedFocus=true
SelOne=true
IdGroup=0
StatesColors=0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF
Parent rest of the elements with Clock Face
@ Tycho : very nice dial, you are good at graphic design, I especially like the reflection effect. :up:
No, this is just from photo of real Hanhart stopwatch. I edit it a little, liked the result, and integrate it in my installation.
Fahnenbohn
11-13-14, 03:32 AM
I'm away from my computer and SH3 now, but try with menu group, like that:
[G3F I344]
Name=Clock Slide out
Type=1026
ItemID=0x3FE0000A
ParentID=0x3F000000
Pos=1,740,155,155
VertSlide=180
[G3F I345]
Name=Clock Face
Type=1031;Stat bmp array
ItemID=0x3FE00000
ParentID=0x3FE0000A
Pos=0,0,155,155
Materials=1
Display=0;No stretch
Mat 0=data/menu/gui/24_Clock.tga
MatFlags=0x29
TexFmt=0x9
Drag=false
BmpState=1
NeedFocus=true
SelOne=true
IdGroup=0
StatesColors=0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF
Thank you Tycho, yes, it already seems much more credible !
I'll try that when I have enough free time (busy right now).
Cheers
makman94
11-13-14, 04:27 AM
@ makman : I've tried your solution, but it doesn't seem to work. Is there anything wrong in my text :
[G3F I345]
Name=Clock Face
Type=1031;Stat bmp array
ItemID=0x3FE00000
ParentID=0x3F000000
Pos=1,740,155,155
Materials=1
Display=0;No stretch
Mat 0=data/menu/gui/24_Clock.tga
MatFlags=0x29
TexFmt=0x9
Drag=false
BmpState=1
NeedFocus=true
SelOne=true
IdGroup=0
StatesColors=0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF
VertSlide=180
....
the mistake here is that you didn't put the command at the end of the clock's menu entry.
Tycho is correct and is showing you were to put the command (type=26 is the menu entry)
Fahnenbohn
11-13-14, 04:52 AM
OK Makman. :sunny:
I was not competant enough to understand what you were talking about ... :03:
Fahnenbohn
11-13-14, 10:04 AM
OK. My slippery clock is now working properly.
I would like to add one last option : would it be possible to fix the clock on the screen by clicking on it, once it has come down from the upper edge of the screen ? And then make it disappear again by clicking on it again ? :hmm2:
BigWalleye
11-13-14, 02:38 PM
OK. My slippery clock is now working properly.
I would like to add one last option : would it be possible to fix the clock on the screen by clicking on it, once it has come down from the upper edge of the screen ? And then make it disappear again by clicking on it again ? :hmm2:
I don't know any way to do this, but you could tie it to an officer, so that clicking on the officer brings up the clock. Clicking on another officer, or changing screens, would make the clock vanish.
Alternatively, you could put the clock off-screen, with an invisible "tab" on-screen. Click and drag on the tab to pull the clock on-screen. It then stays on-screen. You could either have it disappear when changing screens or have it remain on-screen until dragged off.
If you are interested in either approach, post and I'll PM you some example menu.ini entries. I imagine it's too esoteric to cover on the public forum.
Fahnenbohn
11-13-14, 04:47 PM
Thank you BigWalleye for your suggestions and help, but I prefer a free draggable clock to these options. So now, I have to write a "readme", and this little mod will be downloadable. I will wait a day or two to see if anyone would have a solution to my little challenge :
Would it be possible to fix the clock on the screen by clicking on it, once it has come down from the upper edge of the screen ? And then make it disappear again by clicking on it again ?
F.
Fahnenbohn
11-13-14, 05:30 PM
THE FINAL RESULT :
http://nsm08.casimages.com/img/2014/11/13//14111311285218069012702835.png (http://www.casimages.com/img.php?i=14111311285218069012702835.png)
Fahnenbohn
11-15-14, 06:15 AM
The 24-hour clock is available at Plissken_04 FTP server : ftp://hartmuthaas.no-ip.org/public/Sharing/SH3COMMUNITYMODS/FAHNENBOHN/
(User : Maik, Password : Woelfe)
I hope all will be OK, it's my first mod ... ;-)
Hi, Fahnenbohn! I will use my 12h clock, but decided to convert your 24h clock for one of the 3d interior clock.
Conning tower 24h clock:
http://oi59.tinypic.com/20z65xw_th.jpg (http://oi59.tinypic.com/20z65xw.jpg)
BigWalleye
11-16-14, 08:10 AM
Does anyone know if the 24-hour clock is attested historically? I always assumed that the 12-hour clock faces in the central and tower were based on surviving prototypes. But now I'm curious. Were clocks in RL U-boats 12-hour or 24? If there is a surviving example, then that's what I want to see in my boats.
Either way, Fahnenbohn, yours is a nice piece of work. Thank you.
Fahnenbohn
11-17-14, 04:52 AM
Ahoy !
Yesterday, I found a more accurate picture of the clock seen in the film "The enemy below". So, I have reworked it, and the result is much better (more readable) :
http://nsm08.casimages.com/img/2014/11/16//14111608355418069012710250.png (http://www.casimages.com/img.php?i=14111608355418069012710250.png)
I've written Plissken_04 to update my mode.
F.
Fahnenbohn
11-17-14, 06:03 AM
@ Tycho : Well done, the clock in the conning tower looks very nice !
@ BigWalleye : Thank you. I don't know if there were some u-boots with 24 h clocks. But as captain, this is the kind of clock that I require on board.
Fahnenbohn
11-18-14, 06:12 AM
Final version is now available ! The first post has been uptdated.
F.
Horst Degen
11-18-14, 03:58 PM
Great job! Fahnenbohn, many thanks! :up:
Kendras
05-10-17, 03:43 AM
off-topic: let me show you my new stopwatch.:)
http://oi58.tinypic.com/mj7ifl_th.jpg (http://oi58.tinypic.com/mj7ifl.jpg)
Hi !
I'm interested in your new stopwatch ! :) Do you plan to share it ?
Sorry for delay, I was necessary to be absent for a while.
Will send you the files, tonight.
Kendras
05-19-17, 08:20 PM
Thank you ! I like it very much ! It's replacing the dragable chrono of NYGM.
http://i.imgur.com/9VPINKN.png
Kendras
05-20-17, 08:01 AM
Hi again,
I would like to add a new feature to this dragable chronometer. By clicking on it, this would show a 24 analog clock instead of the chronometer, at the same place ; and by clicking again on this clock, this would show again the chronometer. Do you think it's possible ? I know that it's possible to show new things by clicking on buttons of the game interface, but is it possible to link this button directly on the dragable chrono/clock ?
Kendras
05-20-17, 12:18 PM
This is the kind of clock I would like to have :
http://i.imgur.com/mXvn2ou.png
Now, I'm waiting for your instructions to create new code to be able to switch between clock and chronometer.
:Kaleun_Salute:
Kendras
05-21-17, 02:58 PM
Finally, I'm happy with this new clock/chrono, all in one !
http://i.imgur.com/lpsK92R.png
- the white hands are showing the current hour of the day (24 hours clock)
- the little white hand is showing the seconds of the hour (one complete turn = 60 seconds)
- the big black hand is showing the seconds of the time from the launching of the selected torpedo (one complete turn = 60 seconds)
- the little black hand is showing the minutes of the time from the launching of the selected torpedo (one complete turn = 15 minutes)
- the red hand is showing the time when the torpedo will explode in the targeted ship.
:Kaleun_Cheers:
Kendras
05-24-17, 10:51 AM
Final version of my 24h chrono-clock is ready. If someone is interested, I may post a download link.
http://i.imgur.com/zwFp54H.png
@ Kendras:
:Kaleun_Applaud: :Kaleun_Wink: :Kaleun_Salute:
vBulletin® v3.8.11, Copyright ©2000-2025, vBulletin Solutions Inc.