Warcraft II Forum

Help & Support => Support Requests => Topic started by: Jack Chen on January 21, 2019, 08:44:29 PM

Title: Volunteer here glad to translate the game into Simplified Chinese
Post by: Jack Chen on January 21, 2019, 08:44:29 PM
Hi there. I'm glad to be a volunteer to translate the game, Warcraft II Combat Edition into Simplified Chinese. Would it be possible for me to do the job?
Title: Re: Volunteer here glad to translate the game into Simplified Chinese
Post by: iL on January 23, 2019, 01:02:15 AM
Hi!
I'd say, most likely yes!
Russian team made a translation to russian in 2007, i took part is that (checking and packing that language files), so, you can do the same with Simplified Chinese i think.

What you need to do is to unpack war2dat.mpq into a folder, then edit about 80 files in rez-folder using several resource editors.

I can send you that soft if you interested in that.
Title: Re: Volunteer here glad to translate the game into Simplified Chinese
Post by: Jack Chen on January 23, 2019, 01:25:31 AM
That's amazing. Send me the tools please. I'd like to have a try. If I were able to do that, I would send you the final work when I finish the job. Thanks a lot!
Title: Re: Volunteer here glad to translate the game into Simplified Chinese
Post by: iL on January 23, 2019, 02:49:19 AM
I also forgot: need to make several new fonts for that job.
I used russian font from russian DOS-version of War2TD. Required to change it from different format, but i had that.
Not sure there is Simplified Chinese font for war2 exist anywhere. Also not sure, maybe font from starcraft will be compatible if exists.

Are you sure there's no any version of war2 in Chinese?
Also, is there any version of starcraft 1 in Simplified Chinese? Can save much time if it is.

I looked into my projects:
About 12 years ago I made a converter to change places of different letters inside 1 font file. I also can export font into .bmp-file.
So, i can add some code to import .bmp file into .fnt also.
Title: Re: Volunteer here glad to translate the game into Simplified Chinese
Post by: iL on January 23, 2019, 03:11:50 AM
Files should work on all windows since probably 95, just tried on win7 - also work fine.

winmpq: to extract files from .mpq-archives. And after editing that files - to pack them back into .mpq
After first start the program you should click options - file lists - and there add file list called "Warcraft II BNE.txt". Otherwise you will not see filenames in mpq-archive.

Tblpad: to edit .pad-files extracted from archive.

Tbled102: 1 more to editing .pad-files.
Looks like tblpad is what you need. But maybe there are some troubles with it, then use tbled102.

BinEdit: to edit .bin-files.

If it will require VB40032.DLL - use it from winmpq archive.
Title: Re: Volunteer here glad to translate the game into Simplified Chinese
Post by: Jack Chen on January 23, 2019, 03:52:33 AM
I found an old ISO of Warcraft II TOD Chinese version. Hopefully it may help. By the way, great thanks to your description!

https://mega.nz/#!MxwmUKhA

NJFd0oiCndZKJZyefF84j_LqWUZC7Bq5uHwFt9Ic74I
Title: Re: Volunteer here glad to translate the game into Simplified Chinese
Post by: iL on January 23, 2019, 04:09:39 AM
That's nice! That will help a lot!

Resource files are not compatible between DOS and BNE versions, we made the same job in 2008: to get russian messages from DOS-version, to edit one of .tbl or .bin -files in BNE and insert that russian message there.
But some files can be converted. Art can be just copied. Unit voices can also be copied, you just need to rename files (their names are different).
You can also copy videos (if exist).
So, existing DOS version is a great help to translate.

Are you sure there's no chinese BNE version?
Such translation is quite a big job. Would be sad to make it if somebody already did.
Title: Re: Volunteer here glad to translate the game into Simplified Chinese
Post by: iL on January 23, 2019, 04:43:58 AM
Hm, unpacked and installed that chinese version:
Looked into DATA dir and see all the files: INSMAIN.INS INSSTR.INS MAINDAT.WAR MUDDAT.CUD REZDAT.WAR SFXDAT.SUD SNDDAT.WAR STRDAT.WAR
- are less than in russian version.
but there are 2 more files in chinese: FONTBIG.CFN FONTMED.CFN
I never saw such files in war2td builds. And i have no idea how to unpack them.
That can be a problem, if they contain some interesting chinese data, though i'm not sure.

