SUBSIM Radio Room Forums

SUBSIM Radio Room Forums (https://www.subsim.com/radioroom/index.php)
-   SHIII Mods Workshop (https://www.subsim.com/radioroom/forumdisplay.php?f=195)
-   -   24-hour analog clock (https://www.subsim.com/radioroom/showthread.php?t=216753)

Fahnenbohn 11-12-14 06:49 AM

24-hour analog clock
 
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/
(User : Maik, Password : Woelfe)

http://nsm08.casimages.com/img/2014/...9012710250.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/...9012698419.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

Tycho 11-12-14 11:39 AM

Quote:

Originally Posted by Fahnenbohn (Post 2260289)
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

Quote:

Originally Posted by Tycho (Post 2260404)
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

Quote:

Originally Posted by Fahnenbohn (Post 2260289)
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/...9012700141.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

Quote:

Originally Posted by Fahnenbohn (Post 2260483)

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''?

Tycho 11-12-14 05:21 PM

off-topic: let me show you my new stopwatch.:)
http://oi58.tinypic.com/mj7ifl_th.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/...9012700403.png

@ Tycho : very nice dial, you are good at graphic design, I especially like the reflection effect. :up:

Tycho 11-13-14 02:21 AM

I'm away from my computer and SH3 now, but try with menu group, like that:

Quote:

[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

Quote:

Originally Posted by Fahnenbohn (Post 2260498)
@ 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

Quote:

Originally Posted by Tycho (Post 2260536)
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

Quote:

Originally Posted by Fahnenbohn (Post 2260498)
@ 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

Quote:

Originally Posted by Fahnenbohn (Post 2260598)
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.


All times are GMT -5. The time now is 02:59 AM.

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