yaze icon indicating copy to clipboard operation
yaze copied to clipboard

CGX Viewer Format

Open scawful opened this issue 2 years ago • 0 comments

Objective

Create a CGX Viewer component using the internal header data which associates the correct colors to the graphics.

Background

File header is at end of the file rather than the beginning and encompasses the NAKA1989 metastamps.

Oganization of a CGX file is [pixel data][header][attribute (i.e. color palette selector) data]

Can open CGX files in SCad and immediately save them in their SCad equivalent format.

Workspace Formats and SCad equivalents after saving

  • CGX -> SCH
  • COL -> SCL
  • SCR -> SSC

Used to check your work for palette data applied to a CGX Documentation on file formats included with SCad zip.

QoL features

  • Copy and paste the full file path of the assets
  • Support backup file extensions .bak
  • Displaying the 'NAK1989 S-CG-CADVer1.21 900611' metastamp from the header
  • Automatically detect if the file is 8bpp or 4bpp and default to that for it

Test Dummy Candidates

NEWS\テープリストア\NEWS_04.\home\arimoto\zelda\smap.col.bak NEWS\テープリストア\NEWS_04.\home\arimoto\zelda\smap.cgx.bak

arimoto/delda/m/osr.cgx arimoto/delda/soto/hyama-1.col.bak

scawful avatar Aug 01 '23 02:08 scawful