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

This Month's Specials

The Star & the Crescent- Save $9.00
winSPWW2- Save $6.00

   







Go Back   .com.unity Forums > Shrapnel Community > Space Empires: IV & V

Reply
 
Thread Tools Display Modes
  #1  
Old March 25th, 2006, 02:29 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 Modders - Need a Data Format Checker?

JonMacLeod, I noticed that you have over 41,000 lines of data in your components file for your Imperium Verus Mod (Great Mod BTW). How did you make sure that all that data was in the proper format, that everything was properly referenced? I've found that the Component Editor .90 chokes on a Components file that is misformatted.

To all Modders

Do you find your data to be improperly formatted at times?

Do you find that you've said that a component has 3 Tech Reqs, but in fact it has 2 or 4?

Have you found that you set a Tech Level Req higher what is possible?


I've only began getting into the modding of SEIV and was wondering if this is common place in the community. I'm building a Data Integrity checker that will analyze the Components, Abilities, and TechArea file.


Does the Abilities.txt file actually change? I guess abilities can be removed from the list, but certainly nothing can be added. Right?

Thanks
Reply With Quote
  #2  
Old March 25th, 2006, 02:56 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: Modders - Need a Data Format Checker?

The abilities.txt file is just a listing of the available abilities in the game (although not all of them work).

Fyron's modding tutorial has a list of all of the abilties and which files they work in:
http://se4modding.spaceempires.net/ModdingTutorial.html

