UnderminersTeam / UndertaleModTool

The most complete tool for modding, decompiling and unpacking Undertale (and other GameMaker games!)
GNU General Public License v3.0
1.14k stars 217 forks source link

An error occured while trying to load: Root Chunk is nsta not FORM #1678

Closed UnknownSandwich closed 4 months ago

UnknownSandwich commented 7 months ago

Describe the bug

My data.win file got deleted because my father uninstalled a game, and that data.win file was inside the game's folder. Then i used recuva to restore it but when i tried to open, i got this error "An error occured while trying to load: Root Chunk is nsta not FORM"

Reproducing steps

Bulbfish i got a screenshot of the error.

Setup Details

Im using UndertaleModTool latest version.

Jacky720 commented 7 months ago

Sounds like the restoration failed. How big is the restored file? If you have a hex editor, what does it look like with that?

UnknownSandwich commented 7 months ago

Sounds like the restoration failed. How big is the restored file? If you have a hex editor, what does it look like with that?

its 53.418KB

Jacky720 commented 7 months ago

Okay, but what do the actual contents look like in the hex editor?

UnknownSandwich commented 7 months ago

Okay, but what do the actual contents look like in the hex editor?

image this you mean?

Jacky720 commented 7 months ago

Hmm, that doesn't look like a normal data.win file... But I don't see the root chunk "nsta" (root chunk is the first four bytes in a data file) either, which is weird. You'll probably have to reinstall the game and redo your changes.

UnknownSandwich commented 7 months ago

thats unfortunate.

Miepee commented 4 months ago

If the file gets deleted and you're trying to recover it with external tools, theres no guarantee that the file will be exactly as before closing as UTMT is not the issue here.