Currently, there are 0 users and 0 guests visiting this topic.
Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #174630
    H2SO4JB
    Participant
    @h2so4jb

    Hello everyone,

    I work with a translation of all text in PinUP Popper. I have successfully translated all
    strings in the files PUPMenuScriptThemeOptions.txt and PuPMenuScriptSysLanguage.txt

    However, there are some short system strings that are still not done. I attach a screenshot
    of a example text with the string ‘Go Back’. I found this string in the file PuPMenuScript.pup
    on the lines 1414 and 1809. I know, it says I shouldn’t edit this file, but I can’t find this
    string anywhere else. When I edit this string on these two lines, restart PinUP Popper, then
    the old string still appear.

    So my question is, are there anybody here who knows how to translate these last strings?
    For example, this ‘Go Back’ string. What am I missing?

     

    1

    2

    #174636
    NailBuster
    Moderator
    @nailbuster
    ModeratorMember

    i think some of those text items are ‘fixed’.

    but you should in the .pup (in script files do a simple check for system icons like that)

    something like   if (js.gamedisplay==”GO BACK”) { js.gamedisplay=”translated version”;}

    you might need to put that in a few spots or maybe just in the updatemenu function in the pup.

    let me know how it goes….

     

    #174638
    H2SO4JB
    Participant
    @h2so4jb

    Thanks!
    I don’t know if I understood you 100% correctly, but I did this:

    jghjgh4

    I did this on both rows this string occurs. PinUP Popper starts, but
    now no text is displayed anywhere. Something is wrong. What am I missing?

    #174646
    TerryRed
    Moderator
    @terryred
    MemberContributorModerator

    Hello everyone,

    I work with a translation of all text in PinUP Popper. I have successfully translated all

    strings in the files PUPMenuScriptThemeOptions.txt and PuPMenuScriptSysLanguage.txt

    However, there are some short system strings that are still not done. I attach a screenshot

    of a example text with the string ‘Go Back’. I found this string in the file PuPMenuScript.pup

    on the lines 1414 and 1809. I know, it says I shouldn’t edit this file, but I can’t find this

    string anywhere else. When I edit this string on these two lines, restart PinUP Popper, then

    the old string still appear.

    So my question is, are there anybody here who knows how to translate these last strings?

    For example, this ‘Go Back’ string. What am I missing?

    1

    2

    The only things you should be editing are:

    PuPMenuScriptSysLanguage.txt

    PUPMenuScriptThemeOptions.txt

     

    That’s ALL you can edit for change of language or Custom Text,etc.

    Do NOT edit PuPMenuScript.pup as that is all the fallback settings and other functions that are not meant to be changed. You can screw things up!

     

    If you have changed all the options in PuPMenuScriptSysLanguage.txt and PUPMenuScriptThemeOptions.txt to a different language… then you have done everything you can. There’s nothing else to edit and nothing else I can point you to change.

     

    I think it’s great you are using this feature! I worked hard to add in all these customization options and I never hear back if anyone ever uses it!

    #174647
    H2SO4JB
    Participant
    @h2so4jb

    Hi Terry,

    Nice to talk to you, your videos have helped me a lot. Thanks for them!

    I even had to change the font to one that supports three Swedish special characters, and therefore also all
    X coordinates. So I’ve learned these two PUPMenuScriptThemeOptions.txt and PuPMenuScriptSysLanguage.txt files now. :-)

    So you mean there is no way for me to translate these strings, such as the ‘Go Back’ string in the screenshot?
    I mean, only the text that appears on the screen. No way?

    #174649
    TerryRed
    Moderator
    @terryred
    MemberContributorModerator

    Hi Terry,

    Nice to talk to you, your videos have helped me a lot. Thanks for them!

    I even had to change the font to one that supports three Swedish special characters, and therefore also all

    X coordinates. So I’ve learned these two PUPMenuScriptThemeOptions.txt and PuPMenuScriptSysLanguage.txt files now. :-)

    So you mean there is no way for me to translate these strings, such as the ‘Go Back’ string in the screenshot?

    I mean, only the text that appears on the screen. No way?

    Everything for Popper functions for changeable text I could add was included in PuPMenuScriptSysLanguage.txt such as

    // When “GoBack” is highlighted
    GoBack_Zone3P = “” ;
    GoBack_Zone4P = “” ;

    Beyond that, I think the rest were fixed and I couldn’t find a way to change them.

    1 user thanked author for this post.
    #174650
    H2SO4JB
    Participant
    @h2so4jb

    Okay, then I know. I’ll survive.  :-)
    Thanks for the help.

    #174675
    NailBuster
    Moderator
    @nailbuster
    ModeratorMember

    here’s some help, but you’ll have to figure the rest out.  notice i added a new labelset (3rd line with custom stuff).  so you just need to figure out which zone you want to change there and other places too.

    `/// When “GoBack” is highlighted
    if (js.GameDisplay == “Go Back”){
    PuPlayer.LabelSet(pGameInfo,”Text_Zone3F”,GoBack_Zone3P.substr(0,MaxCharSystem_Zone3), 1,”{‘mt’:2, ‘xpos’:”+Zone3F_xpoz.toString()+”,’ypos’:”+Zone3F_ypoz.toString()+” }”);
    PuPlayer.LabelSet(pGameInfo,”Text_Zone4F”,GoBack_Zone4P.substr(0,MaxCharSystem_Zone4), 1,”{‘mt’:2, ‘xpos’:”+Zone4F_xpoz.toString()+”,’ypos’:”+Zone4F_ypoz.toString()+” }”);
    PuPlayer.LabelSet(pGameInfo,”Text_Zone1F”,”CUSTOM HERE STUFF”, 1,”{‘mt’:2, ‘xpos’:”+Zone1F_xpoz.toString()+”,’ypos’:”+Zone1F_ypoz.toString()+” }”);
    }`

     

     

    #174817
    H2SO4JB
    Participant
    @h2so4jb

    Thanks, NailBuster!
    I added the third line and it worked. The example text “CUSTOM HERE STUFF” appears in the right place.
    However, the original text “Go Back” is also displayed at the same place. Should I hide the original
    text in some way or what do you mean?

    I’m no expert on JavaScript so excuse me if I seem stupid. :-)

    2020-04-23 20.06.00

    #174820
    NailBuster
    Moderator
    @nailbuster
    ModeratorMember

    not too sure… as i didn’t write the theme/script for it.  perhaps you need to find update a different label,

    notice my example showed ”Text_Zone1F”   and used ”Zone1F_xpoz” as well.

    maybe the original GO BACK is updating a different “Text_Zone2F” for example… just need to play around with it i guess.

Viewing 10 posts - 1 through 10 (of 10 total)
  • You must be logged in to reply to this topic.

©2021 VPinBall.com

Log in with your credentials

or    

Forgot your details?

Create Account

The Vpinball app

FREE
VIEW