Thanks!
Thanks!
If you don't mind could I get the code for reading from the pak files. That would be really important to a couple of RTW tool projects I'm working on, when RL lets me.
Under the patronage of Roman_Man#3, Patron of Ishan
Click for my tools and tutorials
"Two things are infinite: the universe and human stupidity; and I'm not sure about the universe." -----Albert Einstein
You're also using C#, right? I tried to comment it enough to make it understandable. Have fun with the code.
Spoiler Alert, click show to read:
Last edited by RedFox; September 10, 2009 at 06:23 AM.
"If you want epic, try using logic with your girlfriend."
#Complete Guide to BPI - Model INFO# #3dsMax CAS IE ALX Patched#
#Zeus Tool - EDB/DMB/DS Validator# #New Medium Wooden Walls#
Sweet, I'd figured out how to read the idx files from vercintigorix's code for it (translating from c++ to c# was a pain though), but the pak files, I hadn't looked at.
Under the patronage of Roman_Man#3, Patron of Ishan
Click for my tools and tutorials
"Two things are infinite: the universe and human stupidity; and I'm not sure about the universe." -----Albert Einstein
Well, the idx an dat files are a completely different deal, though the format used in the pak files is quite common. You can find some code snippets for unpacking pak's in C# with some hassle. I never needed to unpack them though, as that would be unpractical.
"If you want epic, try using logic with your girlfriend."
#Complete Guide to BPI - Model INFO# #3dsMax CAS IE ALX Patched#
#Zeus Tool - EDB/DMB/DS Validator# #New Medium Wooden Walls#
Thank you a lot for this tool.
It detected some missing textures/sprites in the DMB, and 3 important unit ownership bugs in the EDB.
Keep the good work!
Any feedback or ideas on new error checking modules? I can happily create something really really complex, so don't be shy on ideas. I'll ignore requests regarding the Traits though, because squid's Ancillary/Trait Validator already does that very well.
"If you want epic, try using logic with your girlfriend."
#Complete Guide to BPI - Model INFO# #3dsMax CAS IE ALX Patched#
#Zeus Tool - EDB/DMB/DS Validator# #New Medium Wooden Walls#
>>Perhaps it could count DMB and EDU entry numbers.
It already does that:
As for EDB tree numbers; Since I'm just starting to work on the building card checker, I figure that will come along the way too.Code:Starting export_descr_buildings... Unit Table consists of 301 unique Types... (this is the # of EDU entries) ... Starting descr_model_battle... Model Table consists of 226 unique Types... (this is the # of DMB entries)
"If you want epic, try using logic with your girlfriend."
#Complete Guide to BPI - Model INFO# #3dsMax CAS IE ALX Patched#
#Zeus Tool - EDB/DMB/DS Validator# #New Medium Wooden Walls#
Seems to be a bad link to download the program.
Under the Patronage of Lord Condormanius
A HDD on the hosting server failed. Unfortunately my files were on that HDD, so that's that.
For now you can get the file from: http://www.filefront.com/14521309/Zeus_Tool_v0.8.exe
Adding Building Card checking was a real to be honest. Managing a 5-dimensional table that also has a 3-dimensional list AND forcing all of them through For-loops was epic to say the least. I probably got my first grey hair. For now it's about 2000 lines of code.
Changelog:
To do: ???
v0.8 Beta
- Added Building card checking (really complex stuff here)
Oh, and incase you're wondering wtf I'm talking about, here it is:
Spoiler Alert, click show to read:
Last edited by RedFox; September 12, 2009 at 08:09 PM.
"If you want epic, try using logic with your girlfriend."
#Complete Guide to BPI - Model INFO# #3dsMax CAS IE ALX Patched#
#Zeus Tool - EDB/DMB/DS Validator# #New Medium Wooden Walls#
CV: It does, otherwise you would get an error for half the cards from RTW. That's the point where the 3d table became 5d and where my frustration began.
Last edited by RedFox; September 13, 2009 at 01:19 PM.
"If you want epic, try using logic with your girlfriend."
#Complete Guide to BPI - Model INFO# #3dsMax CAS IE ALX Patched#
#Zeus Tool - EDB/DMB/DS Validator# #New Medium Wooden Walls#
Great tool Red Fox!
One question though. It simply lists all the Units/Buildings and their cards in one long string. I take it this means that everything is fine. It would give an error if something were amiss, correct?
Under the Patronage of Lord Condormanius
If it writes "No errors found" in the end, then you're clean!
"If you want epic, try using logic with your girlfriend."
#Complete Guide to BPI - Model INFO# #3dsMax CAS IE ALX Patched#
#Zeus Tool - EDB/DMB/DS Validator# #New Medium Wooden Walls#
OK, great. Actually, great and not so great. I have no errors but still get a CTD around turn 8 of my mod. But, now i know where the error is not!
Under the Patronage of Lord Condormanius
Are you using BI or ALX? I know BI has several plain 'weird' errors. For example DiadochiTW is rock-solid on ALX, but crashes quite often on BI.
A lot of these invisible errors are caused by Traits. I don't think I should write trait validation for Zeus, because squid already has a tool for that, but it can always be considered.
Another thing that can cause crashes is a corrupt descr_names.txt (don't know why it happens, maybe a hard-coded limit); If your mods' campaign always crashes after you hit end-turn, but no end-turn crash if you disable auto-saves, then your descr_names.txt is corrupt. Took me ages to hunt down that bug.
EDIT: There is a bug in building card checker. If you don't do the building card checking as the very first thing, it will display a bunch of errors for some reason. Going to update it asap.
Last edited by RedFox; September 13, 2009 at 05:05 PM.
"If you want epic, try using logic with your girlfriend."
#Complete Guide to BPI - Model INFO# #3dsMax CAS IE ALX Patched#
#Zeus Tool - EDB/DMB/DS Validator# #New Medium Wooden Walls#
Here's a small fix: Zeus v0.81
Changelog:
To do: ???
v0.81 Beta
- Fixed a logic error in Building card checker
- Fixed a rare start-up fail (cross-thread call before object created)
"If you want epic, try using logic with your girlfriend."
#Complete Guide to BPI - Model INFO# #3dsMax CAS IE ALX Patched#
#Zeus Tool - EDB/DMB/DS Validator# #New Medium Wooden Walls#
Under the patronage of Roman_Man#3, Patron of Ishan
Click for my tools and tutorials
"Two things are infinite: the universe and human stupidity; and I'm not sure about the universe." -----Albert Einstein