Skip to content

marcussacana/AquaPlusEditor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

My Ko-fi

Buy Me a Coffee at ko-fi.com

AquaPlusEditor - v2.2

This tool is focused to translate the .bin files of the Utawarerumono: Itsuwari no Kamen

Support BIN, PAK, FNT

Tested With: Utawarerumono: Itsuwari no Kamen

Notes:

The repacker to PSV/PS4 format isn't tested.

You don't need Encrypt the .sdat after decrypted, the game can read without encryption.

FNT Editor now support resize, but the PS3/PSV/PS4 support are disabled because isn't tested. (Already implemented, but disbled because must be tested)

To the Steam version load the font from the FNT file, you need patch the executable, See Executable Patches
You can need edit the Font.tex inside the Data\ENG\Texture\Font.tex too.

Executable Patches:

Format:

  • Modification: "Patch Address" (Default Value, Patched Value)

Utawarerumono - Mask of Deception [Steam] (1149550):

  • [v1] Allways use FNT font: 0xB6206 (Default: 0x74, 0xEB)

  • [v1] Allways Half-Width Draw: 0xB6DFB (Default: 0x7706, 0x9090)

  • [v1] 28px Half-Width Character: 0x500410 (Default: 0x3F000000, 0x3EE00000) (Break the game, only for debug)

  • [v2] Allways use FNT font: 0xB78F8 (Default: 0x74, 0xEB)

  • [v2] Allways Half-Width Draw: 0xB84ED (Default: 0x7706, 0x9090)

  • [v2] 28px Half-Width Character: 0x502330 (Default: 0x3F000000, 0x3EE00000) (Break the game, only for debug)


Utawarerumono - Mask of Truth [Steam] (1151440):

  • [v1] Allways use FNT font: 0xD73BD (Default: 0x74, 0xEB)
  • [v1] Allways Half-Width Draw: 0xD7FB2 (Default: 0x7706, 0x9090)
  • [v2] Allways use FNT font: 0xD8D5F (Default: 0x74, 0xEB)

Screenshot:

Original FNT:

http://web.archive.org/web/20190304203349if_/https://track9.mixtape.moe/uuaqwc.jpg

With custom FNT: https://web.archive.org/web/20231016214625im_/https://camo.githubusercontent.com/d831c2f44ca100fcafc6d991c228c789ee3ee17078ff97dbdf270ec60212b73e/68747470733a2f2f6d656469612e646973636f72646170702e6e65742f6174746163686d656e74732f3332323631333132383835303434303139322f3435393534333434353938383434323132372f756e6b6e6f776e2e706e67

Resize the Font

After resize the font, you must update the hardcoded float point to match with your font size.
This can be found near where the game select the full width/half width spacing.
Assembly form:

  • 0xb6df8 in Mask of Deception [Steam v1]
  • 0xb84ea in Mask of Deception [Steam v2]
  • 0xd9951 in Mask of Truth [Steam v2]
    image
    If you modify this code to be like this:
    image
    Where 0x3ECCCCCD is 0.4f
    this will force the game use less space for each character and allow in the case of Mask of Deception [Steam]
    put up 49 characters per line instead the default 39 character per lines. This can help a lot your translation.
    image

Reduce Space Between lines

By default utawarerumono only has space for 3 lines per dialog, and this is basically thanks to the empty space the game leaves between each line
image
We can solved that by patching at 0xB79E7 (Deception Steam v2) or 0xD8E4E (Truth Steam v2)
image
Where xmm0 is the space between the lines, so, basically, we just need decrease that value a bit.
but there has no enought space to put instructions, so, you will need create a new section in the game executable and jump to that section from the movss [..], xmm0. Now, with a small code like this:

@LineSpaceMod:
call @EIP
@EIP:
pop ECX

mulss xmm0, dword ptr [ECX+0x11]
movss dword ptr ss:[esp+0x24], xmm0
jmp SpaceModRet ; jmp to the instruction after the movss [...], xmm0
@DW:
	dd 0x3F19999A ; = 0.6f

Notice that we are replacing the ECX register in this code, but after this code the game discard this register, then if you use in another version of the game you must ensure if you can use this register. And we are changing the original space size by 6/10 his original size, you can just update that dd value to match with your font size. and this will be the final result:
image
Space for more 2 line :), well, but to me only one line is enought since the font size is already reduced.
And notice that will broke some menus, like the save one. I have no time to fix it now, since it will require debugging and It's hard to debug windows games under linux :/
Good lucky with your translation.

About

AquaPlus Script Editor

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages