The double-byte code '7D 'problem has been solved

gvx

First time out of the vault
paste.plurk.com/show/851883

7D.JPG


The double-byte code '7D 'problem has been solved
To fallout2 example:

:00485001 83F8FF cmp eax, FFFFFFFF
:00485004 750C jne 00485012

Modified to:

:00485001 E90AB22600 jmp 006F0210

Add :

:006F0210 3D80000000 cmp eax, 00000080
:006F0215 7E1A jle 006F0231
:006F0217 89D0 mov eax, edx
:006F0219 880C06 mov byte ptr [esi+eax], cl
:006F021C 89D8 mov eax, ebx
:006F021E 42 inc edx
:006F021F E8005DDDFF call 004C5F24
:006F0224 89C1 mov ecx, eax
:006F0226 89D0 mov eax, edx
:006F0228 42 inc edx
:006F0229 880C06 mov byte ptr [esi+eax], cl
:006F022C E9C74DD9FF jmp 00484FF8

* Referenced by a (U)nconditional or (C)onditional Jump at Address:
|:006F0215(C)
|
:006F0231 83F8FF cmp eax, FFFFFFFF
:006F0234 0F85D84DD9FF jne 00485012

* Possible StringData Ref from Data Obj ->"
Error reading message file - "
->"EOF reached."
|
:006F023A 68D0B85000 push 0050B8D0
:006F023F BF03000000 mov edi, 00000003
:006F0244 E8FF6CDDFF call 004C6F48
:006F0249 83C404 add esp, 00000004
:006F024C E9F14DD9FF jmp 00485042
 
.Pixote. said:
For us dumb dumbs, exactly what are you doing with the code...
He once tried to make sfall compatible to Traditional Chinese FO2 exe for translating RP 2.x and other mods depending on sfall, but the result didn't go well.

Now he's working on another way: hacking/"re-localizing" US 1.02d exe to display Chinese characters, so that people can just use debugging ver. sfall with ExtraCRC option. The current progress he posted on a Chinese Fallout fourm looks much more promising than the previous sfall porting attempt. But there were still some display issues, mostly related to an infamous (for Chinese programmers) problem: because Traditional Chinese charset (Big5 encoding) is double-byte, some chars ended with certain ASCII codes (like 7D here, right curly bracket, }) will be misinterpreted in ANSI environment and cause problems. A pretty common issue in early days for localizing programs to Traditional Chinese.

From his Google+, I think he just tried to say the problem has been solved. Don't know why he posted it here though.
 
Back
Top