PDA

View Full Version : [REL] SH3 Validator


TheDarkWraith
09-02-11, 05:43 PM
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 :D

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 :yeah: If you don't then :yeah: also!

http://www.subsim.com/radioroom/picture.php?albumid=446&pictureid=4836

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/20758151/SHValidator_2_0_3_by_TheDarkWraith_zip


How to interpret and fix common errors:

DefSide errors: http://www.subsim.com/radioroom/showpost.php?p=1743668&postcount=26

Non-sequential ordering/duplicate entries: http://www.subsim.com/radioroom/showpost.php?p=1743692&postcount=27

Campaign errors:
Type x not defined in y: http://www.subsim.com/radioroom/showpost.php?p=1745534&postcount=41

:|\\

Fish In The Water
09-02-11, 11:32 PM
Very interesting...

If it helps identify common errors, then this could prove quite helpful. Thanks for investing the time! :up:

theroc44
09-03-11, 01:29 AM
Are you ever gonna stop !! lol just kidding :yeah::woot::up: your the man TDW but your giving me way too much crosschecking ability now im gonna wanna add more mods lol

urfisch
09-03-11, 03:43 AM
we all appreciate every minute you invest for sh3, tdw. so, thanks a lot!

Myxale
09-03-11, 04:17 AM
we all appreciate every minute you invest for sh3, tdw. so, thanks a lot!

^ What he said!
:rock:

Magic1111
09-05-11, 06:30 AM
Thx TDW !!! :up:

Jaeger
09-05-11, 09:34 AM
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...

Gedis
09-05-11, 09:44 AM
same here, just more errors, TDW plz check last 2 pages of GWX mod topic.

TheDarkWraith
09-05-11, 10:06 AM
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.

Wolfstriked
09-05-11, 10:07 AM
TDW......are you??? U know..........:rotfl2:

TheDarkWraith
09-05-11, 10:07 AM
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 :up:

Gedis
09-05-11, 11:38 AM
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...

TheDarkWraith
09-05-11, 12:10 PM
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)

Gedis
09-05-11, 04:04 PM
then here you go (SH3 v.1.4 GWX 3.0):

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

TheDarkWraith
09-05-11, 04:22 PM
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 :up: I'll add it. Any other suggestions just let me know :yeah:

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 :up:

TheDarkWraith
09-05-11, 09:52 PM
v1.7.0 released. See post #1 for details :|\\

TheDarkWraith
09-06-11, 05:00 AM
If you open up that defside file (with Notepad) you'll see a list of countries and dates. Those errors are telling you that dates overlap for those countries.

Can you possibly post a screenshot of this unhandled exception error?

TheDarkWraith
09-06-11, 05:40 AM
Can you click the details button of that error and show me a screenshot?

As far as the defside errors go I would fix them myself. I'm not sure how detrimental they are to the game but I like things 100% if I can :yep:

TheDarkWraith
09-06-11, 08:12 AM
System.FormatException: Input string was not in a correct format.
at System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal)
at System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info)
at System.Convert.ToInt32(String value)
at TheDarkWraith.SilentHunter5.SH5Validator.CheckSequ entialOrdering(String file, String sw, String ew, enumdisplaymessage checkingforedm, enumdisplaymessage doesntexistedm, enumdisplaymessage edm)


That's what I needed to see :up: Looks like you have another type of error in one of your class files :hmmm:

STEED
09-06-11, 09:10 AM
Very useful tool. :up:

OK here's mind

SH3 GWX3.0 Gold & SH3C

No new campaign as I was killed last weekend...

Silent Hunter 3 Validator v1.7.0.0 by TheDarkWraith

Validation results from C:\Program Files\Ubisoft\SilentHunterIII

Country errors:
no errors

Roster errors:
no errors

Classes errors:
********* C:\Program Files\Ubisoft\SilentHunterIII\data\Air\LAa_Barrage _Balloon\LAa_Barrage_Balloon.eqp doesn't exist! *********

********* C:\Program Files\Ubisoft\SilentHunterIII\data\Air\LAa_Barrage _Balloon\LAa_Barrage_Balloon.sns doesn't exist! *********

