.com.unity Forums
  The Official e-Store of Shrapnel Games

This Month's Specials

Raging Tiger- Save $9.00
winSPMBT: Main Battle Tank- Save $6.00

   







Go Back   .com.unity Forums > Shrapnel Community > Space Empires: IV & V > SEIV > SEIV Scenarios and Mods

Reply
 
Thread Tools Display Modes
  #1  
Old April 5th, 2006, 12:19 AM
Wenin's Avatar

Wenin Wenin is offline
Corporal
 
Join Date: Feb 2006
Posts: 176
Thanks: 0
Thanked 0 Times in 0 Posts
Wenin is on a distinguished road
Default Data Checker v 1.10

I've created a Data Checker tool that will examine the Components.txt and TechArea.txt files. It currently ensures the following.


- No Tabs being used (causes problems with Component Editor .90)
- Data for fields requiring Integers
- Proper order of Fields
- Proper spelling of field names
- Proper sequencing of Tech Req and Abilities



Gives warnings for the following:

- Tech Requirements for a Component or Tech Area are higher than what is attainable
- Ability assigned to a Component isn't valid (spell checked)

The Tool doesn't correct the data.


I don't have many Mods downloaded, so give it a test run on the Mods you have and report any problems. Try to even fool it, or break it.

PS: Place the EXE in the Data folder of the Mod.




v 1.0

- Original Release


v 1.05

- Enabled basic format checking of TechArea.txt
- Added data checking for Integer only fields

v 1.1

- Added compensation for Optional Weapon List fields
- No longer gives false errors when encountering extra spaces before or after a Tech name
- Added line count display
- Added data checking on True/False, Vehicle Type and Custom Vehicle Type data
Attached Files
File Type: zip 416333-SE4DataChk.zip (18.2 KB, 685 views)
Reply With Quote
  #2  
Old April 5th, 2006, 12:27 AM
Wenin's Avatar

Wenin Wenin is offline
Corporal
 
Join Date: Feb 2006
Posts: 176
Thanks: 0
Thanked 0 Times in 0 Posts
Wenin is on a distinguished road
Default Re: Data Checker v 1.0

One thing I found was that in the original Components folder it lists the optional fields as:

Quote:

Vechicle List Type Override:
If this field is present, it overrides the value in ....

Note the misspelling.

I didn't know if SEIV cares about this misspelling, but that is how I'm checking the spelling for that field name.

Anyone know the truth behind that field?
Reply With Quote
  #3  
Old April 5th, 2006, 12:31 AM
Captain Kwok's Avatar

Captain Kwok Captain Kwok is offline
National Security Advisor
 
Join Date: Oct 2001
Location: Toronto, Canada
Posts: 5,623
Thanks: 1
Thanked 14 Times in 12 Posts
Captain Kwok is on a distinguished road
Default Re: Data Checker v 1.0

The incorrect spelling is unfortunately necessary for the field to work.
__________________
Space Empires Depot | SE:V Balance Mod
Reply With Quote
  #4  
Old April 5th, 2006, 12:38 AM
Captain Kwok's Avatar

Captain Kwok Captain Kwok is offline
National Security Advisor
 
Join Date: Oct 2001
Location: Toronto, Canada
Posts: 5,623
Thanks: 1
Thanked 14 Times in 12 Posts
Captain Kwok is on a distinguished road
Default Re: Data Checker v 1.0

A couple of problems:

The line numbers don't seem to match up where a potential problem is. For example, it told me I had a problem on line 1127, but it wasn't there...

I'm also encountering a run-time error '5' invalid procedure call or argument.
__________________
Space Empires Depot | SE:V Balance Mod
Reply With Quote
  #5  
Old April 5th, 2006, 12:44 AM
Wenin's Avatar

Wenin Wenin is offline
Corporal
 
Join Date: Feb 2006
Posts: 176
Thanks: 0
Thanked 0 Times in 0 Posts
Wenin is on a distinguished road
Default Re: Data Checker v 1.0

Could you give the full error message? It should have told you what it was expecting. Given that information, it may have been caused by a component or Tech Area stating there was 3 Requirements, when there actually were 4 listed.


When do you get the Run-time Error?

What OS do you have?
Reply With Quote
  #6  
Old April 5th, 2006, 12:59 AM
Wenin's Avatar

Wenin Wenin is offline
Corporal
 
Join Date: Feb 2006
Posts: 176
Thanks: 0
Thanked 0 Times in 0 Posts
Wenin is on a distinguished road
Default Re: Data Checker v 1.0

v 1.1 will be checking the data for fields with limited valid values.

Example:
Vehicle Type in the Components.txt file

It will also give the option to create an output file listing all of your components in order by Family, though the SE Modder utility does this graphically which is far better.
Reply With Quote
  #7  
Old April 5th, 2006, 01:04 AM
Captain Kwok's Avatar

Captain Kwok Captain Kwok is offline
National Security Advisor
 
Join Date: Oct 2001
Location: Toronto, Canada
Posts: 5,623
Thanks: 1
Thanked 14 Times in 12 Posts
Captain Kwok is on a distinguished road
Default Re: Data Checker v 1.0

The run-time error is on startup of the program (that's the full text of the error in my post below). It didn't happen until after I made a fix to one of the entries. It sounds like an internal program error from the description. Anyway I'm using XP Pro sp2.
__________________
Space Empires Depot | SE:V Balance Mod
Reply With Quote
  #8  
Old April 14th, 2006, 06:26 PM
Wenin's Avatar

Wenin Wenin is offline
Corporal
 
Join Date: Feb 2006
Posts: 176
Thanks: 0
Thanked 0 Times in 0 Posts
Wenin is on a distinguished road
Default Re: Data Checker v 1.0

Thanks for your testing Kwok. =)

I think I'll be expanding the data checker to Vehicles. Then I'll move over to the AI files. =)
Reply With Quote
  #9  
Old April 14th, 2006, 07:45 PM
Captain Kwok's Avatar

Captain Kwok Captain Kwok is offline
National Security Advisor
 
Join Date: Oct 2001
Location: Toronto, Canada
Posts: 5,623
Thanks: 1
Thanked 14 Times in 12 Posts
Captain Kwok is on a distinguished road
Default Re: Data Checker v 1.0

There is an error with the new algorithm to read for valid vehicle types, likely with the overrides.

i.e.

Vechicle List Type Override := Ships, Drones
Vehicle List Type Description := Ship\Drone

Also, why not make the program allow the user to choose the path for the data folder to check rather than have it be placed in the data folder itself?
__________________
Space Empires Depot | SE:V Balance Mod
Reply With Quote
  #10  
Old April 15th, 2006, 01:13 AM
Wenin's Avatar

Wenin Wenin is offline
Corporal
 
Join Date: Feb 2006
Posts: 176
Thanks: 0
Thanked 0 Times in 0 Posts
Wenin is on a distinguished road
Default Re: Data Checker v 1.0

I haven't learned how to do the Browse/Open File feature for Visual Basic yet. =)

I can make it so you can type in the Path.

I'll have to check the Vehicle stuff, cause I actually think I forgot to add that.
Reply With Quote
Reply

Bookmarks


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 On

Forum Jump


All times are GMT -4. The time now is 03:35 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©1999 - 2024, Shrapnel Games, Inc. - All Rights Reserved.