besteon / Ironmon-Tracker

A Lua script for the Bizhawk/mGBA emulator compatible with Pokemon Fire Red, Leaf Green, Ruby, Sapphire, and Emerald that tracks relevant data for the IronMon challenge.
MIT License
122 stars 44 forks source link

Adding Japanese game support #379

Closed UTDZac closed 1 year ago

UTDZac commented 1 year ago

This adds compatibility support to allow the Tracker to play Japanese FireRed ROMs, similar to how it can play other non-English games. This is only now possible because of the support for Japanese character rendering in Bizhawk 2.9. As for mGBA, it technically displays these text characters fine, but the formatting is still messy because there is no way to properly determine the length of a UTF16 string in this context.

The translations were imported from this Github repo.

I had to do some hacking in GameSettings to allow for Japanese ROM addresses, mostly cause EWRAM and IWRAM were different. I want to say that 99% of the addresses are correct, but it's possible some of them may not work.

image

UTDZac commented 1 year ago

Forgot to note, the changes to Battle.lua were mostly to account for nil addresses or undefined ability addresses.