• Our software update is now concluded. You will need to reset your password to log in. In order to do this, you will have to click "Log in" in the top right corner and then "Forgot your password?".
  • Welcome to PokéCommunity! Register now and join one of the best fan communities on the 'net to talk Pokémon and more! We are not affiliated with The Pokémon Company or Nintendo.

Display your game version on the title screen

76
Posts
8
Years
    • Seen Oct 6, 2017
    RnMPu6e.png


    Difficulty: Easy

    -----​

    This tutorial will show you how to display the downloaded version of the client on the title screen, like the picture above.
    You can do this with NO scripting knowledge whatsoever!

    This first thing that you want to do is go to the Settings script. You could really put this line of code anywhere, but I find it is easiest to access in Settings.
    Above everything else in settings, add this line of code:
    Code:
    #CURRENT VERSION
    $currentGameVersion = "0.10"
    It should look like this. The "0.10" is where you will change the version number. Make sure to never remove the quotation marks!

    Next, go to PScreen_Load. The lines we are going to modify start at around 312. If you modified your PScreen_Load, search for
    Code:
    commands[cmdContinue=commands.length]=_INTL("Continue") if showContinue
    If you search for that, it will take you to where we are going to edit the code.
    So, once you are where we want to be, you are going to add this line of code in two places:
    (If you want the text to say something different, like "Current Version", change that here! Also, make sure there is a space after the colon.)
    Code:
    commands[cmdVersion=commands.length]=_INTL("Downloaded Version: " + $currentGameVersion)

    The first place you are going to want to put it, is immediately after this:
    Code:
    commands[cmdContinue=commands.length]=_INTL("Continue") if showContinue
    commands[cmdNewGame=commands.length]=_INTL("New Game")
    commands[cmdMysteryGift=commands.length]=_INTL("Mystery Gift") if (trainer.mysterygiftaccess rescue false)
    commands[cmdOption=commands.length]=_INTL("Options")
    The second place you are going to want to put it, is after this:
    Code:
    commands[cmdNewGame=commands.length]=_INTL("New Game")
    commands[cmdOption=commands.length]=_INTL("Options")
    That should be it! Click Apply, then start your game. The finished result should be exactly like the picture at the top of the post. Enjoy!
     
    Last edited:
    150
    Posts
    8
    Years
    • Seen Jul 13, 2023
    Thanks for the quick tutorial! :]

    Spoiler:

    _______________________________________________________________________________________________________________________________________

    EDIT: Actually my first idea above kinda just displaces the "Continue" button. I've come up with a cleaner way to implement a simple version display that doesn't use a unselectable menu entry:

    Spoiler:

    To do this, edit this part of PScreen_Load and add the part in red:
    Code:
      def pbStartScene(commands,showContinue,trainer,framecount,mapid)
        @commands=commands
        @sprites={}
        @viewport=Viewport.new(0,0,Graphics.width,Graphics.height)
        @viewport.z=99998
        
    [COLOR="Red"]    @sprites["title"]=Window_UnformattedTextPokemon.newWithSize(
           _INTL("Downloaded Version:  " + $currentGameVersion),40,-15,Graphics.width,64,@viewport)[/COLOR]
    
        addBackgroundOrColoredPlane(@sprites,"background","loadbg",
           Color.new(248,248,248),@viewport)
    *The only problem with this now is that it stays fixed to the top of the viewport when the page scrolls. I don't know how to fix this.
     
    Last edited:
    Back
    Top