UndertaleModTool icon indicating copy to clipboard operation
UndertaleModTool copied to clipboard

Error loading SPRT chunk on old Automon version

Open Jdewi12 opened this issue 2 years ago • 6 comments

Describe the bug

An error occured while trying to load: Expected 1 at 00025190 while reading object UndertaleModLib.Models.UndertaleSprite while reading item 76 of 385 in a list of UndertaleModLib.Models.UndertaleSprite in chunk SPRT

(I typed this by hand since I can't seem to find a log file)

Reproducing steps

Open Automon's data.win

Setup Details

UndertaleModTool version: 0.4.04 and the Bleeding edge for commit https://github.com/krzys-h/UndertaleModTool/commit/856041c5279caa9d0ecd5188b8dff7c0e6968d17. Both gave same error. GameMaker Game: Automon

Let me know if there's something in the data.win you want me to check/share. I'm pretty comfortable with a hex editor.

Jdewi12 avatar Sep 19 '22 07:09 Jdewi12

On a sidenote, I couldn't figure out how to get a GameMaker version number. I tried using the info at https://pcy.ulyssis.be/undertale/unpacking-corrected.

The Major.Minor.Release.Build from gen8 are 2.0.0.0, but I doubt that's right. The InfoFlags are simply 0x32 -- no version info.

The "unknown" int24 at the start of gen8 is 17, in case that's the bytecode version. Though I imagine it's not.

Jdewi12 avatar Sep 19 '22 07:09 Jdewi12

How many of the following chunks does it have? TGIN (2.2.1), SEQN (2.3), FEDS (2.3.2), FEAT (2022.8).

Jacky720 avatar Sep 19 '22 11:09 Jacky720

TGIN: 1 SEQN: 1 FEDS: None FEAT: None

Edit: Ah I see, those values you gave are the versions they're introduced?

Jdewi12 avatar Sep 19 '22 12:09 Jdewi12

Yep. Seems like the crash might have to do with nineslice sprites, but it's hard to tell without running the tool in debug mode.

Jacky720 avatar Sep 19 '22 12:09 Jacky720

@Jdewi12 Is this issue still present on 0.5.1.0 or current bleeding edge?

Jacky720 avatar Feb 20 '24 03:02 Jacky720

It still happens on both 0.5.1.0 and bleeding edge with the version of data.win from when I created this issue, but it doesn't happen on the latest version of the game.

It's not an issue for Automon anymore, but if you do want to look into it further, I've attached the old data.win file (zipped).

data.zip

Jdewi12 avatar Feb 28 '24 04:02 Jdewi12