********* C:\Program Files\Ubisoft\SilentHunterIII\data\Sea\BuV_Dock1\B uV_Dock1.eqp does not contain sequentially ordered entries (found duplicate [Equipment 119]) @ line number 810 *********

********* C:\Program Files\Ubisoft\SilentHunterIII\data\Sea\BuV_Dock2\B uV_Dock2.eqp does not contain sequentially ordered entries (found duplicate [Equipment 119]) @ line number 810 *********


DefSide errors:
********* StartDate of 07/05/1945 is not 1 day later then previous EndDate for German in \data\Roster\DefSide.cfg *********

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


Campaign errors:
********* 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 *********


Saved campaign errors:
not coded thus not checked

TheDarkWraith
09-06-11, 09:47 AM
Have no idea what or where class error might be - it's all dark forest for me :) I have moderately modded GWX installation. Wanna see my JSGME list ? :sunny:

Very useful tool. :up:

OK here's mind

SH3 GWX3.0 Gold & SH3C

No new campaign as I was killed last weekend...

v1.8.0 released. See post #1 for details

This version gives more information in the log file. It adds what has been ignored to the log. The ignored files are also displayed in the associated box on screen. This version also fixes the unhandled exception error (which was caused by an invalid entry in the file that I was not checking for). I also fixed a typo in the SH3 .cfg file (where the ignores are stored)

Those of you who have files that show duplicate entries or any error you want me to verify please send me the files it says are in error. I'd like to validate that my app is reporting the errors correctly :up: The only way the app can get better is if I check it's output to actual errors.

TheDarkWraith
09-06-11, 10:01 AM
DefSide errors:
********* StartDate of 1945.05.09 is not 1 day later then previous EndDate for German in \data\Roster\DefSide.cfg *********
********* StartDate of 1943.09.03 is not 1 day later then previous EndDate for Italian in \data\Roster\DefSide.cfg *********
********* StartDate of 1943.10.13 is not 1 day later then previous EndDate for Italian in \data\Roster\DefSide.cfg *********
********* StartDate of 1945.05.07 is not 1 day later then previous EndDate for Italian in \data\Roster\DefSide.cfg *********

So what do these errors mean and how do you fix it? Easy!

Let's look at the German one. Here is what is defined for Germany in the defside.cfg file:

[SideEntry 7]
Country=German
Side=0
StartDate=19380101
EndDate=19390831

[SideEntry 8]
Country=German
Side=2
StartDate=19390901
EndDate=19450509

[SideEntry 9]
Country=German
Side=0
StartDate=19450509
EndDate=19451231

If you look at the StartDate of the entry it is 1 more than the previous entries EndDate (country has to be the same). In SideEntry 9 the StartDate is exactly the same date as SideEntry 8's EndDate and thus the app flagged that as an error :up:

TheDarkWraith
09-06-11, 10:25 AM
So what do these errors mean and how do you fix them?

********* C:\Program Files\Ubisoft\SilentHunterIII\data\Sea\BuV_Dock1\B uV_Dock1.eqp does not contain sequentially ordered entries (found duplicate [Equipment 119]) @ line number 810 *********

********* C:\Program Files\Ubisoft\SilentHunterIII\data\Sea\BuV_Dock2\B uV_Dock2.eqp does not contain sequentially ordered entries (found duplicate [Equipment 119]) @ line number 810 *********

Every .eqp and .sns file contains entries numbered in numerical order. The app checks to see if any duplicate entries are found and whether they are in numerical order or not. Here is an example of duplicate entries and non-numerical ordering:

[Equipment 1]
NodeName=M01
LinkName=3InchSingle
StartDate=19380101
EndDate=19451231

[Equipment 2]
NodeName=M02
LinkName=4_7InchSingleT
StartDate=19380101
EndDate=19451231

[Equipment 2]
NodeName=M03
LinkName=4_7InchSingleT
StartDate=19380101
EndDate=19451231

[Equipment 4]
NodeName=M04
LinkName=4_7InchSingleT
StartDate=19380101
EndDate=19451231

[Equipment 5]
NodeName=M05
LinkName=4_7InchSingleT
StartDate=19380101
EndDate=19451231

