Skip to content

Commit

Permalink
fixed some big issues
Browse files Browse the repository at this point in the history
  • Loading branch information
burnedpopcorn committed Dec 6, 2024
1 parent b2af031 commit f9c2909
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions Ultimate_GMS2_Decompiler/Ultimate_GMS2_Decompiler_UA.csx
Original file line number Diff line number Diff line change
Expand Up @@ -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 = "";
Expand Down Expand Up @@ -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");
Expand Down

0 comments on commit f9c2909

Please sign in to comment.