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

Decompilation error: Tried to pushaf on something that is not a var #1922

Open
craftersshaft opened this issue Sep 20, 2024 · 1 comment
Open
Labels
bug Something isn't working waiting for new compiler test This needs to be tested with the new Underanalyzer compiler

Comments

@craftersshaft
Copy link

craftersshaft commented Sep 20, 2024

Describe the bug

The decompiler throws an exception when decompiling code, and currently the game is on the latest GM compiler. Opening the game with the Underanalyzer build seems to work fine, but saving the code makes another error happen.

Reproducing steps

image

  1. Open data.win in UndertaleModTool
  2. open Code > gml_Object_obj_char_Crack_Step_0
   System.InvalidOperationException: Tried to pushaf on something that is not a var
   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 647
   at UndertaleModLib.Decompiler.Decompiler.DecompileFromBlock(DecompileContext context, Dictionary`2 blocks, Block block) in D:\a\UndertaleModTool\UndertaleModTool\UndertaleModLib\Decompiler\Decompiler.cs:line 800
   at UndertaleModLib.Decompiler.Decompiler.Decompile(UndertaleCode code, GlobalDecompileContext globalContext, Action`1 msgDelegate) in D:\a\UndertaleModTool\UndertaleModTool\UndertaleModLib\Decompiler\Decompiler.cs:line 1465
   at UndertaleModTool.UndertaleCodeEditor.<>c__DisplayClass58_1.<DecompileCode>b__1() in D:\a\UndertaleModTool\UndertaleModTool\UndertaleModTool\Editors\UndertaleCodeEditor.xaml.cs:line 700

Setup Details

UndertaleModTool Bleeding Edge (git: 9f4f13a)
Windows 10
Supra Smash Bross Devolution https://reynlynxpsi.itch.io/supra-smash-bross

@craftersshaft craftersshaft added the bug Something isn't working label Sep 20, 2024
@colinator27
Copy link
Member

Likely properly fixed with #2056.

@colinator27 colinator27 added the waiting for new compiler test This needs to be tested with the new Underanalyzer compiler label Mar 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working waiting for new compiler test This needs to be tested with the new Underanalyzer compiler
Projects
None yet
Development

No branches or pull requests

2 participants