Ok it was my fault. Very stupid fault I have made, sry. I calculated sizeof(MDDF)*numberof(filenames). But actually there can be more than one MDDF Block for one Filename.
With this fixed, I can use my tool. But when I try to change an existing WMO, this happens ingame:
The filepath is not wrong, I have checked it with a Hexeditor. Is there something like a boundingbox that I need to change? Maybe the MCNK-Chunk in the obj0-Files, even now I don't know exactly what they do, only that if there is no entry no Model gets spawned.
Maybe someone had the same error or has seen it somewhere