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

GameObjectCopy.csx corrupts data.win. #1248

Closed
Romualdo666 opened this issue Mar 28, 2023 · 2 comments · Fixed by #1282
Closed

GameObjectCopy.csx corrupts data.win. #1248

Romualdo666 opened this issue Mar 28, 2023 · 2 comments · Fixed by #1282
Labels
bug Something isn't working

Comments

@Romualdo666
Copy link
Contributor

Describe the bug

Basically, using GameObjectCopy.csx on the newest umt bleeding edge build, corrupts your data.win file. Not even an error message is shown, and the script works correctly, but a lot of gml instances get corrupted and the decompiler can't load them.
I've just done this with Deltarune though. importing undertale objects into deltarune basically. But it used to work before, so I am pretty sure is something that came along with the functions thing and stuff.

Reproducing steps

  1. Execute GameObjectCopy.csx
  2. Import any object.
  3. Many instances of code get corrupted.

Setup Details

  1. Latest undertale mod tool bleeding edge.
  2. Deltarune
  3. Windows 11
@Romualdo666 Romualdo666 added the bug Something isn't working label Mar 28, 2023
@VladiStep
Copy link
Member

I found the cause of it - the errors started to appear after this PR - Clean up version flags.
The decompiler thinks that the code of Undertale is GMS 2.3.

@VladiStep
Copy link
Member

VladiStep commented Apr 7, 2023

Actually, not exactly like that - after the decompilation of Undertale code, GMS2_3 decompiler variable becomes false, so when you return to Deltarune, it treats the code as it's GMS 1.

VladiStep added a commit to VladiStep/UndertaleModTool that referenced this issue Apr 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants