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 02-01-18, 12:10 PM   #1
vdr1981
Navy Seal
 
Join Date: May 2010
Location: Србија
Posts: 6,078
Downloads: 581
Uploads: 13


Default

Quote:
Originally Posted by sputterfish View Post
Sounds good I'll have it posted in just a moment.

As for the SH5.exe file that can be downloaded and extracted automatically from the UBI hosted file, no need to contain the exe within the installer. It would simply be an automated version of what you do manually. Download the file, extract the required files from within the cab, then overwrite the main SH5 executable, etc.
Sounds quite interesting...

Quote:
Edit:

New Build with both cfg files, new link below.

https://github.com/sputterfish/silen...oad/3/SHFR.exe
The output file is OK but I need it on different location. Can we have "standalone" app for OFEV cfg?
vdr1981 is offline   Reply With Quote
Old 02-01-18, 12:20 PM   #2
sputterfish
Watch
 
Join Date: Nov 2014
Posts: 20
Downloads: 57
Uploads: 0
Default

Quote:
Originally Posted by vdr1981 View Post
Sounds quite interesting...


The output file is OK but I need it on different location. Can we have "standalone" app for OFEV cfg?
Sure we can do that, if its just a sub folder tho it would be easier to just run one file.

So lets say you run the file from the MAINDIR path you get:
Code:
C:\MAINDIR\GenericPatcher.cfg
if the other file needs to be saved below that it is easy. Example:

Code:
C:\MAINDIR\SUBDIR\NOMATTER\OptionsFileEditorViewer.cfg
Otherwise I can just make two separate files.
sputterfish is offline   Reply With Quote
Old 02-01-18, 12:27 PM   #3
vdr1981
Navy Seal
 
Join Date: May 2010
Location: Србија
Posts: 6,078
Downloads: 581
Uploads: 13


Default

Quote:
Originally Posted by sputterfish View Post
Sure we can do that, if its just a sub folder tho it would be easier to just run one file.

So lets say you run the file from the MAINDIR path you get:
Code:
C:\MAINDIR\GenericPatcher.cfg
if the other file needs to be saved below that it is easy. Example:

Code:
C:\MAINDIR\SUBDIR\NOMATTER\OptionsFileEditorViewer.cfg
Otherwise I can just make two separate files.
I think it's better to use two separate files because I will probably editing folder structure of the mod in the near future...
vdr1981 is offline   Reply With Quote
Old 02-01-18, 12:42 PM   #4
sputterfish
Watch
 
Join Date: Nov 2014
Posts: 20
Downloads: 57
Uploads: 0
Default

Updated file links below.

OFEVcfg
https://github.com/sputterfish/OFEVc.../1/OFEVcfg.exe

GPcfg.exe
https://github.com/sputterfish/silen...ad/4/GPcfg.exe
sputterfish is offline   Reply With Quote
Old 02-01-18, 12:54 PM   #5
vdr1981
Navy Seal
 
Join Date: May 2010
Location: Србија
Posts: 6,078
Downloads: 581
Uploads: 13


Default

Quote:
Originally Posted by sputterfish View Post
Great!
Thank You very much sputterfish!
vdr1981 is offline   Reply With Quote
Old 02-01-18, 12:57 PM   #6
sputterfish
Watch
 
Join Date: Nov 2014
Posts: 20
Downloads: 57
Uploads: 0
Default

Glad I could help
sputterfish is offline   Reply With Quote
Old 02-01-18, 01:08 PM   #7
vdr1981
Navy Seal
 
Join Date: May 2010
Location: Србија
Posts: 6,078
Downloads: 581
Uploads: 13


Default

Quote:
Originally Posted by sputterfish View Post
Glad I could help
You have helped a lot mate. These little apps are something that I wish for a long time indeed and I'll make sure to mention your name in the next TWoS update for sure.

I'll also think about your proposals for improved installer so I hope You'll still be around.

If You have any more ideas please let me know...
vdr1981 is offline   Reply With Quote
Old 02-01-18, 04:26 PM   #8
vdr1981
Navy Seal
 
Join Date: May 2010
Location: Србија
Posts: 6,078
Downloads: 581
Uploads: 13


Default

Quote:
Originally Posted by sputterfish View Post
Sure we can do that, if its just a sub folder tho it would be easier to just run one file.

So lets say you run the file from the MAINDIR path you get:
Code:
C:\MAINDIR\GenericPatcher.cfg
if the other file needs to be saved below that it is easy. Example:

Code:
C:\MAINDIR\SUBDIR\NOMATTER\OptionsFileEditorViewer.cfg
Otherwise I can just make two separate files.
I think I have a small problem sputterfish.

