A recreation of the offline dinosaur game made for the GBA, with a pokemon twist.
The GBA ROM is available in Releases. You can download it from there and install an emulator to play it. Recommended emulator is mGBA.
Libraries and tools can be accessed using the dependency
and find_program functions.
| Project | Version | Dependencies | Programs |
|---|---|---|---|
| agbabi | 2.1.7 | agbabi |
|
| butano 1 2 | 17.3.0 | butano |
|
| gba-hpp | r180.e313a94 | gba-hpp |
|
| gba-link-connection | 6.2.3 | gba-link-connection |
|
| gbfs | 2002-02-07 | gbfs |
gbfs, insgbfs, lsgbfs, ungbfs |
| gbt-player | 4.4.1 | gbt-player |
mod2gbt, s3m2gbt, s3msplit |
| grit | 0.9.2 | grit |
|
| libfat 1 | 1.1.5.r2.g69543f0 | libfat |
|
| libgba | r136.0d46fc9 | libgba |
|
| libsavgba | 3.3.2 | libtonc |
|
| libseven | 0.22.3 | libseven |
|
| libtonc | r15.cc862ce | libtonc |
|
| libugba/libsysgba | 0.3.0 | libugba, libsysgba |
|
| libutil | r1.743f5d1 | libutil |
|
| maxmod | 1.0.15 | maxmod |
|
| minrt | 0.12.0 | minrt, minrt-multiboot |
makerom, gbafix-py, bin2s-py |
| mmutil | 1.10.1 | mmutil |
|
| posprintf | sdk-seven fork | posprintf |
|
| superfamiconv | 0.9.2.r16.ga5027f3 | superfamiconv |
As all the libraries and tools are compiled from source, the only things you need to have installed and in your PATH are:
- meson (at least version 1.1.0 or later)
- git
- A compiler for your system (
cl.exe,gcc, etc.) - A compiler for the GBA (
arm-none-eabi-gcc) - ninja
See the meson gba book for more information.
Here is the meson installer, which is the build system that is used for this project.
There are multiple ways of installing meson, but for most systems, installing it through Python is the best way to install it for the purposes of this project.
pip install --user mesonpipx install meson
pipx ensurepathpip3 install --user mesonMacOS should automatically add meson to PATH.
Windows you have to search for, which if it is a user install, should be in
C:\Users\<your username>\Roaming\Python\Python312\ScriptsAdd this to your User environment variables.
For Ubuntu, you have to add it to PATH manually. Run this command:
export PATH=$PATH:~/.local/binwinget install Ninja-build.Ninjabrew install ninjasudo apt install ninja-buildEither ninja or ninja-build for installation name. Use your system's package
manager for installation.
Please follow this guide for installing MSYS2. Take note of the path that you installed it in.
You may also install LLVM if you only need clang. Through winget, running the
following command:
winget install LLVM.LLVMOpen up your system environment variables. Find the PATH variable, and add this new directory path:
path\to\msys64\ucrt64\binwhere the path\to\msys64 is the path leading up to your MSYS2 install. By
default, this should be:
C:\msys64\ucrt64\binLLVM should be installed at C:\Program Files\LLVM. Add to your PATH variable:
C:\Program Files\LLVM\binto have clang in PATH.
Please follow this guide for installing MSVC. Make sure to install "Desktop Development with C++" workload when installing Visual Studio.
Keep note of your directory where you installed Visual Studio.
You may have to find the path to cl.exe yourself just to make sure. It should
look something like this:
path\to\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\<string of numbers>\bin\Hostx64\x64An example one would look like this:
C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.43.34808\bin\Hostx64\x64If you have installed X-code, clang should come installed by default on your
system. If you have not, run this command:
xcode-select --installThis should take a while, but it will install all basic requirements needed for C/C++ programming.
Here is the installer file for installing devkitPro. It will walk you through all the steps needed to install it. Keep note of the path that you install it in.
Only the GBA Development is required for this project, and installation may take a while and have some weird behavior, so be patient while it is installing.
devkitPro may have created some environment variables for you, so you have to go and edit them to make sure they are existing paths.
Open up your System variables and change DEVKITARM to
path\to\devkitPro\devkitARM, and change DEVKITPRO to path\to\devkitPro.
Default installation would change the system variables to
C:\devkitPro\devkitARM and C:\devkitPro respectively.
Open up your PATH variable and add the path to the bin folder inside of your
devkitARM folder. For example, if you used the default installation it would be
C:\devkitPro\devkitARM\bin.
Here is the link for devkitPro pacman, which is the package manager for installing devkitPro.
Make sure to install this and double click to run it. It may not allow you to the first time, so follow these steps:
- click 'Done'
- Head to Settings > Privacy and Security
- Scroll to the 'Security' section
- Under the "devkitPro ... " click "Open Anyway".
Once installed, restart your computer. Once you have restarted your computer, open up your terminal and type in this command:
sudo dkp-pacman -S gba-devRunning this command will give you options, choose the default option all.
This will install all your dependencies into /opt/devkitPro.
Run these commands:
export PATH="/opt/devkitpro/devkitARM/bin:$PATH"
export DEVKITARM="/opt/devkitpro/devkitARM"
You may have to refresh your terminal after doing these.
Install the devkitPro pacman package manager, following the steps closely given in the link. If on WSL, follow the extra step provided first.
Restart your terminal or run source ~/.bashrc or whatever refresh command
there is for your given shell. Then type in the command:
sudo dkp-pacman -S gba-devand click enter through the installation.
Now it should be installed in your /opt folder.
Run these commands:
export PATH="/opt/devkitpro/devkitARM/bin:$PATH"
export DEVKITARM="/opt/devkitpro/devkitARM"
You may have to refresh your terminal after doing these.
Use the following command in the directory to generate a suitable cross file, which allows for cross compilation:
Windows, using Powershell:
$f = Get-Content meson/gba.ini; $f[1] = "path = '$($Env:DEVKITARM)\bin'"; Set-Content dkarm.ini $fWindows, using MSYS2:
sed "2s|.*|path = '$DEVKITARM/bin'|" meson/gba.ini > dkarm.ini(Windows, using WSL) / Linux / MacOS:
sed "2s|.*|path = '$DEVKITARM/bin'|" meson/gba.ini > dkarm.iniMake sure to check dkarm.ini for conformation that your path variable has a
proper path, in quotes. If it doesn't work, try readding your arm compilers to
PATH and recreating the DEVKITARM path variable, as shown above.
Then run:
meson setup --cross-file=dkarm.ini buildfor the setup step.
To build, run:
ninja -C buildThe built ROMs (.elf, .gba) will be in the build directory. For WSL users, it
may be difficult finding where your GBA ROM is in relation to mGBA. It should be
in \\wsl.localhost\<distro>\path\to\biplup-run\build.
Run this command after you have already built it once:
meson setup --cross-file=dkarm.ini --wipe --reconfigure build && ninja -C buildThis should clear any build files in your build folder and should completely reconfigure your project.
Please install mGBA. It has great debugging tools and will make the process for developing a bit easier.
biplup-run is licensed under the zlib license. See LICENSE.txt for more information.
See the homepages of the bundled projects for their respective licensing.
This repository is based on the template made by LunarLambda, repository in the link here: repo link
Footnotes
-
Pulls in code from agbabi, gbt-player, libtonc, libugba, maxmod, posprintf and vgm-player. You may get linking errors if you try to combine those dependencies with butano. Use a partial dependency to access includes and build flags. ↩