In classic mode, the board is scanned using the colors read form the right side. This guarantees colors are in sync.
A capture setup for any Tetris player doesn't change however, so while each combination of console and capture hardware is sort of unique, the setup itself is very stable, so it would be much more efficient to store the color range across all levels once, and then use that palette in all games thereafter.
This will reduce the overall capture size required, and remove the need to scan the color.
Approach
In classic mode, NTC now tracks the colors for the 10 levels (colors read from the piece stats). When all 10 levels colors are captured, a new button Save Last Game's Palette is enabled.
When clicking it, the color palette is saved locally in local storage, the producer page reloaded, and the palette is used again right away.
A NTC user may then switch to a different rom (e.g. Das Trainer or Tetris Gym), select the saved palette, and recalibrate from it.
Caveat and Side effect:
The color palette cannot be used to match games beyond the color glitch bug
Color captured from the piece stats panel are not perfect, especially for crappy capture setup which "bleed" their colors (white becomes tainted by the color of the surrounding border). A more accurate palette creation tool should be more sophisticated: use the side pieces to identify the blocks, but then read the colors from the block themselves to extract the color values. That has not been done in this PR because it's a heavier process that requires a dedicated more of operation, rather be running during standard game OCR.
Context
In classic mode, the board is scanned using the colors read form the right side. This guarantees colors are in sync.
A capture setup for any Tetris player doesn't change however, so while each combination of console and capture hardware is sort of unique, the setup itself is very stable, so it would be much more efficient to store the color range across all levels once, and then use that palette in all games thereafter.
This will reduce the overall capture size required, and remove the need to scan the color.
Approach
In classic mode, NTC now tracks the colors for the 10 levels (colors read from the piece stats). When all 10 levels colors are captured, a new button
Save Last Game's Palette
is enabled.When clicking it, the color palette is saved locally in local storage, the producer page reloaded, and the palette is used again right away.
A NTC user may then switch to a different rom (e.g. Das Trainer or Tetris Gym), select the saved palette, and recalibrate from it.
Caveat and Side effect: