Bullfrog Engine graphic formats converter
Converts PNG file with given PAL colors to Bullfrog Engine graphic sprites or RAW images.
This tool converts .png
files into formats which are native to the game engine.
It can be used to create .raw
files, but also .dat
and .jty
sprite catalogues.
It requires either .png
or .txt
file with list of png images at input.
Additionally, there must be input pal file which stores palette used for the sprites.
This tool should build and work on any CPU architecture.
To build Bullfrog Engine graphic formats converter, you will need the following:
- GNU Autotools
- GNU C++ compiler
- development versions of the following libraries:
- libpng
- zlib
Once you've made sure you have the above, proceed with the following steps:
- go into the directory with
pngpal2raw
source release (containingres
,src
etc.) - do
autoreconf -if
to create build scripts from templates - do
./configure
to make the build scripts find required toolchain and libraries - do
make
to compile the executable file
You should now have a working pngpal2raw
executable file.
Here are specific commands required to compile the executable on Ubuntu linux.
Install the dependencies:
sudo apt install gcc-multilib g++-multilib lib32z1
sudo apt install build-essential autoconf libtool make pkg-config
sudo apt install libpng-dev
Now as our host is ready, we can start working on the actual pngpal2raw
sources.
Go to that folder, and generate build scripts from templates using autotools:
autoreconf -ivf
Next, proceed with the build steps; we will do that in a separate folder.
mkdir -p release; cd release
../configure
make V=1
The V=1
variable makes make
print each command it executes, which makes
diagnosing issues easier.
On success, you will have the executable.
Finally, you can copy the files to some installation folder, ie. pkg
:
make V=1 DESTDIR=$PWD/pkg install
This concludes the document.
Remember that with most console tools you can use --help
.