Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Karlock

Pages: [1]
1
1 Chinese Character= 2 bytes
1 Chinese punctuation(full-width)=2 bytes
I'd say most likely it's not possible to translate into Simplified Chinese then,
War2 is based on 1-byte charset, you have to use 2-byte. That is a problem.

I'd say you need to hook some functions drawing messages. To catch all the requests drawing message and change them to your logic.
I don't mean it's not possible, chinese version for DOS do that most likely. But that requires some kind of reverse engineering in the exe file.

Not sure if anybody here can do that.

But can you help with the Wargus? Use that engine, it becomes possible. Replace bitmap font print function with TTF?

2
Well, i think i know what to do with that:
1. I can draw any symbols on the canvas, to rasterize them. For example, i can get Unicode. I can draw them selecting any size i need.
2. next step - to convert appeared raster to war2-.fnt file.

So, i still need to know 2 things from you:
1. what are the codes of Simplified Chinese letters? From "A" to "Z". To let me know what symbols to draw.
2. what codepage you use on your OS? What are ASCII-codes from "A" to "Z" in range 0-255?

That 2 things should be enough to make a war2 font. Just a little more of my time.

Simplified Chinese use codepage  GB2312/GBK/GB18030. (https://docs.microsoft.com/en-us/windows/desktop/intl/code-page-identifiers)

For GB2312 , It contains 682 signs and 6763 Chinese Characters and the GBK contains 21003 Characters . Characters of GB18030 are more than 70k .

I'm worrying about the size of the generated bitmap font, huge buffer needed. :'(

Pages: [1]