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 08-21-11, 01:59 PM   #7
Echolot
Seasoned Skipper
 
Join Date: Mar 2010
Location: Berlin, Germany
Posts: 718
Downloads: 575
Uploads: 0
Wow, this was fast. Thank you, TDW.

Regards.

Echolt.
Echolot is offline   Reply With Quote
Old 08-21-11, 02:24 PM   #8
Echolot
Seasoned Skipper
 
Join Date: Mar 2010
Location: Berlin, Germany
Posts: 718
Downloads: 575
Uploads: 0
Default

Hello TDW.

Tried the new version. Please, exactly which folder I have to search for my savegames?

MyDocuments/cfg/SaveGames/oooooooooo?

I get some error messages at this point.

Also, here is what your tool shows about Yugoslavia in defside.cfg:

Verifying DefSide for Yugoslavia
********* StartDate of 30.11.5819 is not 1 day later then previous EndDate for Yugoslavia in \data\Roster\DefSide.cfg *********


This is from my defside.cfg:

[SideEntry 112]
Country=Yugoslavia
Side=0
StartDate=19380101
EndDate=19410405

[SideEntry 113]
Country=Yugoslavia
Side=1
StartDate=19410406
EndDate=19451231



My system is Win 7 64 bit german.

Mods installed:
TerrainHarbourFlags 1.2.1 incl. Patch 1+2
CerberusAdditionalMerchants/HistoricalEquipment


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


Default

Quote:
Originally Posted by Echolot View Post
Hello TDW.

Tried the new version. Please, exactly which folder I have to search for my savegames?

MyDocuments/cfg/SaveGames/oooooooooo?

I get some error messages at this point.

Also, here is what your tool shows about Yugoslavia in defside.cfg:

Verifying DefSide for Yugoslavia
********* StartDate of 30.11.5819 is not 1 day later then previous EndDate for Yugoslavia in \data\Roster\DefSide.cfg *********


This is from my defside.cfg:

[SideEntry 112]
Country=Yugoslavia
Side=0
StartDate=19380101
EndDate=19410405

[SideEntry 113]
Country=Yugoslavia
Side=1
StartDate=19410406
EndDate=19451231



My system is Win 7 64 bit german.

Mods installed:
TerrainHarbourFlags 1.2.1 incl. Patch 1+2
CerberusAdditionalMerchants/HistoricalEquipment


Echolt.
I have win 7 64 bit English version. SH5 saves my campaigns to \Documents\SH5\data\Users

Can you send me your DefSide.cfg? My app isn't reading the file correctly for those users whose language is other than English.
TheDarkWraith is offline   Reply With Quote
Old 08-21-11, 02:39 PM   #10
Echolot
Seasoned Skipper
 
Join Date: Mar 2010
Location: Berlin, Germany
Posts: 718
Downloads: 575
Uploads: 0
Default

Quote:
SH5 saves my campaigns to \Documents\SH5\data\Users
Thank you.

You have PM. (plz two minutes)

Regards.

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


Default

ok, figured out the problem:

[SideEntry 111]
Country=Venezuela
Side=1
StartDate=19450216
EndDate=19451231

[SideEntry 112]
Country=Yugoslavia
Side=0
StartDate=19380101
EndDate=19410405

[SideEntry 113]
Country=Yugoslavia
Side=1
StartDate=19410406
EndDate=19451231

[SideEntry 112]
Country=Brazil
Side=0
StartDate=19380101
EndDate=19420824

[SideEntry 113]
Country=Brazil
Side=1
StartDate=19420825
EndDate=19451231

Do you see it? There are duplicate 112 and 113 entries and thus was confusing the app. Good thing is it found an error, it just didn't report the error correctly

and it is reading the file correctly so that wasn't the problem.

I'm having it check for sequential order of the entries now before it goes and verifies the countries.
TheDarkWraith is offline   Reply With Quote
Old 08-21-11, 03:03 PM   #12
Trevally.
Navy Seal
 
Join Date: Apr 2007
Location: AN1536 (Orkney)
Posts: 5,451
Downloads: 166
Uploads: 28


Default

@Echolot

That looks like an OH II error
See this post http://www.subsim.com/radioroom/show...&postcount=883
__________________
Trevally Mods for SH5
Trevally. is offline   Reply With Quote
Old 08-21-11, 03:04 PM   #13
Echolot
Seasoned Skipper
 
Join Date: Mar 2010
Location: Berlin, Germany
Posts: 718
Downloads: 575
Uploads: 0
Default

Oh, I see.

Haven't read the "Please select....folder" message in the dialog

Now it works.

Thank you, TDW.

Regards.

Echolt.



PS Thank you, Trevally. OHII is not installed atm

PPS The DefSide.cfg is from TerrainHarbourFlagsMod 1.2.1. The DefSide in MO shows the same.

Last edited by Echolot; 08-21-11 at 03:15 PM.
Echolot is offline   Reply With Quote
Old 08-21-11, 03:34 PM   #14
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,962
Downloads: 147
Uploads: 5


Default

version 1.2.0 released.

When checking DefSide it now looks to see if the entries are in sequential order before fully validating DefSide. If they aren't it will tell you where the problem is (line #) and the application quits.

The first entry has to be [SideEntry 1]. The comments (';') are ok at the beginning.

Since I just wrote a function for checking of sequential order I should just go ahead and code in the checking of the unit's .eqp and .sns files for sequential order of their entries

Last edited by TheDarkWraith; 08-21-11 at 03:47 PM.
TheDarkWraith is offline   Reply With Quote
Old 08-21-11, 03:58 PM   #15
Trevally.
Navy Seal
 
Join Date: Apr 2007
Location: AN1536 (Orkney)
Posts: 5,451
Downloads: 166
Uploads: 28


Default



Getting this error
__________________
Trevally Mods for SH5
Trevally. 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 09:26 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.