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-28-13, 09:09 AM   #1
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by Echolot View Post
I don't know much about html files and creating such files. I could make text with patches descriptions in my language but I have no clue about how this can be implemented in the app.

Maybe mouse over tooltips reading their content from a txt file like the language packs
(folder Help/German/tooltips_de.txt)
The tooltips one would be hard to implement. What I will do is add a folder to the app called Help. Inside that folder will be folders for all the languages defined. Inside each \Help\language folder I will let you place txt, html, doc, docx, whatever file(s) you want in there. Then when the user clicks the help button the app will show a listbox with all the files found in that folder. When the user clicks an item in the listbox the app will have the end-user's OS open the file using the application defined for the file's extension. Simple and elegant
TheDarkWraith is offline   Reply With Quote
Old 05-28-13, 09:13 AM   #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 TheDarkWraith View Post
The tooltips one would be hard to implement. What I will do is add a folder to the app called Help. Inside that folder will be folders for all the languages defined. Inside each \Help\language folder I will let you place txt, html, doc, docx, whatever file(s) you want in there. Then when the user clicks the help button the app will show a listbox with all the files found in that folder. When the user clicks an item in the listbox the app will have the end-user's OS open the file using the application defined for the file's extension. Simple and elegant
Great idea
__________________
.
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-28-13, 09:25 AM   #3
Echolot
Seasoned Skipper
 
Join Date: Mar 2010
Location: Berlin, Germany
Posts: 715
Downloads: 575
Uploads: 0
Default

Quote:
The tooltips one would be hard to implement. What I will do is add a folder to the app called Help. Inside that folder will be folders for all the languages defined. Inside each \Help\language folder I will let you place txt, html, doc, docx, whatever file(s) you want in there. Then when the user clicks the help button the app will show a listbox with all the files found in that folder. When the user clicks an item in the listbox the app will have the end-user's OS open the file using the application defined for the file's extension. Simple and elegant
Thank you TDW

Please, one more question: With every new version I need to create a folder, name it and extract the files to it. Would it be possible to change the patchers download zip file to TDW_GenericPatcher_v_x_x_xxx_x.zip/TDW_GenericPatcher_v_x_x_xxx_x/GenericPatcher.exe?

Last edited by Echolot; 05-28-13 at 09:44 AM.
Echolot is offline   Reply With Quote
Old 05-28-13, 10:37 AM   #4
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by Echolot View Post
Please, one more question: With every new version I need to create a folder, name it and extract the files to it. Would it be possible to change the patchers download zip file to TDW_GenericPatcher_v_x_x_xxx_x.zip/TDW_GenericPatcher_v_x_x_xxx_x/GenericPatcher.exe?
Sure I can do that
TheDarkWraith is offline   Reply With Quote
Old 05-28-13, 10:59 AM   #5
Echolot
Seasoned Skipper
 
Join Date: Mar 2010
Location: Berlin, Germany
Posts: 715
Downloads: 575
Uploads: 0
Default

Quote:
Sure I can do that
Thank you.

When I first launch the app the option to backup files is greyed out. I can make a backup after I select the path to sh5.exe, opened and patched (new sections, file size) so the backuped files are not the stock ones.

Would it be possible: Run the app > File > Backup > Select path to sh5 install folder (preselected the path from registry) > then backup the stock unchanged files?

After doing this I could select File > Open > then open and patch the files.

We wouldn't need to backup our files or enable as mod. The app would backup our files (maybe in Silent Hunter 5/Backups, if one delete the patchers folder for new version).
Echolot is offline   Reply With Quote
Old 05-28-13, 11:15 AM   #6
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by Echolot View Post
When I first launch the app the option to backup files is greyed out. I can make a backup after I select the path to sh5.exe, opened and patched (new sections, file size) so the backuped files are not the stock ones.

Would it be possible: Run the app > File > Backup > Select path to sh5 install folder (preselected the path from registry) > then backup the stock unchanged files?

After doing this I could select File > Open > then open and patch the files.

We wouldn't need to backup our files or enable as mod. The app would backup our files (maybe in Silent Hunter 5/Backups, if one delete the patchers folder for new version).
I guess I don't understand At first the Backup and Restore menu entries are greyed out correct. They are greyed out because there are no patch files loaded and thus the app has no idea which files to use. Once the patch files are loaded the app knows the files in use via the [FILE] header File= entry in each .s5p file. I'm keeping this app generic and thus the only way it knows which files to use are from reading the patch files.

Now once the patch files are loaded you could:
- take a snapshot to record your current patches enabled/disabled
- click Disable all patches (File-->Disable all patches)
- click File-->Backup to backup all your files
- restore from snapshot
TheDarkWraith is offline   Reply With Quote
Old 05-28-13, 11:22 AM   #7
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 TheDarkWraith View Post
I guess I don't understand
I think Echolot meant that when we become able to backup files, these files are already not stock files - increased size and new sections..
On the other hand my files for a long time not stock.. and everything works just fine..
__________________
.
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
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:07 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.