UndertaleModTool icon indicating copy to clipboard operation
UndertaleModTool copied to clipboard

exit instruction disappearing upon compiling with Profile mode enabled.

Open eggman07 opened this issue 1 year ago • 2 comments

Describe the bug

When UTMT decompiles a piece of code containing the exit instruction, with Profile mode enabled, the exit instruction is removed.

This is not intentional, as the profile mode shouldn't be doing any decompiling past the initial stage, and if it is, something is going wrong. Thus the exit instruction should be preserved.

Reproducing steps

  1. Open up the data.win file of Pizza tower (Game on Steam) via UndertaleModTool.
  2. Write "obj_tv" without the quotes on the top left search window and navigate to gml_Object_obj_tv_Draw_64.
  3. Open up the code by double clicking it.
  4. If one takes a look at lines 1 and 8, they can see empty brackets, the original code had the "exit" line written inside of them.

Setup Details

  1. UndertaleModTool v:0.5.1.0
  2. Windows 10 Enterprise LTSC
  3. Pizza Tower, currently at version V1.0.311, GM 2022.9
  4. Link to Game: https://store.steampowered.com/app/2231450/Pizza_Tower/ 07_29_23_21_49256421690656565 07_29_23_21_49324431690656572

eggman07 avatar Jul 29 '23 18:07 eggman07

I'm not sure how profile mode could be interacting with this, but it seems like a potential duplicate of #1223.

Jacky720 avatar Feb 21 '24 01:02 Jacky720

Can someone reproduce this with a bleeding edge build?

Miepee avatar Jun 01 '24 10:06 Miepee