GithubHelp home page GithubHelp logo

exapunks-localize's Introduction

这里有中文版

This an unofficial localization project for game EXAPUNKS.

First at all, you should own this game, you can buy it on steam or GOG or whatever platforms.

Prepare the environment

1. install python 3 and some dependent libraries.

2. copy game files to localization working directory

  • copy Content/descriptions/en/* to ./export_txt/Content/descriptions/en/

  • copy Content/vignettes/* to ./export_txt/Content/vignettes

  • copy PackedContent/fonts/*.packedfont to ./font/fonts

  • copy PackedContent/*.tex to ./images/PackedContent

    Note: must be fixed files:

    Content/vignettes/ember-7.csv miss a double quote at line 12

    Content/vignettes/nivas-3.csv miss a double quote at line 9

3. install fonts (optional)

otherwise set your favorite fonts in import_txt/translation.py and font/gen.py

Translate the texts

There are three json files in directory import_txt, they need be translated.

You could run json2excel.py to generate excel files from these json files, then edit them in M$ Excel or LibreOffice calc or whatever spreadsheet editor.

  • EXAPUNKS_descriptions.json

    Grabbed from Content/descriptions/*.txt

    All texts in this file need been traslated.

  • EXAPUNKS_vignettes.json

    Grabbed from Content/vignettes/*.csv

    All texts in this file need be translated.

  • EXAPUNKS_exe.json

    Grabbed from EXAPUNKS.exe

    Not all texts in this file need be translated.

    Only translate the text you actually see in the game.

How to use json2excel.py

generate EXAPUNKS_descriptions.xlsx from EXAPUNKS_descriptions.json

json2excel.py EXAPUNKS_descriptions.json EXAPUNKS_descriptions.xlsx

do the same thing

json2excel.py EXAPUNKS_descriptions.json

traverse current directory, generate .xlsx files from all .json files.

json2excel.py

automatically decide whether to overwrite the current .xlsx files based on update date

json2excel.py --auto

Modify the textures

Run images/export_imgs.py

It will traverse directory images/PackedContent, convert all .tex files to .png into the directory out.

Pick up the images what you want to modify. (No need for half's, will be generated automatically.)

Put all of them to the new dirctory, keep the same directory struct.

Generate the localization patch

Run run.bat, the localization patch will be generated in patch directory.

If you want to know more details about this procedure, see details.md

Change game settings

Edit %USERPROFILE%\Documents\My Games\EXAPUNKS\xxxxxx\config.cfg

Language = English

Change 'English' to 'Chinese | Japanese | French'

Some screenshots

PDF Manual (still in progress)

exapunks-localize's People

Contributors

18111398 avatar chr233 avatar noword avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

exapunks-localize's Issues

.fnt格式的文件未能生成

您好。在寻找如何用日语玩EXAPUNKS的方法时,我发现了您们的翻译项目。我已经成功地使用了您们完成的补丁进行了中文化。非常感谢您们的出色项目。

现在我有一个问题。我尝试使用您们提供的源代码来制作日语化补丁,但在执行“run.bat”时遇到了问题。在生成字体文件的过程中,似乎嵌入了一个脚本,该脚本在Bitmap font generator中加载bmfc文件并创建fnt文件,但这个过程似乎没有成功。

当我执行“run.bat”时,Bitmap font generator的窗口会多次弹出,但从那之后,程序就没有任何进展了。当我尝试关闭Bitmap font generator的窗口时,命令提示符显示了以下错误:

FileNotFoundError: [Errno 2] No such file or directory: '77aa84e6-6089-42fa-90f7-2bce78d22f9e.fnt'
fnt = font_gen.gen()
^^^^^^^^^^^^^^
File "EXAPUNKS-Localize-master\EXAPUNKS-Localize-master\font\bmfont\bmfont_gen.py", line 165, in gen
fnt = Fnt(open(fnt_name, "r"))
^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: '1a6c3ce9-5593-43a7-bc12-c755723dcceb.fnt'

看起来fnt文件的生成似乎没有成功。虽然bmfc文件已经成功生成,但我手动从Bitmap font generator加载bmfc文件并成功创建了fnt文件。但似乎bmfc文件的数量非常多,所以我认为手动操作是不现实的。

关于这个问题,您有什么解决方案可以建议吗?期待您的回复,谢谢。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.