[Equipment 10]
NodeName=M06
LinkName=4_7InchSingleT
StartDate=19380101
EndDate=19451231

[Equipment 7]
NodeName=M07
LinkName=4_7InchSingleT
StartDate=19380101
EndDate=19451231

[Equipment 8]
NodeName=S01
LinkName=37mmDouble
StartDate=19380101
EndDate=19451231

You'll notice that there are 2 [Equipment 2] entries. This is wrong! You'll also notice that [Equipment 10] is not in numerical order and [Equipment 6] is missing.

STEED
09-06-11, 10:48 AM
New Scan...

Silent Hunter 3 Validator v1.8.0.0 by TheDarkWraith

Validation results from C:\Program Files\Ubisoft\SilentHunterIII

Current ignore list:
data\Air\LAa_Barrage_Balloon\LAa_Barrage_Balloon.e qp
data\Air\LAa_Barrage_Balloon\LAa_Barrage_Balloon.s ns
data\Sea\Buoy_D2_FL\Buoy_D2_FL.eqp
data\Sea\Buoy_D2_FL\Buoy_D2_FL.sns
data\Sea\Buoy_G1_FL\Buoy_G1_FL.sns
data\Sea\Buoy_G2_FL\Buoy_G2_FL.eqp
data\Sea\Buoy_G2_FL\Buoy_G2_FL.sns
data\Sea\Buoy_O1_FL\Buoy_O1_FL.sns
data\Sea\Buoy_R1_FL\Buoy_R1_FL.sns
data\Sea\Buoy_R2_FL\Buoy_R2_FL.eqp
data\Sea\Buoy_R2_FL\Buoy_R2_FL.sns
data\Land\Statue\Statue.eqp
data\Land\Statue\Statue.sns
data\Ordnance\AntiSubNet\AntiSubNet.sns
data\Ordnance\Minefield\Minefield.sns

Country errors:
no errors

Country ignores:
no ignores

Roster errors:
no errors

Roster ignores:
no ignores

Classes errors:
********* C:\Program Files\Ubisoft\SilentHunterIII\data\Sea\BuV_Dock1\B uV_Dock1.eqp does not contain sequentially ordered entries (found duplicate [Equipment 119]) @ line number 810 *********
********* C:\Program Files\Ubisoft\SilentHunterIII\data\Sea\BuV_Dock2\B uV_Dock2.eqp does not contain sequentially ordered entries (found duplicate [Equipment 119]) @ line number 810 *********

Classes ignores:
C:\Program Files\Ubisoft\SilentHunterIII\C:\Program Files\Ubisoft\SilentHunterIII\data\Air\LAa_Barrage _Balloon\LAa_Barrage_Balloon.eqp ignored
C:\Program Files\Ubisoft\SilentHunterIII\C:\Program Files\Ubisoft\SilentHunterIII\data\Air\LAa_Barrage _Balloon\LAa_Barrage_Balloon.sns ignored
C:\Program Files\Ubisoft\SilentHunterIII\C:\Program Files\Ubisoft\SilentHunterIII\data\Sea\Buoy_D2_FL\ Buoy_D2_FL.eqp ignored
C:\Program Files\Ubisoft\SilentHunterIII\C:\Program Files\Ubisoft\SilentHunterIII\data\Sea\Buoy_D2_FL\ Buoy_D2_FL.sns ignored
C:\Program Files\Ubisoft\SilentHunterIII\C:\Program Files\Ubisoft\SilentHunterIII\data\Sea\Buoy_G1_FL\ Buoy_G1_FL.sns ignored
C:\Program Files\Ubisoft\SilentHunterIII\C:\Program Files\Ubisoft\SilentHunterIII\data\Sea\Buoy_G2_FL\ Buoy_G2_FL.eqp ignored
C:\Program Files\Ubisoft\SilentHunterIII\C:\Program Files\Ubisoft\SilentHunterIII\data\Sea\Buoy_G2_FL\ Buoy_G2_FL.sns ignored
C:\Program Files\Ubisoft\SilentHunterIII\C:\Program Files\Ubisoft\SilentHunterIII\data\Sea\Buoy_O1_FL\ Buoy_O1_FL.sns ignored
C:\Program Files\Ubisoft\SilentHunterIII\C:\Program Files\Ubisoft\SilentHunterIII\data\Sea\Buoy_R1_FL\ Buoy_R1_FL.sns ignored
C:\Program Files\Ubisoft\SilentHunterIII\C:\Program Files\Ubisoft\SilentHunterIII\data\Sea\Buoy_R2_FL\ Buoy_R2_FL.eqp ignored
C:\Program Files\Ubisoft\SilentHunterIII\C:\Program Files\Ubisoft\SilentHunterIII\data\Sea\Buoy_R2_FL\ Buoy_R2_FL.sns ignored
C:\Program Files\Ubisoft\SilentHunterIII\C:\Program Files\Ubisoft\SilentHunterIII\data\Land\Statue\Sta tue.eqp ignored
C:\Program Files\Ubisoft\SilentHunterIII\C:\Program Files\Ubisoft\SilentHunterIII\data\Land\Statue\Sta tue.sns ignored
C:\Program Files\Ubisoft\SilentHunterIII\C:\Program Files\Ubisoft\SilentHunterIII\data\Ordnance\AntiSu bNet\AntiSubNet.sns ignored
C:\Program Files\Ubisoft\SilentHunterIII\C:\Program Files\Ubisoft\SilentHunterIII\data\Ordnance\Minefi eld\Minefield.sns ignored

