UnderminersTeam / UndertaleModTool

The most complete tool for modding, decompiling and unpacking Undertale (and other Game Maker: Studio games!)
GNU General Public License v3.0
1.07k stars 206 forks source link

ExportAllRoomsToPng.csx fails with a "Value cannot be null" error #1430

Closed Fried-Potato-Chip closed 6 months ago

Fried-Potato-Chip commented 12 months ago

Describe the bug

When running the script 'ExportAllRoomsToPng.csx', the first 2ish rooms render successfully but after that the script throws an exception. This isn't a script issue either, as my custom script (which worked until I updated UMT) also stopped working.

2023-07-09_16-13-01

Reproducing steps

  1. Click scripts at the top of the window
  2. Run "Resource Unpackers/ExportAllRoomsToPng.csx"
  3. Some rooms will render, but eventually the script throws System.ArgumentNullException.

Setup Details

  1. UndertaleModTool commit 32cd3ea (bleeding-edge)
  2. Windows 11 22H2 Build 22621.1928
  3. DELTARUNE Chapter 1&2 1.00 (itch.io)
Fried-Potato-Chip commented 12 months ago

Here is a larger stacktrace that my script shows (sorry for using an screenshot instead of text, I cannot figure out how to copy it). After this, UndertaleModTool crashes instantly.

2023-07-09_16-27-38

XCXDSHS commented 10 months ago

Me too, have you solved it?

Fried-Potato-Chip commented 10 months ago

Me too, have you solved it?

Not really, I just downgraded to 5.0.0 and it worked again. I don't use the new features.

XCXDSHS commented 10 months ago

我也是,你解决了吗?

不是真的,我只是降级到 5.0.0,它又工作了。我不使用新功能。

I asked other people and they told me this script only works for tobyfox games undertale and deltarune 1&2

XCXDSHS commented 10 months ago

我也是,你解决了吗?

不是真的,我只是降级到5.0.0,它又工作了。我不使用新功能。

According to your test, it seems that currently only version 5.0 of deltarune 1&2 can use the script, while any version of undertale is valid. After all, this tool is mainly aimed at the game undertale.