Modcraft - The community dedicated to quality WoW modding!

Wrath of the Lich King Modding => Miscellaneous => Topic started by: Keta on December 09, 2011, 07:50:36 pm

Title: [QUESTION] A "FixIt" program
Post by: Keta on December 09, 2011, 07:50:36 pm
Hey Modcraft

I was hoping to see if one/some of you epic C++/C#/Java/Python/whatever, could make a program that would scan through an entire ADT and tell the user what is wrong with the ADT? Cause currently I have one/some ADT's that I can't figure out the error about...

So I can't really seem to figure out the problem, however I really don't feel like making it all over again >.<

Thanks
Keta
Title: Re: [QUESTION] A "FixIt" program
Post by: Steff on December 10, 2011, 12:37:53 am
Most time that are bad model paths or spawns.

Just use loadinfo and fileinfo and delete all  models from the adt and test it again. If tis work add again step by step you model patches and spawms.

This way i fixed a lot of adts.
Title: Re: [QUESTION] A "FixIt" program
Post by: schlumpf on December 10, 2011, 09:43:09 am
The reason such applications do not exist are the same as why there are errors:

The file format is still not completely known.
Users can make errors a lot more often than the applications and applications can't do anything against it.

While actually, the first reason is the ultimate reason anyway. You just can't write an application to fix stuff, when you don't know what is wrong with it, since you don't know how it should be.

How would you fix that?

Noggit tries writing files as "good" as possible. It does not even modify any file but completely rewrites the file upon saving.

Still, if this rewritten file is "bad", there is nothing I can do about it, as as far as I know the files produced are "perfect".

This is an endless circle. You can't fix stuff, if you know nothing more than you do and think you're doing it right. What should be wrong then?
Title: Re: [QUESTION] A "FixIt" program
Post by: Steff on December 10, 2011, 09:48:21 am
I got many noggit adts in the last weeks and the only wrong stuff there was always wrong model pathes :)
Title: Re: [QUESTION] A "FixIt" program
Post by: Keta on December 10, 2011, 01:17:27 pm
Well then I don't really know who to blame for this problem, cause... Im using the build 3.279+, and I've only spawned models with the Assist -> Import WMO/M2, and that worked fine every time... :s

Thanks
Keta

PS. Nope, removing all objects didn't fix it. Still crashes.
Title: Re: [QUESTION] A "FixIt" program
Post by: schlumpf on December 10, 2011, 02:07:53 pm
Well, as you only provide, that it crashes, one can't really help you there.
Title: Re: [QUESTION] A "FixIt" program
Post by: Eluo on December 10, 2011, 02:50:35 pm
You could try to save the stuff from the adt via injection function.

If it works...
Title: Re: [QUESTION] A "FixIt" program
Post by: Keta on December 11, 2011, 01:44:50 pm
Quote from: "schlumpf"
Well, as you only provide, that it crashes, one can't really help you there.
What do you want me to provide? The log from Noggit? Says NOTHING of value. Neither does the Wow crash. All I can tell is when I walk there ingame, the water doesn't show before it crashes. But already tried without water. No difference.

Quote from: "Eluo"
You could try to save the stuff from the adt via injection function.

If it works...
What exactly are you talking about...? :o Please, do enlighten me xP



Thanks
Keta
Title: Re: [QUESTION] A "FixIt" program
Post by: Eluo on December 11, 2011, 02:30:08 pm
Wait your client crashes when you walk into water?.... I had that some time ago too....
Whatever. Well you could try to use taliis' injection function. Just have another adt aviable and then extract as much information as you can from the original adt.

That sometimes helps.
Title: Re: [QUESTION] A "FixIt" program
Post by: Keta on December 11, 2011, 02:44:09 pm
Nono, it doesn't crash when I walk into water. It crashes when the client tries to load the water on the custom ADTs.
And I have 2 problems.
1) Taliis wont open my ADTs
2) I've never been able to make a successful ground height export and import. Always gave me a totally fcked up ground height.

Thanks
Keta
Title: Re: [QUESTION] A "FixIt" program
Post by: Mjollna on December 11, 2011, 05:07:06 pm
There's something I don't get in your description of the problem... You say the game crashes when it loads water, and earlier you wrote -- if I understand it right -- it's also crashing when you tried without water... So how could it be water ?

For Taliis, you could try re-saving a copy of your corrupted adt with rev104 first, it may work better at least for opening it with Taliis.
Title: Re: [QUESTION] A "FixIt" program
Post by: Keta on December 11, 2011, 06:22:50 pm
Quote from: "Mjollna"
There's something I don't get in your description of the problem... You say the game crashes when it loads water, and earlier you wrote -- if I understand it right -- it's also crashing when you tried without water... So how could it be water ?

For Taliis, you could try re-saving a copy of your corrupted adt with rev104 first, it may work better at least for opening it with Taliis.
Good point with the Taliis thing.
And yea, I said it crashed. I said it crashed before it loaded water. Though I also tried without water on the ADTs. I just wanted to point out that the water isn't the problem. But if someone knows the pattern for how Wow loads objects, you might be able to determine the problem a little easier :p