Log in

View Full Version : Analog clock


Tycho
11-03-13, 06:10 PM
Ok. Here is my final version of the clock.

Great thanks to Ahnenerbe, he give me a seconds arrow dial. And BigWalleye for opened my eyes for this.

http://oi60.tinypic.com/2v2ecte_th.jpg (http://oi60.tinypic.com/2v2ecte.jpg)

Final Analog Clock (https://www.dropbox.com/s/hc7xhb0h7lgcaoa/Clock_final.7z)

Fahnenbohn 24-hour variant: 24-hour analog clock (http://www.subsim.com/radioroom/showthread.php?t=216753)

Edit: Old stuff:
I experimented a bit and made for myself non digital clock, looks like this:
http://imageshack.com/a/img7/6075/0mc2.th.jpg (http://imageshack.com/a/img7/6075/0mc2.jpg)

The date and digital local time are still there:
http://imageshack.com/a/img853/3578/fftq.th.jpg (http://imageshack.com/a/img853/3578/fftq.jpg)

The red arrow is a stopwatch arrow:
http://imageshack.com/a/img842/6595/udsa.th.jpg (http://imageshack.com/a/img842/6595/udsa.jpg)

I still have not figured out how to use the space where it was digital clock, for now just put there flotilla emblem.

sublynx
11-04-13, 03:20 AM
Cool :D Are you going to release this as a mod?

fitzcarraldo
11-04-13, 08:57 PM
Cool :D Are you going to release this as a mod?

Looks nice...I have the same question.

Regards.

Fitzcarraldo

Hitman
11-06-13, 01:16 PM
Really nice, didn't know you could convert the digital one into an analogic. Otherwise I would have done it with a nice Hanhart one from WW2 I had a picture from :)

SnipersHunter
11-06-13, 01:19 PM
This looks very nice

Tycho
11-06-13, 03:31 PM
Cool :D Are you going to release this as a mod?
I'm a little busy this week, then I'll think of something.
First, must find another wooden casing, because this is from Jonz draggable chrono.
Will hardly be a mod, just files and instructions on how to add it to your GUI, or replace JonZ chrono.

Really nice, didn't know you could convert the digital one into an analogic.
To eliminate digital clock, I just coment it in menu_1024_768.ini:
http://imageshack.com/a/img822/5381/7q5k.th.jpg (http://imageshack.com/a/img822/5381/7q5k.jpg)

Then, I take clock dials from command room sim file, which are for clocks in 3d interior:
http://imageshack.com/a/img809/1603/rys9.th.jpg (http://imageshack.com/a/img809/1603/rys9.jpg) http://imageshack.com/a/img201/51/xl2y.th.jpg (http://imageshack.com/a/img201/51/xl2y.jpg)

And I changed in dials.cfg, JonZ draggable chrono with above dials:
http://imageshack.com/a/img853/1074/ao6z.th.jpg (http://imageshack.com/a/img853/1074/ao6z.jpg)

Then I play little with graphics and that's it, works.

Tycho
01-14-14, 04:36 PM
After some break, now i'm free to play SH3 again! :rock:

With my limited skills, I managed to make two watches:
1st
http://imageshack.com/a/img819/1232/h2qq.th.jpg (http://imageshack.com/a/img819/1232/h2qq.jpg)
2nd
http://imageshack.com/a/img843/7580/sid8.th.jpg (http://imageshack.com/a/img843/7580/sid8.jpg)
And, I decided to keep draggable chrono, and make draggable clock separately.
http://imageshack.com/a/img545/1152/67k0.th.jpg (http://imageshack.com/a/img545/1152/67k0.jpg)

Johnfb
01-15-14, 06:41 AM
Is there a mod for this uploaded?

Tycho
01-15-14, 06:58 AM
Is there a mod for this uploaded?
Not yet, after go home tonight, I'll upload the files and explanation how to install this manually!

Delta Wolf
01-15-14, 09:39 AM
Nice work, will give this a try when its released :salute:

Johnfb
01-15-14, 12:03 PM
Not yet, after go home tonight, I'll upload the files and explanation how to install this manually!

Will use this for sure, thanks

Tycho
01-15-14, 02:56 PM
Ok, here are the files: Analog clock (https://dl.dropboxusercontent.com/u/68990563/GridXXXX/Clock_test.7z)

Because my english is very limited, I will use readme from JonZ Draggable Chronometer like template for my explanations.

MANUAL INSTALLATION

Backup Dials.cfg and menu_1024x768.ini.
You need Notepad to manually edit menu_1024x768.ini and Dials.cfg

http://imageshack.com/a/img822/7181/j23d.jpg
First choose one of the three versions, and place the graphic files in SH3 directory\data\menu\gui

Now, go to data/menu/cfg

Edit the file Dials.cfg, go to the first lines and increment the Dials numbers by 2 like this example:

[DIALS]
DialsNo=xx+2

in my case:
DialsNo=120; was 118

Now go to the end of the file and copy paste these 2 definitions and replace
the xx by the numbers that follow the before number

My last dial definition was [Dial117] then I replace the xx by 118 and 119

[Dialxx]
Name=Clock minutes
Type=9; DIAL_CLOCK_MINUTE
Dial=0x0
CrtVal=0x3FE00001
NewVal=0x0
DialVal=0,360
RealVal=0,60; minutes
Circular=Yes

[Dialxx]
Name=Clock hours
Type=8; DIAL_CLOCK_HOUR
Dial=0x0
CrtVal=0x3FE00002
NewVal=0x0
DialVal=0,720
RealVal=0,24; hours
Circular=Yes

Save the file!

Now, open the menu_1024x768.ini file (../Data/Menu) and go to the last [G3F Ixx] parameter.

in my case: [G3F I301]

Continue the sequence like you did for Dials.cfg by entering these parameters:

[G3F Ixxx]
Name=Clock Face
Type=1031;Stat bmp array
ItemID=0x3FE00000
ParentID=0x3F000000
Pos=911,165,163,213
Materials=1
Display=0;No stretch
Mat 0=data/menu/gui/12_Clock.tga
MatFlags=0x29
TexFmt=0x9
Drag=true
BmpState=1
NeedFocus=true
SelOne=true
IdGroup=0
StatesColors=0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF

[G3F Ixxx]
Name=Clock Min
Type=1031;Stat bmp array
ItemID=0x3FE00001
ParentID=0x3FE00000
Pos=77,-69,17,117
Materials=1
Display=5;Linear&rotation
Mat 0=data/menu/gui/Clock_min.tga
MatFlags=0x29
TexFmt=0x9
Drag=false
BmpState=1
NeedFocus=false
SelOne=false
IdGroup=0
StatesColors=0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF

[G3F Ixxx]
Name=Clock Hours
Type=1031;Stat bmp array
ItemID=0x3FE00002
ParentID=0x3FE00000
Pos=79,-85,13,85
Materials=1
Display=5;Linear&rotation
Mat 0=data/menu/gui/Clock_hour.tga
MatFlags=0x29
TexFmt=0x9
Drag=false
BmpState=1
NeedFocus=false
SelOne=false
IdGroup=0
StatesColors=0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF

Save the file!
Test the game!

In [G3F Ixxx]
Name=Clock Face
The line: Pos=911,165,163,213
First two numbers are for position on the screen, in this case the clock is here:
http://imageshack.com/a/img689/1707/oipf.th.jpg (http://imageshack.com/a/img689/1707/oipf.jpg)
If you want something different, need to play with this numbers 911,165 - first value is for horizontally from left to right, second value is for vertically from bottom to top.

And because this is analog clock, if you want to hide digital one, search in
menu_1024x768.ini file for this two items, and comment them like here:
http://imageshack.com/a/img822/5381/7q5k.th.jpg (http://imageshack.com/a/img822/5381/7q5k.jpg)

Johnfb
01-15-14, 03:08 PM
Thank you very much

BigWalleye
01-15-14, 04:55 PM
Nice piece of work, Tycho. Thank you.

Otto Fuhrmann
01-16-14, 01:40 PM
Looks great, I will definitely give this a go!

sublynx
01-18-14, 07:55 AM
Real nice. I really hope the clock gets adopted to different GUI mods in the future :arrgh!:

BigWalleye
01-18-14, 03:47 PM
I think the point of making it available as a DIY is that you can easily drop it into whatever GUI you happen to be using. So anyone can use it in their game, whether stock, modded, or custom. IMO, for a relatively simple addition like this, Tycho's approach is very practical and convenient.

sublynx
01-23-14, 01:40 AM
IMO, for a relatively simple addition like this, Tycho's approach is very practical and convenient.

The approach is the best there can be. I wish it would be added to different GUI's for two reasons. Some players won't make any kind of changes to the game without JSGME and some unorganized mod soupers (like me) have got stuck to a situation where the menu file is such a complicated, individualized mess that even the simplest changes are somewhat stressful.

BigWalleye
01-23-14, 07:45 AM
...the the menu file is such a complicated, individualized mess that even the simplest changes are somewhat stressful.

I hera that! Been there myself. I came up with a kludge that works for me. I do not tweak any mods. I install them rockstock. I then take all my tweaks - custom keyboard, some sounds I like, a WinMerged menu_1024_768, and other stuff - and put them all into a mod I call "On_Top" because I always activate it last. That way, all my personal changes are in one place. If I add a new mod which changes menu_1024_768, for instance, then I only have to merge the changes from the new mod into the On_Top mod's menu_1024_768. For Tycho's analog clock, I just added the graphics to On_Top, added the entries to menu_1024_768 and Dials.cfg, and activated the new On_Top with JSGME. Configuration management is reduced to the one mod, and I keep all previous versions so I can regress if anything goes wrong.

This may be an obvious solution that everybody else already uses. I don't mean to insult anyone's intelligence. But it has made my life, and juggling mods, a lot easier.

sublynx
01-23-14, 09:39 AM
A very good idea and one I need to implement ASAP :up:

BigWalleye
01-23-14, 11:32 PM
A very good idea and one I need to implement ASAP :up:

A good alternative to early dementis!

Johnfb
01-24-14, 02:51 AM
Does anyone know what GUI Tycho is using ?

Tycho
01-24-14, 04:15 AM
Hitman GUI (http://www.subsim.com/radioroom/showthread.php?t=167126)

Johnfb
01-24-14, 04:41 AM
Hitman GUI (http://www.subsim.com/radioroom/showthread.php?t=167126)

Thanks :yeah:

Johnfb
01-24-14, 07:42 AM
http://imageshack.com/a/img545/1152/67k0.th.jpg[/url]

Is the brown map part if that GUI ?

Tycho
01-24-14, 08:50 AM
No, my map is combination between:
- edited with hex editor Terrain.act file. Very similar to this: http://www.subsim.com/radioroom/showthread.php?t=164173

- "\data\terrain\maps\" files from: http://www.subsim.com/radioroom/showthread.php?t=163133

- and my StrTactMap.tga file

Johnfb
01-24-14, 12:57 PM
:up:

Tycho
02-22-14, 11:31 AM
One more variant:
http://oi61.tinypic.com/2z4y6j6_th.jpg (http://oi61.tinypic.com/2z4y6j6.jpg)

Analog Clock (https://dl.dropboxusercontent.com/u/68990563/GridXXXX/Clock_test.7z)

Tycho
02-27-14, 06:22 AM
Ok. Here is my final version of the clock. It is with different parameters in menu_1024_768.ini, instruction in readme.txt file!

http://oi58.tinypic.com/2150kxs_th.jpg (http://oi58.tinypic.com/2150kxs.jpg)

Final Analog Clock (https://dl.dropboxusercontent.com/u/68990563/GridXXXX/Clock_final.7z)

niwo
09-13-14, 05:34 PM
Looks great, but before i start to edit files I have 2 questions?

Is the clock working on all screens?
Can i start/stop/reset it from any screen?

Cheers
niwo

BigWalleye
09-13-14, 06:41 PM
Looks great, but before i start to edit files I have 2 questions?

Is the clock working on all screens?
Can i start/stop/reset it from any screen?

Cheers
niwo

Yes, the "clock" works on all screens. BUT, it it an ordinary pocket watch. It is not a stopwatch (aka, chronometer). It does not start, stop, or reset at all. It shows time-of-day, the same as the clock at the navigator's station.

I have added a sweep second hand. (Pretty easy to do.) That lets me use it effectively for interval timing by the eyeball method. And, because it is availabe at every screen, it is easier to use than the stopwatch or Jonz' chronometer repeater. But it always, and only, shows time-of-day.

LGN1
10-27-14, 04:02 PM
Hi BigWalleye,

I have tried to add a second hand, but failed :hmmm: The hand was always stuck at 12:00. What type did you use for the dial?

I used the following entries in dials.cfg:

[Dial93]
Name=Clock seconds
Type=80; DIAL_CLOCK_SECOND
Dial=0x0
CrtVal=0x3FE00001
NewVal=0x0
DialVal=0,360
RealVal=0,60;
Circular=Yes

[Dial94]
Name=Clock minutes
Type=9; DIAL_CLOCK_MINUTE
Dial=0x0
CrtVal=0x3FE00002
NewVal=0x0
DialVal=0,360
RealVal=0,60; minutes
Circular=Yes

[Dial95]
Name=Clock hours
Type=8; DIAL_CLOCK_HOUR
Dial=0x0
CrtVal=0x3FE00003
NewVal=0x0
DialVal=0,720
RealVal=0,24; hours
Circular=Yes

And in the menu...ini:

[G3F I391]
Name=Clock Face
Type=1031;Stat bmp array
ItemID=0x3FE00000
ParentID=0x3F000000
Pos=698,35,163,213
Materials=1
Display=0;No stretch
Mat 0=data/menu/gui/12_Clock.tga
MatFlags=0x29
TexFmt=0x9
Drag=true
BmpState=1
NeedFocus=true
SelOne=true
IdGroup=0
StatesColors=0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF

[G3F I392]
Name=Clock Sec
Type=1031;Stat bmp array
ItemID=0x3FE00001
ParentID=0x3FE00000
Pos=77,-69,17,117
Materials=1
Display=5;Linear&rotation
Mat 0=data/menu/gui/Clock_sec.tga
MatFlags=0x29
TexFmt=0x9
Drag=false
BmpState=1
NeedFocus=false
SelOne=false
IdGroup=0
StatesColors=0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF

[G3F I393]
Name=Clock Min
Type=1031;Stat bmp array
ItemID=0x3FE00002
ParentID=0x3FE00000
Pos=77,-69,17,117
Materials=1
Display=5;Linear&rotation
Mat 0=data/menu/gui/Clock_min.tga
MatFlags=0x29
TexFmt=0x9
Drag=false
BmpState=1
NeedFocus=false
SelOne=false
IdGroup=0
StatesColors=0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF

[G3F I394]
Name=Clock Hours
Type=1031;Stat bmp array
ItemID=0x3FE00003
ParentID=0x3FE00000
Pos=79,-85,13,85
Materials=1
Display=5;Linear&rotation
Mat 0=data/menu/gui/Clock_hour.tga
MatFlags=0x29
TexFmt=0x9
Drag=false
BmpState=1
NeedFocus=false
SelOne=false
IdGroup=0
StatesColors=0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF

Any help would be highly appreciated.

Regards, LGN1

BigWalleye
10-27-14, 04:44 PM
I shamelessly stole the code for the functional second hand from Ahnenerbe's 1920x1080 mod for GWX. I added it onto Tycho's Analog Watch mod. The relevant data block in dials.cfg is:

[DialXX]
Name=Clock seconds
Type=9; DIAL_CLOCK_SECONDS
Dial=0x0
CrtVal=0x3FE00003
NewVal=0x0
DialVal=0,21600
RealVal=0,60; seconds
Circular=Yes

And in menu_1024_786.ini:

[G3F IXXX]
Name=Clock Sec
Type=1031;Stat bmp array
ItemID=0x3FE00003
ParentID=0x3FE00000
Pos=77,-69,17,117
Materials=1
Display=5;Linear&rotation
Mat 0=data/menu/gui/Clock_sec.tga
MatFlags=0x29
TexFmt=0x9
Drag=false
BmpState=1
NeedFocus=false
SelOne=false
IdGroup=0

I believe the only significant difference between your code and mine is in the dials.cfg line: DialVal=0,21600 vice DialVal=0,360. Note that 21600 is 60x360. I believe your value makes the second hand move at the same speed as the minute hand. IAC, it is, as I said, lifted straight from Ahnenerbe's mod, and it does work.

LGN1
10-27-14, 04:53 PM
Thanks for the reply, BigWalleye :up:

That's a very nice idea/trick from Ahnenerbe; using the 'minute dial' and having it turning with 60x the speed. Very clever :yep:

Regards, LGN1

Tycho
10-27-14, 04:55 PM
[DialXX]
Name=Clock seconds
Type=9; DIAL_CLOCK_SECONDS
Dial=0x0
CrtVal=0x3FE00003
NewVal=0x0
DialVal=0,21600
RealVal=0,60; seconds
Circular=Yes

Yep, good trick with minute dial, thanks for sharing. Will do it for myself tomorrow.

BigWalleye
10-27-14, 08:50 PM
Thanks for the reply, BigWalleye :up:

That's a very nice idea/trick from Ahnenerbe; using the 'minute dial' and having it turning with 60x the speed. Very clever :yep:

Regards, LGN1

Yes. Credit to Ahnenerbe for figuring out that elegant solution.

makman94
10-28-14, 06:04 AM
Thanks for the reply, BigWalleye :up:

That's a very nice idea/trick from Ahnenerbe; using the 'minute dial' and having it turning with 60x the speed. Very clever :yep:

Regards, LGN1

yes ,a very clever and a very usefull addition this seconds needle :yep:

bravo to Ahnenerbe :up:

Ahnenerbe
10-28-14, 10:21 AM
I shamelessly stole the code for the functional second hand from Ahnenerbe's 1920x1080 mod for GWX. I added it onto Tycho's Analog Watch mod. The relevant data block in dials.cfg is:

[DialXX]
Name=Clock seconds
Type=9; DIAL_CLOCK_SECONDS
Dial=0x0
CrtVal=0x3FE00003
NewVal=0x0
DialVal=0,21600
RealVal=0,60; seconds
Circular=Yes

And in menu_1024_786.ini:

[G3F IXXX]
Name=Clock Sec
Type=1031;Stat bmp array
ItemID=0x3FE00003
ParentID=0x3FE00000
Pos=77,-69,17,117
Materials=1
Display=5;Linear&rotation
Mat 0=data/menu/gui/Clock_sec.tga
MatFlags=0x29
TexFmt=0x9
Drag=false
BmpState=1
NeedFocus=false
SelOne=false
IdGroup=0

I believe the only significant difference between your code and mine is in the dials.cfg line: DialVal=0,21600 vice DialVal=0,360. Note that 21600 is 60x360. I believe your value makes the second hand move at the same speed as the minute hand. IAC, it is, as I said, lifted straight from Ahnenerbe's mod, and it does work.

BigWalleye, well laugh about the "stolen." I do not give a prohibition on the use of one or another of my GUI, moreover, I even offered to place fitzcarraldo final version is ready, but yet I test periodically.

Hello everyone !!!!
I also did not immediately give the desired right move second hand, only the third attempt. Arrow jump every second measure, and (not remember) somewhere either four or ...... And was running and in a quarter of a minute, and I'm out of here already pushed spending calculation: 60 seconds is multiplied by 60 minutes and again multiplied by the 24 hours after the receipt of the sum divide by 4 to arrive at a number 21600. Next already has it easy. Edit in menu.ini problems not accounted for.
Good luck
++Ahnenerbe++

BigWalleye
10-28-14, 01:11 PM
BigWalleye, well laugh about the "stolen." I do not give a prohibition on the use of one or another of my GUI, moreover, I even offered to place fitzcarraldo final version is ready, but yet I test periodically.

Hello everyone !!!!
I also did not immediately give the desired right move second hand, only the third attempt. Arrow jump every second measure, and (not remember) somewhere either four or ...... And was running and in a quarter of a minute, and I'm out of here already pushed spending calculation: 60 seconds is multiplied by 60 minutes and again multiplied by the 24 hours after the receipt of the sum divide by 4 to arrive at a number 21600. Next already has it easy. Edit in menu.ini problems not accounted for.
Good luck
++Ahnenerbe++

I said I "stole" it because I wanted to make sure that everyone knew it was your idea and not mine. I never even thought to experiment with the dials.cfg as you did. It's just a small detail and a tiny part of the work you put into your 1920x1080 mod. But it is very useful and functional. Kudos.

Ahnenerbe
10-28-14, 02:18 PM
I said I "stole" it because I wanted to make sure that everyone knew it was your idea and not mine. I never even thought to experiment with the dials.cfg as you did. It's just a small detail and a tiny part of the work you put into your 1920x1080 mod. But it is very useful and functional. Kudos.

I do not dwell on this, so we are Russian-speaking people, and so we mentallitet, at least for me. Everyone has the right to do with it what he wants, without mentioning my name.
++Ahnenerbe++

Tycho
10-28-14, 06:24 PM
Update first post: now with arrow for seconds.

Ahnenerbe, спасибо! Очень радуюсь, что сейчас мои часы имеют секунды.

Ahnenerbe
10-30-14, 08:50 AM
Update first post: now with arrow for seconds.

Ahnenerbe, спасибо! Очень радуюсь, что сейчас мои часы имеют секунды.

Not at all, Tycho! And thank you for the mod itself with the clock:salute:, without him and would not have a second hand ......... And for the Russian language too:rock: !!

sublynx
02-13-15, 12:54 PM
http://i.imgur.com/pTqOFfZ.jpg


Thanks Tycho, it's been a long time but I finally got this done. Adding this was no problem thanks to your clear instructions :arrgh!:

Edit: Oh yeah, and thanks BigWalleye and Ahnenerbe, I added the arrow for seconds as well. It only took 15 minutes or so.

dimonuses
02-21-15, 04:15 AM
Hello, I am new to your forum,tell me how to add arrow to a clock in the file menu_1024_768 mods Manos GUI v3.4 (Olegka HOME Edition) ?

Tycho
02-21-15, 05:41 AM
Hello, I am new to your forum,tell me how to add arrow to a clock in the file menu_1024_768 mods Manos GUI v3.4 (Olegka HOME Edition) ?
In the archive have instruction, how to install the clock.
If you are unable to install it, PM to me, what exactly is the problem?
Or send to me your menu_.ini and dials.cfg files.
You can write in Russian, I understand it.

Tycho
05-17-15, 03:18 PM
Experiments with new analog clock!
http://oi61.tinypic.com/e869eu.jpg