Skip to content

Python Scripts that convert Picture into Bin file and vice-versa for DS 256-Colors Sprite Editing.

Notifications You must be signed in to change notification settings

zigaudrey/paint-hex-convertor-DS-256

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Paint Hex Convertor DS 256-Colors BANNER

Paint-Hex Convertor DS-256 colors

Python Scripts that convert Picture into Bin file and vice-versa for DS 256-Colors Sprite Editing.

Ressource

DS

  • Use Tinker to extract NCGR and NCLR. The NCGR header has to show 04 00 00 00 like below: NCGR Header 4 Depth Showing
  • If there is a compressed data (LZ10/lZ11), decompress it and extract the new one. Be sure to check the hex file if there is the NCGR or NCLR tag

Setup

  1. If you don't have PIL, open the command prompt and install it with PIP
  2. Open one of the scripts in command prompt for PIL lib to work

For Paint-to-hex Script

  1. Choose a palette (image). It have to have a total of 256 pixels
  2. Choose a sprite sheet (image). Its dimensions should both be a divisible of 8
  3. You can choose to generate Nitro files or bin files
  4. Two bin/Nitro files will be created, ready to replace data in DS Files

For Hex-to-paint Script

  1. Choose a palette (bin file). Its lenght has to be 512. If many, choose the right one that help with edit
  2. If there are duplicates colors, you can choose to generate another palette image with only used colors
  3. Choose a sprite sheet (bin file). Its lenght has to be a divisble of 64 (one tile)
  4. Choose the number of tiles for the width
  5. Two (or three) images files will be created, ready to be edited in drawing tools

Similar tools