View Full Version : [REL] Functional Draggable Chronometer
Functional draggable chronometer!
Download (https://www.dropbox.com/s/66qy6gcz15osxaj/ChronoPatch.7z?dl=0)
This sh3.exe patch will give you the opportunity to make the draggable chronometer at G3F menu to be not only repeater, but to be fully functional.
The patch will work on original sh3.exe, will work after H.sie patch, will work after H.sie patch plus Stiebler add-on, and will work after my TychoSh3Patch.
Will not work directly with Steam version! Steam users must first apply H.sie patch.
To install it, first extract the ChronoPatch folder from the archive, copy and paste your sh3.exe file in this folder and then start the file "ChronoPatch.bat".
Copy and paste the patched sh3.exe file back to the game folder or in mod folder for JSGM install.
The patch itself will not give functional draggable chronometer to the end user.
You can do it yourself or wait for gui modders to rework their draggable chronometers.
Basically, you need to add in menu_1024_768.ini, one Type=1031 item to the G3F menu with the specific ItemID=0x3F310005.
It can be everywhere, but of course is more suitable to be part of the draggable chronometer.
If your chrono have separated graphics for glass above the arrows, you can make the glass element to be 0x3F310005.
Or, you just add new one, after draggable item. It is not needed to have graphics (without "Mat 0="), just right "Pos=" for dimension and position.
And after my patch, when you click over this item, the chrono will start, stop or reset.
https://i.postimg.cc/QMr5jNfk/image.jpg https://i.postimg.cc/3R8vDS5k/image.jpg
https://i.postimg.cc/C1cfCGSm/image.jpg
Above examples:
If your draggable area is the red rectangle on the above screens, and you made this new item with dimension and position like the blue square:
The draggable will be what is left of the red area, and the blue area will be for activation of the chrono.
This version is without ticking sound outside of the scope screens. I can make the version with the ticking sound, but for now this have some problems. Because, in the game code have three functions, that works with this sound and this interfere with my one. In the future, if I come with solution will release a new version with ticking sound.
Tycho
Old post:
Functional Draggable Chronometer
Well, the situation is that I'm out of SH3. I don't play and don't do anything. Don't have mood, my last campaign patrol is a year ago.
Only from time to time I look and change something in the sh3.exe.
But, some time ago, Makman ask me if I can make the draggable chronometer to be functional. You know, it is only repeater, and to start and stop it, you must go on periscopes screens.
So, interesting problem, let's try to solve it. And I accomplished the task, now the chrono can be started and stopped from G3F menu, that mean from everywhere.
Now, the patch is ready by a month or so, tested by me and Makman, work like intended.
But, I still don't find the mood and time to sit and release it, to write readme file and explanation.
So, I was thinking, if I post this topic, then I will feel obliged to finish all the job needed, in manner of day or two. Will not happen today, I'm at work now. :Kaleun_Wink:
Kelly621
09-30-18, 02:52 PM
So, I was thinking, if I post this topic, then I will feel obliged to finish all the job needed, in manner of day or two. Will not happen today
Like the way you are kick starting yourself to get it done :)
Kelly621
Wolfpack345
10-07-18, 06:54 AM
Sweet! I'll give it a go once I am home! Thanks for your hard work!
Anvar1061
10-07-18, 02:42 PM
Explain the installation method. Show an example of how many changes are waiting for me here:"Basically, you need to add in menu_1024_768.ini, one Type=1031 item to the G3F menu with the specific ItemID=0x3F310005."
Explain the installation method. Show an example of how many changes are waiting for me here:"Basically, you need to add in menu_1024_768.ini, one Type=1031 item to the G3F menu with the specific ItemID=0x3F310005."
Send me yours menu_1024_768.ini, I will make it for you and will write example over it.
Anvar1061
10-08-18, 12:25 AM
Send me yours menu_1024_768.ini, I will make it for you and will write example over it.
https://vk.com/doc122658649_476822496?hash=35c641e2fe42f303cc&dl=931937d5d2ce972a64
Hebe Vollmaus
10-09-18, 04:07 PM
Functional draggable chronometer!
8<--
A real useful addition to the game. Thanks alot! :up:
Now i have to find the final position for my new Stop-Button.
Greetings.
I make this not on my computer with SH3, result is not checked, but must be right.
1. First I'll find the draggable chrono in this menu_1024_768.ini file sended me by Anvar, let's use the word "chronometer".
2. Found it: [G3F I400], if you don't find it with this word try with "0x3FF00000".
I think that every draggable chrono in every gui have this ItemID, by inheritance from the first one made by Jonz.
http://oi64.tinypic.com/eiwn6c.jpg
3. Let's look over it:
In this particular gui, graphics for the chrono is taken from the file "data/menu/gui/Periscope.tga".
But, because this file contain many things, is used crop function, to take only the chrono.
I open the Periscope.tga with Paint.net and I look over the Crop 0=digits.
The resolution of the file is 1024x1024, the first number of the "crop 0=" is for horizontal direction:
1024 x 0.00292969 = 3,00000256, so 3 pixels from left to right.
The second number is for vertical direction:
1024 x 0.767578 = 785,999872, so 786 pixels from up to down.
This is where cropping start, the next two numbers: are how many pixels will be cropping to the right and down from this position.
In this case this is equal to the resolution of the chrono, I see this in: third and fourth numbers of "Pos=", 163x213.
So, with this information I will crop it from the Periscope.tga with the Paint.net.
http://oi63.tinypic.com/fzb2uw.jpg
4. I did that only because I need to measure the right parameters for the "Pos=" of the new Item that I must add.
From ChronoPatch I know that this item must be "Type=1031" and "ItemID=0x3F310005", the [G3F I400] also is Type=1031,
so I will copy it and will paste it immediately after [G3F I400], and will renumber it to [G3F I401].
I make "Name=Activation" , "ItemID=0x3F310005" and "ParentID=0x3FF00000", and delete "Mat 0=" and "Crop 0=", don't need these.
Now, over the graphics of the chrono that I cropped, I decide what will be the area for activation of the chrono, and will make the proper "Pos=" of the new item.
http://oi63.tinypic.com/2pplx51.jpg
So, from the upper left corner of the chronometer the position will be "36,-79" and resolution will be 101,101.
"Pos=36,-79,101,101"
http://oi64.tinypic.com/3307ex0.jpg
5. Now, I need to renumber all of the rest of G3F items. Happily, the chrono is close to the end of G3F, the last item is [G3F I417], so I do it manually.
I raised with one the number of every G3F item after my new one, so the last one come to 418.
If the case was to renumber too many items, I would have to use the Hsie menu renumbering tool.
6. Finally, I apply ChronoPatch over sh3.exe, and now when I click over this new menu item, the draggable chronometer will start/stop or reset.
Just like the original one on the periscopes screen.
makman94
10-11-18, 11:48 AM
...A real useful addition to the game...
this ^
A superb addition to the game thanks to Tycho :Kaleun_Applaud:
Bravo Tycho :Kaleun_Salute:
In this particular menu_1024_768.ini, I did not pay attention to the chronometer position.
It is hidden to the upper left corner of the screen.
Then, this option is more suitable:
http://oi63.tinypic.com/2zz80ag.jpg
Replace for 0x3F310005, Pos = with this:
Pos=71,-9,29,29
Or:
http://oi68.tinypic.com/29vkmeq.jpg
Pos=66,-83,41,41
ArnoldR
10-21-18, 05:57 PM
Wow!! Good job!!!!
:Kaleun_Thumbs_Up:
Has anyone gotten this working?
My Chrono-Patched sh3.exe (with H.sie patch plus Stiebler add-on, but not TychoSh3Patch), crashes almost immediately upon launching.
Hebe Vollmaus
11-01-18, 09:50 AM
Has anyone gotten this working?
My Chrono-Patched sh3.exe (with H.sie patch plus Stiebler add-on, but not TychoSh3Patch), crashes almost immediately upon launching.
Yes, works perfectly.
(Why i should say 'Thanks' abowe in Thread when it would not work?)
Maybe my SH3.exe (with h.sie v16b1 and Stiebler4C) is different then yours.
My version is from ftp:COMMUNITYMODS.
Greetings.
Has anyone gotten this working?
My Chrono-Patched sh3.exe (with H.sie patch plus Stiebler add-on, but not TychoSh3Patch), crashes almost immediately upon launching.
Maybe, you do something wrong with all the steps needed?
The right order here is:
Take the original sh3.exe, move it to H.sie patch, patch it and do all needed by instructions there, but don't use option selector there.
Next, move the sh3.exe to the Stiebler add-on, patch it and do all needed by instructions there, now use the option selector here to setup it.
After that, move sh3.exe to the ChronoPatch, and patch it, of course menu_.ini must be edited to prepare the chrono to be functional.
Now, the sh3.exe is ready to be send to the game folder.
ericlea
11-20-18, 05:28 AM
Wow !
That is another great enhancement after your full nav map f5 and f6 for widegui !
I will try to place this functionnal draggable chronometer in ARB ahnenerbe wide gui for wac5 !
http://subsim.com/radioroom/showpost.php?p=2577614&postcount=1
Thanks Thycho !
:Kaleun_Thumbs_Up:
ericlea
12-25-18, 04:47 PM
Hi, I try to add functional dragable chrono into
Optimized ARB-Ahnenerbe WideGui 1920x1080 for WAC5
http://www.subsim.com/radioroom/showthread.php?t=239167
But i think it does'nt work because in this widegui (as in all 1920 x 1080 Ahnenerbe WideGui) the dragable chrono is taken in a different file :
Optimized ARB-Ahnenerbe WideGui 1920x1080 for WAC5\data\Menu\Gui\Chronometer.tga
https://i36.servimg.com/u/f36/19/84/56/02/captur15.jpg (https://servimg.com/view/19845602/139)
not in data\Menu\Gui\Periscope.tga
So the changes to made in menu_1024_768.ini are not the same as you describe.
here you can see that in menu_1024_768.ini, it is different that in your exemple :
https://i36.servimg.com/u/f36/19/84/56/02/captur14.jpg (https://servimg.com/view/19845602/138)
But I am sure it will be possible to add this great enhencement in 1980x1080 widegui ! Perhaps you can help us :-)
Thank You !
:Kaleun_Salute:
If you want me to write you, what to do? I will just copy/paste my preview descriptions.
Nothing different, the principle is the same, how I already describe it.
You must create one new item to the chrono.
Over the chronometer.tga you measure the resolution and position of this new item, that will define the area, where you will click for the chrono to start/stop/reset.
Or, the easiest way is, just send me your menu_1024_768.ini and this chronometer.tga, and I'll do it.
:Kaleun_Salute:
ericlea
12-28-18, 08:10 AM
Thank you !
I had already modified the menu_1024_768.ini and create one new item to the chrono as in your example.
i will going deeper and test it.
If i have problem i will write you.
EDIT : I do not succeed yet, it seems dragable chrono is differently made in widegui1920x1080 mods as in gui 4x3 mods
I send you a PM
sorry for my lack of doing this :-(
Well, I come back home too late this night, don't have time for this.
But now, when I look over your screenshot, maybe I know where is your mistake!
Maybe, you connect the new item to the ParentID=0x3FF00000 (item 343)?
Yes, in my example it is child to the 0x3FF00000, but it is different case.
Now look close to your case. This item, 343 is a type = menu group, and it is stationar, and from my point of view - completely redundant.
Your draggable element is the next item 0x3FF00006, and all other chrono element (Arrow, Glass...) are probably connected to it.
So, what happen maybe is this:
When you drag your chrono in the game, the 0x3FF00006 and all its children are moving.
0x3FF00000 is not child to the draggable item, but opposite, it is a parent to the 0x3FF00006, but this don't make it draggable.
It stay on its position and only define the original position of the chrono, before you start dragging it.
Now if you connect the required new item to the 0x3FF00000, then it also will be stationar and stay on position.
So, try it again, but this time make it next after 344, and make its ParentID=0x3FF00006
If still don't happen, then tomorrow night I will do it!
ericlea
12-28-18, 05:31 PM
Hi Tycho !
Your are a master that was the solution !!!
ParentID=0x3FF00006 (not ParentID=0x3FF00000)
https://i36.servimg.com/u/f36/19/84/56/02/captur16.jpg (https://servimg.com/view/19845602/141)
Now functional dragable chrono works and will work with all 1920x1080 widegui mods !
After your FULL NAV MAP for widegui 1920x1080, now your functional dragable chrono ! 2 very important enhencements in the story of sh3 !
BRAVO TYCHO !!!
:Kaleun_Applaud: :Kaleun_Cheers: :Kaleun_Thumbs_Up: :Kaleun_Salute:
tomorrow I’ll place the on/off area on the stopwatch top button and everything will be perfect !
https://i36.servimg.com/u/f36/19/84/56/02/4c63cb10.png (https://servimg.com/view/19845602/140)
ericlea
01-09-19, 01:05 PM
Because MaGui F is for me the best gui mod in 4x3 (normal resolution) for sh3
http://www.subsim.com/radioroom/showthread.php?t=166320
here is the functional draggable chrono for MaGui F !
https://www.dropbox.com/s/v56a97ck4u2ocwm/Functional%20Draggable%20Chrono%20for%20MaGui%20F. 7z?dl=0
INSTALLATION :
1-copy your sh3.exe and
paste it in the mod at same level as "ChronoPatch.bat"
2-launch "ChronoPatch.bat" to patch sh3.exe
3-then activate the mod with jsgme after MaGui F
Thanks to Tycho for this great Sh3 enhencement !
and to Mackman94 for his wonderful MaGui F
ericlea
:Kaleun_Cheers:
shadow_wxh
04-01-20, 07:36 AM
Is it possible to add a hot-key in the commands_en.cfg so the stopwatch can respond to keyboard input?
Jeka 37
08-01-20, 08:46 AM
Hi, how to get GWX and Widescreen MaGui v3.4-SA working. After the patch exe and menu.ini, the game starts with an error and the chronometer has no arrow.
I added to menu.ini
[G3F I399]
Name=Dial
Type=1031;Stat bmp array
ItemID=0x3FF00000
ParentID=0x3F000000
Pos=-46,148,163,213;-107,920,163,213
Materials=1
Display=0;No stretch
Mat 0=data/menu/gui/Periscope.tga
Crop 0=0.00292969,0.767578,0.15918,0.208008
MatFlags=0x21
TexFmt=0x9
Drag=true
BmpState=1
NeedFocus=true
SelOne=true
IdGroup=0
StatesColors=0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF
G3F I400]
Name=Activation
Type=1031;Stat bmp array
ItemID=0x3F310005
ParentID=0x3FF00000
Pos=71,-9,28,28
Materials=1
Display=0;No stretch
MatFlags=0x29
TexFmt=0x9
Drag=false
BmpState=1
NeedFocus=true
SelOne=false
IdGroup=0
StatesColors=0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF
Just a guess, but did you renumber the menu items correctly?
Jeka 37
08-01-20, 10:24 AM
Just a guess, but did you renumber the menu items correctly?
Yes, I have corrected the numbering below to [G3F I417].
Jeka 37
08-01-20, 11:20 AM
Changed a little, loading without problems the chronometer hand returned but there is no effect. Maybe the position is not set correctly?
[G3F I400]
Name=Activation
Type=1031;Stat bmp array
ItemID=0x3F310005
ParentID=0x3F000000
Pos=71,-9,101,101
Materials=1
Display=0;No stretch
MatFlags=0x21
TexFmt=0x9
Drag=true
BmpState=1
NeedFocus=true
SelOne=true
IdGroup=0
Aktungbby
08-01-20, 12:02 PM
Jeka37!:Kaleun_Salute:
leinar_06
08-04-20, 10:06 PM
can someone help me with this mod
gutto_13
08-23-20, 05:22 AM
when i do the patch without running the batch file in administrator i get this
"Patched 67 bytes, new hash: ae864687ce646979d33d67f1b340318a
ChronoPatch has been successfully applied!
Press any key to continue . . ."
then i go in game and it no work
but when i run as administrator i get
"'binpatch' is not recognized as an internal or external command,
operable program or batch file.
There is something wrong with you! ChronoPatch fail to apply!
Press any key to continue . . ."
pls Help
im running all these mods
**Grey Wolves Expansion
*Sh3 Commander
Thomsen's Sound Pack V3.2cg
Rbs1_SH4_Effects_GWX_30_71
Rapt0r's Uniforms V2.0 [Grey]
Rapt0r's Uniforms V2.0 [Grey - All Leather] Patch
Rubini´s Underwater dust&plancton v1
M.E.P v6
Optional - ShipVanishingHull for MEP v6
Optional - FSF for MEP v6
TKSS18 German U-Boats Compilation No Eagle
German U-Boats Compilation 2 (only VIIB & VIIC models by WISE)
U-Boot 7c-II
FixAllSubGWX
ARB WideGui 1920x1080 V3
Adaptation for English & Deutsch
Sh3_volumetric_clouds&fog_V2.2
Ricks_GWX_Rec_Man_Final
M.E.P v6- VisualSensors for GWX3
H.sie Hard-coded fixes.
Aktungbby
08-23-20, 12:03 PM
gutto_13,:Kaleun_Salute: surfaced after 3 year silent run!:up:
diego_gut
08-23-20, 04:56 PM
I think you applied the patch as you should but Arb Gui does not have the code to make it work by default. Someone posted a patch in Arb Gui thread.
Regards,
gutto_13
08-23-20, 11:10 PM
I think you applied the patch as you should but Arb Gui does not have the code to make it work by default. Someone posted a patch in Arb Gui thread.
Regards,
Thank you so much :Kaleun_Cheers:
rotten_apples
08-27-20, 01:13 AM
can you install this mid campaign? or should it be on a fresh start?
can you install this mid campaign? or should it be on a fresh start?
Anytime :03:
haddock's crew
09-23-22, 05:45 AM
I don't exactly understand; you need to install a chronometer in your game(for me steam version with h.sie patch), but i didn't find them on download pages. I'm pretty sure you didn't have to install a supermod or some big graphical changes as many like me have anothers littles graphical mods.
the author assumes that we already have the required entry in the menu.ini file, but I can't find a chronometer or the corresponding value by search fonction.
do you know a way to add these entries to the file in question?
I think I can manage for the rest of the process but the beginning gives me trouble. :hmmm:
ole.yansen
02-09-23, 02:36 AM
I have created menu_1024_768.ini entry for Widescreen MaGui v3.4-SA
Maybe would be handy for someone.
Before use please check if entry number "[G3F I417]" not collide with other entries in group "G3F".
[G3F I417]
Name=Activation
Type=1031;Stat bmp array
ItemID=0x3F310005
ParentID=0x3FF00000
;Pos=66,-83,41,41;Start by clicking on minute dial
Pos=71,-9,29,29;Start by clicking on knob
Materials=1
Display=2;Linear
MatFlags=0x21
TexFmt=0x9
Drag=false
BmpState=1
NeedFocus=true
SelOne=false
IdGroup=0
StatesColors=0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF
Thanks @tycho for great addon :Kaleun_Salute:
FUBAR295
02-09-23, 09:52 AM
I have created menu_1024_768.ini entry for Widescreen MaGui v3.4-SA
Maybe would be handy for someone.
Before use please check if entry number "[G3F I417]" not collide with other entries in group "G3F".
[G3F I417]
Name=Activation
Type=1031;Stat bmp array
ItemID=0x3F310005
ParentID=0x3FF00000
;Pos=66,-83,41,41;Start by clicking on minute dial
Pos=71,-9,29,29;Start by clicking on knob
Materials=1
Display=2;Linear
MatFlags=0x21
TexFmt=0x9
Drag=false
BmpState=1
NeedFocus=true
SelOne=false
IdGroup=0
StatesColors=0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF
Thanks @tycho for great addon :Kaleun_Salute:
Welcome aboard ! :Kaleun_Salute:
WOW ... New guy and doing mods out of the gate. :Kaleun_Applaud:
Dashiva
06-01-23, 03:04 AM
Hi, I have found all of this stuff very confusing...
Is there a way someone could write me a "step by step" guided tutorial of how to get my Chronometer working, so it will start/stop or reset.
By the way I am running "ARB WideGui 1920x1080".
Any help would be appreciated, thank you.
Aktungbby
06-01-23, 09:40 AM
Dashiva!:Kaleun_Salute:
EmeAzul
06-04-23, 10:42 AM
Ole, thank you for the G3F I417 Activation detail. I'm also on a GWX related 1360x768 widescreen, but despite several attempts, I've been unable to make the draggable Chronometer work. No matter where I click on the clock, it does not start. This could be related to ParentID issues on my end.
Thus could you please provide the details for your related G3F I415, I416 and I418 through I424 menu items? Perhaps others could gain some insight from this. It would be much appreciated.
EmeAzul
Wow !
That is another great enhancement after your full nav map f5 and f6 for widegui !
I will try to place this functionnal draggable chronometer in ARB ahnenerbe wide gui for wac5 !
http://subsim.com/radioroom/showpost.php?p=2577614&postcount=1
Thanks Thycho !
:Kaleun_Thumbs_Up:
Where can I find information about full nav map by Thycho?
FUBAR295
05-05-24, 05:51 PM
Where can I find information about full nav map by Thycho?
You can down load from here :
https://maikhaas.synology.me:64180/fsdownload/vGnhRIH8D/TYCHO
This has his latest version. It does have a feature to enable expanded nav and attack maps. :up:
Good hunting,
FUBAR295
You can down load from here :
https://maikhaas.synology.me:64180/fsdownload/vGnhRIH8D/TYCHO
This has his latest version. It does have a feature to enable expanded nav and attack maps. :up:
Good hunting,
FUBAR295
Thanks but looks like it's just an option to unblock it. Still it has to be made separately like in ARB. Maybe I should look there. This option - to unblock the nav map - it's not included in V3 version?
EDIT: Ok so v3 can work, it's just that by default it's commented out in the "TychoSh3Patch.map" :D
FUBAR295
05-05-24, 09:00 PM
Glad you got it sorted out! :up:
vBulletin® v3.8.11, Copyright ©2000-2025, vBulletin Solutions Inc.