From f9c29098eef43c13785bee6f9c5e1e78ae6c1ea9 Mon Sep 17 00:00:00 2001 From: burnedpopcorn <164114576+burnedpopcorn@users.noreply.github.com> Date: Thu, 5 Dec 2024 19:02:55 -0800 Subject: [PATCH] fixed some big issues --- .../Ultimate_GMS2_Decompiler_UA.csx | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/Ultimate_GMS2_Decompiler/Ultimate_GMS2_Decompiler_UA.csx b/Ultimate_GMS2_Decompiler/Ultimate_GMS2_Decompiler_UA.csx index 2cef78b..9640a44 100644 --- a/Ultimate_GMS2_Decompiler/Ultimate_GMS2_Decompiler_UA.csx +++ b/Ultimate_GMS2_Decompiler/Ultimate_GMS2_Decompiler_UA.csx @@ -1782,7 +1782,15 @@ void DumpRoom(UndertaleRoom room) imageSpeed = i.ImageSpeed, imageIndex = i.ImageIndex }; - string objname = i.ObjectDefinition.Name.Content; + + // string objname = i.ObjectDefinition.Name.Content; + + string objname = ""; + try { + objname = i.ObjectDefinition.Name.Content; + } catch { + errorList.Add($"{exportedRoom.name} - Empty Object Instance (inst_{i.InstanceID}) was found in Room"); + } // dump creation code string code = ""; @@ -5174,7 +5182,7 @@ HideProgressBar(); // ------------------------------------------------------------------------------------------------------------------------------------------------------- // Asset Order NOTE if (_PJCT.Checked && SCPT) { -string outputPath = "Export_Data/notes/Asset_Order/Asset_Order.txt"; +string outputPath = rootPath + "notes/Asset_Order/Asset_Order.txt"; using (StreamWriter writer = new StreamWriter(outputPath)) { writer.WriteLine("Generated by Ultimate_GMS2_Decompiler_UA.csx");