Quote from: Crimson Wizard on Fri 19/05/2023 17:06:36All of this depends on:
- Which letters does the font have and which indexes they use.
- Which letters do you use in TRS and which encoding (utf, ANSI, other) do you save in. The encoding of your TRS defines the values that letters are going to be represented with. Some letters always save in the value range of 0-127 (this refers to punctuation symbols, and basic latin letters), others will depend on encoding.
For example, if in font they have "ä" in standard place of "$", then you may get to display "ä" simply by putting "$" in the TRS.
For another example, if their font corresponds to ANSI-1252, then your TRS should be saved exactly in ANSI-1252 in order to match all letters.
If they don't have "ä" at all in their game's font, then there's no other way than providing another font.
Here's the archive containing our own command line tools existing so far:
https://www.dropbox.com/s/6wfl3foo3jb9iyu/agstools-360.zip?dl=0
(most of them are only useful when you're compiling the game from sources though)
inside there's a program called agsunpak, it unpacks the AGS game package. It's used from command line like "agsunpak.exe gamefile outputdir". For example: "agsunpak.exe game.exe mydir" or "agsunpak.exe game.ags mydir" (if the game data is in "*.ags" file).
You could use it to get the fonts out of the game and then analyze them using a WFN editor.
One editor may be found here: https://www.adventuregamestudio.co.uk/forums/modules-plugins-tools/editor-plugin-wfn-fonteditor/
There has been another older one by Radiant, somewhat easier to use, but I don't have a download link for it.
First of all, thank you very much for the tools. The agsunpak is very useful. I have tried the Tools and managed to load the .wfn file into the WFN editor.
Now, as you mentioned above, I could simply modify a rarely used character in the editor to the characters I need (the modified characters need to be adjusted accordingly in the .trs file). Then, I would scale it correctly, save it, rename it, and move it to the game folder.
In theory, this should work, right? Or am I missing something in my thinking process?