Also, war2 have been installed and started sucessfully (just requires the original CD).
Title: Re: Volunteer here glad to translate the game into Simplified Chinese
Post by: iL on January 23, 2019, 08:06:05 AM
Well, i unpacked all the fonts (i think so) from known archives of your chinese dos version.
There are 8 font files at all (different sizes), but only 1 on them contains some interesting letters that could be chinese letters. Here they are:
Code: [Select]
let:32:num let:33:num
15
25
25
25
25
25
45
55
15
25
55
55
let:34:num
1515
2525
2525
5555
5555
let:35:num
--15-15-
--25-25-
-2212225
-5242455
-42525--
2212225-
5255245-
545545--
-55-55--
-5--5--0
let:36:num
--15-
--25-
42225
24545
42455
55245
24525
42245
52555
-25--
-55--
-55-0
let:37:num
-25--25
2425425
2525245
424425-
555245-
-5425--
--245--
-425525
-245242
-25-252
-55-424
-5--555
let:38:num
--424--
--2425-
--2525-
--4245-
-4245--
42225--
24524--
2554245
2452225
4224255
5445525
5555555
-555--5
let:39:num
215
425
255
555
550
let:40:num
-425
-245
425-
245-
25--
15--
25--
24--
425-
5245
5425
-555
let:41:num
24--
425-
5245
5425
-525
-515
-525
-425
-245
4255
245-
5550
let:42:num
---2----
-252525-
-522255-
22212225
55222555
52525255
-552555-
--555--0
let:43:num
--25--
--25--
221225
552555
552555
--55--
--55-0
let:44:num
225
425
245
550
let:45:num
22125
55555
55555
let:46:num
25
45
55
let:47:num
----24
---425
---245
--425-
--245-
-425--
-245--
425---
245---
25----
55----
5----0
let:48:num
42224-
245425
255525
25-525
15--15
25--25
25--25
24-425
422245
555555
-55550
let:49:num
415
225
515
515
-15
-25
-25
-15
-25
-55
-55
let:50:num
42225-
245225
255525
55-425
554245
-42455
42455-
2255--
221125
555555
555555
let:51:num
222125
444245
552455
-2225-
-44225
-55425
25-525
245225
422245
555555
-55550
let:52:num
----25-
---425-
--4225-
-42425-
424525-
2455245
2212225
5555245
5555255
----55-
----550
let:53:num
212215
255555
255555
22224-
555425
555525
---525
24-425
422245
544455
-55550
let:54:num
-42225-
424555-
245555-
255----
242124-
2245425
2555515
425-525
5222245
5544555
-5555-0
let:55:num
221125
444525
555425
---255
--425-
--245-
-4255-
-245--
-255--
-45---
-55--0
let:56:num
42124-
245425
255525
425245
522245
245425
155515
25-525
422245
544455
-55550
let:57:num
42225-
225425
255515
255425
422225
544245
555255
-5245-
-2455-
-455--
-55--0
let:58:num
25
25
55
--
25
25
55
let:59:num
-25
-25
-55
---
---
---
425
245
550
let:60:num
---25
--255
-255-
255--
525--
5525-
-5525
--555
---55
let:61:num
2222
5555
----
2222
5555
let:62:num
25---
525--
5525-
-5525
--255
-255-
255--
55---
5---0
let:63:num
42224-
245425
225525
55-245
552455
--2455
--455-
--55--
--15--
--55--
--55-0
let:64:num
--42122----
-42454425--
-145555425-
2455--5542-
25541245525
25-25425525
2--25525425
25-4124225-
525555555--
5425-------
-5421225---
--755555---
----555---0
let:65:num
---25---
---14---
--422---
--2225--
--2424--
-22522--
-245424-
4222222-
2255442-
12555222
555-5555
555-5555
let:66:num
221224--
4254225-
5155525-
5155225-
-221245-
-155424-
-2555425
-15-5525
-25-4245
22222455
5555555-
555555-0
let:67:num
-422255
4225225
2245525
2455555
2455-55
245----
245----
225----
4225425
5422245
-555555
--55550
let:68:num
212225--
4244225-
52555425
52555425
-25-5525
-25--525
-25--525
-25-5245
-2542255
2222245-
555555--
55555--0
let:69:num
2221225
4255425
5155545
515-555
-25-25-
-12225-
-25525-
-15-55-
-25-425
2222225
5555555
5555555
let:70:num
2221225
4255425
5155545
515-555
-25-25-
-12225-
-25525-
-15-55-
-25----
2225---
5555---
5555--0
let:71:num
-41224-
4245425
2455525
2555555
25--555
15-2215
25-4425
2455525
4244245
5422455
555555-
-5555-0
let:72:num
222-2125
424-4245
525-5255
515-515-
-25-525-
-221225-
-155525-
-25--15-
-25--25-
222-2225
555-5555
555-5555
let:73:num
2225
4245
5155
515-
-25-
-15-
-25-
-15-
-25-
2225
5555
5555
let:74:num
--22125
--54245
--55155
---525-
----15-
----15-
----25-
----25-
25-425-
421245-
555555-
-5555-0
let:75:num
2225--2125
4245--4245
525---2455
525--2455-
-2542455--
-242425---
-124524---
-2455424--
-25555424-
2125-52125
5555--5555
5555--5555
let:76:num
2225---
4245---
525----
525----
-25----
-25----
-15----
-25----
-25--15
2221225
5555555
5555555
let:77:num
225---5225
425---4245
5225-52255
5224-4225-
-24252515-
-15242425-
-25424515-
-25525525-
-25555415-
2225552225
5555--5555
5555--5555
let:78:num
225--215
424--245
5225-15-
5224-25-
-252525-
-142415-
-255225-
-255225-
-255525-
22255225
55555555
5555-555
let:79:num
-4225--
425425-
2455425
2555515
255-525
15---15
25---25
245--25
4244245
542245-
-55555-
--555-0
let:80:num
2212255-
42554245
51555245
-1--5145
-2---245
-1212455
-255555-
-15555--
-25-----
2225----
5555----
5555---0
let:81:num
--2124--
-2455245
22555225
245--425
25---525
15----15
25----25
225-2425
42444245
54212425
-5555525
--555545
------55
let:82:num
2221225--
42555225-
52555425-
525--525-
-25--245-
-2121455-
-254245--
-255425--
-2555245-
222555225
5555-5555
5555--555
let:83:num
42224-
245425
245525
225555
42245-
542245
-55225
245525
245525
422245
555555
-55550
let:84:num
21222115
25525525
45515545
5--15-55
---25---
---15---
---25---
---15---
---25---
--2225--
--5555--
--5555-0
let:85:num
22252215
52555255
525-5255
-25-525-
-15-525-
-25-515-
-25-525-
-24-525-
-244425-
-422245-
-55555--
--555--0
let:86:num
2225-225
4245-245
525-5255
-24-425-
-425245-
-525255-
-52425--
--4245--
--5255--
--525---
---55---
---55--0
let:87:num
212-2125-212
425-5255-524
525-524--525
5245-245-425
-425-525-245
-52455255245
-5425242525-
-5524242245-
--54255425--
--55255525--
---55--555--
---55--555-0
let:88:num
21252215
4245-245
5425425-
-524245-
-54225--
--5225--
--24245-
-425225-
-2455255
22252225
55555555
55555555
let:89:num
52125--2125
55245--4255
-542554245-
--5424245--
---54245---
----525----
-----25----
-----25----
-----25----
----2225---
----5555---
----5555--0
let:90:num
1122225
255-245
5552255
5--245-
5-2255-
--245--
-2255--
-245---
2245-25
2221225
5555555
5555555
let:91:num
225
145
255
25-
15-
25-
15-
15-
25-
225
555
555
let:92:num
25--25
15--25
25--45
525255
-2525-
-5245-
212225
552455
212225
552455
--255-
--55--
--55-0
let:93:num
225
525
515
-25
-15
-25
-25
-15
-25
225
555
555
let:94:num
--25--
-2425-
245425
45-545
55--55
let:95:num
22121225
55555555
55555555
let:96:num
24-
425
525
545
-55
let:97:num
-2224--
--5525-
422215-
245525-
25--25-
25-525-
4222525
-555555
--55555
let:98:num
215---
525---
525---
-22124
-25542
-25-52
-25-52
-15-51
-25-42
222124
555555
555550
let:99:num
42225-
245425
155555
25----
25--55
24--25
422245
555555
-55550
let:100:num
---225-
---525-
---525-
421225-
245525-
255525-
25-525-
15-515-
245525-
4212225
5555555
-555555
let:101:num
42124-
245425
155525
122125
255555
245525
421245
55555-
-55550
let:102:num
--124-
-1442-
-25545
212455
42555-
-25---
-15---
-25---
-25---
2225--
5555--
5555-0
let:103:num
------25
-4121245
4245425-
155-525-
25---25-
2455425-
-222145-
-42424--
-255525-
-245425-
-522255-
--555--0
let:104:num
225-----
525-----
515-----
-24224--
-224525-
-255-15-
-25--15-
-1---25-
-2---25-
2225-225
5555-555
5555-555
let:105:num
-15-
-25-
-55-
225-
525-
-25-
-15-
-25-
-15-
2225
5555
5555
let:106:num
--15
--25
--55
-225
-525
--25
--15
--15
--25
--25
-425
2245
5555
55-0
let:107:num
224----
525----
525----
-15--22
-25-225
-154245
-252455
-22255-
-24224-
2255222
5555555
555-555
let:108:num
224-
-25-
-25-
-25-
-15-
-25-
-25-
-25-
-15-
2225
5555
5555
let:109:num
2122452145-
52542244225
-2554155425
-25-525-515
-25--25-525
425--25-525
2145-25-245
5425-55-455
-555-5--550
let:110:num
215222--
52245425
-2555515
-25--525
-25---25
425---25
2145-245
5425-455
-555-550
let:111:num
422124-
2455425
2555525
15--515
25--525
2455425
4222245
5555555
-555550
let:112:num
254224-
4225425
5255515
-25--25
515--25
-245425
-222245
425555-
22555--
422----
554---0
let:113:num
42122425
24552145
25-5245-
25--25--
15--15--
24--25--
421225--
54452455
-5554125
----2245
----4555
let:114:num
24215-
424425
525445
-25555
-15---
525---
222---
555---
555--0
let:115:num
421245
245425
425555
54225-
554425
255425
422245
555555
-55550
let:116:num
-25--
-25--
-25--
21225
52555
525--
-25--
-25--
-245-
-425-
-555-
-5550
let:117:num
225-225-
425-425-
525-515-
-15-525-
-25-525-
-24-525-
-4212425
-5555555
--555555
let:118:num
225--225
524--255
-24-425-
5425245-
-524255-
-54245--
--5255--
--555---
---55--0
let:119:num
425--25-425
245-24--245
25--25--25-
15--25--25-
25--25--25-
245-245-25-
42224222425
55555555555
-555-555-55
let:120:num
22--225
5155255
-24425-
--225--
-14425-
-25525-
2255225
555-555
55---55
let:121:num
425-225
245-245
25--25-
15--15-
25--25-
245425-
4222245
5555425
-225425
2552245
--55550
let:122:num
221124
245525
55-145
--145-
-245--
245525
122125
555555
555555
let:123:num
-42
-25
-25
-15
-25
425
24-
425
525
-25
-25
-42
-55
let:124:num
25
25
25
25
55
55
25
25
25
25
55
55
let:125:num
24-
425
525
-15
-25
-25
-42
-25
-25
-25
425
245
550
let:126:num
424--25
2424255
554245-
5-555-0
let:127:num let:128:num let:129:num let:130:num let:131:num let:132:num let:133:num let:134:num let:135:num let:136:num let:137:num let:138:num let:139:num let:140:num let:141:num let:142:num let:143:num let:144:num let:145:num let:146:num let:147:num let:148:num let:149:num let:150:num let:151:num let:152:num let:153:num let:154:num let:155:num let:156:num let:157:num let:158:num let:159:num let:160:num let:161:num
-22-
2--2
2--2
-220
let:162:num
2222
2---
2---
2---
2--0
let:163:num
---2
---2
---2
---2
2222
let:164:num
2-
-2
let:165:num
22
22
let:166:num
2222222
------2
------2
-222222
------2
------2
-----2-
-----2-
----2--
---2--0
let:167:num
22222
----2
----2
-2-2-
-22--
-2---
-2---
2---0
let:168:num
----2
---2-
--2--
-22--
2-2--
--2--
--2--
--2-0
let:169:num
--2--
22222
2---2
2---2
----2
---2-
--2--
-2--0
let:170:num
22222
--2--
--2--
--2--
--2--
--2--
22222
let:171:num
---2-
22222
---2-
--22-
--22-
-2-2-
2--2-
---20
let:172:num
--2----
2222222
--2---2
--2--2-
--2-2--
--22---
--2----
--2---0
let:173:num
-2222--
----2--
----2--
----2--
----2--
2222222
let:174:num
22222
----2
----2
-2222
----2
----2
22222
let:175:num
2-2--2
2-2--2
2-2--2
2-2--2
-----2
-----2
----2-
--22-0
let:176:num
222222
let:177:num
222122225
555554425
555555515
---255525
---15-245
---25245-
---12455-
---2455--
---255---
--245----
-245-----
-555-----
-55-----0
let:178:num
-----425
----4245
---42455
--42455-
-42255--
42425---
24515---
55525---
55-25---
---25---
---25---
---55---
---55--0
let:179:num
----25---
----24---
222212225
245555425
155555525
25----515
25-----25
55----425
55---4245
----42455
----2455-
----555--
----55--0
let:180:num
-22212225-
-55424555-
-5552555--
---515----
----2-----
----1-----
----2-----
---424----
2222122225
5555555555
5555555550
let:181:num
-----25-
----4245
22212225
55544245
5555225-
---4215-
--42415-
-424525-
4245525-
2455-25-
555--25-
55---55-
-----5-0
let:182:num
---25----
--424----
222122225
554255425
555255525
--515-525
---25--15
--425--25
--245--25
-425---25
-245-2245
-55--5555
-55--5550
let:183:num
---25---
--4245--
22212225
55424555
5551555-
--4245--
22212225
55424555
5552555-
--525---
---25---
---55---
---5---0
let:184:num
--221225
--245425
-4255515
-245-525
4255-425
245--245
555-4255
55--245-
---4255-
--4245--
--2455--
--555---
--55---0
let:185:num
--2-------
--24------
--22212225
-424542455
-24555255-
4255-515--
245---25--
555--425--
55---245--
----4255--
----245---
----555---
----55---0
let:186:num
2212225
5555425
5555525
----525
-----15
-----25
----425
2212225
5555555
5555550
let:187:num
-2---2--
-2---2--
22222222
-2---2--
-2---2--
-2---2--
-2---2--
-----2--
-----2--
----2---
--22---0
let:188:num
22------
--22222-
----2--2
2---2---
---2----
---2----
--2-----
-2-----2
2----07-
22222222
2------2
let:189:num
222222-
-----2-
-----2-
----2--
----2--
---2---
--2-2--
-2---2-
2-----2
2-----2
let:190:num
-2-----
-2-----
-2--222
2222--2
-2----2
-2---2-
-2--2--
-2-----
-2-----
-2-----
--22222
let:191:num
2------2
-2-----2
-2-----2
--2----2
--2---2-
------2-
------2-
-----2--
----2---
---2---0
let:192:num
--22222
--2---2
--2---2
--2---2
-2-22-2
2----2-
-----2-
----2--
---2---
--2----
-2----0
let:193:num
-----22
---22--
222-2--
----2--
----2--
2222222
----2--
----2--
---2---
---2---
--2---0
let:194:num
2--2--2
2--2--2
2--2--2
2--2--2
2--2--2
------2
-----2-
-----2-
----2--
---2---
--2---0
let:195:num
-22222-
-------
-------
2222222
----2--
----2--
----2--
---2---
---2---
--2----
-2----0
let:196:num
2----
2----
2----
2----
22---
2-22-
2---2
2----
2----
2----
2---0
let:197:num
----2--
----2--
----2--
2222222
----2--
----2--
----2--
---2---
---2---
--2----
-2----0
let:198:num
-2222202
22222226
-3112222
22-----2
-----2--
---2----
2--2--2-
--22---2
let:199:num
222222
-----2
-----2
-----2
----2-
-2--2-
--22--
---2--
--2-2-
-2---2
2----0
let:200:num
---2---
---2---
2222222
-----2-
----2--
---2---
--222--
-2-2-2-
2--2--2
---2---
---2--0
let:201:num
-----2
-----2
-----2
-----2
----2-
----2-
---2--
--2---
-2----
2----0
let:202:num
------2--
-2----2--
-2-----2-
-2-----2-
-2-----2-
-2------2
-2------2
-2------2
-2------2
2-------2
2-------2
let:203:num
2------
2------
2------
2---122
2222---
2------
2------
2------
2------
2------
-222222
let:204:num
2222222
------2
------2
------2
------2
------2
-----2-
-----2-
----2--
---2---
--2---0
let:205:num
--2-----
--22----
-2-2----
-2--2---
-2--2---
2----2--
2----2--
------2-
------2-
-------2
-------2
let:206:num
----2----
----2----
222222222
----2----
-2--2--2-
-2--2--2-
2---2---2
2---2---2
2---2---2
2---2---2
----2---0
let:207:num
22222222
-------2
-------2
-------2
------2-
--2---2-
---2-2--
----2---
----2---
-----2--
-----2-0
let:208:num
22---
--222
-----
-----
22---
--222
-----
-----
-----
22---
--222
let:209:num
---2----
---2----
--2-----
--2-----
--2-----
-2---2--
-2----2-
-2----2-
2------2
2------2
22222222
let:210:num
-----2-
-----2-
-----2-
22--2--
--2-2--
---222-
----2-2
---2--2
---2---
--2----
-2----0
let:211:num
222222
--2---
--2---
--2---
222222
--2---
--2---
--2---
--2---
--2---
---222
let:212:num
--2----
--2----
2222222
--2---2
--2---2
--2--2-
--2-2--
--22---
--2----
--2----
--2---0
let:213:num
-22222---
-----2---
-----2---
-----2---
-----2---
-----2---
-----2---
222222222
let:214:num
222222
-----2
-----2
-----2
-----2
-22222
-----2
-----2
-----2
-----2
222222
let:215:num
222222
------
------
222222
-----2
-----2
-----2
----2-
---2--
--2---
-2---0
let:216:num
2-----2
2-----2
2-----2
2-----2
2-----2
2-----2
------2
-----2-
-----2-
----2--
--22--0
let:217:num
-----2----
-----2----
--2--2----
--2--2----
--2--2---2
--2--2---2
--2--2---2
--2--2--2-
-2---2--2-
-2---2-2--
2----22--0
let:218:num
2------
2------
2------
2------
2------
2------
2------
2-----2
2----2-
2--22--
222---0
let:219:num
2222222
2-----2
2-----2
2-----2
2-----2
2-----2
2-----2
2-----2
2222222
let:220:num
2222222
2-----2
2-----2
2-----2
------2
------2
-----2-
-----2-
----2--
---2---
--2---0
let:221:num
22------
--22----
-------2
-------2
-------2
------2-
------2-
-----2--
----2---
--22---0
let:222:num
2--2-
2--2-
-2--2
-2--2
let:223:num
-22-
2--2
2--2
-220
let:224:num let:225:num let:226:num let:227:num let:228:num let:229:num let:230:num let:231:num let:232:num let:233:num let:234:num let:235:num let:236:num let:237:num let:238:num let:239:num let:240:num let:241:num let:242:num let:243:num let:244:num let:245:num let:246:num let:247:num let:248:num let:249:num let:250:num let:251:num let:252:num let:253:num let:254:num let:255:num
Each letter is raster image encoded by numbers. For example, look at "let:48:num". It's the image of 0. 49 is 1, etc.
Also, 65, 66, 67 are english letters A, B, C.
We need letters since 128. There's a part where chinese letters can be located.

