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


Default

Quote:
Originally Posted by sputterfish View Post
Hello, VDR. I've created a tool in C# that can generate the config file for you by reading a sh5 regkey. All that is needed is to run the exe and it spits out the cfg file. Can be built using Visual Studio 2017 Community.

https://github.com/sputterfish/silenthuntercfgmaker

It will drop the cfg file in the same directory where it is run, you can of course edit this or if its any use i can help as needed. Not savvy in batch here so if this of no use, oh well.

Cheers
That sounds very much like my original idea, thank you very much!
I'm having troubles to download the exe? Should I be registered on GitHub in order to download the file?
vdr1981 is offline   Reply With Quote
Old 02-01-18, 09:23 AM   #2
sputterfish
Watch
 
Join Date: Nov 2014
Posts: 20
Downloads: 57
Uploads: 0
Default

Quote:
Originally Posted by vdr1981 View Post
That sounds very much like my original idea, thank you very much!
I'm having troubles to download the exe? Should I be registered on GitHub in order to download the file?
https://github.com/sputterfish/silen...lderReader.exe

You should be able to download directly using this link. I can make any changes to the output if needed.
sputterfish is offline   Reply With Quote
Old 02-01-18, 09:30 AM   #3
vdr1981
Navy Seal
 
Join Date: May 2010
Location: Србија
Posts: 6,078
Downloads: 581
Uploads: 13


Default

Quote:
Originally Posted by sputterfish View Post
https://github.com/sputterfish/silen...lderReader.exe

You should be able to download directly using this link. I can make any changes to the output if needed.
Very very nice and exactly what I was looking for!

But it needs few tweaks:

The file should be named GenericPatcher.cfg

Also output text should have no " marks or spaces around = mark Can you edit the app please?

Code:
ClientAreaWidth = 1184
ClientAreaHeight = 765
CameraManager.act_=_"D:\INSTALIRANE IGRE-Win7\Silent Hunter 5"
EnvSim.act = "D:\INSTALIRANE IGRE-Win7\Silent Hunter 5"
kernel.dll = "D:\INSTALIRANE IGRE-Win7\Silent Hunter 5"
sh5.exe = "D:\INSTALIRANE IGRE-Win7\Silent Hunter 5"
SHCollisions.act = "D:\INSTALIRANE IGRE-Win7\Silent Hunter 5"
SHSound.act = "D:\INSTALIRANE IGRE-Win7\Silent Hunter 5"
SH_NClient.dll = "D:\INSTALIRANE IGRE-Win7\Silent Hunter 5"
SimData.dll = "D:\INSTALIRANE IGRE-Win7\Silent Hunter 5"
LanguagePackInUse =
vdr1981 is offline   Reply With Quote
Old 02-01-18, 09:36 AM   #4
sputterfish
Watch
 
Join Date: Nov 2014
Posts: 20
Downloads: 57
Uploads: 0
Default

Alright changes made. Should reflect the requested.

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

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


Default

Quote:
Originally Posted by sputterfish View Post
Alright changes made. Should reflect the requested.

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

Cheers
OK...Much better but the output misses following line:
Code:
ClientAreaWidth=1184
ClientAreaHeight=765
CameraManager.act=D:\INSTALIRANE IGRE-Win7\Silent Hunter 5
EnvSim.act=D:\INSTALIRANE IGRE-Win7\Silent Hunter 5
kernel.dll=D:\INSTALIRANE IGRE-Win7\Silent Hunter 5
sh5.exe=D:\INSTALIRANE IGRE-Win7\Silent Hunter 5
SHCollisions.act=D:\INSTALIRANE IGRE-Win7\Silent Hunter 5
SHSim.act=D:\INSTALIRANE IGRE-Win7\Silent Hunter 5
SHSound.act=D:\INSTALIRANE IGRE-Win7\Silent Hunter 5
SH_NClient.dll=D:\INSTALIRANE IGRE-Win7\Silent Hunter 5
SimData.dll=D:\INSTALIRANE IGRE-Win7\Silent Hunter 5
LanguagePackInUse=
Also, just to be on a safe side, you can also remove spaces in ClientAreaWidth/Height lines...
vdr1981 is offline   Reply With Quote
Old 02-01-18, 09:49 AM   #6
sputterfish
Watch
 
Join Date: Nov 2014
Posts: 20
Downloads: 57
Uploads: 0
Default

Fixed. Same link as before.

https://github.com/sputterfish/silen...oad/2/SHFR.exe
sputterfish is offline   Reply With Quote
Old 02-01-18, 09:51 AM   #7
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   #8
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
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 01:31 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.