Fullwidth to halfwidth..?

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
sigroon365
Posts: 330
Joined: Fri Nov 21, 2014 4:03 am

Fullwidth to halfwidth..?

Post by sigroon365 »

This game uses font.pck(font table + raw image) but there's no width and height values.
Just X position and Y position.

Code: Select all

font.pck
ィ   3F 76 DB 6E 3F 72 DF 2E
サ   3F 7B 6D B7 3F 72 DF 2E
ン   00 00 00 00 3F 79 6F 97
シ   3C 92 49 25 3F 79 6F 97
コ   3D 12 49 25 3F 79 6F 97


For the past 2 years(not a joke), I have tried to change width of halfwidth glyph's but it is too difficult for me. The game seem to get glyphs X and Y position from font.pck and draw its text on the screen such as X+10, X+20, X+30... etc. It can't read ascii code. It reads only halfwidth of Japanese glyphs(ィ, サ, ン..) and fullwidth Shift-JIS.
Image

Code: Select all

…ィ日から、この新しい部屋で新しい生活が始まる。

The point is that I want to divide 'width of Japanese halfwidth glyphs' into half. I mean, removing blank space. Can someone fix it? The game uses DRM so, it needs to fix dump file of exe to make a loader(memory patch). I can make a loader, if someone can help me then let me introduce what values should I change in hex editor. I'm not good at ollydbg.
Last edited by sigroon365 on Wed Aug 05, 2015 5:21 am, edited 1 time in total.
sigroon365
Posts: 330
Joined: Fri Nov 21, 2014 4:03 am

Re: Fullwidth to halfwidth..?

Post by sigroon365 »

Previous file was broken. Here is new sample https://www.sendspace.com/file/wnjl0y
'main.bin' is dump file. But no one seem to be interested in...