Projects to introduce utf8-decoding for translation and development to fireemblem6, aimming to enable users to directly insert anti-huffmaned utf8 strings via FEBuilderGBA or buildfile.
Directly get the release, and apply the patch to fe6 clean rom, and use the generated gba rom as the baserom to do more hacks.
// Recommanded definition for buildfile
#define FreeSpace 0x00A00000
#define TextTable NewTextTable
PUSH
ORG 0x00800000
TextTable:
POP
<!> You need a linux envirment!
For Windows user, it is recommended to use a ubuntu server or try WSL.
- Install sub-modules
cd tools
git clone https://github.com/MokhaLeee/FE6-CLib.git
git clone https://github.com/StanHash/EventAssembler.git --recursive
- Install dependence
sudo apt-get -y install binutils-arm-none-eabi \
gcc-arm-none-eabi build-essential cmake re2c ghc \
cabal-install libghc-vector-dev libghc-juicypixels-dev \
python3-pip pkg-config libpng* bsidff
pip install pyelftools PyInstaller tmx six
- Install DevkitPRO
wget https://apt.devkitpro.org/install-devkitpro-pacman
chmod +x ./install-devkitpro-pacman
sudo ./install-devkitpro-pacman
sudo dkp-pacman -S gba-dev
# Export vars
export DEVKITPRO=/opt/devkitpro
export DEVKITARM=${DEVKITPRO}/devkitARM
export DEVKITPPC=${DEVKITPRO}/devkitPPC
export PATH=${DEVKITPRO}/tools/bin:$PATH
-
Build EA
Get into tools/EventAssembler and then refer to EA build note to install .NET.
# Install .NET
# refer to: https://learn.microsoft.com/en-us/dotnet/core/install/linux-scripted-manual#scripted-install
wget https://dot.net/v1/dotnet-install.sh -O dotnet-install.sh
chmod +x ./dotnet-install.sh
sudo ./dotnet-install.sh --channel 6.0
export DOTNET_ROOT=$HOME/.dotnet
export PATH=$PATH:$DOTNET_ROOT:$DOTNET_ROOT/tools
# Build EA
cd tools/EventAssembler
./build.sh
-
Put Fire Emblem: Fūin no Tsurugi clean rom named fe6.gba in the repo directory.
-
build:
make
You can configure on lang.mk to choose how much utf8-characteres to be installed, for now, EN and ZH-CN is supported.
- UTF8 decoding method and fonts collection are ported from FEHHR by @laqieer
- Hardcoded string is ported from fe6-wizardry by @StanHash