UndertaleModTool
UndertaleModTool copied to clipboard
pasting GML code on top of EXCEPTION comment will crash UMT
Describe the bug
open data.win and go to code that failed parsing and has EXCEPTION comment paste GML code on top of it UML will display error dialog and crash
Reproducing steps
- copy sole GML string from object0.Draw
- select all EXCEPTION comment in object0.Create so you would replace it when pasting
- paste
Setup Details
674c5d8 Win10 x64
UML will display error dialog and crash
Post the error dialog that it displays please.
strangely I could not get it to display error dialog any more, it just closes now but I'm pretty sure it was the same thing that's in those crash.txt logs I remember it was a lot of 'at this' and 'at that bla bla bla' so I attached those crash_logs.zip
Seems like the error is triggered at UndertaleCodeEditor.xaml.cs:1117. It could be a null parent with a null CurrentLocals, but it'll require more testing in a debug environment to be sure.
I had error message pop up again and it is indeed the same thing that's in 'crash.txt'
also looks like this only happens when this is done through 'Game objects' object's events but not through 'Code'