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, 09:51 AM   #16
vdr1981
Navy Seal
 
Join Date: May 2010
Location: Србија
Posts: 6,078
Downloads: 581
Uploads: 13


Default

Thanks ...testing...
vdr1981 is offline   Reply With Quote
Old 02-01-18, 09:56 AM   #17
vdr1981
Navy Seal
 
Join Date: May 2010
Location: Србија
Posts: 6,078
Downloads: 581
Uploads: 13


Default

Quote:
Originally Posted by sputterfish View Post
Perfect!

One more question if I may...

I've noticed that if the output file with faulty entries is already created prior your app have been executed, the cfg file wont be replaced with correct lines. It will remain the same. Is this possible to fix?
vdr1981 is offline   Reply With Quote
Old 02-01-18, 10:05 AM   #18
sputterfish
Watch
 
Join Date: Nov 2014
Posts: 20
Downloads: 56
Uploads: 0
Default

Quote:
Originally Posted by vdr1981 View Post
Perfect!

One more question if I may...

I've noticed that if the output file with faulty entries is already created prior your app have been executed, the cfg file wont be replaced with correct lines. It will remain the same. Is this possible to fix?
Updated. Again the same link as before.

https://github.com/sputterfish/silen...oad/2/SHFR.exe
sputterfish is offline   Reply With Quote
Old 02-01-18, 10:09 AM   #19
vdr1981
Navy Seal
 
Join Date: May 2010
Location: Србија
Posts: 6,078
Downloads: 581
Uploads: 13


Default

Quote:
Originally Posted by sputterfish View Post
Updated. Again the same link as before.

https://github.com/sputterfish/silen...oad/2/SHFR.exe
EXCELLENT!

Can I bother you with one more cfg file? This one would be for options file editor since a lot of people having troubles to configure the editor on their own?
vdr1981 is offline   Reply With Quote
Old 02-01-18, 10:18 AM   #20
sputterfish
Watch
 
Join Date: Nov 2014
Posts: 20
Downloads: 56
Uploads: 0
Default

Quote:
Originally Posted by vdr1981 View Post
EXCELLENT!

Can I bother you with one more cfg file? This one would be for options file editor since a lot of people having troubles to configure the editor on they own?
No problem at all. Just list an example of the file exactly as you would like it, and the name of the cfg file to output.

What are you currently using for the installer software? InnoSetup or just directly creating an installer from scratch in C# is not very hard or time consuming. I'd be willing to assist if interested. It would probably be possible to integrate a check for steam users as well and incorporate the work-around automatically. I use WoS, so happy to contribute something back.

Cheers
sputterfish is offline   Reply With Quote
Old 02-01-18, 10:31 AM   #21
vdr1981
Navy Seal
 
Join Date: May 2010
Location: Србија
Posts: 6,078
Downloads: 581
Uploads: 13


Default

Quote:
What are you currently using for the installer software? InnoSetup or just directly creating an installer from scratch in C# is not very hard or time consuming.
Actually it's just winrar sef extracting archive with few preset commands. The idea is that once the files are extracted, SFX installer will execute your exe files and configure in game cfg files.

Quote:
I'd be willing to assist if interested. It would probably be possible to integrate a check for steam users as well and incorporate the work-around automatically. I use WoS, so happy to contribute something back.
Cheers
Sounds interesting but that would assume SH5 executable contained withing TWoS installer which can pose a serious problem due to legal issues...

Anyway, "full-blooded" installer is my wish for a long time ...

Quote:
Originally Posted by sputterfish View Post
No problem at all. Just list an example of the file exactly as you would like it, and the name of the cfg file to output.
Great...Stand by...

EDIT


The file should be named OptionsFileEditorViewer.cfg

Code:
SH5InstallPath=D:\INSTALIRANE IGRE-Win7\Silent Hunter 5
LastMenuTXT=D:\INSTALIRANE IGRE-Win7\Silent Hunter 5\data\Menu\menu.txt
LastOptionsFilePath=D:\INSTALIRANE IGRE-Win7\Silent Hunter 5\data\Scripts\Menu\
ClientAreaWidth=1014
ClientAreaHeight=736
LanguagePackInUse=
Colored parts should be variable...
vdr1981 is offline   Reply With Quote
Old 02-01-18, 10:37 AM   #22
sputterfish
Watch
 
Join Date: Nov 2014
Posts: 20
Downloads: 56
Uploads: 0
Default

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.

Edit:

New Build with both cfg files, new link below.

https://github.com/sputterfish/silen...oad/3/SHFR.exe

Last edited by sputterfish; 02-01-18 at 11:00 AM.
sputterfish is offline   Reply With Quote
Old 02-01-18, 12:10 PM   #23
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   #24
sputterfish
Watch
 
Join Date: Nov 2014
Posts: 20
Downloads: 56
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   #25
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   #26
sputterfish
Watch
 
Join Date: Nov 2014
Posts: 20
Downloads: 56
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   #27
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   #28
sputterfish
Watch
 
Join Date: Nov 2014
Posts: 20
Downloads: 56
Uploads: 0
Default

Glad I could help
sputterfish is offline   Reply With Quote
Old 02-01-18, 01:08 PM   #29
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   #30
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
Reply


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 05:56 PM.


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