So, my question: are these symbols look like chinese letters we need for war2?
If yes, that will be a good point to quick start.
Title: Re: Volunteer here glad to translate the game into Simplified Chinese
Post by: Jack Chen on January 23, 2019, 08:46:08 AM
Good work! Thanks for your dedication. In fact, I must confess that I know little about the font, LOL. Luckily, I have successfully edited the rez\human1.tbl. But all the Chinese characters I inputed was in a mess. THE FONT, A BIG PROBLEM it is. I am wondering whether you can give me the Font support for the translation. Simply, a patch?
Title: Re: Volunteer here glad to translate the game into Simplified Chinese
Post by: iL on January 23, 2019, 10:01:27 AM
Well, i'd say the thing required from you is to make all the required fonts in future. As i know nothing about chinese letters and i can't check it they are ok or not.
I can make or find the software to do that, but i need raster images of each letter from you.

Now let's try this font to check if it's what we need here:
You should open you war2dat.mpq, delete files:
font10x.fnt font12x.fnt font32.fnt font50.fnt font6.fnt
from art\
and add this font as each of these files.

If everything is fine, you will see your  rez\human1.tbl properly.
Title: Re: Volunteer here glad to translate the game into Simplified Chinese
Post by: Jack Chen on January 23, 2019, 11:30:13 AM
Hello, I did what you had said. The font was surely changed. But having been edited, the rez\human1.tbl was still in a mess. Here is the screenshot and the translated tbl for your preview. I am ready to start the translation of this game. Great hope for a nice font support!!! :thumbsup:
Title: Re: Volunteer here glad to translate the game into Simplified Chinese
Post by: iL on January 23, 2019, 11:46:43 AM
Hm, looks like your font is not perfect.
"?" means there's no letter with such code in the font file.
That's why the question: are that letters (not "?") looks as proper chinese letters?
Are they located on proper places?

