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

Reply
 
Thread Tools Display Modes
Old 05-25-13, 11:46 AM   #1
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

I've been working on a new version of the Generic Patcher while I've been plane hopping. The new version will load all patch files it finds (.s5p). The tree displayed will then show all patch files at once. This will allow me to code in dependencies into the .s5p files to prevent CTDs from happening because one patch file relies on another patch file's patch to be enabled also.

There will be some other new features also built into the app

@volodya61: can you send me the revised torpedo .sim files you made or post a link to them?
TheDarkWraith is offline   Reply With Quote
Old 05-25-13, 12:28 PM   #2
volodya61
Ocean Warrior
 
volodya61's Avatar
 
Join Date: Feb 2012
Location: Rostov-on-Don, local time GMT+4
Posts: 3,292
Downloads: 374
Uploads: 0


Default

Quote:
Originally Posted by Macardigan View Post
I have a doubt:
I launched 3 magnetic torpedoes against ships and the 3 have detonated prematurely.
Then I launched three torpedoes impact and 3 do not have detonated.
Have you enabled torpedo's patches in the Patcher?
If so, read this post, just a few posts earlier than yours - http://www.subsim.com/radioroom/show...postcount=1951

Quote:
Originally Posted by TheDarkWraith View Post
@volodya61: can you send me the revised torpedo .sim files you made or post a link to them?
Yes, sure - http://www.mediafire.com/download/d4...r_add-on%29.7z
__________________
.
Where does human stupidity end?

.


El sueño de la razón produce monstruos © - and for some people awakening will be cruel
volodya61 is offline   Reply With Quote
Old 05-25-13, 06:50 PM   #3
Macardigan
Engineer
 
Join Date: Mar 2012
Posts: 219
Downloads: 199
Uploads: 0
Default

thanks volodya61.
thanks thedarkwraith.

torpedos work fine now.
__________________
.
.
.
.
.
.
my mod:
RPM Hydrophone 2.2 (updated July/06/2013)
http://www.subsim.com/radioroom/showthread.php?t=205625
.
Macardigan is offline   Reply With Quote
Old 05-25-13, 08:11 PM   #4
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

Made some changes to how the Generic Patcher operates. I needed the ability to define dependencies so that a patch in one patch file can depend on a patch in the same patch file or another patch file. Thus the app needed to read in all patch files found when you click File-->Open. All the patch files (.s5p's) found in the same path as the executable's path will be loaded when File-->Open is clicked. Thus you will see something like the below:


Now let's talk about the new entries. Each patch file has it's own unique name assigned to it inside the patch file. You will find the unique name in ()s right after the patch file's path node. Each Update and Patch gets it's own unique name also and can be found in ()s after it's name node. Each Patch has it's own Dependencies defined in the patch file. This can be found as a new node in the Patch's node called Dependencies. The Dependencies entries are defined as Patch file unique name.Patch unique name (i.e. sh5.co2_bug_fix). See below:


At any time you can click File-->Check all dependencies to have the app verify all dependencies on all loaded patch files.


If the app determines that some dependencies are not enabled then it will tell you. You will also see this dialog box when the app first starts or you click File-->Close and the app finds some dependencies not enabled.



So this dialog box is telling me that patch file sh5's patch co2_bug_fix has the dependency patch file shsim patch co2_bug_fix not enabled (or some of it's changes are not enabled - Change 2 specifically according to the screenie above). If I click 'Yes' the app will automatically correct the problem (enable the patch and all changes of it).

The app will now also store the window size to the cfg file. Thus if you resize the window and close the app down when you restart the app the window size will be set to the last size.

The unique names for the patch files must be unique - no two patch files can have the same unique name. Patches within those patch files must have unique names also - no two patches can have the same unique name. It IS permissible for two or more patch files to have a patch with the same unique name (because they are referenced by patch file unique name.patch unique name)

More work to do on the app...

TheDarkWraith is offline   Reply With Quote
Old 05-25-13, 08:26 PM   #5
Bathrone
Ensign
 
Join Date: Jan 2007
Posts: 234
Downloads: 82
Uploads: 0
Default

Excellent

This is a great new setup to save hassles with bad configs setup by users between the patches thanks
Bathrone is offline   Reply With Quote
Old 05-25-13, 08:51 PM   #6
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by Bathrone View Post
Excellent

This is a great new setup to save hassles with bad configs setup by users between the patches thanks
yes it should cut down on CTDs due to patches not enabled that should've been
TheDarkWraith is offline   Reply With Quote
Old 05-25-13, 09:32 PM   #7
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

added tooltips to the treeview nodes now so you can tell if you can right click or double click to have the treenode do something.

Added a new entry to each Patch File's patch defined: Files=. This will let me define files needed for that patch. You will see a new treenode under the Patch aptly named Files=. If that node has files defined then double clicking that treenode will cause the file(s) defined to open using the application defined by your system for it's extension (i.e. .txt is usually Notepad, etc.)



Still more work to do...
TheDarkWraith is offline   Reply With Quote
Old 05-25-13, 12:29 PM   #8
gap
Navy Seal
 
Join Date: Jan 2011
Location: CJ8937
Posts: 8,160
Downloads: 793
Uploads: 10
Default

Quote:
Originally Posted by TheDarkWraith View Post
I've been working on a new version of the Generic Patcher while I've been plane hopping. The new version will load all patch files it finds (.s5p). The tree displayed will then show all patch files at once. This will allow me to code in dependencies into the .s5p files to prevent CTDs from happening because one patch file relies on another patch file's patch to be enabled also.

There will be some other new features also built into the app


Quote:
Originally Posted by TheDarkWraith View Post
@volodya61: can you send me the revised torpedo .sim files you made or post a link to them?
While we were waiting for you to show up, we decided to host the new torpedo failure settings in HistGunSpecs 1st page
gap 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 03:37 AM.


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