When my SFX finishes extraction and execute your exe files, the output files are created directly in the main SH5 root directory and not where they should be, even though my installer did place them in correct subfolders.

Of course, when executed manually by mouse click, everything is OK, so I'm not really sure what is going on...Tried both with and without administration rights on my SFX TWoS installer.

Do you have any suggestions ? Maybe we could try your suggestion from above?

EDIT:
Found this on the net, maybe it's related to the mentioned problem in some way...

Quote:
If Install.bat is added to archive in a subfolder, it is necessary to specify the batch file with subfolder\Install.bat in Setup dialog of SFX options respectively the comment file. *Done that

And inside the batch file the command line cd "%~dp0" must be added at top to change current directory from target directory of extraction set by SFX module to the extracted subfolder containing the batch file.

Last edited by vdr1981; 02-01-18 at 05:31 PM.
vdr1981 is offline   Reply With Quote
Old 02-02-18, 12:57 AM   #9
sputterfish
Watch
 
Join Date: Nov 2014
Posts: 20
Downloads: 57
Uploads: 0
Default

Quote:
Originally Posted by vdr1981 View Post
I think I have a small problem sputterfish.

When my SFX finishes extraction and execute your exe files, the output files are created directly in the main SH5 root directory and not where they should be, even though my installer did place them in correct subfolders.

Of course, when executed manually by mouse click, everything is OK, so I'm not really sure what is going on...Tried both with and without administration rights on my SFX TWoS installer.

Do you have any suggestions ? Maybe we could try your suggestion from above?

EDIT:
Found this on the net, maybe it's related to the mentioned problem in some way...
Yeah the issue is that the program running the apps is running them from another folder so they default to the directory where it is run from I believe. I'll check for a work around.

EDIT:

So by using the following batch you can execute from the subdir like so. Just make sure to replace the words "subdir" with the name of the subdirectory

Code:
start cmd.exe /c "GPcfg.exe"
start "" /d "%~dp0subdir" "OFEVcfg.exe"

Last edited by sputterfish; 02-02-18 at 01:39 AM.
sputterfish is offline   Reply With Quote
Old 02-02-18, 07:49 AM   #10
vdr1981
Navy Seal
 
Join Date: May 2010
Location: Србија
Posts: 6,078
Downloads: 581
Uploads: 13


Default

Quote:
Originally Posted by sputterfish View Post
Yeah the issue is that the program running the apps is running them from another folder so they default to the directory where it is run from I believe. I'll check for a work around.

EDIT:

So by using the following batch you can execute from the subdir like so. Just make sure to replace the words "subdir" with the name of the subdirectory

Code:
start cmd.exe /c "GPcfg.exe"
start "" /d "%~dp0subdir" "OFEVcfg.exe"
Thanks sputterfish, I'll test it...
vdr1981 is offline   Reply With Quote
Old 02-02-18, 08:43 AM   #11
vdr1981
Navy Seal
 
Join Date: May 2010
Location: Србија
Posts: 6,078
Downloads: 581
Uploads: 13


Default

Perfect ! Two commands and it works like a charm!

Code:
start "" /d "%~dp0MODS\The Wolves of Steel  2.0.0\data\Applications\OptionsFileEditorViewer" "OEcfg.exe"
start "" /d "%~dp0TDW_GenericPatcher_v_1_0_168_0" "GPcfg.exe"
vdr1981 is offline   Reply With Quote
Old 02-05-18, 04:20 AM   #12
sputterfish
Watch
 
Join Date: Nov 2014
Posts: 20
Downloads: 57
Uploads: 0
Default

Quote:
Originally Posted by vdr1981 View Post
Perfect ! Two commands and it works like a charm!

Code:
start "" /d "%~dp0MODS\The Wolves of Steel  2.0.0\data\Applications\OptionsFileEditorViewer" "OEcfg.exe"
start "" /d "%~dp0TDW_GenericPatcher_v_1_0_168_0" "GPcfg.exe"
Great to hear! I have updated GPcfg and OFEVcfg apps to use an older version of .NET thus making them more backwards compatible. Please update these if planned for distribution. Any modern Windows dist should support these out of the box but if needed they all utilize the .NET 4.0 Framework.

In addition to that I have also created an updater for folks using the Steam version of the game. All that is needed is a default install of the steam version and the app will proceed to update it automatically. All tools available on github.

https://github.com/sputterfish/silen...releases/tag/5

Cheers

Last edited by sputterfish; 02-05-18 at 05:22 AM.
sputterfish 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:23 PM.


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