DefSide errors:
********* StartDate of 07/05/1945 is not 1 day later than previous EndDate for German in \data\Roster\DefSide.cfg *********
********* StartDate of 15/08/1942 is not 1 day later than previous EndDate for Uruguay in \data\Roster\DefSide.cfg *********

DefSide ignores:
no ignores

Campaign errors:
********* 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 *********

Campaign ignores:
no ignores

Saved campaign errors:
not coded thus not checked

Saved campaign ignores:
not coded thus not checked

JapLance
09-06-11, 10:52 AM
Hi TDW,


any plans to release a similar tool for SH4? I did try to force it to use the SH4 folder, but it wouldn't work (as expected, just had to try it :D).

NGT
09-06-11, 12:08 PM
Amazing tool !!! :yeah:

The only thing to add is an..... “ID conflict finder”.....and the perfect audit tool is almost done!

Thank you very much, Sir, for your time! :salute:



Tested with Windows 7 / 64 english version.

TheDarkWraith
09-06-11, 12:59 PM
TDW disregard my last log, it's from stock SH3 which I'm keeping for MP games only, so no big troubles with it...

I now successfully scanned GWX:
Classes errors:
********* D:\Games\Ubisoft\SilentHunterIII\data\Air\AFB_FW_1 90a5\AFB_FW_190a5.eqp has invalid entry of [Equipment11] @ line number 53 *********
********* D:\Games\Ubisoft\SilentHunterIII\data\Air\ALB_Ju52-3M.Mausi\ALB_Ju52-3M.Mausi.eqp does not contain sequentially ordered entries (found duplicate [Equipment 5]) @ line number 28 *********
********* D:\Games\Ubisoft\SilentHunterIII\data\Air\ALB_Junk ers.Ju.52\ALB_Junkers.Ju.52.eqp does not contain sequentially ordered entries (found duplicate [Equipment 5]) @ line number 28 *********
********* D:\Games\Ubisoft\SilentHunterIII\data\Sea\BuV_Dock 1\BuV_Dock1.eqp does not contain sequentially ordered entries (found duplicate [Equipment 119]) @ line number 810 *********
********* D:\Games\Ubisoft\SilentHunterIII\data\Sea\BuV_Dock 2\BuV_Dock2.eqp does not contain sequentially ordered entries (found duplicate [Equipment 119]) @ line number 810 *********

DefSide errors:
********* StartDate of 1945.05.07 is not 1 day later than previous EndDate for German in \data\Roster\DefSide.cfg *********
********* StartDate of 1942.08.15 is not 1 day later than previous EndDate for Uruguay in \data\Roster\DefSide.cfg *********
DefSide ignores:
no ignores

Campaign errors:
********* Type 0 not defined in \data\Roster\Venezuela @ line number 436921 *********
********* Type 0 not defined in \data\Roster\Venezuela @ line number 493070 *********
********* Type 0 not defined in \data\Roster\Venezuela @ line number 493082 *********

