Forum > "Retro-Porting"
[QUESTION][RELEASE] Interpreting Holes in MoP 5.3+ ADT Files
(1/2) > >>
PhilipTNG:
Question is does anyone know how to interpret how Holes are set up in MoP ADT's that are from 5.3.0 and up? Yes I know there is something on wowdev and ownedcore but I honestly have no idea what they are referring to.
In patch 5.2.0 and back, all the holes were set at 0x3c of the MCNK chunk of an ADT, however it seems that in 5.3.0 and up, it no longer uses this field as noted on wowdev, blizzard now uses a 64bit mask for it now. However it also says that there is a way to get the 16bit value through some conversions, and that's where I'm stuck at.
I mean naturally I can (as well as anyone) manually find which MCNK contains the hole by manually poking about and setting the 0x3c to FFFF until I poke a the correct chunk and end up having a section disappear but that's not exactly the best thing to do in real world practice when there are a few hundred holes that need to be tracked out.
I have supplied working copies of 5.4.0's Timeless Isle and Isle of Giants that you can try to make use of and see if you can somehow get them working. These are in 3.3.5a Format however from my poking about, there isn't really any real difference between 5.3.0 and 5.2.0 ADT's except for the MCNK 0x3c location being blank.
Download(125MB): http://anthonys-toolbox.org/downloads/P ... nippet.rar
~It is current using the MapID 723, folder named Stormwind, rename it to another location or a custom location if you are currently using that ID for something else, adjust the .go xyz's accordingly as well naturally.
~~This contains all the data needed for the two islands to render out completely, with textures, WMO's, and doodads. Here's a sample of me when I'm actually focused on things where normally I just push large content patches on people simply because it takes an extra 15~20 minutes to figure out exactly what is needed, the size could have been a tad bit smaller if I removed the stuff that existed in 3.3.5a, but then again this isn't a commissioned task.
TrinityCore .go xyz commands:
.go xyz 6005 1520 35 723
.go xyz -425 -5120 8 723
.go xyz -547 -5425 6 723
ADT's Used:
If you want the hole data for Isle of Giants, you can grab them off the 5.2.0 version of the ADT, I have the 5.4.0 versions for reasons so that if anyone would like to compare the data, they'd be able to see there really isn't any difference between them except a new flag and that part empty.
If anyone can figure out how the hole data is interpreted, that'd be awesome!!
Warm Regards, ~ATBox ...well I say Warm, but it's actually kinda chilly at the moment, lol.
schlumpf:
If they now use a 64bit mask and previously had a 16bit mask, then the holes are now with a detail of √64 -> 8x8 instead of √16 -> 4x4. Downsampling that mask would mean that you're taking 2x2 blocks and see if any of them are set, thus setting the respective 4x4 value:
--- Code: ---00000000 00000000 00111100 00111100 00000000 00000000 --- End code --- is equivalent to
--- Code: ---0000 0110 0110 0000 --- End code ---
You will get bad results though, as you are obviously losing information:
--- Code: ---00000000 00000100 00111100 00111100 00000000 00000000 --- End code --- has to be downsampled to
--- Code: ---0010 0110 0110 0000 --- End code --- and will thus have more hole space than in the MoP version.
Dracbane:
I have just downloaded this and tested the maps out in game. Isle of Giants works fine, but I cannot get Timeless Isle to load. Tried it a couple of different ways but have not had any luck. Going to play with the Isle of Giants cave tho and see what happens in the mean time.
sakuranobushi:
I've been trying to do something with them, but it seems it is just not possible to do it without some problems.
In the first one part of the hole is not covered by the model resulting in a partially disappearing mountain. In the second one there is just one hole the smallest as it can be made. Part of the terrain can be seen inside the cave, but if I make the hole bigger we have disappearing terrain again.
so... i guess it's impossible, but could the new holes system be implemented somehow (i assume it's by far out of my knowledge).
schlumpf:
That's not possible.
Navigation
[0] Message Index
[#] Next page
|