SUBSIM®  Radio Room Forums


SUBSIM: The Web's #1 BBS for all submarine and naval simulations since 1997

Go Back   SUBSIM® Radio Room Forums > Silent Hunter 3 - 4 - 5 > SHIII Mods Workshop
Forget password? Reset here

Reply
 
Thread Tools Display Modes
Old 09-02-2011, 05:43 PM   #1
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,994
Downloads: 146
Uploads: 5


Default [REL] SH3 Validator

SH Validator v2.0.3 (something I made for SH5 that I ported over to SH4)

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

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, and a breakdown of the roster (Country and units defined). 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.

If you find the app useful then If you don't then also!



The above was ran on Stock 1.4b version of game

NOTE: Errors in the classes have to be interpreted. Some files are not required for some units. If you encounter errors in the classes and you have questions as to whether they are valid or not please post those questions to this thread.

v2.0.3: http://www.gamefront.com/files/20758...DarkWraith_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; 09-08-2011 at 05:54 PM.
TheDarkWraith is offline   Reply With Quote
Old 09-02-2011, 11:32 PM   #2
Fish In The Water
Prince of
the Sea


SUBSIM
Welcome
Committee

 
Join Date: Jul 2009
Location: Watching over U-253
Posts: 3,528
Downloads: 98
Uploads: 2
Default

Very interesting...

If it helps identify common errors, then this could prove quite helpful. Thanks for investing the time!
__________________
"The whole problem with the world is that fools and fanatics are always so certain of themselves, and wiser people are so full of doubts." - Bertrand Russell.


Fish In The Water is offline   Reply With Quote
Old 09-03-2011, 01:29 AM   #3
theroc44
Lieutenant
 
Join Date: Aug 2011
Location: New York City
Posts: 257
Downloads: 98
Uploads: 0
Default

Are you ever gonna stop !! lol just kidding your the man TDW but your giving me way too much crosschecking ability now im gonna wanna add more mods lol
__________________
"A few stood against many that is all that matters"
theroc44 is offline   Reply With Quote
Old 09-03-2011, 03:43 AM   #4
urfisch
Sea Lord
 
Join Date: Mar 2005
Location: Deep down in Germany
Posts: 1,954
Downloads: 39
Uploads: 0
Default

we all appreciate every minute you invest for sh3, tdw. so, thanks a lot!
__________________


urfisch is offline   Reply With Quote
Old 09-03-2011, 04:17 AM   #5
Myxale
Admiral
 
Join Date: Feb 2006
Location: PQ AN 25
Posts: 2,178
Downloads: 64
Uploads: 0
Default

Quote:
Originally Posted by urfisch View Post
we all appreciate every minute you invest for sh3, tdw. so, thanks a lot!
^ What he said!
__________________
SH3+GWX
SH5+WoS
Still Sailing....still Deep

Myxale is offline   Reply With Quote
Old 09-05-2011, 06:30 AM   #6
Magic1111
Silent Hunter
 
Join Date: Sep 2008
Location: Germany - Sailing on U-552 in North Atlantic
Posts: 4,414
Downloads: 777
Uploads: 0


Default

Thx TDW !!!
Magic1111 is offline   Reply With Quote
Old 09-05-2011, 09:34 AM   #7
Jaeger
Chief
 
Join Date: Jul 2005
Posts: 315
Downloads: 24
Uploads: 0
Default

Very nice tool. i checked my sh3 install and it detected 6 errors. can you code in an output option, because i want to post my findings here on subsim. perhaps somebody can tell me then, whats wrong there...
__________________
Everything comes to him who waits
Jaeger is offline   Reply With Quote
Old 09-05-2011, 09:44 AM   #8
Gedis
Watch
 
Join Date: Feb 2010
Location: Lithuania, Vilnius
Posts: 16
Downloads: 26
Uploads: 0
Default

same here, just more errors, TDW plz check last 2 pages of GWX mod topic.
Gedis is offline   Reply With Quote
Old 09-05-2011, 10:06 AM   #9
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,994
Downloads: 146
Uploads: 5


Default

Quote:
Originally Posted by Gedis View Post
same here, just more errors, TDW plz check last 2 pages of GWX mod topic.
In each 'box' it lists the errors. You can select text in it by holding left mouse button down and moving mouse. Once selected press 'Ctrl+C' to copy to clipboard. Press Ctrl+V to copy to here.

There are 2 class errors that aren't really important and can be ignored. They deal with the mines and subnets. You have to interpret the results. Some units don't have .sns files (mines and subnets) thus the error isn't really an error. The app is very thorough in it's checking and validating.

DefSide errors are the most common errors found as they are easily overlooked when mods are made.
TheDarkWraith is offline   Reply With Quote
Old 09-05-2011, 10:07 AM   #10
Wolfstriked
Samurai Navy
 
