Modcraft - The community dedicated to quality WoW modding!

Content creation => Level Design => Topic started by: Laduguer on August 12, 2014, 05:50:28 pm

Title: [SOLVED] Duplicating Existing ADTs?
Post by: Laduguer on August 12, 2014, 05:50:28 pm
Hey guys.

Having some trouble duplicating an existing ADT. Basically I took one already containing objects, copied and pasted it, and changed it's name to replace another empty ADT.

I fixed the coordinates and even updated the .wdt file just incase.

However, when I get ingame, the only thing that has been copied is the terrain of the ADT I was trying to duplicate, and none of the models spawned in it.

I used LoadInfo to look at the duplicated ADT and all the models were in there with the correct coordinates. But no sign of them ingame or in Noggit.

Any ideas what's going wrong?
Title: Re: [QUESTION] Duplicating Existing ADTs?
Post by: schlumpf on August 12, 2014, 05:55:29 pm
model coordinates are global, not local to the art, thus loadinfo won't do what you want. how did you fix the coordinates?
Title: Re: [QUESTION] Duplicating Existing ADTs?
Post by: Laduguer on August 12, 2014, 06:05:43 pm
Quote from: "schlumpf"
model coordinates are global, not local to the art, thus loadinfo won't do what you want. how did you fix the coordinates?

Just using the fix.bat script provided with ADTAdder.

LoadInfo was just to check if fix.bat had changed the model coordinates from the initial ADT, which it had. So i'm not sure what the problem could be.
Title: Re: [QUESTION] Duplicating Existing ADTs?
Post by: schlumpf on August 12, 2014, 06:10:07 pm
What does that script do? I don't know that. If it (correctly) changes model coordinates, everything should be fine.
Title: Re: [QUESTION] Duplicating Existing ADTs?
Post by: Laduguer on August 12, 2014, 06:17:19 pm
Quote from: "schlumpf"
What does that script do? I don't know that. If it (correctly) changes model coordinates, everything should be fine.

I'm not entirely sure how it works, but what I do know is that when adding ADTs to an existing map (and presumably duplicating them also) it adjusts the coordinates to compensate for the change brought by the new ADTs.

It should also do the same for any models in that ADT, as it just changes the coordinates to put them in the right place relative to the rest of the map in the same way.

The new coordinates look sensible (as far as I can judge).
Title: Re: [QUESTION] Duplicating Existing ADTs?
Post by: Laduguer on August 12, 2014, 06:23:55 pm
Aha, fixed it. Looking in the LoadInfo output I noticed each model in the ADT has it's own ID.

fix.bat changed the coordinates but it didn't change any of the IDs. Updating these to unique values does the trick.

Thanks for your interest Schlumpf.
Title: Re: [SOLVED] Duplicating Existing ADTs?
Post by: Steff on August 13, 2014, 06:40:54 am
Fix. Bat only do a loop ober all adts in same folder and call the offsetfix. Exe for them.
And offsetfix never changen ids.  If just recalculates the cords. .  So they are messed up also in your source  adt.