Hi, I have created a game with ren'py in English already, and was hoping to translate the whole story script into chinese. I had done all the adjustments as instructed on the site, but the game menu and dialogue are all coming up as boxes. I have put in a suitable font in the "game" folder, and now it just shows nothing instead (Not even boxes) Orz.
I'm currently using Ren'Py 6.11.2, and I've searched around the forums for some answers but they seem to fit for older versions instead.
Help please? >.<"
Translating script to chinese. [SOLVED!]
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
Translating script to chinese. [SOLVED!]
Last edited by kuromomo on Thu Dec 02, 2010 8:44 am, edited 1 time in total.
- PyTom
- Ren'Py Creator
- Posts: 16096
- Joined: Mon Feb 02, 2004 10:58 am
- Completed: Moonlight Walks
- Projects: Ren'Py
- IRC Nick: renpytom
- Github: renpytom
- itch: renpytom
- Location: Kings Park, NY
- Contact:
Re: Translating script to chinese.
Please check out this cookbook recipe, which explains what you need to do to change the font and the line-breaking method.
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom(When was the last time you backed up your game?)
Software > Drama • https://www.patreon.com/renpytom
Re: Translating script to chinese.
Hi, thanks for the link, I refered to it and change the font for them.
But it's still not working. Orz
See if they're correct? (Maybe I did something wrong =W=")
The font is put under "MyGameNameFolder/game/"
And I've made a rpy script named translations.rpy to put in the menu translations from http://www.renpy.org/wiki/renpy/doc/tra ... eldChinese, and saved under the above folder too.
From script.rpy
From Options
From translations.rpy (Not sure if I have to copy that in here too, but I just try =W=")
Edit: Oh, the one thing I'm not sure was saving the script as UTF-8 unicode? I'm not sure how to get that to work using jEdit,couldn't find an option? to save that as.
But it's still not working. Orz
See if they're correct? (Maybe I did something wrong =W=")
The font is put under "MyGameNameFolder/game/"
And I've made a rpy script named translations.rpy to put in the menu translations from http://www.renpy.org/wiki/renpy/doc/tra ... eldChinese, and saved under the above folder too.
From script.rpy
Code: Select all
# You can place the script of your game in this file.
init:
$ style.default.font = "HDZB_74.TTF"
$ style.default.language = "eastasian"
# Declare images below this line, using the image statement.
# eg. image eileen happy = "eileen_happy.png"
image logo = "logo.png"
image day nightone = "days-night1.png"
image day daytwo = "days-day2.png"
Code: Select all
#########################################
## These let you customize the default font used for text in Ren'Py.
## The file containing the default font.
# style.default.font = "HDZB_74.TTF"
## The default size of text.
# style.default.size = 22
## Note that these only change the size of some of the text. Other
## buttons have their own styles.
Code: Select all
init:
$ style.default.font = "HDZB_74.TTF"
$ style.default.language = "eastasian"
init python:
# Translatable strings found in common/00developer.rpy
config.translations[u'Developer Menu'] = u'开发者菜单'
config.translations[u'Return to the developer menu'] = u'返回开发者菜单'
Re: Translating script to chinese.
Yeah, I've managed to solve my own problem. I've realised there is a problem with the font I used, I changed it to SimSun and it's fixed~ Thanks for all the help so far~ ^W^
Who is online
Users browsing this forum: No registered users