Marlamin / WoWFormatTest

Several applications that I use to interact with various file formats WoW uses
https://wow.tools
MIT License
70 stars 19 forks source link

[Question] about 0 MmidIndex for Doodad Definition #90

Closed Rokeo closed 5 years ago

Rokeo commented 5 years ago

Not really an issue for project, but question. Do you know why Doodad Definition can have 0 value for MmidIndex? I encountered this few times for Zandalar map. Those ones have however UniqueID, position and rotation. image

So, i wonder, if there something need to be considered, i.e. how to add such to map if we do not know MmidIndex, i.e. do not know which model file is it.

Marlamin commented 5 years ago

I'll have to check when I'm home, but I think that these are only referenced by FileDataIDs, not filenames.

Rokeo commented 5 years ago

You mean, that such do not used in maps and we can pretty much ignore those?

Marlamin commented 5 years ago

Stuff is referenced to via filedataids from MODF/MDDF these days, no filename anymore. But looking closer at what you sent you seem to be reading one of those chunks.

Which file is this/which patch?

Marlamin commented 5 years ago

Got it, zandalar_24_16. Checking what's up now.

Marlamin commented 5 years ago

Right, this is a file still in the old layout. You need to parse the MMDX chunk and look at what filename is at index 0.

image

See MMDX at offset 0 inside it