Editing graphics - Universal-Team/pkmn-chest GitHub Wiki
For the unconverted images used in pkmn-chest by default, see here
- Note: You don't need every image in your theme, any that are left out will simply use the defaults
.bmp
s
Part 1: Creating Note: Instructions will be for GIMP, but feel free to use another program if you know how
To save in the correct format in GIMP, you will need to convert your image to have an index of 16 colors. It's recommended to do this after making the image in RGB mode so it auto generates a palette for it.
Go to Image
-> Mode
-> Indexed
on the menu bar, then in the popup box choose Generate optimum palette
with the max colors set to 16
and click Convert
.
If your image is not the correct size, you can scale it with Image
-> Grow/Shrink image
and set it to the size of the original.
- Note: Smaller images will generally work fine, but larger ones may cause problems.
Finally, to export go to File
-> Export
on the menu bar, in the Name
box set the name to the image you're replacing with the extension .bmp
.
.gfx
Part 2: Converting to Note: If you edit the file in place in the repo then you can run
make
in the graphics folder to convert all the images
You will first need to download bmp2ds for your OS. If there isn't a build for your OS, download the source code file and run g++ bmp2ds.cpp -o bmp2ds
in the terminal
- Note: Maybe other compilers will work, I've only used g++
To convert your .bmp
s, run ./bmp2ds in.bmp out.gfx
(replace in
and out
with the names of the bmp and the output you want)
- Note: Many images need their palettes offset, if a file has a
.txt
with its name in the repo then you'll need run./bmp2ds in.bmp out.gfx -o ##
(replacein
andout
as before and replace##
with the number from the.txt
)