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 08-21-11, 11:26 AM   #1
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,962
Downloads: 147
Uploads: 5


Default [REL] SH5 Validator

SH Validator v2.0.6

This app will verify your SH3/4/5 installation for common errors/bugs. It's best used after you have installed mods to see if anything was 'broke'.

Is it perfect? No. There is much more to code in for checking but as is it's very useful

It's very easy to use. Once you run the app it will immediately start validating your SH3/4/5 installation. Any errors reported can be found in associated boxes (plus the box will tell you how many errors are contained in it).

This app is very useful for validating campaign saves. You'll know whether a saved campaign is 'compatible' with your installed mods or not.

The app now lets you select the path to the install folder or have it read from registry

The app now also displays the .exe file version in the title bar

The app now lets you choose to validate SH3, SH4, or SH5

starting with v1.7.0 you can now save the errors to a text file (after validation is complete you'll have option to save errors). You also have the ability to add missing files from the classes to an ignore list (I've predefined some files for the ignore list that are not required for the game)

starting with v1.9.0 the log file generated now shows the countries defined, all the classes and types defined, a breakdown of the roster (Country and units defined), and now properly breaks down the campaign (and it's errors and ignores). This will greatly benefit modders and those curious to see what each country has. I've also made the textboxes more user friendly by enabling horizontal scrolling and indenting entries. A menu bar has been added that will allow you to save the log file (again) and re-validate (choosing which SH version) without having to close the app down and restart.

starting with v2.0.5 the path to the selected SH version is verified to see if it's valid. If not valid then user is asked to select SH folder. After selecting SH folder user then has option to update registry with correct path. If user selects path to SH version then this path is verified to be valid. If not valid user is asked to select SH path again. Once a valid path is selected then this path is compared to path in registry. If paths are different then user has option to update registry with path selected. In order to update registry the app has to be run with administrator rights.

starting with v2.0.6 the app checks the campaign.cfg file for incorrect TargetType entries



I ran the app (above) on stock game patched to v1.2

v2.0.6: http://www.gamefront.com/files/21551..._v_2_0_6_0_zip


How to interpret and fix common errors:

DefSide errors: http://www.subsim.com/radioroom/show...8&postcount=26

Non-sequential ordering/duplicate entries: http://www.subsim.com/radioroom/show...2&postcount=27

Campaign errors:
Type x not defined in y: http://www.subsim.com/radioroom/show...4&postcount=41


Last edited by TheDarkWraith; 04-12-12 at 07:13 PM.
TheDarkWraith is offline   Reply With Quote
Old 08-21-11, 12:00 PM   #2
Echolot
Seasoned Skipper
 
Join Date: Mar 2010
Location: Berlin, Germany
Posts: 718
Downloads: 575
Uploads: 0
Great, that's exactly what I need. Many thanks, TDW.



Regards.

Echolt.
Echolot is offline   Reply With Quote
Old 08-21-11, 12:16 PM   #3
pascal4541
Officer
 
Join Date: Mar 2010
Location: In France dept 26
Posts: 243
Downloads: 434
Uploads: 0
Default

many thanks TDW
__________________


Rampage Formula X48+E8600@4600Mhz H24+Corsair H50+4X2Go GSkill Trident PC9600+Sapphire HD6870@ 960/4600Mhz+WD Raptor 74Go+WD CaviarBlack 500Gox2+Samsung F1 500Go+CoolerMaster M850W+7-64Bits
pascal4541 is offline   Reply With Quote
Old 08-21-11, 12:42 PM   #4
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,962
Downloads: 147
Uploads: 5


Default

just got a bug report that shows that users with 32 bit OS's might encounter problems when it tries to validate saved campaigns. Making a change to the app.....

Also see that I didn't take languages other than English into account
TheDarkWraith is offline   Reply With Quote
Old 08-21-11, 12:46 PM   #5
Echolot
Seasoned Skipper
 
Join Date: Mar 2010
Location: Berlin, Germany
Posts: 718
Downloads: 575
Uploads: 0
Default

Deleted. Make no sense.

Echolot.
Echolot is offline   Reply With Quote
Old 08-21-11, 01:55 PM   #6
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,962
Downloads: 147
Uploads: 5


Default

v1.1.0 released.

Fixed bugs reported.

App now displays current campaign in use, campaign name, and player's name for each saved campaign
TheDarkWraith is offline   Reply With Quote
Old 07-05-14, 02:06 PM   #7
areo16
Sonar Guy
 
Join Date: Oct 2013
Posts: 382
Downloads: 64
Uploads: 0
Default

Hi DW,

For SH3...
I do have one suggestion for a hotfix. Perhaps when it is searching for Campaign errors and looking for unit class and unittype combinations, it will iterate through all classes of the same classname before it posts error.

Here is example. I have a mod soup that I am trying to incorporate many large mods together (GWX, WAC, War Elite, IJM, etc...) so I have classes that are duplicate but have different unittypes, in order to make the compatible with the various mods. Like I have in my Land folder a "LCD_SearchLight" folder, and then also an "LCD_SearchLight_2" folder.

LCD_SearchLight has this in the LCD_SearchLight.cfg file:
Code:
[Unit]
ClassName=CDSearchLight
UnitType=408
MaxSpeed=0.000000
MinSpeed=0.000000
Length=11.5
Width=13.8
RenownAwarded=10
the latter (LCD_SearchLight_2) has this in LCD_SearchLight_2.cfg:
Code:
[Unit]
ClassName=CDSearchLight
UnitType=403
MaxSpeed=0.000000
MinSpeed=0.000000
Length=11.5
Width=13.8
RenownAwarded=10
Notice that they both have the same classname but different UnitTypes (408 and 403). This is for mod compatibility. Perhaps you could add to your iteration in your program that it searches for all of a particular classname, to search for various unittypes of that classname before it spits out error. Because I am getting this error:

Code:
     Type 403 not defined for CDSearchLight
I of course do have CDSearchLight class with unitType 403 (as you can see above), but I'm sure your program just found the first CDSearchLight folder and saw 408 UnitType, and therefore spit out the error.

Could you perhaps fix this? I realize this is a special request but it should be an easy fix. Just loop until all of a particular ClassName are found, then compare UnitTypes. Don't just search for the first one.
Thanks.

Ask if you have questions.

If you don't have the time, I might just throw together a .bat file that searches for this error in the .log output and then searches my directories to see if it really is a legit error. So let me know if your up for the fix, otherwise I'll throw a .bat together.

Last edited by areo16; 07-05-14 at 02:34 PM.
areo16 is offline   Reply With Quote
Old 09-24-14, 05:15 PM   #8
carlitox
Swabbie
 
Join Date: Nov 2013
Posts: 5
Downloads: 16
Uploads: 0
Default Admin rights issue

Hello, im trying to use this aplication to fix this error
http://www.subsim.com/radioroom/show...=1#post2246055

But for some weird reason when I run it as admin, the app still say: try running the app with admin rights.
Can someone help me to run this as administrator, or just send me the sh5 registry entries for win 7 x64?
Thanks
carlitox 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 04:41 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.