This is a read only copy without any forum functionality of the old Modcraft forum.
If there is anything that you would like to have removed, message me on Discord via Kaev#5208.
Big thanks to Alastor for making this copy!

Menu

Author Topic: [SOLVED] Duplicating Existing ADTs?  (Read 1422 times)

Laduguer

  • Registred Member
  • Wiki Incarnate
  • *****
  • Posts: 144
    • View Profile
[SOLVED] Duplicating Existing ADTs?
« 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?
« Last Edit: August 12, 2014, 06:24:11 pm by Admin »

schlumpf

  • Administrator
  • Creator of Worlds
  • *****
  • Posts: 2967
    • View Profile
Re: [QUESTION] Duplicating Existing ADTs?
« Reply #1 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?
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Laduguer

  • Registred Member
  • Wiki Incarnate
  • *****
  • Posts: 144
    • View Profile
Re: [QUESTION] Duplicating Existing ADTs?
« Reply #2 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.
« Last Edit: August 12, 2014, 06:10:07 pm by Admin »

schlumpf

  • Administrator
  • Creator of Worlds
  • *****
  • Posts: 2967
    • View Profile
Re: [QUESTION] Duplicating Existing ADTs?
« Reply #3 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.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Laduguer

  • Registred Member
  • Wiki Incarnate
  • *****
  • Posts: 144
    • View Profile
Re: [QUESTION] Duplicating Existing ADTs?
« Reply #4 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).
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Laduguer

  • Registred Member
  • Wiki Incarnate
  • *****
  • Posts: 144
    • View Profile
Re: [QUESTION] Duplicating Existing ADTs?
« Reply #5 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.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Steff

  • Administrator
  • Creator of Worlds
  • *****
  • Posts: 4551
    • View Profile
Re: [SOLVED] Duplicating Existing ADTs?
« Reply #6 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.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »
Please mark as solved if solved.
Don't ask if you could ask a question... JUST ask the Question.
You can send me also offline messages. I will answer if I get online.
Skype: project.modcraft
Discord: steff#6954