Damn, I will seriously need a hand from you TDW to deal with THEM ALL :shifty:

Yours are pretty easy for the most part.

This error: D:\Games\Ubisoft\SilentHunterIII\data\Air\AFB_FW_1 90a5\AFB_FW_190a5.eqp has invalid entry of [Equipment11] can be fixed by editing the D:\Games\Ubisoft\SilentHunterIII\data\Air\AFB_FW_1 90a5\AFB_FW_190a5.eqp and making equipment 11 entry like this:
[Equipment 11]

These errors:
********* D:\Games\Ubisoft\SilentHunterIII\data\Air\ALB_Ju52-3M.Mausi\ALB_Ju52-3M.Mausi.eqp does not contain sequentially ordered entries (found duplicate [Equipment 5]) @ line number 28 *********
********* D:\Games\Ubisoft\SilentHunterIII\data\Air\ALB_Junk ers.Ju.52\ALB_Junkers.Ju.52.eqp does not contain sequentially ordered entries (found duplicate [Equipment 5]) @ line number 28 *********
********* D:\Games\Ubisoft\SilentHunterIII\data\Sea\BuV_Dock 1\BuV_Dock1.eqp does not contain sequentially ordered entries (found duplicate [Equipment 119]) @ line number 810 *********
********* D:\Games\Ubisoft\SilentHunterIII\data\Sea\BuV_Dock 2\BuV_Dock2.eqp does not contain sequentially ordered entries (found duplicate [Equipment 119]) @ line number 810 *********

Can be fixed by editing their .eqp files and renumbering the entries to ensure sequential ordering. i.e.:
[Equipment 1]
.....

[Equipment 2]
......

[Equipment 3]
......

etc.

these errors:
DefSide errors:
********* StartDate of 1945.05.07 is not 1 day later than previous EndDate for German in \data\Roster\DefSide.cfg *********
********* StartDate of 1942.08.15 is not 1 day later than previous EndDate for Uruguay in \data\Roster\DefSide.cfg *********

can be fixed by looking at bottom of post #1 and clicking the link for fixing defside errors

The campaign ones take a little more explaining to do....:up:

vonzake
09-07-11, 03:27 AM
great work

Stiebler
09-07-11, 07:40 AM
This Validator is extremely valuable for modders. Many thanks for it TDW.

I tested it with the NYGM super-mod, and it picked up a handful of minor problems - including a discontinuity with equipment items (NSS_Submarine7a.eqp) with Sergbuto's AI U-boats, present from the original. The schnorchel entries are not numbered in sequence from other items.

