PoroCYon / Altar.NET

GameMaker: Studio data.win unpacker (mainly for Undertale) - NOTE: THIS IS A MIRROR OF THE GITLAB REPO.
https://gitlab.com/PoroCYon/Altar.NET
Other
45 stars 11 forks source link

OutOfMemoryException when exporting large amount of sprite definitions #10

Open underscoren opened 5 years ago

underscoren commented 5 years ago

I'm trying to extract the sprite definitions for deltarune, and it stops at 106/1015 sprites with an unhandled OutOfMemoryException.

Here's the full log:


Warning: unknown chunk LANG is not empty, its content will not be exported!
Warning: unknown chunk EXTN is not empty, its content will not be exported!
Warning: unknown chunk GLOB is not empty, its content will not be exported!
Warning: unknown chunk SHDR is not empty, its content will not be exported!
Warning: unknown chunk TMLN is not empty, its content will not be exported!
Warning: unknown chunk DAFL is not empty, its content will not be exported!
Warning: unknown chunk EMBI is not empty, its content will not be exported!
Error reading ROOM #88 - skipping others.
System.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown.
   at Altar.Unpack.SectionReader.ReadRoomObjInst(GMFileContent content, IntPtr p) in C:\Users\Marius\Documents\deltarune\Altar.NET\Altar.NET\Unpack\SectionReader.cs:line 161
   at Altar.Unpack.SectionReader.ReadList[T](GMFileContent content, CountOffsetsPair* list, Func`3 readThing) in C:\Users\Marius\Documents\deltarune\Altar.NET\Altar.NET\Unpack\SectionReader.cs:line 75
   at Altar.Unpack.SectionReader.GetRoomInfo(GMFileContent content, UInt32 id) in C:\Users\Marius\Documents\deltarune\Altar.NET\Altar.NET\Unpack\SectionReader.cs:line 585
   at Altar.GMFile.<>c__DisplayClass89_0.<.ctor>b__6(UInt32 i) in C:\Users\Marius\Documents\deltarune\Altar.NET\Altar.NET\GMFile.cs:line 231
   at Altar.GMFile.TryReadMany[T](SectionCountOffsets* hdr, Func`2 readOne) in C:\Users\Marius\Documents\deltarune\Altar.NET\Altar.NET\GMFile.cs:line 181
Exporting sprites... (106/1015)An error occured during export

Unhandled Exception: OutOfMemoryException.