The Blazing Medal Engine is a Native Java PC Port of Fire Emblem Sacred Stones on the GBA.
It's written on top of the UPF, or Untitled Porting Framework. The framework is in active development alongside BME. The Fire Emblem Sacred Stones Decomp was used to create the port, by translating the C code and assembly to Java.
The code has quite a few different easter eggs thrown through out it, in the form of references to a lot of different media and stuff I enjoy. Some gets logged, some are just comments. Consider it a little treat of my devolvement into madness while writing the code
- Rom Ripping
- Rom Verification and Extraction
- LZ77 Decompression and FE8's Huffman Decoding
- Ripping of Character maps, cursor, UI Sprite Data, fonts and ONE real proc script
- RNG both FE8 RNG generators
- GBA Hardware
- palette RAM, VRAM, OAM, and Video Registers
- Backgrounds - 4Bit Tiles, flipping, scrolling and priority
- Sprites
- Effects - Windows 0/1, blending, brighten, darken
- Scanline Effects - HBlank and VCount Hooks. Registers and palettes recorded per line
- Input
- Game Loop
- Fixed GBA-Tick rate. FE8 frame order and game clock
- Procs. FE8's task system. Logs unimplemented Routines
- Key Logic. new presses, auto-repeat and FE8's every other frame pulse
- Sprite System
- Cursor- Animation, Movement, held-direction repeat and fast movement
- Maps - Loading Chapter maps from ROM
- Camera - Follows Cursor and Scrolls larger maps
- Text - FE8's fonts
You can pick a chapter by changing the value inside ChapterLoader.loadChapter(dataFile, CHAPTER_INDEX); CHAPTER_INDEX 0 is the tutorial map. Experiment with numbers to see different maps.
The following is implemented and working:
Ram: Sure.
Graphics Card: Anything that supports OpenGL 4.6
Run ./gradlew installDist. The folder that gets created is located inside the ./upf-core/build/install folder, when we refer to the ./blazing-medal folder we really mean ./upf-core/build/install/blazing-medal-engine/bin/blazing-medal folder. Place your Fire Emblem Sacred Stones cart inside the ./blazing-medal/data folder under the name, fe8.gba. Execute the file by running ./blazing-medal-engine The cart can be removed after the game has fully launched and the sacred.udh file exists. The game runs completely off the sacred.udh file.
See below
See below
Q: Was AI used at all in the making of this port?
A: As an assistant only. I use Claude, but I do not allow Claude to write any code. It can provide pseudo code, but can't write to any files, nor provide compilable Java Code. I started this port to do two things. Build a modular porting framework for different types of Console PC Ports, and to learn more about game development and design.
Q: Do you provide the assets?
A: No. You'll need to have a legal copy of Fire Emblem Sacred Stones for the GBA. The Blazing Medal Engine will rip the assets from the cart, repacking them into a .udh file, or Untitled Porting Data Holder file.
Q: Is there a Windows Binary?
A: Not built. If you clone the project, you can provide the Windows natives for LWJGL3, but at this point in time, I'm not sure if there is Linux semantics pushed in the code. I use Linux as my daily driver, not Windows.
Q: Will there be a MacOS Binary?
A: Nope, and I don't plan on making one either. The GBA Shaders are utilizing OpenGL 4.6 by choice, and MacOS dropped support for OpenGL during version 4.1.
Q: Can I use UPF to port a game myself?
A: Yes! Check out UPF to get started.
Q: What can I do with modding?
A: When the port is functional, and has been modernized you should be able to create custom items, weapons, classes, skills, enemies, etc. But currently, nothing. The current scope right now is to port the code, then once it's functional, modernize the code so it's no longer using GBA style functionality, and uses more modern game dev approach. Allowing for finer grain control over the data, while still functioning the way the game played on the GBA.
"Copyright (C) 2026 Azraein".
"Fire Emblem Sacred Stones" Game Assets are not covered by the license and are not redistributed.
Do not use the names "Blazing Medal Engine" or "UPF" as your own in forks.
Fire Emblem Sacred Stones belongs to Intelligent Systems and was published by Nintendo.