It also picked up that the NYGM campaign_RND.mis file used for a selection of merchant ships from IABL lacked roster entries for two ships assigned to Canada and to Greece (my error, not IABL's). This will not affect NYGM users, who are provided with a generic-merchants campaign_RND.mis file, but definitely does affect its intended replacement campaign file, in which most of the generic merchants were to be replaced with defined merchant ships.

I have found that generic merchant ships in convoys seem to be unhappy in SH3; for example they often sulk after an attack and refuse to move any further. This is never a problem with scripted, defined, merchant ships in convoys. It suddenly occurred to me: how was it that the devs provided defined merchant ships in their campaign_RND.mis, when it would have been easier, and have provided greater variety, if all the convoys in stock SH3 were generic? Answer: the devs must have discovered the same problem, and avoided it with the use of defined ships in the convoys.

Maybe this problem also affects SH5?

Stiebler.

TheDarkWraith
09-07-11, 09:01 PM
This Validator is extremely valuable for modders.

You'll like v2.0.0 even more ;)

v2.0.0 released. See post #1 for details :|\\

TheDarkWraith
09-07-11, 11:48 PM
Hi TDW,


any plans to release a similar tool for SH4? I did try to force it to use the SH4 folder, but it wouldn't work (as expected, just had to try it :D).

v2.0.0 included support for SH4 up to patch 1.4: http://www.subsim.com/radioroom/showpost.php?p=1745211&postcount=1

JapLance
09-08-11, 08:08 AM
v2.0.0 included support for SH4 up to patch 1.4: http://www.subsim.com/radioroom/showpost.php?p=1745211&postcount=1

Roger :D.

TheDarkWraith
09-08-11, 10:07 AM
Hi TDW,

How should I fix campaign errors ?

D:\Games\Ubisoft\SilentHunterIII\data\Campaigns\Ca mpaign\Campaign_RND.mis:
Type 0 not defined in \data\Roster\Venezuela
Type 0 not defined in \data\Roster\Venezuela
Type 0 not defined in \data\Roster\Venezuela

I'll use an American entry as an example. Type 0 defines the class of unit that the campaign is looking for. Type 0 just happens to be Type0=Patrol Craft from \data\Roster\English.cfg. Knowing this it's pretty obvious that the intended unit is the PT Elco boat. This Type x is used as a generic class by the game engine. Many units can be Type x and this is how you get ship variety. IIRC the only Type 0 defined in stock SHIII is the PT Elco boat.
Now knowing this we can either create a new roster entry or copy an existing one and modify it. We'll do the latter.
Copy the \data\Roster\American\Sea\PTElco.cfg file to \data\Roster\Venezuela\Sea. That will fix the error. Now you can 'customize' this new roster entry by opening up the new PTElco.cfg file and editing the items below in yellow:

[UnitClass]
ClassName=PTElco
UnitType=0
AppearanceDate=19380101
DisappearanceDate=19460101
DisplayName=US PT Boat

Stiebler
09-16-11, 09:33 AM
You'll like v2.0.0 even more ;)

v2.0.0 released. See post #1 for details :|\\Got it, thanks. Great work again!

And latest version of NYGM (forthcoming fix 3.5A) contains no errors at all, in the Validator!

Stiebler.

Victor Schutze
12-16-11, 10:29 PM
Yours are pretty easy for the most part.

1\BuV_Dock1.eqp does not contain sequentially ordered entries (found duplicate [Equipment 119]) @ line number 810 *********
*********

Can be fixed by editing their .eqp files and renumbering the entries to ensure sequential ordering. i.e.:
[Equipment 1]
.....

[Equipment 2]
......

[Equipment 3]
......

etc.


:88) I have this error but all [Equipment x] are in sequential order?!

Mine says:

[Equipment 119]
NodeName=A01
LinkName=Bootsmann5
StartDate=19380101
EndDate=19451231
Loadout=Allied_Merchant

How do I fix this? All the equipment numbers before (1-118) and after(120-134) are in sequential order. :06:

TheDarkWraith
12-17-11, 01:54 AM
:88) I have this error but all [Equipment x] are in sequential order?!

Mine says:

[Equipment 119]
NodeName=A01
LinkName=Bootsmann5
StartDate=19380101
EndDate=19451231
Loadout=Allied_Merchant

How do I fix this? All the equipment numbers before (1-118) and after(120-134) are in sequential order. :06:

Which file is this? Can you send it to me? Maybe I have something wrong in my code :hmmm:

PapaKilo
12-17-11, 02:23 AM
Did the program actually shows you an error at:

Equipment 119 ?

TDW just made an example to make it more clear what should be fixed if you get this type of error, but it doesn't mean you necessarily have a problem at Equipment 119.

But if you do, it would be better if you copy also the Equipments 118 and 120 together with 119

Victor Schutze
12-17-11, 12:34 PM
Which file is this? Can you send it to me? Maybe I have something wrong in my code :hmmm:

You have a PM

Victor Schutze
12-17-11, 12:50 PM
Did the program actually shows you an error at:

Equipment 119 ?


Yes it does

But if you do, it would be better if you copy also the Equipments 118 and 120 together with 119

I am not sure what you mean? :hmmm:

Here are my Equipments 118, 119 and 120. How do I proceed?

