ZQF-ReVN / RxPJADV

PJADV Engine Tools. | textdata.bin scenario.dat
8 stars 1 forks source link

[HELP] How to Change / Reduce Font Size of this game #5

Open Chitose7 opened 3 days ago

Chitose7 commented 3 days ago

Hi Dir-A,

I'm a JP ==> English translator, and I'm having issue with the font size of this PJADV game (it's way too big)

This is the game I'm working on: https://vndb.org/v38518 or https://dlsoft.dmm.co.jp/detail/btup_0017/ DMM link: https://sample9.dmm.co.jp/digital/pcgame/btup_0017/btup_0017t.zip

Please help me to fix the 1) Message text font size + 2) Log font size , thank you in advance!

Dir-A commented 3 days ago

I haven't had time lately. you can contact this guy first @prowaynes or you can check the closed issues first https://github.com/ZQF-ReVN/RxPJADV/issues?q=is%3Aissue+is%3Aclosed

prowaynes commented 3 days ago

I'll answer later in the evening, I'm working.

prowaynes commented 2 days ago

Good evening, I don't have much time during weekdays, but here's what I've already done.

In one of the game distributions, the EXE was broken and neither dbg nor IDA could fully read it, but in another distribution, the file was intact, and that's the one I analyzed.

First, according to the instructions: link to instructions, I changed the character encoding, removed the font selection, and set it to Arial Regular. I also made the font bold by removing part of the code and adding (mov edx, 2BC).

Screenshot 2024-10-22 213511

I also removed the block with 0x9F to modify the classic border.

Screenshot 2024-10-22 213622

I removed the linkage to fontdata.xxx by deleting the call to that part of the code, thereby forcing the game to use GDI. (1)

Screenshot 2024-10-22 213713

(2)

Screenshot 2024-10-22 213741

(3)

Screenshot 2024-10-22 213937

The only thing I didn't understand is why I can't read the DUMP and check the opcode. Even though I set a breakpoint, it didn't help, and it's not entirely clear how to search for the opcode. I think the esteemed Dir-A will find time and help with locating the opcode.

Screenshot 2024-10-22 213144

The opcodes are needed to change the font size and line behavior.

I am also attaching the modified EXE and the original one.

bokutane.zip

Chitose7 commented 2 days ago

Ok, I hope @Dir-A could help us (when he's free)

Also here I attached the full game 1) archive.dat 2) exe file 3) modified dltextdata.bin 4) dlscenario.dat : https://gofile.io/d/iC8JcM