Version 0.2 - Palette changer
This update gives the ability to change the character and accessories color palettes, at runtime.
Currently, three palettes were added:
- Aurora, by DawnBringer (https://lospec.com/palette-list/aurora)
- Duel, by Arilyn (https://lospec.com/palette-list/duel)
- Sonic Robo Blast 2 v2.2, by PencilVoid (https://lospec.com/palette-list/sonic-robo-blast-2-v22)
There's also a new palette (LPC-512). This is the default palette with the color number reduced to 512 (actually 509).
In order to explain the process to create/change palettes, we need to first understand how the application loads its resources.
The application loads it's resources from the following locations:
- {USER_FOLDER}/CharGen/data/
- {APP_FOLDER}/../share/CharGen/data/
- {APP_FOLDER}/data/
- {USER_FOLDER}/CharGen/data/chargen.pak
- {APP_FOLDER}/../share/CharGen/data/chargen.pak
- {APP_FOLDER}/data/chargen.pak
{USER_FOLDER} is where user specific data files are stored (e.g. ~/.local/share/)
{APP_FOLDER} is where the chargen executable is located (e.g. /usr/local/bin)
The numbers indicate each location priority.
That way, if, for instance, the file {USER_FOLDER}/CharGen/data/data/character/race/zombie.race exists, then
the one inside the {APP_FOLDER}/data/chargen.pak will not be used.
The priority order is arranged so that loose files take precedence over the packed ones.
This allows users to add new items to the generator (and change existing ones).
Back to creating palettes.
The tools to do so are provided by the application. Issue chargen --help to get an explanation of these tools and their parameters.
I tried to make their description very thorough, and I hope the examples contained there better show how to use them.
First, every new palette is always based on an existing one, so let's first extract an existing one from the chargen.pak file (it's a regular .zip file).
Let's, for instance extract data/colormaps/lpc_509.cm and place it in {USER_FOLDER}/CharGen/data/data/colormaps/new.cm
Edit the file to change it's id and it's name. This new palette should now be available in the application.
Now, there's two ways to change it.
-
-
Create an image file, with the colors in this palette.
>> See the chargen export command. -
In a image application of your choice, change the colors of the image.
-
Update the palette with the new colors previously painted in the image file.
>> See the chargen match command.
-
Create an image file, with the colors in this palette.
-
- Get a image file with the colors of the palette to import (e.g. palettes download from lowspec.com).
-
Replace each color of the palette with the best match color found in the image.
>> See the chargen import command.
Either option gives a functional new palette that is immediately available in the application.
That's it for this update. Have fun.
Files
Get LPC Character Generator
LPC Character Generator
More posts
- Version 0.9 - Important bug fixes90 days ago
- Version 0.8 - More character varietyMay 05, 2024
- Version 0.7.1 - Major bugfixJan 13, 2024
- Version 0.7 - Export redoneJan 10, 2024
- Version 0.6 - Tidying things upNov 30, 2023
- Version 0.5 - Things are coming togetherNov 03, 2023
- Version 0.4 - Many more itemsSep 04, 2023
- Version 0.3.1 - Minor bugfixJun 18, 2023
- Version 0.3 - Wouldn't it be cool if...Jun 12, 2023
Comments
Log in with itch.io to leave a comment.
How do you install this on Linux?
The intent is to just extract the tar.gz, and run the binary chargen.
I built the binaries for Linux with most of the libraries statically linked, in an effort to not require users to install dependencies.
However, given the Linux ecosystem I don't know of a way to unsure it will work on all platforms.
That's why in this last update I also created an AppImage file. That format also packs all the dependencies and tries to be distribution independent. To use it, just download the AppImage file, make it executable and run it (no need to install anything):
$ chmod a+x CharGen-0.2-x86_64.AppImage
$ ./CharGen-0.2-x86_64.AppImage
Hope this helps