[Equipment 118
NodeName=M02
LinkName=Bootsmann2
StartDate=19380101
EndDate=19451231
Loadout=Allied_Merchant

[Equipment 119]
NodeName=A01
LinkName=Bootsmann5
StartDate=19380101
EndDate=19451231
Loadout=Allied_Merchant

[Equipment 120]
NodeName=A02
LinkName=Bootsmann5
StartDate=19380101
EndDate=19451231
Loadout=Allied_Merchant

Edit: I just noticed "[Equipment 118" does not have a "]". I add it. Just in case it is the cause of the problem. I run a ShValidator scan now to check for errors.

Edit 2: You won't believe it but the error is gone by adding the "]" to "[Equipment 118"
So the ShValidator "sees" the error at "[Equipment 119]" instead of "[Equipment 118"

TheDarkWraith
12-17-11, 01:18 PM
Here are my Equipments 118, 119 and 120. How do I proceed?

[Equipment 118
NodeName=M02
LinkName=Bootsmann2
StartDate=19380101
EndDate=19451231
Loadout=Allied_Merchant

[Equipment 119]
NodeName=A01
LinkName=Bootsmann5
StartDate=19380101
EndDate=19451231
Loadout=Allied_Merchant

[Equipment 120]
NodeName=A02
LinkName=Bootsmann5
StartDate=19380101
EndDate=19451231
Loadout=Allied_Merchant

Edit: I just noticed "[Equipment 118" does not have a "]". I add it. Just in case it is the cause of the problem. I run a ShValidator scan now to check for errors.

The missing ] will do it :up:

Also you cannot receive PMs so there is no way for anyone to respond to you :-?

Victor Schutze
12-17-11, 01:26 PM
The missing ] will do it :up:

Also you cannot receive PMs so there is no way for anyone to respond to you :-?

Ha! Thanks for telling me. (I was not aware of this :oops: )

"If you do not want to send or receive private messages, you may disable the private messaging system.
Enable Private Messaging

You may limit the receipt of private messages to just moderators and your contacts. Other members who attempt to send messages to you will be told that you have disabled private messaging.
Receive Private Messages only from Contacts and Moderators"

Fixed :shucks:

I mean... I think it is... :O:

Edit: I had the same "]" error in the BuV_Dock2.eqp file(on "[Equipment 118")!
Modder error?

TheDarkWraith
12-17-11, 02:11 PM
Edit: I had the same "]" error in the BuV_Dock2.eqp file(on "[Equipment 118")!
Modder error?

Who knows. I'm not really certain that the missing ] is a problem to the game engine or not. Being a perfectionist I want everything correct and that's how I coded the app.

Victor Schutze
12-17-11, 03:32 PM
Who knows. I'm not really certain that the missing ] is a problem to the game engine or not. Being a perfectionist I want everything correct and that's how I coded the app.

The errors are gone! :yeah:

I mean... I still have to take care of the others... in a few hours time... RL obligations.

Victor Schutze
12-17-11, 11:54 PM
I can't find the error in this NSS_Uboat7a.eqp file:


;equiment cfg file, high level of detail

;coning with 1 AA mount
[Equipment 1]
NodeName=Z01
LinkName=data/objects/Turm7a_1_hd
StartDate=19380101
EndDate=19411231

;coning with 2 AA mounts
[Equipment 2]
NodeName=Z01
LinkName=data/objects/Turm7a_1_hd
StartDate=19420101
EndDate=19451231

; deck mount
[Equipment 3]
NodeName=M01
LinkName=88mm_UDeck_Gun_High
StartDate=19380101
EndDate=19421231

[Equipment 4]
NodeName=M01
LinkName=NULL
StartDate=19430101
EndDate=19451231

; first conning tower mount
[Equipment 5]
NodeName=A01
LinkName=20mmSingle_UFlak_High
StartDate=19380101
EndDate=19401231

[Equipment 6]
NodeName=A01
LinkName=20mmShield_Single_UFlak_High
StartDate=19410101
EndDate=19421231

[Equipment 7]
NodeName=A01
LinkName=20mmTwin_UFlak_High
StartDate=19430101
EndDate=19431231

[Equipment 8]
NodeName=A01
LinkName=20mmShield_Twin_UFlak_High
StartDate=19440101
EndDate=19451231

;Snorkel

[Equipment 13]
NodeName=SNK
LinkName=NSS_Uboattype7_SNK_mask
StartDate=19380101
EndDate=19430701

[Equipment 14]
NodeName=SNK
LinkName=NSS_Uboattype7_SNK
StartDate=19430701
EndDate=19451231

