Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CGX Viewer Format #29

Open
scawful opened this issue Aug 1, 2023 · 0 comments
Open

CGX Viewer Format #29

scawful opened this issue Aug 1, 2023 · 0 comments
Assignees
Labels
feature New feature or request

Comments

@scawful
Copy link
Owner

scawful commented Aug 1, 2023

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 scawful self-assigned this Aug 1, 2023
@scawful scawful added the feature New feature or request label Aug 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
Status: In Progress
Development

No branches or pull requests

1 participant