Join Date: Apr 2011
Posts: 594
Downloads: 159
Uploads: 0
Default

TDW......are you??? U know..........
Wolfstriked is offline   Reply With Quote
Old 09-05-2011, 10:07 AM   #11
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,994
Downloads: 146
Uploads: 5


Default

Quote:
Originally Posted by Jaeger View Post
Very nice tool. i checked my sh3 install and it detected 6 errors. can you code in an output option, because i want to post my findings here on subsim. perhaps somebody can tell me then, whats wrong there...
I'll add an ability to send errors to text files
TheDarkWraith is offline   Reply With Quote
Old 09-05-2011, 11:38 AM   #12
Gedis
Watch
 
Join Date: Feb 2010
Location: Lithuania, Vilnius
Posts: 16
Downloads: 26
Uploads: 0
Default

Quote:
Originally Posted by TheDarkWraith View Post
In each 'box' it lists the errors. You can select text in it by holding left mouse button down and moving mouse. Once selected press 'Ctrl+C' to copy to clipboard. Press Ctrl+V to copy to here.
yep i posted error log by copy&paste method in previous page of GWX topic...
Gedis is offline   Reply With Quote
Old 09-05-2011, 12:10 PM   #13
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,994
Downloads: 146
Uploads: 5


Default

Quote:
Originally Posted by Gedis View Post
yep i posted error log by copy&paste method in previous page of GWX topic...
Might be best to place here also

The buoys missing the .eqp and .sns files are ok

You have to interpret the results. I can't say such and such file is not required for such and such unit until such and such unit is defined (for the classes)

Last edited by TheDarkWraith; 09-05-2011 at 02:14 PM.
TheDarkWraith is offline   Reply With Quote
Old 09-05-2011, 04:04 PM   #14
Gedis
Watch
 
Join Date: Feb 2010
Location: Lithuania, Vilnius
Posts: 16
Downloads: 26
Uploads: 0
Default

then here you go (SH3 v.1.4 GWX 3.0):

Quote:
Classes (17 errors):

UnitClass=Air_Mine UnitType=306 (Environmental)
C:\Games\SilentHunterIII\data\Air\LAa_Barrage_Ball oon\LAa_Barrage_Balloon.eqp doesn't exist!
C:\Games\SilentHunterIII\data\Air\LAa_Barrage_Ball oon\LAa_Barrage_Balloon.sns doesn't exist!

UnitClass=Buoy_D2_FL UnitType=105 (Environmental)
C:\Games\SilentHunterIII\data\Sea\Buoy_D2_FL\Buoy_ D2_FL.eqp doesn't exist!
C:\Games\SilentHunterIII\data\Sea\Buoy_D2_FL\Buoy_ D2_FL.sns doesn't exist!

UnitClass=Buoy_G1_FL UnitType=105 (Environmental)
C:\Games\SilentHunterIII\data\Sea\Buoy_G1_FL\Buoy_ G1_FL.sns doesn't exist!

UnitClass=Buoy_G2_FL UnitType=105 (Environmental)
C:\Games\SilentHunterIII\data\Sea\Buoy_G2_FL\Buoy_ G2_FL.eqp doesn't exist!
C:\Games\SilentHunterIII\data\Sea\Buoy_G2_FL\Buoy_ G2_FL.sns doesn't exist!

UnitClass=Buoy_O1_FL UnitType=105 (Environmental)
C:\Games\SilentHunterIII\data\Sea\Buoy_O1_FL\Buoy_ O1_FL.sns doesn't exist!

UnitClass=Buoy_R1_FL UnitType=105 (Environmental)
C:\Games\SilentHunterIII\data\Sea\Buoy_R1_FL\Buoy_ R1_FL.sns doesn't exist!

UnitClass=Buoy_R2_FL UnitType=105 (Environmental)
C:\Games\SilentHunterIII\data\Sea\Buoy_R2_FL\Buoy_ R2_FL.eqp doesn't exist!
C:\Games\SilentHunterIII\data\Sea\Buoy_R2_FL\Buoy_ R2_FL.sns doesn't exist!

UnitClass=BuV_Dock1 UnitType=12 (Minor Warship)
C:\Games\SilentHunterIII\data\Sea\BuV_Dock1\BuV_Do ck1.eqp does not contain sequentially ordered entries (found duplicate [Equipment 119]) @ line number 810

UnitClass=BuV_Dock2 UnitType=12 (Minor Warship)
C:\Games\SilentHunterIII\data\Sea\BuV_Dock2\BuV_Do ck2.eqp does not contain sequentially ordered entries (found duplicate [Equipment 119]) @ line number 810

UnitClass=Statue UnitType=408 (Environmental)
C:\Games\SilentHunterIII\data\Land\Statue\Statue.e qp doesn't exist!
C:\Games\SilentHunterIII\data\Land\Statue\Statue.s ns doesn't exist!