Any idea(s)?

May be the last 2 [Equipment x] are supposed to be

[Equipment 9]

[Equipment 10]

instead of

[Equipment 13]

[Equipment 14]

:hmmm:

Edit: Ok, this was the actual solution. Forget it. :up:

Victor Schutze
12-18-11, 12:35 AM
I still have these errors though:

D:\Ubisoft\SilentHunterIII\data\Sea\L02A\L02A.cfg missing!
D:\Ubisoft\SilentHunterIII\data\Sea\L03A\L03A.cfg missing!
D:\Ubisoft\SilentHunterIII\data\Sea\M33B\M33B.cfg missing!
D:\Ubisoft\SilentHunterIII\data\Sea\T06A\T06A.cfg missing!
D:\Ubisoft\SilentHunterIII\data\Sea\T06B\T06B.cfg missing!
D:\Ubisoft\SilentHunterIII\data\Sea\T15B\T15B.cfg missing!

Does someone have these files?

Edit: These are my last errors! Corrected everything else. :up:

TheDarkWraith
12-18-11, 12:04 PM
I still have these errors though:

D:\Ubisoft\SilentHunterIII\data\Sea\L02A\L02A.cfg missing!
D:\Ubisoft\SilentHunterIII\data\Sea\L03A\L03A.cfg missing!
D:\Ubisoft\SilentHunterIII\data\Sea\M33B\M33B.cfg missing!
D:\Ubisoft\SilentHunterIII\data\Sea\T06A\T06A.cfg missing!
D:\Ubisoft\SilentHunterIII\data\Sea\T06B\T06B.cfg missing!
D:\Ubisoft\SilentHunterIII\data\Sea\T15B\T15B.cfg missing!

Does someone have these files?

Edit: These are my last errors! Corrected everything else. :up:

What are these? Ships? Or some kind of static ship?

Victor Schutze
12-18-11, 12:20 PM
What are these? Ships? Or some kind of static ship?

I am not sure whether these ships are static or not. I have skin files in their respective directories but no cfg files. :hmmm:

I can't find those files. :-?
Please help.

IFRT-WHUFC
12-18-11, 06:58 PM
I am not sure whether these ships are static or not. I have skin files in their respective directories but no cfg files. :hmmm:

I can't find those files. :-?
Please help.

These are ships from iambecomelife's Merchant Fleet Mod! :salute:

Rick

Victor Schutze
12-18-11, 09:22 PM
These are ships from iambecomelife's Merchant Fleet Mod! :salute:

Rick

aha! Thank you IFRT-WHUFC! :up:

I'm going to check if I have them in the original mod. :salute:

Niume
02-02-18, 04:59 PM
I don't know if this thread is usefull any more but then I try to pick directory for sh 3 it says ---------------------------
Error
---------------------------
Path specified to Silent Hunter 3(E:\SilentHunterIII) doesn't match value read from registry ().

Update registry with this path (E:\SilentHunterIII) ?
---------------------------
Yes No
---------------------------

and doesint work tried admin rights still din;t worked

THEBERBSTER
02-03-18, 05:40 AM
Hi N
Have you done a re-install without using a registry cleaner?
Post #70 How To Use The Free Registry Cleaner 'Ccleaner' > Includes Download Link (http://www.subsim.com/radioroom/showpost.php?p=2202382&postcount=70)
Peter

Niume
02-03-18, 09:15 AM
Din;t worked I have 3 installs of sh3 2 of them have custom document saves. Tried install with normal save location still din't worked

hauangua
02-03-18, 10:31 AM
Din;t worked I have 3 installs of sh3 2 of them have custom document saves. Tried install with normal save location still din't worked

you've tried open SH validator as administrator?

Niume
02-03-18, 02:57 PM
you've tried open SH validator as administrator?
yes

nik112
02-06-18, 06:25 AM
Hi guys
Tried to d/l but the link doesn't works
Any ideas?


cheers

propbeanie
02-06-18, 07:03 AM
Did you try from here:
http://www.subsim.com/radioroom/downloads.php?do=file&id=4630

that one has a separate cfg file for SH3, SH4 & SH5, so it does all 3 in 1... :salute: