Without VICTORY_BCPACK_TABLES, textures turn to square noise and only one log line says why #385

Open
opened 2026-11-27 22:45:23 +00:00 by github-bot · 6 comments
Owner

@⁠cafeoh on GitHub · 2026-11-27 22:42 UTC · original

Since #366 the BCPack tables are no longer bundled (right call, asset policy). But when the file isn't set, the game still runs, and many textures come out as square block noise: faces (they look wet or garbled), clothes, walls.

On our run (RTX 2080 Ti, Series S, main 014825837) the only sign was one warning line early in the log. It looks like a rendering bug, so testers will likely report it as one. We did, at first.

Ideas, any one would help:

  • play.ps1 checks the path at launch and stops, or prints a clear warning, when it's missing;
  • the README line (setup, line 65) says what happens without it: "textures show as block noise";
  • the launcher or panel shows "BCPack tables missing" while textures fall back.

With the tables set, the noise is gone on the same save and settings.

**@⁠cafeoh** on GitHub · 2026-11-27 22:42 UTC · [original](https://github.com/TaynanGT/Vice-Tay/issues/385) Since #366 the BCPack tables are no longer bundled (right call, asset policy). But when the file isn't set, the game still runs, and many textures come out as square block noise: faces (they look wet or garbled), clothes, walls. On our run (RTX 2080 Ti, Series S, `main` 014825837) the only sign was one warning line early in the log. It looks like a rendering bug, so testers will likely report it as one. We did, at first. Ideas, any one would help: - `play.ps1` checks the path at launch and stops, or prints a clear warning, when it's missing; - the README line (setup, line 65) says what happens without it: "textures show as block noise"; - the launcher or panel shows "BCPack tables missing" while textures fall back. With the tables set, the noise is gone on the same save and settings.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 22:45:23 +00:00
Author
Owner

@⁠TaynanGT on GitHub · 2026-11-29 11:37 UTC · original

Thanks for isolating the block noise to the missing BCPack tables with the same save and settings. #391 addresses the warning and documentation. This should be distinguished from shader or material corruption that persists with valid tables configured.

**@⁠TaynanGT** on GitHub · 2026-11-29 11:37 UTC · [original](https://github.com/TaynanGT/Vice-Tay/issues/385#issuecomment-7255239756) Thanks for isolating the block noise to the missing BCPack tables with the same save and settings. #391 addresses the warning and documentation. This should be distinguished from shader or material corruption that persists with valid tables configured.
Author
Owner

@⁠zmelumian972 on GitHub · 2026-11-30 06:50 UTC · original

I investigated a bit

The assets are packed with a format that requires the table, which is a Microsoft asset, to decode it

So it's a licensing trap essentially...

Supplying it means licensing issue not supplying it means assets decoding issues

I got an idea though, statistical models might be able to guess it, or we might be able to infer it

After all validation is easy to get with sha

Let me investigate for a solution for this issue

**@⁠zmelumian972** on GitHub · 2026-11-30 06:50 UTC · [original](https://github.com/TaynanGT/Vice-Tay/issues/385#issuecomment-7271061108) I investigated a bit The assets are packed with a format that requires the table, which is a Microsoft asset, to decode it So it's a licensing trap essentially... Supplying it means licensing issue not supplying it means assets decoding issues I got an idea though, statistical models might be able to guess it, or we might be able to infer it After all validation is easy to get with sha Let me investigate for a solution for this issue
Author
Owner

@⁠zmelumian972 on GitHub · 2026-11-30 07:10 UTC · original · edited 2026-11-30 07:23 UTC

Follow-up on whether the tables can be avoided:

  • The models (2,304 of 77,982 bytes) are MIT-licensed. Microsoft published them in silicon-rans, and they match the table file 128 of 128. #465 ships them and refuses a table file whose models differ, so a wrong file gives a clear error instead of block noise.
  • The rest can't be derived exactly yet, though parts can be fitted. bcpack-rs tried this on the same 57 retail stores. The rank tables and most BC7 control codes were solved exactly from game data. The 255-entry dictionaries were not: a BC5 fit got 61 of 428 entry halves exact and 135 within ±1, which left 52% of the blocks that start from a dictionary entry exact. BC7 dictionaries were never fitted, and BC6H isn't solved anywhere. Its shipped BC3/4/5/7 tables were then copied from a reference decoder, so they aren't a clean-room source.

Edit: an earlier version of this comment cited 2.4% (BC7) and 12.8% (BC5) exact blocks as the result of fitting. Those figures were measured with the dictionaries left empty, not fitted.

So today the options stay as they are: user-supplied tables, with #391's warning at launch and #465's validation, or shipping the file as a documented exception as upstream VIctory does. A one-time local calibration that fits the tables from the user's own game files could give approximate textures without the file. I'm checking whether the game data holds enough exact ground truth to make that worthwhile.

**@⁠zmelumian972** on GitHub · 2026-11-30 07:10 UTC · [original](https://github.com/TaynanGT/Vice-Tay/issues/385#issuecomment-7271428480) · edited 2026-11-30 07:23 UTC Follow-up on whether the tables can be avoided: - **The models (2,304 of 77,982 bytes) are MIT-licensed.** Microsoft published them in [silicon-rans](https://github.com/microsoft/silicon-rans), and they match the table file 128 of 128. #465 ships them and refuses a table file whose models differ, so a wrong file gives a clear error instead of block noise. - **The rest can't be derived exactly yet, though parts can be fitted.** [bcpack-rs](https://github.com/Ahmet-Dedeler/bcpack-rs/blob/master/docs/findings/bc345-bc7.md) tried this on the same 57 retail stores. The rank tables and most BC7 control codes were solved exactly from game data. The 255-entry dictionaries were not: a BC5 fit got 61 of 428 entry halves exact and 135 within ±1, which left 52% of the blocks that start from a dictionary entry exact. BC7 dictionaries were never fitted, and BC6H isn't solved anywhere. Its shipped BC3/4/5/7 tables were then copied from a reference decoder, so they aren't a clean-room source. *Edit: an earlier version of this comment cited 2.4% (BC7) and 12.8% (BC5) exact blocks as the result of fitting. Those figures were measured with the dictionaries left empty, not fitted.* So today the options stay as they are: user-supplied tables, with #391's warning at launch and #465's validation, or shipping the file as a documented exception as upstream VIctory does. A one-time local calibration that fits the tables from the user's own game files could give approximate textures without the file. I'm checking whether the game data holds enough exact ground truth to make that worthwhile.
Author
Owner

@⁠zmelumian972 on GitHub · 2026-11-30 08:29 UTC · original

Update: the game data doesn't hold an exact copy of the tables (no texture is stored both BCPack-packed and plain), but BC1's tables can be fitted from it closely. #466 adds victory bcpack-fit, which the launchers run once (about two minutes). Without VICTORY_BCPACK_TABLES, BC1 textures then decode close to the console: held out, a median of 36.5 dB against the next mip, where plain textures reach 37.7 dB. That covers about 31,000 of the roughly 32,400 BCPack textures in GTA VI's stores. BC3–BC7 (mostly BC7) still need the format tables and still show as block noise without them.

**@⁠zmelumian972** on GitHub · 2026-11-30 08:29 UTC · [original](https://github.com/TaynanGT/Vice-Tay/issues/385#issuecomment-7272966354) Update: the game data doesn't hold an exact copy of the tables (no texture is stored both BCPack-packed and plain), but BC1's tables can be fitted from it closely. #466 adds `victory bcpack-fit`, which the launchers run once (about two minutes). Without `VICTORY_BCPACK_TABLES`, BC1 textures then decode close to the console: held out, a median of 36.5 dB against the next mip, where plain textures reach 37.7 dB. That covers about 31,000 of the roughly 32,400 BCPack textures in GTA VI's stores. BC3–BC7 (mostly BC7) still need the format tables and still show as block noise without them.
Author
Owner

@⁠TaynanGT on GitHub · 2026-11-30 17:00 UTC · original

main has moved to a new line of the code and everything is now named Vice-Tay: vice-tay.exe play, and VICE_TAY_* switches instead of VICTORY_* (details in #468). Could you check whether this still happens on the current main and say so here, with a log if you can?

**@⁠TaynanGT** on GitHub · 2026-11-30 17:00 UTC · [original](https://github.com/TaynanGT/Vice-Tay/issues/385#issuecomment-7285582880) `main` has moved to a new line of the code and everything is now named Vice-Tay: `vice-tay.exe play`, and `VICE_TAY_*` switches instead of `VICTORY_*` (details in #468). Could you check whether this still happens on the current `main` and say so here, with a log if you can?
Author
Owner

@⁠TaynanGT on GitHub · 2026-11-30 20:16 UTC · original

This is fixed by construction now - the tables ship with the build.

crates/vice-tay-formats/src/bcpack.rs has Tables::builtin(), which is include_bytes!("bcpack-tables.bin"). There's no file to point at any more and VICE_TAY_BCPACK_TABLES only exists as a test variable for comparing against reference chunks. So the failure mode you described - the game runs, textures come out as square block noise, one warning line early in the log - can't happen for want of the tables.

You were right that it was going to get reported as a rendering bug, and it was. Worth saying what settled it: the models, the index rank tables, the BC7 control codes and the dictionaries are constants of the format, not the game's data, so they can live in the repo.

If you see square block noise on a current build, that's a different bug and worth its own report - with the log, since the cause would be somewhere else entirely.

**@⁠TaynanGT** on GitHub · 2026-11-30 20:16 UTC · [original](https://github.com/TaynanGT/Vice-Tay/issues/385#issuecomment-7290652419) This is fixed by construction now - the tables ship with the build. `crates/vice-tay-formats/src/bcpack.rs` has `Tables::builtin()`, which is `include_bytes!("bcpack-tables.bin")`. There's no file to point at any more and `VICE_TAY_BCPACK_TABLES` only exists as a test variable for comparing against reference chunks. So the failure mode you described - the game runs, textures come out as square block noise, one warning line early in the log - can't happen for want of the tables. You were right that it was going to get reported as a rendering bug, and it was. Worth saying what settled it: the models, the index rank tables, the BC7 control codes and the dictionaries are constants of the format, not the game's data, so they can live in the repo. If you see square block noise on a current build, that's a different bug and worth its own report - with the log, since the cause would be somewhere else entirely.
This discussion has been locked. Commenting is limited to contributors.
No description provided.