SUBSIM Radio Room Forums

SUBSIM Radio Room Forums (https://www.subsim.com/radioroom/index.php)
-   SH5 Mods Workshop (https://www.subsim.com/radioroom/forumdisplay.php?f=249)
-   -   I need a batch file (https://www.subsim.com/radioroom/showthread.php?t=236467)

vdr1981 02-01-18 09:51 AM

Thanks ...testing...:yep:

vdr1981 02-01-18 09:56 AM

Quote:

Originally Posted by sputterfish (Post 2539522)

Perfect! :Kaleun_Applaud:

One more question if I may...:oops:

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? :hmmm:

sputterfish 02-01-18 10:05 AM

Quote:

Originally Posted by vdr1981 (Post 2539525)
Perfect! :Kaleun_Applaud:

One more question if I may...:oops:

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? :hmmm:

Updated. Again the same link as before.

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

vdr1981 02-01-18 10:09 AM

Quote:

Originally Posted by sputterfish (Post 2539527)
Updated. Again the same link as before.

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

EXCELLENT! :Kaleun_Applaud::up::up::up:

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? :oops:

sputterfish 02-01-18 10:18 AM

Quote:

Originally Posted by vdr1981 (Post 2539528)
EXCELLENT! :Kaleun_Applaud::up::up::up:

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? :oops:

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. :D

Cheers

vdr1981 02-01-18 10:31 AM

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. :D
Cheers
Sounds interesting but that would assume SH5 executable contained withing TWoS installer which can pose a serious problem due to legal issues...:hmmm:

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

Quote:

Originally Posted by sputterfish (Post 2539530)
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...:up:

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...

sputterfish 02-01-18 10:37 AM

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

vdr1981 02-01-18 12:10 PM

Quote:

Originally Posted by sputterfish (Post 2539533)
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...:hmm2:

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?:hmm2:

sputterfish 02-01-18 12:20 PM

Quote:

Originally Posted by vdr1981 (Post 2539540)
Sounds quite interesting...:hmm2:


The output file is OK but I need it on different location. Can we have "standalone" app for OFEV cfg?:hmm2:

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.

vdr1981 02-01-18 12:27 PM

Quote:

Originally Posted by sputterfish (Post 2539542)
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...:yep:

sputterfish 02-01-18 12:42 PM

Updated file links below.

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

GPcfg.exe
https://github.com/sputterfish/silen...ad/4/GPcfg.exe

vdr1981 02-01-18 12:54 PM

Quote:

Originally Posted by sputterfish (Post 2539546)

Great! :up:
Thank You very much sputterfish! :up::up::up:

sputterfish 02-01-18 12:57 PM

Glad I could help :salute:

vdr1981 02-01-18 01:08 PM

Quote:

Originally Posted by sputterfish (Post 2539549)
Glad I could help :salute:

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. :yep:

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

If You have any more ideas please let me know...:up:

vdr1981 02-01-18 04:26 PM

Quote:

Originally Posted by sputterfish (Post 2539542)
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. :hmmm:

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. :hmmm:

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?:hmmm:

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.


All times are GMT -5. The time now is 10:46 AM.

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.