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

not compiling code for deltarune #1165

Closed AkaneDev closed 1 year ago

AkaneDev commented 1 year ago

Describe the bug

When i try to compile an edit to a code it give this response on the newest build /* EXCEPTION! System.InvalidOperationException: The stack got misaligned? Error 2: Attempted to duplicate 16 bytes, only found 4 at UndertaleModLib.Decompiler.Decompiler.DecompileFromBlock(DecompileContext context, Dictionary 2 blocks, Block block, List 1 tempvars, Stack 1 workQueue) in D:\a\UndertaleModTool\UndertaleModTool\UndertaleModLib\Decompiler\Decompiler.cs:line 2052 at UndertaleModLib.Decompiler.Decompiler.DecompileFromBlock(DecompileContext context, Dictionary 2 blocks, Block block) in D:\a\UndertaleModTool\UndertaleModTool\UndertaleModLib\Decompiler\Decompiler.cs:line 2613 at UndertaleModLib.Decompiler.Decompiler.Decompile(UndertaleCode code, GlobalDecompileContext globalContext) in D:\a\UndertaleModTool\UndertaleModTool\UndertaleModLib\Decompiler\Decompiler.cs:line 3769 at UndertaleModTool.UndertaleCodeEditor.<>c__DisplayClass36_0.<DecompileCode>b__1() in D:\a\UndertaleModTool\UndertaleModTool\UndertaleModTool\Editors\UndertaleCodeEditor.xaml.cs:line 530 */ Build at time of bug

Reproducing steps

  1. Open The deltarune data.win
  2. edit a script EG gml_GlobalScript_scr_encountersetup_ch1
  3. compile the script
  4. It replies with that

img for proof image

Setup Details

  1. Version of Undertale mod tool: v0.5.0.0
  2. Windows 10
  3. Deltarune
Jacky720 commented 1 year ago

Could not reproduce on Deltarune v1.07, v1.10, or v1.15 (all from Steam). Which version of DR were you using, and what exactly did you attempt to edit in the script? Can you send the code that was in the box before compiling?

AkaneDev commented 1 year ago

I figured it out the usb i was running it off of was corrupting