TeamPBCN / Metroid-Samus-Returns

《密特罗德:萨姆斯回归》汉化项目/Metroid: Samus Returns (Nintendo 3DS) Chinese fans localization project.
GNU General Public License v3.0
18 stars 3 forks source link

Need Help Creating Vietnamese Font #1

Closed JokerDKha closed 3 years ago

JokerDKha commented 3 years ago

Im very want to translation this game but i'm stuck in edit this font. Can you help me step by step how to translation this font game? Thank you very much for hard work.

LITTOMA commented 3 years ago

You can use this repo to translate the game with the following steps:

  1. Check out the latest commit of this repo
  2. Install python dependencies: python -m pip install fire pygame
  3. Export text (Assuming you're translating from Japanese): python btxt.py -xb <path/to/your/extracted/romfs>/system/localization/japanese.txt -p localization\japanese.txt The exported txt should looks like below:
    
    No.0
    Label: GUI_MENU001
    --------------------
    " を押してスタート
    --------------------
    " を押してスタート
    ====================

No.1 Label: GUI_USEDNA_CANNOTUSE -------------------- 封印を解除するには メトロイドDNAが必要です。 メトロイドDNAを持っていません。 -------------------- 封印を解除するには メトロイドDNAが必要です。 メ_トロイドDNAを持っていません。 ====================

...

The second part of each block is for translating. You can edit it like below:

No.0 Label: GUI_MENU001 -------------------- " を押してスタート -------------------- This is a translated text. ====================

...


4. After edited, use the below command to rebuild a binary txt:
`python btxt -cb japanese.txt -p localization\japanese.txt`
5. Build fonts by running `build_font.bat`

### Notes:
* Scripts in this repo only run on python 2.7
JokerDKha commented 3 years ago

Thank's the text is working fine. But: Build fonts by running build_font.bat seen like not working image im already pip install fire pygame: image

LITTOMA commented 3 years ago

Can you share the output of build_font.bat?

JokerDKha commented 3 years ago

is this right? image image File added: build.zip

LITTOMA commented 3 years ago

From the picture, I can see it runs at least the first 12 lines in the batch file. It would be better if you could share the console output of build_font.bat

JokerDKha commented 3 years ago

Update image image

LITTOMA commented 3 years ago

Seems like you have 32bit python installed in your system. Can you retry with 64bit python?

JokerDKha commented 3 years ago

im try python 64bit now: and now it error like this: image

LITTOMA commented 3 years ago

Oh, I made a mistake in the file paths. Updated build_font.bat now. Please try again.

JokerDKha commented 3 years ago

now build_font.bat working but after im but in a game like this. image

JokerDKha commented 3 years ago

Updated a Font Build Not Working. build.zip

LITTOMA commented 3 years ago

I used the wrong path splitter in the inner paths of *.mfnt files. It should be fixed now. Have a try :)

JokerDKha commented 3 years ago

image Thanks for your help so much <3 every thing is worrking perfect now.