This is a collection of command-line tools for viewing and editing file formats used in AliceSoft games.
First install the dependencies (corresponding Debian package in parentheses):
Then fetch the git submodules,
git submodule init
git submodule update
(Alternatively, pass --recurse-submodules
when cloning this repository)
Then build the tools with meson,
mkdir build
meson build
ninja -C build
alice-tools can be built on Windows using MSYS2.
First install MSYS2, and then open the MINGW64 shell and run the following command,
pacman -S flex bison \
mingw-w64-x86_64-gcc \
mingw-w64-x86_64-meson \
mingw-w64-x86_64-pkg-config \
mingw-w64-x86_64-libpng \
mingw-w64-x86_64-libjpeg-turbo \
mingw-w64-x86_64-libwebp
To build the GUI, you must also install Qt:
pacman -S mingw-w64-x86_64-qt5
Then build the executable(s) with meson,
mkdir build
meson build
ninja -C build
The alice
executable (located at build/src/alice.exe
) should be standalone and portable.
The galice
executable requires some extra files to be shipped with it due to Qt. Run the following commands to copy the required files for Qt,
mkdir deploy
cp build/src/galice.exe deploy/
windeployqt deploy/galice.exe
At this point, there are still some DLLs missing from the deploy
directory. You can run the following command to determine the required DLLs,
ldd build/src/galice.exe | grep mingw64
If you’ve followed the above instructions to build alice-tools from source, run
ninja -C build install
to install it.
alice-tools can be installed via nix with the following command:
nix profile install git+https://github.com/nunuhara/alice-tools.git?submodules=1
You must have flakes enabled (consult the nix documentation for how to enable flakes).
The provided Windows builds are portable, so no installation is required. Simply run the provided executable (alice.exe) from a command prompt.
All of the tools are accessed through the single alice
executable. Running alice
or any command without arguments will print the relevant usage instructions. E.g.
alice
alice ain
alice ain dump
The currently implemented commands are:
alice acx build - Build a .acx file from a .csv
alice acx dump - Dump the contents of a .acx file to .csv
alice ain compare - Compare .ain files
alice ain dump - Dump various info fram a .ain file
alice ain edit - Edit a .ain file
alice asd build - Build a save file
alice asd dump - Dump a save file
alice ar extract - Extract an archive file
alice ar list - List the contents of an archive file
alice ar pack - Create an archive file
alice cg convert - Convert a CG file to another format
alice cg thumbnail - Create a thumbnail for a CG file
alice ex build - Build a .ex file
alice ex compare - Compare .ex files
alice ex dump - Dump the contents of a .ex file
alice flat build - Build a .flat file
alice flat extract - Extract the contents of a .flat file
alice project build - Build a .pje project file
See README-ain.md
See README-ex.md
See README-acx.md
See README-flat.md
The source code is available on github.
You can report bugs on the issue tracker at github, contact me via email at nunuhara@haniwa.technology, or find me on /haniho/.
asd dump
and asd build
commands for save file editing#BATCHPACK --afa-version=1 --backslash
)--split
option to ex dump
ain dump
to dump HLL stubs for xsystem4cg thumbnail
command for thumbnailing AliceSoft’s image formats--function
option to ain dump
for dumping a specific function onlyex edit
command for making incremental edits to .ex filesar pack
commandflat extract
and flat build
)project build
command for building .pje files (replaces ain edit -p
)cg convert
command for converting between CG typesar pack
command on Windowsar pack
command for creating AFAv2 archivesain edit -t
command--inline-strings
options from aindump and aineditS_PUSH
instructions, etc.--input-encoding
and --output-encoding
options to control the text encoding of input and output files--transcode
option to ainedit to change the text encoding of an ain file--split
option to exdump would produce garbled filenames on Windowsainedit -t