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, 12:29 PM   #1966
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
Old 05-25-13, 06:50 PM   #1967
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   #1968
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   #1969
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   #1970
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   #1971
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, 10:34 PM   #1972
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

v1.0.100.0 released. See post #1

Starting with v1.0.100.0 Revised the Generic Patcher app to load all .s5p files found in the executable's path. Added tooltips to treenodes. Added new treenodes to Patches: Dependencies, Files, Pictures, and Notes. If any of these have entries in them be sure to double click them and read/copy them! The app now checks to ensure those Patches that are enabled and that have dependencies defined have the dependencies enabled.
TheDarkWraith is offline   Reply With Quote
Old 05-25-13, 10:43 PM   #1973
Bathrone
Ensign
 
Join Date: Jan 2007
Posts: 234
Downloads: 82
Uploads: 0
Default

Thanks again TDW

Feature request - a remove all command would be nice to save a bit of time between revision updates. I understand that we have to reset it all each time for the upgrade.

Potential bug - TDWFileUtils.dll in this package isnt as up to date as to the compile you did for New UIs. Same with the build date being behind for TDWUtils.dll. I suggest packaging the latest revision in any of your goodies New UIs, Patcher etc if you could make it modular so any specific mod only looked for its library functions in the dll code or some other DLL Hell avoidance strategy

Last edited by Bathrone; 05-25-13 at 11:05 PM.
Bathrone is offline   Reply With Quote
Old 05-25-13, 11:41 PM   #1974
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by Bathrone View Post
Thanks again TDW

Feature request - a remove all command would be nice to save a bit of time between revision updates. I understand that we have to reset it all each time for the upgrade.

Potential bug - TDWFileUtils.dll in this package isnt as up to date as to the compile you did for New UIs. Same with the build date being behind for TDWUtils.dll. I suggest packaging the latest revision in any of your goodies New UIs, Patcher etc if you could make it modular so any specific mod only looked for its library functions in the dll code or some other DLL Hell avoidance strategy
Feature request added:


link at post #1 updated.

Potential bug is not a potential bug. Since I have the project's references set to those two files it always 'pulls in' the latest version.

The Backup and Restore functions have changed! Ensure to Backup your files first!!!!
TheDarkWraith is offline   Reply With Quote
Old 05-25-13, 11:44 PM   #1975
Fifi
Navy Seal
 
Fifi's Avatar
 
Join Date: Dec 2012
Location: France
Posts: 6,254
Downloads: 510
Uploads: 0


Default

First to download!

Thanks for that, and for the "disable all patches" feature
It was a pain each time to deactivate total stuff.
Fifi is offline   Reply With Quote
Old 05-25-13, 11:47 PM   #1976
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by Fifi View Post
First to download!

Thanks for that, and for the "disable all patches" feature
It was a pain each time to deactivate total stuff.
I'm going to try and add a 'snapshot' feature. This would take a 'snapshot' of all the patches you have enabled so that you could disable all patches, install new version of Generic Patcher, then re-enable all previous patches via the snapshot.

Work begins...
TheDarkWraith is offline   Reply With Quote
Old 05-26-13, 12:13 AM   #1977
Fifi
Navy Seal
 
Fifi's Avatar
 
Join Date: Dec 2012
Location: France
Posts: 6,254
Downloads: 510
Uploads: 0


Default

Like a kind of JSGME "task" feature where you can upload a mep list, i suppose.
Good idea
Fifi is offline   Reply With Quote
Old 05-26-13, 03:19 AM   #1978
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by Fifi View Post
Like a kind of JSGME "task" feature where you can upload a mep list, i suppose.
Good idea
Implemented



v1.0.102.0 released. See post #1

Starting with v1.0.102.0 You have the ability to create/restore snapshots. Snapshots are a snapshot of all the patch file's patches currently loaded.

Now with these snapshot files (.gps) you can share these among each other. The app will only restore those entries defined in the .gps file that are currently loaded by the app. This means if there are patches defined for a patch file that you do not have loaded nothing happens (the app ignores those entries in the .gps file)

The great thing about these .gps files is when I release a new version of the patcher you can:
- take a snapshot
- disable all patches
- enable new version of Generic Patcher
- restore from snapshot

Now all your patches that you had previously enabled with the old version are now enabled with the new version

I'm able to do this because each patch file, each patch, and each change of the patch is given a unique name

NOTE: the backup and restore features changed again! They are now saved to the \Backup folder of the patches folder (multiple patches folders can be defined - this keeps the app generic). Currently only the SH5 patches folder is defined but the end-user can define more if they want to use the Generic Patcher on other apps.

NOTE2: DO NOT DELETE the \MODS or the \Patches folders included with the app! These are required and needed by the app.

NOTE3: the first time you take a snapshot the app will create a \Snapshots folder in the executable file's path. This is the default location for all snapshot files. You are free to create snapshot files anywhere you please but it is preferred to create them in the \Snapshots folder.
TheDarkWraith is offline   Reply With Quote
Old 05-26-13, 03:24 AM   #1979
Fifi
Navy Seal
 
Fifi's Avatar
 
Join Date: Dec 2012
Location: France
Posts: 6,254
Downloads: 510
Uploads: 0


Default

Very cool indeed!
Fifi is offline   Reply With Quote
Old 05-26-13, 03:33 AM   #1980
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

In the next version I'm going to try and code in 'language packs'. Just like SH5 uses the menu.txt file to get the strings needed I'm going to try and have the app do the same thing (referencing a file for the needed strings). This will allow the app to display the end-user's language on the screen

If I do manage to code this in then I'll need people to translate the English language pack into other languages.
TheDarkWraith 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 12: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.