Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error on Undertale new update #4

Open
rma1994 opened this issue Jan 20, 2016 · 9 comments
Open

Error on Undertale new update #4

rma1994 opened this issue Jan 20, 2016 · 9 comments

Comments

@rma1994
Copy link

rma1994 commented Jan 20, 2016

Hello Mika Attila!
I'm from Brazil and I'm using GMKTool to translate Undertale to Brazilian Portuguese, via TranslaTale.
So, today (01/20/2015) Tobby Fox launched an update for the game. On this one, GMKtool stop working.
When I try to unpack the strings it throws the following error:
"Failed to load game data for "F:\Program Files\Steam\steamapps\common\Undertale\data.win": Unexpected chunk type: ,♫ ([44, 14, 0, 0])"

Thank you for this great tool, it really help a tone! :D

@PoroCYon
Copy link

Can confirm, this happens because there is a new bytecode version (0xF), see this on /r/Underminers. My decompiler can already read the ReferenceDefs, but not the bytecode itself the new bytecode format.

@crumblingstatue
Copy link
Owner

I'll investigate this as soon as I can, I don't have the updated Undertale yet.

@rma1994
Copy link
Author

rma1994 commented Jan 21, 2016

If needed I can provide you the game data :)

@crumblingstatue
Copy link
Owner

Looks like this error is caused by the OPTN chunk having a different (smaller) size than the previous version. My current implementation assumes it always has the same size.

I'm not sure how to solve this, as I haven't analyzed the OPTN chunk thoroughly. I might take a look at how @PoroCYon's implementation handles it.

@crumblingstatue
Copy link
Owner

Well... I took a closer look, and it seems that my library doesn't even expose a public interface to manipulate the contents of the OPTN chunk, so I think I'll treat it as a black box for now. Hopefully that will solve this issue.

@crumblingstatue
Copy link
Owner

Actually, the OPTN chunk contains pointers into other chunks that need to be updated, so treating it as a black box is not an option.

@crumblingstatue
Copy link
Owner

It seems that the new Undertale version is compiled with a different (seemingly older) version of Game Maker, which does various things differently.

It seems that I will have to analyze this different format, and add support for it, while maintaining support for the other format, so gmktool can work with both versions of Undertale.

This sounds like a lot of work, so it might take a while to implement.

Help would be appreciated, although I guess not many people are familiar with game maker data files or Rust.

@rma1994
Copy link
Author

rma1994 commented Jan 23, 2016

I wish I could help, but I don't know nothing about Rust or game maker data files. :/
Maybe @PoroCYon could help you.
PoroCYon also made a topic on reddit, where he posted the following (it could be useful, idk):
https://gist.github.com/PoroCYon/45f947d576f715de3a4d

@Radu13
Copy link

Radu13 commented Feb 1, 2017

crumblingstatue, i have the same error using it for data.win file of AM2R
You can check it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants