News: 11 March 2016 - Forum Rules
Current Moderators - DarkSol, KingMike, MathOnNapkins, Azkadellia, Danke

Author Topic: About that Beyond Oasis font  (Read 2119 times)

lastdual

  • Jr. Member
  • **
  • Posts: 91
    • View Profile
About that Beyond Oasis font
« 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 :(


Anime_World

  • RHDN Patreon Supporter!
  • Jr. Member
  • *****
  • Posts: 43
    • View Profile
Re: About that Beyond Oasis font
« Reply #1 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.


lastdual

  • Jr. Member
  • **
  • Posts: 91
    • View Profile
Re: About that Beyond Oasis font
« Reply #2 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.

Anime_World

  • RHDN Patreon Supporter!
  • Jr. Member
  • *****
  • Posts: 43
    • View Profile
Re: About that Beyond Oasis font
« Reply #3 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!
« Last Edit: October 26, 2020, 12:05:38 am by Anime_World »

Anime_World

  • RHDN Patreon Supporter!
  • Jr. Member
  • *****
  • Posts: 43
    • View Profile
Re: About that Beyond Oasis font
« Reply #4 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.




« Last Edit: December 13, 2020, 03:31:10 pm by Anime_World »

lastdual

  • Jr. Member
  • **
  • Posts: 91
    • View Profile
Re: About that Beyond Oasis font
« Reply #5 on: February 03, 2021, 01:44:16 pm »
So thanks to Anime_World, I was able to access and redesign the fonts, but I am unable to run the script above due to a string of problems with the software requirements.

Here are my updated fonts: https://mega.nz/file/k98E1CKI#KhvkVX6ixBIm804NobBuzVgiu5RbLlxiFb8Nr_jMHoU

Could someone who is able to run the script grab the font files above (they should replace the files in smd_beyondoasis-master/gfx) and share an IPS file that would allow for testing?