UndertaleModTool
UndertaleModTool copied to clipboard
exit instruction disappearing upon compiling with Profile mode enabled.
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
- Open up the data.win file of Pizza tower (Game on Steam) via UndertaleModTool.
- Write "obj_tv" without the quotes on the top left search window and navigate to gml_Object_obj_tv_Draw_64.
- Open up the code by double clicking it.
- 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
- UndertaleModTool v:0.5.1.0
- Windows 10 Enterprise LTSC
- Pizza Tower, currently at version V1.0.311, GM 2022.9
- Link to Game: https://store.steampowered.com/app/2231450/Pizza_Tower/
I'm not sure how profile mode could be interacting with this, but it seems like a potential duplicate of #1223.
Can someone reproduce this with a bleeding edge build?