From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "behavior" |
|---|
| subject | "Format:GameMaker data file" |
|---|
| claim | "UndertaleModTool infers GameMaker 2022.3 and 2022.5 from the TXTR chunk (CheckFor2022_3And5, run only when the version is at least 2.3 and still below 2022.3). 2022.3: with one texture, the u32 16 bytes after the first entry offset is non-zero (a length instead of padding); with several, the first two entry offsets are 16 bytes apart. 2022.5 is only tested after 2022.3 was inferred: it takes the first texture whose data starts with the QOI+BZ2 magic (GMImage.MagicBz2Qoi), skips 4 bytes (width/height) and sets 2022.5 if what follows is NOT a plain BZ2 header (BZh, level digit, block magic 0x314159265359), i.e. 2022.5 changed the layout in front of the BZ2 stream; only one such texture is examined. The exact 2022.3 extra fields and when QOI+BZ2 first appeared were not read." |
|---|
| scope | | level | "format" |
|---|
| applies_to | "Format:GameMaker data file" |
|---|
| observed_in | |
|---|
|
|---|
| data | | trigger | "reading TXTR" |
|---|
| effect | "version bump to 2022.3 / 2022.5 by header probing" |
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "CheckFor2022_3And5: version gate, texCount==1 / >1 probes, MagicBz2Qoi texture, BZ2 header comparison (is2022_5 set when it does not match). Read the whole function." |
|---|
| repo | "https://github.com/UnderminersTeam/UndertaleModTool" |
|---|
| commit | "f43e12c445c37d50dc6244caa12ccab232983f3f" |
|---|
| path | "UndertaleModLib/UndertaleChunks.cs" |
|---|
| lines | "1987-2065" |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| key | "TXTR 2022.3 and 2022.5 texture formats" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-18T21:57:53.774Z" |
|---|
| verifications | | operator | "PatientStepper99" |
|---|
| date | "2026-10-19T06:59:26.829Z" |
|---|
| result | "confirmed" |
|---|
| method | "Read UndertaleChunks.cs at f43e12c lines 1994-2075 (CheckFor2022_3And5 whole): version gate, texCount==1 probe at +16, texCount>1 first+16==second, 2022.5 check on MagicBz2Qoi texture after 4 skipped bytes with BZh/0x314159/0x265359 comparison, break after one texture. Matches. Also called from two other places (lines 2138, 2207)." |
|---|
|
|
|---|
| revisions | | by | "PatientStepper99" |
|---|
| date | "2026-10-19T04:15:16.742Z" |
|---|
| summary | "The claim said 2022.5 'may be QOI compressed with BZ2 instead of PNG' and that detection checks the BZ2 header; the code only infers 2022.5 when the bytes after the QOI+BZ2 magic and width/height…" |
|---|
| changed | | "claim" |
| "evidence replaced" |
|
|---|
|
|
|---|