UndertaleModTool icon indicating copy to clipboard operation
UndertaleModTool copied to clipboard

Calculate length of texture data during serialization instead of writing a set value & Update ImportGMS2FontData

Open Dobby233Liu opened this issue 2 years ago • 5 comments

Description

Fixes #1042

Caveats

This is a quite weird implementation, and I have no idea if it is correct or clean enough. Would like some feedback.

Notes

Should _TextureBlockSize be removed altogether?

~~NTS: actually test~~ ImportGMS2FontData and NewTextureRepacker works correctly

Dobby233Liu avatar Jul 13 '22 03:07 Dobby233Liu

I should also check if the value is written for games that use PNG

Dobby233Liu avatar Jul 13 '22 03:07 Dobby233Liu

Uh, won't this not work on pre-2022.3 games?

Jacky720 avatar Aug 31 '22 01:08 Jacky720

Hmm, I haven't checked

Dobby233Liu avatar Aug 31 '22 02:08 Dobby233Liu

Added 2022.3 checks, should be correct now

I should also check if the value is written for games that use PNG

Also we still need to check this

Dobby233Liu avatar Aug 31 '22 02:08 Dobby233Liu

What is the status of this pull request?

Grossley avatar Nov 11 '22 15:11 Grossley