![]() |
SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997 |
05-25-13, 12:29 PM
|
#1966 | ||
|
Navy Seal
![]() Join Date: Jan 2011
Location: CJ8937
Posts: 8,160
Downloads: 793
Uploads: 10
|
Quote:
![]() Quote:
|
||
|
|
05-25-13, 06:50 PM
|
#1967 |
|
Engineer
![]() Join Date: Mar 2012
Posts: 219
Downloads: 199
Uploads: 0
|
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 . |
|
|
05-25-13, 08:11 PM
|
#1968 |
|
Black Magic
![]() |
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...
|
|
|
05-25-13, 08:26 PM
|
#1969 |
|
Ensign
![]() Join Date: Jan 2007
Posts: 234
Downloads: 82
Uploads: 0
|
Excellent
![]() This is a great new setup to save hassles with bad configs setup by users between the patches thanks
|
|
|
05-25-13, 08:51 PM
|
#1970 |
|
Black Magic
![]() |
|
|
|
05-25-13, 09:32 PM
|
#1971 |
|
Black Magic
![]() |
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... |
|
|
05-25-13, 10:34 PM
|
#1972 |
|
Black Magic
![]() |
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. |
|
|
05-25-13, 10:43 PM
|
#1973 |
|
Ensign
![]() Join Date: Jan 2007
Posts: 234
Downloads: 82
Uploads: 0
|
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. |
|
|
05-25-13, 11:41 PM
|
#1974 | |
|
Black Magic
![]() |
Quote:
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!!!! |
|
|
|
05-25-13, 11:44 PM
|
#1975 |
|
Navy Seal
![]() |
First to download! ![]() Thanks for that, and for the "disable all patches" feature It was a pain each time to deactivate total stuff.
__________________
|
|
|
05-25-13, 11:47 PM
|
#1976 | |
|
Black Magic
![]() |
Quote:
Work begins... |
|
|
|
05-26-13, 12:13 AM
|
#1977 |
|
Navy Seal
![]() |
Like a kind of JSGME "task" feature where you can upload a mep list, i suppose.
Good idea
__________________
|
|
|
05-26-13, 03:19 AM
|
#1978 | |
|
Black Magic
![]() |
Quote:
![]() 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. |
|
|
|
05-26-13, 03:24 AM
|
#1979 |
|
Navy Seal
![]() |
Very cool indeed!
__________________
|
|
|
05-26-13, 03:33 AM
|
#1980 |
|
Black Magic
![]() |
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. |
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