Unfortunately i don't know if chinese fonts changed from dos to windows encoding.
For example, russian fonts did:
on dos there was russian charset called "cp866", and under windows: "cp1251". They just got half of russian alphabet and moved it to different place on ASCII table.
Title: Re: Volunteer here glad to translate the game into Simplified Chinese
Post by: iL on January 23, 2019, 11:58:08 AM
Looks like it's time to look into that chasets/encodings for both of us:
First of all, need to look into the simplified chinese ASCII table.

For example, russian one looks like this:
(https://image3.slideserve.com/6046216/slide19-n.jpg)
Or this:
(http://900igr.net/up/datas/224797/017.jpg)

I didn't find the same one for simplified chinese and looks like i need your help here.

And the result thing i need from you to make proper font is something like a picture (look into an attachment).
Looks like a long bmp-file with letters, each letter located in it's own square (14x14 in my example).
What i need is 5 such pictures: 1 for each font: font10x.fnt font12x.fnt font32.fnt font50.fnt font6.fnt
Then it will be perfect.
Title: Re: Volunteer here glad to translate the game into Simplified Chinese
Post by: iL on January 23, 2019, 02:45:01 PM
Well, i checked that font different way:
I edited human1.tbl replacing some part of text by the whole ASCII table from 32 to 255.
I also inserted that font as art\font12x.fnt

I want to check all the symbols existing in that font file.
Here's how it's look like:
(http://ss.war2.ru/ss/9906.gif)

Looks like not so many chinese letter inside. Is that Simplified Chinese there?
Title: Re: Volunteer here glad to translate the game into Simplified Chinese
Post by: iL on January 23, 2019, 03:43:55 PM
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.
Title: Re: Volunteer here glad to translate the game into Simplified Chinese
Post by: Jack Chen on January 23, 2019, 08:57:16 PM
I see. No Chinese characters at all in the screenshot.

I am contacting a computer programmer of my own, who is also willing to get the classic game translated. He may join our discussion by today. :)
Title: Re: Volunteer here glad to translate the game into Simplified Chinese
Post by: Karlock on January 24, 2019, 12:06:05 AM
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. :'(
Title: Re: Volunteer here glad to translate the game into Simplified Chinese
Post by: Jack Chen on January 24, 2019, 02:25:01 AM
Hi again. I found a txt, which seems to be what you asked for. Is this the Chinese ASCII Table you need?
Title: Re: Volunteer here glad to translate the game into Simplified Chinese
Post by: iL on January 24, 2019, 03:27:55 AM
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. :'(
Oh, 682 signs in Simplified Chinese?
As i understand, font should have no more than 256 symbols. 1 byte per 1 symbol.
That is how all old 1-byte charsets work as i know.

Please, look at human1.tbl, 411752230 uploaded yesterday. How many bytes per 1 Chinese Character it require?
Title: Re: Volunteer here glad to translate the game into Simplified Chinese
Post by: iL on January 24, 2019, 03:30:48 AM
Hi again. I found a txt, which seems to be what you asked for. Is this the Chinese ASCII Table you need?
Well, i asked about a picture for each symbol, but here i can see only 2 random bytes, then ":" and then a number (it's code).
But that makes sense only if there's no more than 256 symbols in the table.
Not sure what to do if we have more...
Title: Re: Volunteer here glad to translate the game into Simplified Chinese
Post by: Jack Chen on January 24, 2019, 04:12:24 AM
1 Chinese Character= 2 bytes
1 Chinese punctuation(full-width)=2 bytes
Title: Re: Volunteer here glad to translate the game into Simplified Chinese
Post by: iL on January 24, 2019, 07:02:01 AM
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.
Title: Re: Volunteer here glad to translate the game into Simplified Chinese
Post by: Karlock on January 24, 2019, 08:52:07 PM
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?
Title: Re: Volunteer here glad to translate the game into Simplified Chinese
Post by: iL on January 25, 2019, 05:09:40 AM
Well, wargus is not war2, so there's no community there.
But yes, that should work on wargus.
And i'm not sure wargus use bitmap fonts at all. Most likely it uses Unicode or w/e, so you try to just edit fonts, maybe you will not need any font job.
Title: Re: Volunteer here glad to translate the game into Simplified Chinese
Post by: Lambchops on January 25, 2019, 09:14:24 AM
bnet > wargus

some users only use 3 or 4 chars "-->" ,"game", "gg" ,"gg no re"

no way 256 chinese chars can work?

wargus can more than likely..but the engine still needs work to make it more like war2.

the main bnet chat maybe can 2byte.(nope its 1byte)

or maybe a chinese channel+bot that has 256 different styles of writing you type in the # of ur alphabet it combines ascii chars and maybe gets over 256

well it was an idea :)


Sure this sounds like the most realistic way to get some degree of chinese text support.

A custom 8 bit font with the most useful 255 chinese chars. I would be surprised if something vaguely like this does not already exist.


Title: Re: Volunteer here glad to translate the game into Simplified Chinese
Post by: Muz on March 24, 2019, 01:00:35 AM
What about Japanese? Is this game translatable to Japanese?
Title: Re: Volunteer here glad to translate the game into Simplified Chinese
Post by: iL on March 24, 2019, 06:41:05 AM
What about Japanese? Is this game translatable to Japanese?
How many characters are in japan alphabet? It's possible if less than 256 and i'd say it's not if more...
Title: Re: Volunteer here glad to translate the game into Simplified Chinese
Post by: Muz on March 24, 2019, 12:07:35 PM
Characters? Japanese has around 2200 characters. Warcraft 2 can accept only 256 characters? The PS2 version of Warcraft 2 does has a Japanese version though.
Title: Re: Volunteer here glad to translate the game into Simplified Chinese
Post by: iL on March 24, 2019, 02:34:21 PM
Characters? Japanese has around 2200 characters. Warcraft 2 can accept only 256 characters? The PS2 version of Warcraft 2 does has a Japanese version though.
I see, here's also a DOS-version with Simplified Chinese support. I mean that required some sufficient modifications. Original war2 uses 1-byte chaset, that means your can use an alphabet up to 255 characters or a little less.
Title: Re: Volunteer here glad to translate the game into Simplified Chinese
Post by: Jack Chen on February 23, 2020, 12:32:00 PM
Characters? Japanese has around 2200 characters. Warcraft 2 can accept only 256 characters? The PS2 version of Warcraft 2 does has a Japanese version though.
I see, here's also a DOS-version with Simplified Chinese support. I mean that required some sufficient modifications. Original war2 uses 1-byte chaset, that means your can use an alphabet up to 255 characters or a little less.


That's very unfortunate. Is there someone able to modify the original war2 to support more chars? If so, Chinese and japanese or some Asian languages would be feasible to take action.