• 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.

[Custom Feature Question] Keybinds and Full Screen question

14
Posts
9
Years
    • Seen Jan 27, 2022
    Hello everyone! I have 2 questions for today and would be happy to see your replies!

    1) How to add multiple keybindings for 1 action? For example move forward to be functional with both arrow key and "W".
    2) How to use full screen permanently enabled in game?

    Thank you
     

    WolfPP

    Spriter/ Pixel Artist
    1,309
    Posts
    5
    Years
  • Hello everyone! I have 2 questions for today and would be happy to see your replies!

    1) How to add multiple keybindings for 1 action? For example move forward to be functional with both arrow key and "W".
    2) How to use full screen permanently enabled in game?

    Thank you
    1) in 'PSystem_Controls' search to 'def self.buttonToKey(button)' and edit. Example usin your example (lol):
    Code:
      def self.buttonToKey(button)
        case button
        when Input::DOWN;  return [0x28]                # Down
        when Input::LEFT;  return [0x25]                # Left
        when Input::RIGHT; return [0x27]                # Right
        when Input::UP;    return [0x26[COLOR="Red"],0x57[/COLOR]]                # Up
        when Input::A;     return [0x5A[COLOR="red"],0x57[/COLOR],0x59,0x10] # Z, W, Y, Shift [COLOR="Red"]Pay attention here because button A is the same if you press W. So, delete it.[/COLOR]
    The relacion of buttons and codes:
    Spoiler:



    2) Check your 'Settings' script and you will find:
    Code:
    DEFAULTSCREENWIDTH   = 512
    DEFAULTSCREENHEIGHT  = 384
    DEFAULTSCREENZOOM    = 1.0
    FULLSCREENBORDERCROP = false
    BORDERWIDTH          = 80
    BORDERHEIGHT         = 80
    MAPVIEWMODE          = 1

    Or maybe here, in 'PScreen_Options', should be more easy:
    Code:
      def initialize
        @textspeed   = 2   # Text speed (0=slow, 1=normal, 2=fast)
        @battlescene = 0   # Battle effects (animations) (0=on, 1=off)
        @battlestyle = 0   # Battle style (0=switch, 1=set)
        @frame       = 0   # Default window frame (see also $TextFrames)
        @textskin    = 0   # Speech frame
        @font        = 1   # Font (see also $VersionStyles)
        @screensize  = (DEFAULTSCREENZOOM.floor).to_i # 0=half size, 1=full size, 2=double size
        @border      = 0   # Screen border (0=off, 1=on)
        @language    = 0   # Language (see also LANGUAGES in script PokemonSystem)
        @runstyle    = 1   # Run key functionality (0=hold to run, 1=toggle auto-run)
        @bgmvolume   = 50 # Volume of background music and ME
        @sevolume    = 60 # Volume of sound effects
        @textinput   = 1   # Text input mode (0=cursor, 1=keyboard)
      end
     
    Last edited:
    14
    Posts
    9
    Years
    • Seen Jan 27, 2022
    Thank you for the very detailed reply! I completed 1).
    Regarding my 2nd request though, I am changing:
    @screensize = (DEFAULTSCREENZOOM.floor).to_i # 0=half size, 1=full size, 2=double size to @screensize = 1 # 0=half size, 1=full size, 2=double size
    But nothing changes, I also tried 2 and still same, so maybe I should go with 'Settings' script instead or am I doing something wrong?
     

    WolfPP

    Spriter/ Pixel Artist
    1,309
    Posts
    5
    Years
  • Thank you for the very detailed reply! I completed 1).
    Regarding my 2nd request though, I am changing:
    @screensize = (DEFAULTSCREENZOOM.floor).to_i # 0=half size, 1=full size, 2=double size to @screensize = 1 # 0=half size, 1=full size, 2=double size
    But nothing changes, I also tried 2 and still same, so maybe I should go with 'Settings' script instead or am I doing something wrong?

    You did wrong because the code needs '(x.floor).to_i'
    So, try to write:
    Code:
    @screensize  = (1.floor).to_i

    Or (first ignore above) and change, in "Setting" script, to:
    Code:
    DEFAULTSCREENZOOM    = 2.0
     
    Last edited:
    14
    Posts
    9
    Years
    • Seen Jan 27, 2022
    I tried both and nothing works for some reason.
    Method one: @screensize = (1.floor).to_i # 0=half size, 1=full size, 2=double size
    Method two (After reverting method one): DEFAULTSCREENZOOM = 2.0

    I tried changing the DEFAULTSCREENWIDTH and DEFAULTSCREENHEIGHT on 'settings' and it worked but that's not the proper fix for me.
     
    Last edited:
    Back
    Top