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

Reply
 
Thread Tools Display Modes
Old 09-30-18, 08:34 AM   #1
Tycho
Sonar Guy
 
Join Date: Oct 2009
Location: Sofia, Bg
Posts: 384
Downloads: 264
Uploads: 1


Default Functional Draggable Chronometer

Functional draggable chronometer!

Download

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.




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:
Quote:
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.
__________________
If you ride like lightning, you're gonna crash like thunder.

Last edited by Tycho; 11-13-18 at 08:17 AM.
Tycho is offline   Reply With Quote
Old 09-30-18, 02:52 PM   #2
Kelly621
Officer
 
Join Date: Dec 2012
Location: North Carolina
Posts: 237
Downloads: 336
Uploads: 0
Default

Quote:
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
Kelly621 is offline   Reply With Quote
Old 10-07-18, 06:54 AM   #3
Wolfpack345
Lurking
 
Wolfpack345's Avatar
 
Join Date: May 2012
Location: Under the Sea
Posts: 118
Downloads: 238
Uploads: 0
Icon14

Sweet! I'll give it a go once I am home! Thanks for your hard work!
__________________
Check out my Channel.
http://www.youtube.com/c/Wolfpack345
Wolfpack345 is offline   Reply With Quote
Old 10-07-18, 02:42 PM   #4
Anvar1061
Ocean Warrior
 
Join Date: May 2012
Location: In the sea, on land and above
Posts: 3,338
Downloads: 842
Uploads: 0
Default

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."
Anvar1061 is offline   Reply With Quote
Old 10-07-18, 03:21 PM   #5
Tycho
Sonar Guy
 
Join Date: Oct 2009
Location: Sofia, Bg
Posts: 384
Downloads: 264
Uploads: 1


Default

Quote:
Originally Posted by Anvar1061 View Post
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.
__________________
If you ride like lightning, you're gonna crash like thunder.
Tycho is offline   Reply With Quote
Old 10-08-18, 12:25 AM   #6
Anvar1061
Ocean Warrior
 
Join Date: May 2012
Location: In the sea, on land and above
Posts: 3,338
Downloads: 842
Uploads: 0
Default

Quote:
Originally Posted by Tycho View Post
Send me yours menu_1024_768.ini, I will make it for you and will write example over it.
https://vk.com/doc122658649_47682249...37d5d2ce972a64
Anvar1061 is offline   Reply With Quote
Old 10-09-18, 04:07 PM   #7
Hebe Vollmaus
Officer
 
Join Date: Jun 2010
Location: Germany
Posts: 237
Downloads: 3
Uploads: 1
Default

Quote:
Originally Posted by Tycho View Post

Functional draggable chronometer!

8<--
A real useful addition to the game. Thanks alot!
Now i have to find the final position for my new Stop-Button.

Greetings.
Hebe Vollmaus is offline   Reply With Quote
Old 10-10-18, 06:42 AM   #8
Tycho
Sonar Guy
 
Join Date: Oct 2009
Location: Sofia, Bg
Posts: 384
Downloads: 264
Uploads: 1


Default

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.
 

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.
 

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.
 

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"
 

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.
__________________
If you ride like lightning, you're gonna crash like thunder.

Last edited by Tycho; 10-11-18 at 02:57 AM.
Tycho is offline   Reply With Quote
Old 10-11-18, 11:48 AM   #9
makman94
Hellas
 
Join Date: Jul 2008
Posts: 2,325
Downloads: 182
Uploads: 7


Default

Quote:
Originally Posted by Hebe Vollmaus View Post
...A real useful addition to the game...

this ^

A superb addition to the game thanks to Tycho

Bravo Tycho
__________________
Knowledge is the only thing that nobody can ever take from you...



Mediafire page:http://www.mediafire.com/folder/da50.../Makman94_Mods
makman94 is offline   Reply With Quote
Old 10-12-18, 04:17 AM   #10
Tycho
Sonar Guy
 
Join Date: Oct 2009
Location: Sofia, Bg
Posts: 384
Downloads: 264
Uploads: 1


Default

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:

Replace for 0x3F310005, Pos = with this:
Pos=71,-9,29,29

Or:

Pos=66,-83,41,41
__________________
If you ride like lightning, you're gonna crash like thunder.
Tycho is offline   Reply With Quote
Old 10-21-18, 05:57 PM   #11
ArnoldR
Medic
 
Join Date: Jul 2018
Posts: 159
Downloads: 22
Uploads: 0


Default

Wow!! Good job!!!!

ArnoldR is offline   Reply With Quote
Old 10-31-18, 10:11 PM   #12
JAFO-
Watch
 
JAFO-'s Avatar
 
Join Date: Jan 2018
Location: Melbourne, Australia
Posts: 17
Downloads: 110
Uploads: 0
Default

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.
JAFO- is offline   Reply With Quote
Old 11-01-18, 09:50 AM   #13
Hebe Vollmaus
Officer
 
Join Date: Jun 2010
Location: Germany
Posts: 237
Downloads: 3
Uploads: 1
Default

Quote:
Originally Posted by JAFO- View Post
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.
Hebe Vollmaus is offline   Reply With Quote
Old 11-02-18, 05:54 AM   #14
Tycho
Sonar Guy
 
Join Date: Oct 2009
Location: Sofia, Bg
Posts: 384
Downloads: 264
Uploads: 1


Default

Quote:
Originally Posted by JAFO- View Post
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.
__________________
If you ride like lightning, you're gonna crash like thunder.
Tycho is offline   Reply With Quote
Old 11-20-18, 05:28 AM   #15
ericlea
Samurai Navy
 
Join Date: Jan 2014
Location: Strasbourg F
Posts: 572
Downloads: 109
Uploads: 0
Default

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...14&postcount=1


Thanks Thycho !

ericlea 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 05:28 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.