UnitClass=AntiSubNet UnitType=501 (AntiSub Net)
C:\Games\SilentHunterIII\data\Ordnance\AntiSubNet\ AntiSubNet.sns doesn't exist!

UnitClass=Minefield UnitType=500 (Mine)
C:\Games\SilentHunterIII\data\Ordnance\Minefield\M inefield.sns doesn't exist!

DefSide (2 errors):

Verifying DefSide for German
StartDate of 5/7/1945 is not 1 day later then previous EndDate for German in \data\Roster\DefSide.cfg

Verifying DefSide for Uruguay
StartDate of 8/15/1942 is not 1 day later then previous EndDate for Uruguay in \data\Roster\DefSide.cfg

Campaign (3 errors):

Validating campaign...
Validating C:\Games\SilentHunterIII\data\Campaigns\Campaign\C ampaign_LND.mis (only verifying Class, Type, Origin, and RndGroups currently)...
Validating C:\Games\SilentHunterIII\data\Campaigns\Campaign\C ampaign_RND.mis (only verifying Class, Type, Origin, and RndGroups currently)...
Type 0 not defined in \data\Roster\Venezuela @ line number 528208
Type 0 not defined in \data\Roster\Venezuela @ line number 584357
Type 0 not defined in \data\Roster\Venezuela @ line number 584369
Validating C:\Games\SilentHunterIII\data\Campaigns\Campaign\C ampaign_SCR.mis (only verifying Class, Type, Origin, and RndGroups currently)...
would be nice if there was coded automatic error logs in .txt format after each scan
Gedis is offline   Reply With Quote
Old 09-05-2011, 04:22 PM   #15
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,994
Downloads: 146
Uploads: 5


Default

Quote:
Originally Posted by Gedis View Post
then here you go (SH3 v.1.4 GWX 3.0):

would be nice if there was coded automatic error logs in .txt format after each scan
great suggestion I'll add it. Any other suggestions just let me know

now from you list you can ignore:

UnitClass=Air_Mine UnitType=306 (Environmental)
C:\Games\SilentHunterIII\data\Air\LAa_Barrage_Ball oon\LAa_Barrage_Balloon.eqp doesn't exist!
C:\Games\SilentHunterIII\data\Air\LAa_Barrage_Ball oon\LAa_Barrage_Balloon.sns doesn't exist!

UnitClass=Buoy_D2_FL UnitType=105 (Environmental)
C:\Games\SilentHunterIII\data\Sea\Buoy_D2_FL\Buoy_ D2_FL.eqp doesn't exist!
C:\Games\SilentHunterIII\data\Sea\Buoy_D2_FL\Buoy_ D2_FL.sns doesn't exist!

UnitClass=Buoy_G1_FL UnitType=105 (Environmental)
C:\Games\SilentHunterIII\data\Sea\Buoy_G1_FL\Buoy_ G1_FL.sns doesn't exist!

UnitClass=Buoy_G2_FL UnitType=105 (Environmental)
C:\Games\SilentHunterIII\data\Sea\Buoy_G2_FL\Buoy_ G2_FL.eqp doesn't exist!
C:\Games\SilentHunterIII\data\Sea\Buoy_G2_FL\Buoy_ G2_FL.sns doesn't exist!

UnitClass=Buoy_O1_FL UnitType=105 (Environmental)
C:\Games\SilentHunterIII\data\Sea\Buoy_O1_FL\Buoy_ O1_FL.sns doesn't exist!

UnitClass=Buoy_R1_FL UnitType=105 (Environmental)
C:\Games\SilentHunterIII\data\Sea\Buoy_R1_FL\Buoy_ R1_FL.sns doesn't exist!

UnitClass=Buoy_R2_FL UnitType=105 (Environmental)
C:\Games\SilentHunterIII\data\Sea\Buoy_R2_FL\Buoy_ R2_FL.eqp doesn't exist!
C:\Games\SilentHunterIII\data\Sea\Buoy_R2_FL\Buoy_ R2_FL.sns doesn't exist!

UnitClass=Statue UnitType=408 (Environmental)
C:\Games\SilentHunterIII\data\Land\Statue\Statue.e qp doesn't exist!
C:\Games\SilentHunterIII\data\Land\Statue\Statue.s ns doesn't exist!

UnitClass=AntiSubNet UnitType=501 (AntiSub Net)
C:\Games\SilentHunterIII\data\Ordnance\AntiSubNet\ AntiSubNet.sns doesn't exist!

UnitClass=Minefield UnitType=500 (Mine)
C:\Games\SilentHunterIII\data\Ordnance\Minefield\M inefield.sns doesn't exist!

All the other errors are valid and should be fixed
TheDarkWraith is offline   Reply With Quote
Reply

Thread Tools
Display Modes

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 12:16 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
Copyright © 1995- 2018 Subsim