VitaSmith / gust_tools

A set of utilities for dealing with Gust (Koei Tecmo) PC games files
Other
206 stars 23 forks source link

How the game handle font ? #26

Closed Roadou closed 3 years ago

Roadou commented 3 years ago

Hello,

First sorry for using this as an issue, because it's not really related to the tools you provided, It's more a question around the engine and how it read font textures,

I'm developping a translation tool for Atelier Ryza Ever darkness, and in some language, there is different character that aren't handled by the game currently, i've the font files, i can modify it to add the character, but i don't know where the game handle the position in the texture for showing the char.

Thanks for informations, and for the tools you provide. And once again sorry for using issues for that.

yretenai commented 3 years ago

I believe it hardcodes a character table for the 2 main fonts. At least the filenames are directly referenced by the assembly, and I can't find something that resembles a character table in the game files.

Roadou commented 3 years ago

I believe it hardcodes a character table for the 2 main fonts. At least the filenames are directly referenced by the assembly, and I can't find something that resembles a character table in the game files.

That's what I feared, i'll take a look at the assembly but, i don't hope for much, For most of the textures, table is on data/saves/ (example: Data\saves\ui_en\gen_styles) but yeah for font looks like it's different. Thanks for info.

Roadou commented 3 years ago

I've find some things that are maybe related to the char table image I keep digging around and see if i can find something for resolve my problem, but reverse engineering isn't my cup of tea.

VitaSmith commented 3 years ago

I'm going to close this issue, if that's okay with you, as this is tangent to gust_tools and I'm afraid that you will have to do your homework yourself on this.

marcussacana commented 3 years ago

@BelovedTomboyishGirl I did your 'home work' to you here 🤣 , I don't think will work with any gust game but I at least tested with 3 games, Atelier Sofia, Atelier Firis and Night of Azure. (If you game don't works create a issue in my repo and I can take a look when I'm free, yeah, I have a job and it's hard to have free time) Anyway, I published here: https://github.com/marcussacana/AtelierManager/, you still need the tool made by our friend @VitaSmith to extract the game files and the font texture, since my Font tool don't handle the g1t format. By the way VitaSmith, thank you for your tool, that helped me a lot. GustFontEditor_2yITWf9b0q Captura de Tela (21) Captura de Tela (16)