Romhacking.net

Romhacking => ROM Hacking Discussion => Topic started by: lastdual on October 23, 2020, 08:14:22 am

Title: About that Beyond Oasis font
Post by: lastdual on October 23, 2020, 08:14:22 am
Is there any way to get at the font for Beyond Oasis/Story of Thor? It's always bothered me how it seems as if the font is too large for the space it's written into, thus giving the appearance of the black outlines getting cut off here and there.

Normally I would just replace the font with a tile editor, but seeing as I can't find it, I'm guessing there's some compression going on :(

(https://i.imgur.com/HXulQOM.jpg)
Title: Re: About that Beyond Oasis font
Post by: Anime_World on October 24, 2020, 02:40:10 am
Yeah, you are right! Font graphics are compressed at 0x16943C 2bpp linear mode.
Data are decompressed into RAM, converted to 4bpp at 0x6F00 and copied via DMA to VRAM at 0xF4E0.

Title: Re: About that Beyond Oasis font
Post by: lastdual on October 24, 2020, 01:19:39 pm
Is there a tool I could use to decompress & recompress the rom? I'm afraid actual coding is a bit beyond my skill.
Title: Re: About that Beyond Oasis font
Post by: Anime_World on October 26, 2020, 12:00:18 am
First, you need to learn how to debug the decompression routines to understand how it works. After this, you are able to create the tools.
Other solution is dump the original font from VRAM, insert at free space and change routines to load uncompressed graphics instead compressed graphics.
Do not give up!
Title: Re: About that Beyond Oasis font
Post by: Anime_World on December 13, 2020, 01:24:25 pm
https://github.com/hansbonini/smd_beyondoasis

This my repo for Beyond Oasis translations with font patched.
Now you can hack the font to remove outline.
Just change constant ptbr_translation to 0 and assemble with bass.

(https://cdn.imgpaste.net/2020/12/11/OOA37.md.png) (https://www.imgpaste.net/image/OOA37)
(https://cdn.imgpaste.net/2020/12/13/OPmup.md.png) (https://www.imgpaste.net/image/OPmup)
(https://cdn.imgpaste.net/2020/12/13/OPZmF.md.png) (https://www.imgpaste.net/image/OPZmF)