I was able to translate all the game's languages and import them back to the "LT" folder, now I have a problem adding the lines of code to the "screens.rpy" file, since I try to place the best possible but it always throws me error the game, you could indicate me exactly where the code should be placed to select the language please, I leave the contents of the screens.rpy file
screen main_menu tag menu:
window:
style "mm_root"
imagebutton auto "bg/menu_18/website_%s.png" xalign 0.99 yalign 0.99 action OpenURL("
You must be registered to see the links
")
imagebutton auto "bg/menu_18/continue_%s.png" xalign 0.01 yalign 0.99 action Start()
imagebutton auto "bg/menu_18/load_%s.png" xalign 0.175 yalign 0.99 action ShowMenu("load")
imagebutton auto "bg/menu_18/config_%s.png" xalign 0.33 yalign 0.99 action ShowMenu("preferences")
imagebutton auto "bg/menu_18/credits_%s.png" xalign 0.48 yalign 0.99 action ShowMenu("scr_credits6")
imagebutton auto "bg/menu_18/rewards_%s.png" xalign 0.65 yalign 0.99 action ShowMenu("gallery")
if renpy.loadable("2ds0hn.key"):
imagebutton idle "gui/extras_on2.png" xalign 0.01 yalign 0.01
add "bg/mm_logo_2.png" xalign 0.99 yalign 0.92
screen navigation:
frame:
style_group "menu_choice"
xalign .5
yalign .9999
has hbox
textbutton _("Save Game") action ShowMenu('save')
textbutton _("Load Game") action ShowMenu("load")
textbutton _("Settings") action ShowMenu("preferences")
textbutton _("Main Menu") action MainMenu()
textbutton _("Rewards") action ShowMenu("gallery")
textbutton _("Return") action Return()
textbutton _("Quit") action Quit()
screen choice(items):
window:
style "menu_window"
xalign 0.5
yalign 0.99
has vbox:
style "menu"
spacing 2
$ index = 0
for caption, action, chosen in items:
$ index += 1
if action:
button:
action action
style "menu_choice_button"
text caption style "menu_choice"
keysym "K_" + str(index)
else:
text caption style "menu_caption"
init -2:
style menu_window is frame:
yminimum 10
style menu_choice_button is button:
xminimum int(config.screen_width * 0.75)
xmaximum int(config.screen_width * 0.75)
screen preferences() tag menu:
add "gui/bg_settings.jpg"
use navigation
grid 4 1:
style_group "menu_choice"
xfill True
ypos 0.15
vbox:
frame:
style_group "mm"
has vbox:
xfill True
label _("Display") xalign .5 yalign .9999 text_size 25 padding (10,10,10,10)
textbutton _("Window") action Preference("display", "window") text_size 20 xalign .5 yalign .9999 padding (10,10,10,10)
textbutton _("Fullscreen") action Preference("display", "fullscreen") text_size 20 xalign .5 yalign .9999 padding (10,10,10,10)
frame:
style_group "mm"
has vbox:
xfill True
label _("Transitions") xalign .5 yalign .9999 text_size 25 padding (10,10,10,10)
textbutton _("All") action Preference("transitions", "all") text_size 20 xalign .5 yalign .9999 padding (10,10,10,10)
textbutton _("None") action Preference("transitions", "none") text_size 20 xalign .5 yalign .9999 padding (10,10,10,10)
frame:
style_group "mm"
has vbox:
xfill True
label _("Text Speed") xalign .5 yalign .9999 text_size 25 padding (10,10,10,10)
bar value Preference("text speed") xalign .5 yalign .9999
vbox:
frame:
style_group "mm"
has vbox:
xfill True
label _("Skip") xalign .5 yalign .9999 text_size 25 padding (10,10,10,10)
textbutton _("Seen Messages") action Preference("skip", "seen") text_size 20 xalign .5 yalign .9999 padding (10,10,10,10)
textbutton _("All Messages") action Preference("skip", "all") text_size 20 xalign .5 yalign .9999 padding (10,10,10,10)
frame:
style_group "mm"
has vbox:
xfill True
textbutton _("Begin Skipping") action Skip() xalign .5 yalign .9999 text_size 20 padding (10,10,10,10)
frame:
style_group "mm"
has vbox:
xfill True
label _("After Choices") xalign .5 yalign .9999 text_size 25 padding (10,10,10,10)
textbutton _("Stop Skipping") action Preference("after choices", "stop") xalign .5 yalign .9999 text_size 20 padding (10,10,10,10)
textbutton _("Keep Skipping") action Preference("after choices", "skip") xalign .5 yalign .9999 text_size 20 padding (10,10,10,10)
frame:
style_group "mm"
has vbox:
xfill True
label _("Auto-Forward Time") xalign .5 yalign .9999 text_size 25 padding (10,10,10,10)
bar value Preference("auto-forward time")
if config.has_voice:
textbutton _("Wait for Voice") action Preference("wait for voice", "toggle") xalign .5 yalign .9999 text_size 20 padding (10,10,10,10)
vbox:
frame:
style_group "mm"
has vbox:
xfill True
label _("Music Volume") xalign .5 yalign .9999 text_size 25 padding (10,10,10,10)
bar value Preference("music volume")
frame:
style_group "mm"
has vbox:
xfill True
label _("Sound Volume") xalign .5 yalign .9999 text_size 25 padding (10,10,10,10)
bar value Preference("sound volume")
frame:
style_group "mm"
has vbox:
xfill True
label _("Language") xalign .5 yalign .9999 text_size 25 padding (10,10,10,10)
textbutton "English" text_font "DejaVuSans.ttf" action Language(None) text_size 20 xalign .5 yalign .9999 padding (10,10,10,10)
if config.sample_sound:
textbutton _("Test"):
action Play("sound", config.sample_sound)
style "soundtest_button"
if config.has_voice:
frame:
style_group "pref"
has vbox
label _("Voice Volume")
bar value Preference("voice volume")
textbutton _("Voice Sustain") action Preference("voice sustain", "toggle")
if config.sample_voice:
textbutton _("Test"):
action Play("voice", config.sample_voice)
style "soundtest_button"
vbox:
frame:
style_group "mm"
has vbox:
xfill True
text _("Clear Persistent Data")
textbutton _("Delete Persistent") action Function(persistent._clear, progress=True) xalign 0.5
init -2 python:
x=0
y=0
screen load_save_slot:
$ x1=x+45
$ y1=y+25
add FileScreenshot(number) xpos x1 ypos y1
screen load_save_slot2:
$ x2=x+100
$ y2=y+100
add FileScreenshot(number) xpos x2 ypos y2
screen save() tag menu:
add "gui/bg_picker_save.jpg"
use file_picker("save")
screen load() tag menu:
add "gui/bg_picker_load.jpg"
use file_picker("load")
screen modal_input:
modal True
window style "input_window":
has vbox
text prompt style "input_prompt"
input id "input" style "input_text" length 80
init -2 python:
class get_save_name(FileSave):
def __init__(self, name, confirm=True, newest=True, page=None, cycle=False):
super(get_save_name,self).__init__(name=name,confirm=confirm,newest=newest,page=page,cycle=cycle)
def __call__(self):
renpy.call_in_new_context("get_save_name")
return super(get_save_name,self).__call__()
label get_save_name:
show screen save
$ save_name = "" + "%@" + str(v_stat_d_friend) + "%@" + str(v_stat_d_love) + "%@" + str(v_corruption)
$ save_name = renpy.call_screen("modal_input", prompt="Enter a description for your save file:", default="(None)", length=10)
$ save_name = save_name + "%@" + str(v_stat_d_friend) + "%@" + str(v_stat_d_love) + "%@" + str(v_corruption)
$ renpy.retain_after_load()
return
init python:
def get_extra_stuff(data):
if '%@' in data:
s_description,load_fp, load_lp,load_cl = data.split('%@', 3)
else:
load_fp = ''
load_lp = ''
load_cl = ''
s_description ='(No description)'
return (s_description,load_fp, load_lp,load_cl)
screen end_block:
imagebutton:
idle "bg invisible" xalign 0 yalign 0
screen file_picker(currentScreen):
use navigation
frame:
style "file_picker_frame"
ypos 0.1
has vbox
hbox:
style_group "menu_choice"
textbutton _("<<"):
if not persistent._file_page == "2":
action FilePage(1)
textbutton _("<"):
action FilePagePrevious()
for i in range(0, 13):
if not persistent._file_page or persistent._file_page == "auto" or persistent._file_page == "quick":
$ j =0
else:
if int(persistent._file_page)%12 == 0:
$ j = int(persistent._file_page)/12-1
else:
$ j = int(persistent._file_page)/12
textbutton str(j*12+i):
action FilePage(j*12+i)
textbutton _(">"):
action FilePageNext()
$ columns = 2
$ rows = 3
grid columns rows:
transpose True
xfill True
style_group "file_picker"
for i in range(1, columns * rows + 1):
button:
left_padding 10
right_padding 2
top_padding 10
bottom_padding 0
left_margin 0
right_margin 0
top_margin 0
bottom_margin 0
xysize (700, 175)
if currentScreen == "save":
action [SetVariable("save_name",_last_say_what[:50]), get_save_name(i)]
else:
action FileAction(i)
xfill True
if FileLoadable(i):
textbutton "Delete" action FileDelete(i) xalign 0.9959 yalign 0.95
add FileScreenshot(i)
$ file_name = FileSlotName(i, columns * rows)
$ file_time = FileTime(i, empty=_("Empty Slot."))
$ save_name = FileSaveName(i)
$ s_description, load_fp, load_lp,load_cl = get_extra_stuff(FileSaveName(i))
text "[file_name]. [file_time!t]\n" xpos 0.45
text "[s_description]" xpos 0.55 xalign 0.2 yalign 0.4 xminimum 0.5 xmaximum 0.5 text_align 0.5
text "{color=#284e35}FP: [load_fp]{/color} - {color=#ba3030}LP: [load_lp]{/color} - {color=#434343}CL: [load_cl]{/color}" xpos 0.45 yalign 0.9
key "save_delete" action FileDelete(i)
screen yesno_prompt:
on "show" action Play("sound", "sfx/alert.wav")
modal True
add "gui/yesno_ground.jpg"
imagebutton auto "gui/yesno_yes_%s.png" xpos 267 ypos 269 action yes_action hover_sound "sfx/click.wav"
imagebutton auto "gui/yesno_no_%s.png" xpos 836 ypos 269 action no_action hover_sound "sfx/click.wav"
if message == layout.ARE_YOU_SURE:
add "gui/yesno_are_you_sure.png"
elif message == layout.DELETE_SAVE:
add "gui/yesno_delete_save.png"
elif message == layout.OVERWRITE_SAVE:
add "gui/yesno_overwrite_save.png"
elif message == layout.LOADING:
add "gui/yesno_loading.png"
elif message == layout.QUIT:
add "gui/yesno_quit.png"
elif message == layout.MAIN_MENU:
add "gui/yesno_main_menu.png"
screen say:
default side_image = None
window:
id "window"
has vbox:
style "say_vbox"
if who:
text who id "who"
text what id "what"
if side_image:
add side_image
else:
add SideImage() xalign 0.0 yalign 1.0
init:
$ style.say_dialogue.drop_shadow = (2, 2)
$ style.say_dialogue.drop_shadow_color = "#000000"
# Decompiled by unrpyc:
You must be registered to see the links