The formatting itself is not really a problem (because it's copy/paste or automated) and the error reporting by SE:IV when loading a mod catches missing ability fields, but not extra ones. It also does not pick up on unused levels etc. - although you can usually find these by using the internal tech tree report. But a data file check would be cool.

DavidG made a data file editor for SE:IV that works fairly well with most of the files:
http://www.captainkwok.net/files/se4modder.zip
__________________
Space Empires Depot | SE:V Balance Mod
Reply With Quote
  #3  
Old March 25th, 2006, 02:57 PM
Fyron's Avatar

Fyron Fyron is offline
Shrapnel Fanatic
 
Join Date: Jul 2001
Location: Southern CA, USA
Posts: 18,394
Thanks: 0
Thanked 12 Times in 10 Posts
Fyron is an unknown quantity at this point
Default Re: Modders - Need a Data Format Checker?

Abilities.txt is just a reference file.

How are you writing your program? I've got a program written in C++ that is designed to create various forms of display files based on a mod's data, such as html files, CSV files, and MySQL database schema files. Perhaps we could combine our work? I've been meaning to rewrite the file classes to use a more intelligent inheritance model. Perhaps I should get on that!

Edit:
That modder by DavidG isn't necessarily what Wenin was thinking of, though. It doesn't necessarily act as a constraints checker of a manually edited file. Does it properly handle malformated files?
__________________
It's not whether you win or lose that counts: it's how much pain you inflict along the way.
--- SpaceEmpires.net --- RSS --- SEnet ModWorks --- SEIV Modding 101 Tutorial
--- Join us in the #SpaceEmpires IRC channel on the Freenode IRC network.
--- Due to restrictively low sig limits, you must visit this link to view the rest of my signature.
Reply With Quote
  #4  
Old March 25th, 2006, 02:58 PM
Suicide Junkie's Avatar
Suicide Junkie Suicide Junkie is offline
Shrapnel Fanatic
 
Join Date: Feb 2001
Location: Waterloo, Ontario, Canada
Posts: 11,451
Thanks: 1
Thanked 4 Times in 4 Posts
Suicide Junkie is on a distinguished road
Default Re: Modders - Need a Data Format Checker?

Abilities.txt is merely informational, like the readme.txt

The most common error in datafiles is the double blank-line effect, which acts much like an end-of-file. Useful when testing, though.

I wrote a quick little Components repair tool which helps to fix erroneous newlines, particularily in multi-megabyte tech gridded mods.

SE4 will tell you if you have not enough tech or ability entries to match the number you gave. Having too many means the last ones will be ignored.
Typically quite rare, from what I've seen. Only a couple of times during a mod's development.
Reply With Quote
  #5  
Old March 25th, 2006, 04:00 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: Modders - Need a Data Format Checker?

Thanks for the info on the Abilities.txt file. I won't be checking that file then.

Fyron, I found that the Launch Drone ability isn't listed at http://se4modding.spaceempires.net/M...Tutorial.html. Nor is it in the Abilities.txt file.

I'm writing it in Visual Basic 6 (Yeah out of date, but I don't do this for a living so I can't afford .NET) =) I'd be open to sharing what I'm working on with you Fyron.

Quote:

SE4 will tell you if you have not enough tech or ability entries to match the number you gave. Having too many means the last ones will be ignored.

Are you sure? I was playing a mod that had tech Req that couldn't be met, and I got no error messages on that. I ran across the Components when I was making modifications to have it more suit my desired play.

It also loaded a components file where X number of Techs were required, but X+1 were listed. SE4 gave no errors.

It was when I started using the Component Editor .90 that I started finding the issues. Component Editor has no data integrity check. When it would rewrite the Components.txt file it would destroy data caused by malformed data.


What I'm planning is for it to go a few steps further than your Component Repair Tool.

It will check all the following
- Proper format of the field names. Example: Name - Correct, name - Incorrect (I don't know if this is a problem in the components file, but I've found capitalization is important in the AI files.)

- Techs you indicate are listed in the TechArea.txt
- Tech Level Req can be achieved
- # of indicated Tech Req and Abilities is listed
- Abilities listed exist and are spelled properly.
- Fields that have specific input requirements

For any error that is encountered it will give the Line the error exists upon and what the program was expecting. Then the program ends, so that you can fix the error and rerun the application.

I wasn't thinking of having it check if a Tech Level goes unused. Would this be helpful? If so, should it just check if the highest value Tech is used, or if each Tech Level is used? Again I've only played two mods now so I don't know what's all out there.
Reply With Quote
  #6  
Old March 25th, 2006, 04:10 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: Modders - Need a Data Format Checker?

Got a question about the general rules of formatting.

Are Tabs within the Components.txt file a problem. SE4 doesn't give any errors, but the Component Editor .90 eats them for breakfast.

What got me going on this was my experience with the Component Editor, and how it reacted to malformed data. So not only am I looking to make the files SE4 friendly, but also Component Editor .90 friendly. This will result in a more cleanly data files.
Reply With Quote
  #7  
Old March 25th, 2006, 04:14 PM
Fyron's Avatar

Fyron Fyron is offline
Shrapnel Fanatic
 
Join Date: Jul 2001
Location: Southern CA, USA
Posts: 18,394
Thanks: 0
Thanked 12 Times in 10 Posts
Fyron is an unknown quantity at this point
Default Re: Modders - Need a Data Format Checker?

Nobody needs .NET anyways. It makes for huge, bloated programs! And besides, there are plenty of free IDEs out there. Eclipse + CDT plugin using the GCC compiler via cygwin, while sounding complicated to set up, works rather well. I only use MS VS 2003 cause I got it free from school.

Do you know much C++? VB and C++ can't really be integrated very well.

Also, note that my program has no GUI, since there isn't necessarily a need for one when there is no run-time interactivity.

Currently writing up generic classes so adding all the files can be done much more easily. Hopefully I can remember this stuff!

=0=

RE: Tech Reqs

He was refering to entries in the data file, not necessarily levels of those reqs.

"It also loaded a components file where X number of Techs were required, but X+1 were listed. SE4 gave no errors."

That's exactly what he said would happen. The X+1 Tech Req is ignored.

Also, note that modders frequently put high level tech reqs to temporarily remove items, so such issues should be handled as warnings, rather than errors.
__________________
It's not whether you win or lose that counts: it's how much pain you inflict along the way.
--- SpaceEmpires.net --- RSS --- SEnet ModWorks --- SEIV Modding 101 Tutorial
--- Join us in the #SpaceEmpires IRC channel on the Freenode IRC network.
--- Due to restrictively low sig limits, you must visit this link to view the rest of my signature.
Reply With Quote
  #8  
Old March 25th, 2006, 04:15 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: Modders - Need a Data Format Checker?

Looking at the Abilities section of http://se4modding.spaceempires.net/ModdingTutorial.html it will take to long to check so I'll just ask.

With the "Launch Drone" ability not being listed in the Abilities.txt file, are there any other such undocumented abilities?

Thanks
Reply With Quote
  #9  
Old March 25th, 2006, 04:16 PM
Fyron's Avatar

Fyron Fyron is offline
Shrapnel Fanatic
 
Join Date: Jul 2001
Location: Southern CA, USA
Posts: 18,394
Thanks: 0
Thanked 12 Times in 10 Posts
Fyron is an unknown quantity at this point
Default Re: Modders - Need a Data Format Checker?

Tabs are nasty creatures and should be replaced with spaces in any repair tool. SE4 can handle them well, since they are just white space. They make for really ugly text files, however, since text editors rarely agree on how to display them.

Also, it might be good to standardize column spacing automatically when the tool is run (or have an option for it).
__________________
It's not whether you win or lose that counts: it's how much pain you inflict along the way.
--- SpaceEmpires.net --- RSS --- SEnet ModWorks --- SEIV Modding 101 Tutorial
--- Join us in the #SpaceEmpires IRC channel on the Freenode IRC network.
--- Due to restrictively low sig limits, you must visit this link to view the rest of my signature.
Reply With Quote
  #10  
Old March 25th, 2006, 04:23 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: Modders - Need a Data Format Checker?

I don't know any C++.

My App will have a simple GUI to allow people to create a Family output file which will list all of the components by family so that modders can manually confirm that data.

It may have a few other similiar options.

Thanks for the pointers on why unatainable Components would be made.

Apologies on my poor reading comprehension, Suicide Junkie.
Reply With Quote
Reply

Bookmarks

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 On

Forum Jump


All times are GMT -4. The time now is 04:49 AM.


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