HQM icon indicating copy to clipboard operation
HQM copied to clipboard

About the file formats of this mod

Open mainrs opened this issue 1 year ago • 4 comments

Hello!

I am trying to figure out the file format of the quests.hqm and player.dat files. The former seems to be a custom binary format. I specifically want to parse the files created by the mod version compatible with 1.6.4. It seems that the source code is not available though.

Is the binary format of some newer version the same as the one used in 1.6.4? That way, I could use the source code to try to implement a parser myself.

Besides that, the player.dat file doesn't seem to be valid NBT either. Is it a custom file format, too?

Later releases seem to have switched to JSON for both files. From which version forward did this happen?

Thanks for taking your time and answering my questions!

mainrs avatar Aug 23 '24 10:08 mainrs

As far as I can see, 1.7.10 already uses a different format, therefore there is no open source code of the old format. The only way I can imagine is for you to decompile a 1.6.4 file and analyze the save/load code there.

canitzp avatar Aug 23 '24 14:08 canitzp

As far as I can see, 1.7.10 already uses a different format, therefore there is no open source code of the old format. The only way I can imagine is for you to decompile a 1.6.4 file and analyze the save/load code there.

Ahhh, thanks for letting me know! And the JSON file is yet another format, right? 1.7.10 still seems to rely on some binary format as far as I can tell.

mainrs avatar Aug 23 '24 14:08 mainrs

Without knowing anything about that specific version of HQM, the most common format for minecraft save file binary files is NBT. If either file is in that format, you should be able to open that file in NBTExplorer. Because of the file ending, I'm gonna guess that at least your player.dat file is NBT.

kirderf1 avatar Aug 25 '24 12:08 kirderf1

Without knowing anything about that specific version of HQM, the most common format for minecraft save file binary files is NBT. If either file is in that format, you should be able to open that file in NBTExplorer. Because of the file ending, I'm gonna guess that at least your player.dat file is NBT.

I thought so, too. But opening it using NBTExplorer failed because it didn't recognize the file. I'll have to do some investigation. I'll make sure to report back once I know more.

mainrs avatar Aug 25 '24 12:08 mainrs