colinator27 / DogScepter

A work-in-progress modding tool geared toward UNDERTALE/DELTARUNE
MIT License
45 stars 14 forks source link

NullReference exception when trying to resolve an object #49

Open Miepee opened 2 years ago

Miepee commented 2 years ago

These old bones crashes with a nullreference exception trying to decompile rm_prep_Create

Failed to decompile code for "gml_Room_rm_prep_Create": System.NullReferenceException: Object reference not set to an instance of an object.
   at DogScepterLib.Project.GML.Decompiler.MacroResolver.ResolveObject(DecompileContext ctx, ASTInt16 int16) in C:\Users\narr\gitrepos\dog-scepter\DogScepterLib\Project\GML\Decompiler\MacroResolver.cs:line 364
   at DogScepterLib.Project.GML.Decompiler.ASTFunction.Clean(DecompileContext ctx) in C:\Users\narr\gitrepos\dog-scepter\DogScepterLib\Project\GML\Decompiler\ASTNode.cs:line 782
   at DogScepterLib.Project.GML.Decompiler.ASTFunctionVar.Clean(DecompileContext ctx) in C:\Users\narr\gitrepos\dog-scepter\DogScepterLib\Project\GML\Decompiler\ASTNode.cs:line 840
   at DogScepterLib.Project.GML.Decompiler.ASTBlock.BlockCleanup(DecompileContext ctx, List`1 nodes) in C:\Users\narr\gitrepos\dog-scepter\DogScepterLib\Project\GML\Decompiler\ASTNode.cs:line 177
   at DogScepterLib.Project.GML.Decompiler.ASTBlock.Clean(DecompileContext ctx) in C:\Users\narr\gitrepos\dog-scepter\DogScepterLib\Project\GML\Decompiler\ASTNode.cs:line 263
   at DogScepterLib.Project.GML.Decompiler.DecompileContext.DecompileSegment(GMCode codeEntry, BlockList existingList) in C:\Users\narr\gitrepos\dog-scepter\DogScepterLib\Project\GML\Decompiler\DecompileContext.cs:line 248
   at DogScepterLib.Project.GML.Decompiler.DecompileContext.DecompileWholeEntry(GMCode codeEntry) in C:\Users\narr\gitrepos\dog-scepter\DogScepterLib\Project\GML\Decompiler\DecompileContext.cs:line 207
   at DogScepterLib.Project.GML.Decompiler.DecompileContext.DecompileWholeEntryString(GMCode codeEntry) in C:\Users\narr\gitrepos\dog-scepter\DogScepterLib\Project\GML\Decompiler\DecompileContext.cs:line 186
   at DogScepterCLI.Commands.DumpCommand.<>c__DisplayClass36_1.<ExecuteAsync>b__0(GMCode elem) in C:\Users\narr\gitrepos\dog-scepter\DogScepterCLI\Commands\DumpCommand.cs:line 199