Lemma Soft Forums

Supporting creators of visual novels and story-based games since 2003.


Visit our new games list, blog aggregator, IRC, and wiki.
Activation problem? Email [email protected]
It is currently Wed May 22, 2013 6:50 am

All times are UTC - 5 hours [ DST ]


Forum rules


Ask questions about one topic per thread, and use a descriptive subject. "NotImplemented error in script.rpy" is a good subject, "Tom's problems" is not. Remember to include all of traceback.txt or error.txt when reporting a problem, as well as the relevant lines of script. Use the [code] tag to format scripts.



Post new topic Reply to topic  [ 7 posts ] 
Author Message
PostPosted: Thu Apr 05, 2012 6:25 pm 
Newbie

Joined: Mon Aug 15, 2011 1:06 pm
Posts: 18
What is the best way to create a multi-language game?

IE I would choose from more languages on the start (english, german, czech, ...).


Top
 Profile Send private message  
 
PostPosted: Thu Apr 05, 2012 8:30 pm 
Crawling Chaos
User avatar

Joined: Mon Feb 13, 2012 5:37 am
Posts: 1113
Location: Kimashi Tower, Japan
Completed: SMAR,AAA
Projects: DMC
I'm planning to use this action, with a file created with this method. Didn't coded yet though.

_________________


Top
 Profile Send private message  
 
PostPosted: Thu Apr 05, 2012 8:32 pm 
Ren'Py Creator
User avatar

Joined: Mon Feb 02, 2004 10:58 am
Posts: 10774
Location: Kings Park, NY
Completed: Moonlight Walks
Projects: Ren'Py
Tool support is coming eventually. I'd really like it to be in the june release, even if it's hard to use.

_________________
Another Old-Fashioned Bishoujo Gamer
Supporting creators since 2004; Code > Drama
(When was the last time you backed up your game?)
"It is not the critic who counts; not the man who points out how the strong man stumbles, or where the doer of deeds could have done them better. The credit belongs to the man who is actually in the arena, whose face in marred by dust and sweat and blood; who strives valiantly; who errs, who comes short again and again, because there is no effort without error and shortcoming" - Theodore Roosevelt


Top
 Profile Send private message  
 
PostPosted: Sat Apr 07, 2012 10:29 am 
Crawling Chaos
User avatar

Joined: Mon Feb 13, 2012 5:37 am
Posts: 1113
Location: Kimashi Tower, Japan
Completed: SMAR,AAA
Projects: DMC
Pardon me.
I got a trouble while I was coding translations.
When I try to use a list of action which have both StylePreference() and Language() in the screen language, StylePreference() couldn't work (without Language(), it works though).
Is there another way to change both fonts and languages at the same time? or do I miss something?

Code:
init python:
    renpy.register_style_preference("text", "en", style.default, "font", "english.ttf")   
    renpy.register_style_preference("text", "jp", style.default, "font", "japanese.ttf")

screen preferences:
                    label _("{b}{color=#fff}Language    {/color}{/b}")
                    textbutton _("English") action [StylePreference("text", "en"), Language("none")]
                    textbutton _("Japanese") action [StylePreference("text", "jp"), Language("translations")]

_________________


Top
 Profile Send private message  
 
PostPosted: Sat Apr 07, 2012 11:14 am 
Ren'Py Creator
User avatar

Joined: Mon Feb 02, 2004 10:58 am
Posts: 10774
Location: Kings Park, NY
Completed: Moonlight Walks
Projects: Ren'Py
What's the error you're getting?

I think problems are very possible here - this stuff hasn't been used very often.

_________________
Another Old-Fashioned Bishoujo Gamer
Supporting creators since 2004; Code > Drama
(When was the last time you backed up your game?)
"It is not the critic who counts; not the man who points out how the strong man stumbles, or where the doer of deeds could have done them better. The credit belongs to the man who is actually in the arena, whose face in marred by dust and sweat and blood; who strives valiantly; who errs, who comes short again and again, because there is no effort without error and shortcoming" - Theodore Roosevelt


Top
 Profile Send private message  
 
PostPosted: Sat Apr 07, 2012 7:00 pm 
Crawling Chaos
User avatar

Joined: Mon Feb 13, 2012 5:37 am
Posts: 1113
Location: Kimashi Tower, Japan
Completed: SMAR,AAA
Projects: DMC
There is no error.
When I use [StylePreference("text", "en"), Language("none")], it seems only Language("none") is activated. StylePreference("text","en") is completely ignored as if it only has just [Language("none")].
I confirmed [StylePreference("text","en")] itself can be activated stand alone.

_________________


Top
 Profile Send private message  
 
PostPosted: Tue Apr 17, 2012 9:18 pm 
Ren'Py Creator
User avatar

Joined: Mon Feb 02, 2004 10:58 am
Posts: 10774
Location: Kings Park, NY
Completed: Moonlight Walks
Projects: Ren'Py
A fix for this will be in 6.13.12, due out shortly.

_________________
Another Old-Fashioned Bishoujo Gamer
Supporting creators since 2004; Code > Drama
(When was the last time you backed up your game?)
"It is not the critic who counts; not the man who points out how the strong man stumbles, or where the doer of deeds could have done them better. The credit belongs to the man who is actually in the arena, whose face in marred by dust and sweat and blood; who strives valiantly; who errs, who comes short again and again, because there is no effort without error and shortcoming" - Theodore Roosevelt


Top
 Profile Send private message  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: Bing [Bot], Skaiya


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Protected by Anti-Spam ACP
Powered by phpBB® Forum Software © phpBB Group