Ultima VIII: Pagan / Ультима VIII: Язычество – блог
Для служебного пользования
***** УТИЛИТЫ ДЛЯ ПЕРЕВОДА *****
Для перевода Ультимы 8 мной было решено написать 5 утилит при помощи
Microsoft Visual C++ 2010 Express (x32):
1.) Утилита «U8FT.EXE»
Эта программма распаковывает/упаковывает файлы с разрешением (.FLX). В частности мне она
пригодилась в работе со следующими файлами: U8GUMPS.FLX, U8FONTS.FLX, U8SHAPES.FLX,
EUSECODE.FLX и E44.FLX...E666.FLX.
При запуске утилита создает файл «index.txt». Этот файл потом пригодится для создания
нового FLX-файла. Запустив приложение вам будут даны инструкции как работать с этой
утилитой. А также этот же файл(index.txt) вам будет НЕОБХОДИМ при работе с ДРУГИМИ
утилитами.
*При распаковке EUSECODE.FLX вам будут выданы файлы с расширением (.cls) «класс».
*При распаковке U8GUMPS.FLX, U8FONTS.FLX и U8SHAPES.FLX будут созданы файлы с расширением
.shp (картинки-шейпы).
*При распаковке звуковых файлов E44.FLX... E666.FLX результатом будут файлы .u8c.
2.) Утилита U8DEC.EXE
Эта утилита нужна, чтобы декодировать или декомпилировать текстовую часть + необходимые
процедуры для целей перевода. Утилиту следует применять на файлы с расширением(.cls –
«классы») которые заключены в файле EUSECODE.FLX;
Примечание: (за исключением файлов 0000.cls и 0001.cls, глобальных переменных и названий
классов).
3.) Утилита U8CALC.EXE
Эта утилита нужна для расчета – перерасчета смещений, адресов и других важных параметров в
файле(.cls), который вы уже перевели на свой язык(и, естественно, распаковали используя
U8DEC.EXE)
К тому же эта утилита подменяет некоторые символы на нужные:
– Для испанского языка: 'б' 'й' 'н' 'у' 'ъ' 'с' 'ь' 'Б' 'Й' 'Н' 'У' 'Ъ' 'С' 'Ь' 'Ў' 'ї'
используется таблица «table.txt». У меня вы можете найти образец подобного формата.
(HEXCODE_FONTFRAME=<настоящая буква вашего языка>)
«HEXCODE_FONTFRAME» соотвествует хексовой позиции по шрифтовому файлу U8FONTS.FLX.
Для испанского перевода использовались шрифты:
– 0000.shp(голубой), 0005.shp(оранжевый), 0006.shp(красный), 0007.shp(зеленый),
0008.shp(yellow) -> шрифт для диалога
– 000A.shp, 000B.shp -> шрифт надгробий и табличек
– 0009.shp -> шрифт книг и свитков
4.) Утилита U8COMP.EXE
Это приложение нужно чтобы закодировать/скомпилировать уже переведенный и пересчитанный
(.сls) файл в новый (.cls), который будет готов для финальной сборки в главный файл
EUSECODE.FLX.
Чтобы скомпилировать один класс, необходим ОРИГИНАЛЬНЫЙ АНГЛИЙСКИЙ классовый файл.
5.) U8Q.EXE Tool
This tool unencrypts or encrypts ECREDITS.DAT and QUOTES.DAT to modify
it if necessary. It uses 0x0A as new line char (not 0x0D 0x0A chars
used by windows). It is necessary use special editor to edit this files.
If some 0x0D code is used for do «new line», it must be deleted.
***** ENVIRONMENT FOR TRANSLATION AND STEPS *****
Once we know the tools, maybe it is needed to explain a bit more how we
can translate for further translators. Only for EUSECODE.FLX file.
I recommend to prepare this environment (sample of folders):
/-TRANSLATION
/-EUSECODE
In this folder we will have original english EUSECODE.FLX and U8FT.EXE.
We use «U8FT -x EUSECODE.FLX» and will appear a bunch of .cls files and
one «index.txt» file.
Copy «index.txt in» the other four folders.
Copy all .cls files into /-DEC and /-COMP folders.
/-DEC
In this folder we will have U8DEC.EXE, all .cls files and «index.txt».
After executing «U8DEC.EXE -a» we will have the same files and a bunch
of new .txt files with texts extracted. The same amount as .cls files,
of course (except 0000.cls and 0001.cls).
A sample of a .txt file (0x00B4 class in EUSECODE.FLX):
01|0080|0080
04|009B|0023
02|009F|000A|Blackwine
03|00BE|00D6
04|00C6|0023
02|00CA|000A|Hurricane
03|00E9|00AB
04|00F1|002A
02|00F5|0011|Breath o' Spirit
03|011B|0079
04|0123|0025
02|0127|000C|Cloven Hoof
03|0148|004C
We ONLY need to translate the text part. SAMPLE:
WARNING: Be aware of the white space(s) at the end of the texts!!!
01|0080|0080
04|009B|0023
02|009F|000A|Vinoscuro
03|00BE|00D6
04|00C6|0023
02|00CA|000A|Huracбn
03|00E9|00AB
04|00F1|002A
02|00F5|0011|Aliento espiritual
03|011B|0079
04|0123|0025
02|0127|000C|Pezuсa hendida
03|0148|004C
After translating .txt files, we copy them into CALC folder.
/-CALC
In this folder we will have U8CALC.EXE, «index.txt», «table.txt» and
ALL .txt files from DEC folder translated.
We will use «U8CALC.EXE -a» and this creates the same files with
.new extension, with recalculated numbers and characters.
This would be nnnn.txt.new bunch of files.
We copy ALL this nnnn.txt.new files into COMP folder.
/-COMP
In this folder we will have U8COMP.EXE, «index.txt», ALL the original
nnnn.cls files from EUSECODE folder and nnnn.txt.new files from
CALC folder.
After executing «U8COMP -a» we will have the text translated class
files compiled in .cls files with .new extension.
This would be a bunch of nnnn.cls.new files.
We copy this nnnn.cls.new files into EUSECODE_NEW folder.
We MUST copy also the nnnn.cls files not compiled, if any, because some
of them are not needed to compile and maybe we decided not to add them
to the compile process, into EUSECODE_NEW folder AND rename them as
nnnn.cls.new file (with .new extension).
/-EUSECODE_NEW
In this folder we will have U8FT.EXE, «index.txt» and ALL the
modified nnnn.cls.new files.
Have in mind that you should change «index.txt» class names,
this would be change «nnnn.cls» FOR «nnnn.cls.new», if not the tool
will not read any file.
After that, we run «U8FT -c EUSECODE.FLX.new», for example.
Et voilа, we have here a new compiled EUSECODE with translated
texts.
***** NOTES FOR TRANSLATIONS *****
– Not all the classes extracted from EUSECODE.FLX have text for translate
but maybe it is needed to add them to the CALC process because maybe
they need some recalculations.
– Normal files, like the ones with object names can be translated and
test ingame without touch anything more.
BUT there are files, that uses another class files that at the same time
CALL to another class file.
There are few, but testing ingame the translation and touching one
of this files can make the game crash and you must begin again
the betatesting.
Some files I recommend to leave for the end are:
7C, 41C, 41D, 56F, 571, 574, 57C, 581, 583, 589, 58A, 595
– Maybe it is needed to delete \GAMEDAT folder files for betatesting.
Have it in mind.
Для перевода Ультимы 8 мной было решено написать 5 утилит при помощи
Microsoft Visual C++ 2010 Express (x32):
1.) Утилита «U8FT.EXE»
Эта программма распаковывает/упаковывает файлы с разрешением (.FLX). В частности мне она
пригодилась в работе со следующими файлами: U8GUMPS.FLX, U8FONTS.FLX, U8SHAPES.FLX,
EUSECODE.FLX и E44.FLX...E666.FLX.
При запуске утилита создает файл «index.txt». Этот файл потом пригодится для создания
нового FLX-файла. Запустив приложение вам будут даны инструкции как работать с этой
утилитой. А также этот же файл(index.txt) вам будет НЕОБХОДИМ при работе с ДРУГИМИ
утилитами.
*При распаковке EUSECODE.FLX вам будут выданы файлы с расширением (.cls) «класс».
*При распаковке U8GUMPS.FLX, U8FONTS.FLX и U8SHAPES.FLX будут созданы файлы с расширением
.shp (картинки-шейпы).
*При распаковке звуковых файлов E44.FLX... E666.FLX результатом будут файлы .u8c.
2.) Утилита U8DEC.EXE
Эта утилита нужна, чтобы декодировать или декомпилировать текстовую часть + необходимые
процедуры для целей перевода. Утилиту следует применять на файлы с расширением(.cls –
«классы») которые заключены в файле EUSECODE.FLX;
Примечание: (за исключением файлов 0000.cls и 0001.cls, глобальных переменных и названий
классов).
3.) Утилита U8CALC.EXE
Эта утилита нужна для расчета – перерасчета смещений, адресов и других важных параметров в
файле(.cls), который вы уже перевели на свой язык(и, естественно, распаковали используя
U8DEC.EXE)
К тому же эта утилита подменяет некоторые символы на нужные:
– Для испанского языка: 'б' 'й' 'н' 'у' 'ъ' 'с' 'ь' 'Б' 'Й' 'Н' 'У' 'Ъ' 'С' 'Ь' 'Ў' 'ї'
используется таблица «table.txt». У меня вы можете найти образец подобного формата.
(HEXCODE_FONTFRAME=<настоящая буква вашего языка>)
«HEXCODE_FONTFRAME» соотвествует хексовой позиции по шрифтовому файлу U8FONTS.FLX.
Для испанского перевода использовались шрифты:
– 0000.shp(голубой), 0005.shp(оранжевый), 0006.shp(красный), 0007.shp(зеленый),
0008.shp(yellow) -> шрифт для диалога
– 000A.shp, 000B.shp -> шрифт надгробий и табличек
– 0009.shp -> шрифт книг и свитков
4.) Утилита U8COMP.EXE
Это приложение нужно чтобы закодировать/скомпилировать уже переведенный и пересчитанный
(.сls) файл в новый (.cls), который будет готов для финальной сборки в главный файл
EUSECODE.FLX.
Чтобы скомпилировать один класс, необходим ОРИГИНАЛЬНЫЙ АНГЛИЙСКИЙ классовый файл.
5.) U8Q.EXE Tool
This tool unencrypts or encrypts ECREDITS.DAT and QUOTES.DAT to modify
it if necessary. It uses 0x0A as new line char (not 0x0D 0x0A chars
used by windows). It is necessary use special editor to edit this files.
If some 0x0D code is used for do «new line», it must be deleted.
***** ENVIRONMENT FOR TRANSLATION AND STEPS *****
Once we know the tools, maybe it is needed to explain a bit more how we
can translate for further translators. Only for EUSECODE.FLX file.
I recommend to prepare this environment (sample of folders):
/-TRANSLATION
/-EUSECODE
In this folder we will have original english EUSECODE.FLX and U8FT.EXE.
We use «U8FT -x EUSECODE.FLX» and will appear a bunch of .cls files and
one «index.txt» file.
Copy «index.txt in» the other four folders.
Copy all .cls files into /-DEC and /-COMP folders.
/-DEC
In this folder we will have U8DEC.EXE, all .cls files and «index.txt».
After executing «U8DEC.EXE -a» we will have the same files and a bunch
of new .txt files with texts extracted. The same amount as .cls files,
of course (except 0000.cls and 0001.cls).
A sample of a .txt file (0x00B4 class in EUSECODE.FLX):
01|0080|0080
04|009B|0023
02|009F|000A|Blackwine
03|00BE|00D6
04|00C6|0023
02|00CA|000A|Hurricane
03|00E9|00AB
04|00F1|002A
02|00F5|0011|Breath o' Spirit
03|011B|0079
04|0123|0025
02|0127|000C|Cloven Hoof
03|0148|004C
We ONLY need to translate the text part. SAMPLE:
WARNING: Be aware of the white space(s) at the end of the texts!!!
01|0080|0080
04|009B|0023
02|009F|000A|Vinoscuro
03|00BE|00D6
04|00C6|0023
02|00CA|000A|Huracбn
03|00E9|00AB
04|00F1|002A
02|00F5|0011|Aliento espiritual
03|011B|0079
04|0123|0025
02|0127|000C|Pezuсa hendida
03|0148|004C
After translating .txt files, we copy them into CALC folder.
/-CALC
In this folder we will have U8CALC.EXE, «index.txt», «table.txt» and
ALL .txt files from DEC folder translated.
We will use «U8CALC.EXE -a» and this creates the same files with
.new extension, with recalculated numbers and characters.
This would be nnnn.txt.new bunch of files.
We copy ALL this nnnn.txt.new files into COMP folder.
/-COMP
In this folder we will have U8COMP.EXE, «index.txt», ALL the original
nnnn.cls files from EUSECODE folder and nnnn.txt.new files from
CALC folder.
After executing «U8COMP -a» we will have the text translated class
files compiled in .cls files with .new extension.
This would be a bunch of nnnn.cls.new files.
We copy this nnnn.cls.new files into EUSECODE_NEW folder.
We MUST copy also the nnnn.cls files not compiled, if any, because some
of them are not needed to compile and maybe we decided not to add them
to the compile process, into EUSECODE_NEW folder AND rename them as
nnnn.cls.new file (with .new extension).
/-EUSECODE_NEW
In this folder we will have U8FT.EXE, «index.txt» and ALL the
modified nnnn.cls.new files.
Have in mind that you should change «index.txt» class names,
this would be change «nnnn.cls» FOR «nnnn.cls.new», if not the tool
will not read any file.
After that, we run «U8FT -c EUSECODE.FLX.new», for example.
Et voilа, we have here a new compiled EUSECODE with translated
texts.
***** NOTES FOR TRANSLATIONS *****
– Not all the classes extracted from EUSECODE.FLX have text for translate
but maybe it is needed to add them to the CALC process because maybe
they need some recalculations.
– Normal files, like the ones with object names can be translated and
test ingame without touch anything more.
BUT there are files, that uses another class files that at the same time
CALL to another class file.
There are few, but testing ingame the translation and touching one
of this files can make the game crash and you must begin again
the betatesting.
Some files I recommend to leave for the end are:
7C, 41C, 41D, 56F, 571, 574, 57C, 581, 583, 589, 58A, 595
– Maybe it is needed to delete \GAMEDAT folder files for betatesting.
Have it in mind.
некоторые замечания
Пока не переводим, ждём когда я все загружу. Опубликую весь перевод на каждую главу' останется только копипастить.
Блог перевода
Рубрики:Перевод
- Перевод:
- текст с английского на русский
- Создан:
- 23 июня 2014, владелец: Aphex_Sign
- Скачали:
- 43 чел.
- Права доступа:
-
войти все видеть чужие версии все скачивать результат все оценивать перевод все комментировать перевод все переводить группа читать блог все комментировать блог все писать в блог группа анонсировать модераторы редактировать оригинал модераторы редактировать описание никто управлять группой модераторы Участие в группе после подтверждения модераторами - Готово:
-
0.14% КП = 1.0
