turtle-insect / DQB1

Switch Dragon Quest Builders 1 SaveDate Editor
GNU General Public License v3.0
1 stars 0 forks source link

Help with WDAT0000.bin #1

Open Sapphire645 opened 5 days ago

Sapphire645 commented 5 days ago

I am trying to edit the WDAT0000.bin file. However, trying to change blocks will make the save file not load. Is there some sort of checksum in PRMDAT.bin that could cause this?

Decompressing and compressing without changes will load. Changes make it not load.

Like in DQB2, DQB1 stores the chunks in layers of size 0x400. The size of blocks is of 1 byte instead of the 2 from DQB2. The Chunk Grid is stored at the very beggining. (0x0 to 0x1200). Chunk data starts at about 0x121C. Chunk count is 0x1204-0x1205.

Items are block ID 0xFF. Bedrock is 0x01, Earth is 0x02...

Sapphire645 commented 4 days ago

https://github.com/Sapphire645/DQB2ChunkEditorPlus/blob/DQB1ChunkEditor/src/ChunkEditor.cs code

turtle-insect commented 4 days ago

There is a checksum.

PRMDAT.BIN -> 0x08 - 0x0B

Sapphire645 commented 4 days ago

Chunk data starts at 0x120C*

Sapphire645 commented 4 days ago

I can't seem to figure out what the checksum is of...

turtle-insect commented 3 days ago

I'll take a look.

turtle-insect commented 3 days ago

probably could have done it

https://gist.github.com/turtle-insect/097a5dd34eab4fec87a2ea9133bb5e34#file-dqb1-wdat0000-bin-checksum-cs

Sapphire645 commented 16 hours ago

Thanks! I'll try it once I get time.