Giter Site home page Giter Site logo

zigaudrey / paint-hex-convertor-gba-ds Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 46 KB

Python Scripts that convert Picture into Bin file and vice-versa for GameBoy Advance, DS 16-Colors Sprites and Icon Editing.

Python 100.00%
binary convertor devtool ds gameboyadvance gamedev gamedevtool gba image moddingtool

paint-hex-convertor-gba-ds's Introduction

Paint Hex Convertor GBA DS 16-Colors Icon BANNER

Paint-Hex Convertor (Gameboy Advance/DS 16-colors)

Python Scripts that convert Picture into Bin file and vice-versa for GameBoy Advance, DS 16-Colors Sprites and Icon Editing.

Ressource

Gameboy Advance

  • For the sprite, use CHR-YY to locate and create bin file with an Hex Editor. Don't forget to mention the offset when you will replace in the ROM.
  • For the palette, use mGBA and open Tool > Game State View > Palette. The bytes pair are swapped (eg: 01 EA to EA 01), write them in order then use it to find the whole palette in the ROM.

DS (16-colors), .b File

  • Use Tinke to extract NCGR, NCLR or .b file.
  • If this is a NCGR file, it's header must shows 03 00 00 00 like below. NCGR Header 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

DS Icon

  • Use Tinke to extract the banner.bin. The icon is at 20-21F(hex) and the palette is at 220-23F(hex).

Setups

  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

Paint-to-hex Script

  1. Choose a palette (image). It have to have a total of 16 pixels
  2. Choose a sprite sheet (image). Its dimensions should both be a divisible of 8
  3. Two bin files will be created, ready to replace data in the ROM or DS Files

Hex-to-paint Script

  • Choose a palette (bin file). Its lenght has to be 32. If you use a NCLR palette with multiple palettes, choose the right one for edit
  • Choose a sprite sheet (bin file). Its lenght has to be a divisble of 32 (one tile)
  • OR Choose a .b file. Choose the right palette for edit.
  • Choose the number of tiles for the width
  • Two images files will be created, ready to be edited in drawing tools

Update

  • 15 December of 2023: Added compatibility to Nitro DS files (Hex-to-paint) and ability to create them (Paint-to-hex).
  • 5th July of 2024: Add compatibility to .b files

Similar Tool

paint-hex-convertor-gba-ds's People

Contributors

zigaudrey avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.