Advertiser Content

WolfPP

Discord: Wolf#1235

Male
Brazil
Seen 37 Minutes Ago
Posted 37 Minutes Ago
871 posts
1.3 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):
  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,0x57]                # Up
    when Input::A;     return [0x5A,0x57,0x59,0x10] # Z, W, Y, Shift Pay attention here because button A is the same if you press W. So, delete it.
The relacion of buttons and codes:
Spoiler:

module Keys
  # Available keys
  CONTROLSLIST = {
    # Mouse buttons
    _INTL("Backspace") => 0x08,
    _INTL("Tab") => 0x09,
    _INTL("Clear") => 0x0C,
    _INTL("Enter") => 0x0D,
    _INTL("Shift") => 0x10,
    _INTL("Ctrl") => 0x11,
    _INTL("Alt") => 0x12,
    _INTL("Pause") => 0x13,
    _INTL("Caps Lock") => 0x14,
    # IME keys
    _INTL("Esc") => 0x1B,
    # More IME keys
    _INTL("Space") => 0x20,
    _INTL("Page Up") => 0x21,
    _INTL("Page Down") => 0x22,
    _INTL("End") => 0x23,
    _INTL("Home") => 0x24,
    _INTL("Left") => 0x25,
    _INTL("Up") => 0x26,
    _INTL("Right") => 0x27,
    _INTL("Down") => 0x28,
    _INTL("Select") => 0x29,
    _INTL("Print") => 0x2A,
    _INTL("Execute") => 0x2B,
    _INTL("Print Screen") => 0x2C,
    _INTL("Insert") => 0x2D,
    _INTL("Delete") => 0x2E,
    _INTL("Help") => 0x2F,
    _INTL("0") => 0x30,
    _INTL("1") => 0x31,
    _INTL("2") => 0x32,
    _INTL("3") => 0x33,
    _INTL("4") => 0x34,
    _INTL("5") => 0x35,
    _INTL("6") => 0x36,
    _INTL("7") => 0x37,
    _INTL("8") => 0x38,
    _INTL("9") => 0x39,
    _INTL("A") => 0x41,
    _INTL("B") => 0x42,
    _INTL("C") => 0x43,
    _INTL("D") => 0x44,
    _INTL("E") => 0x45,
    _INTL("F") => 0x46,
    _INTL("G") => 0x47,
    _INTL("H") => 0x48,
    _INTL("I") => 0x49,
    _INTL("J") => 0x4A,
    _INTL("K") => 0x4B,
    _INTL("L") => 0x4C,
    _INTL("M") => 0x4D,
    _INTL("N") => 0x4E,
    _INTL("O") => 0x4F,
    _INTL("P") => 0x50,
    _INTL("Q") => 0x51,
    _INTL("R") => 0x52,
    _INTL("S") => 0x53,
    _INTL("T") => 0x54,
    _INTL("U") => 0x55,
    _INTL("V") => 0x56,
    _INTL("W") => 0x57,
    _INTL("X") => 0x58,
    _INTL("Y") => 0x59,
    _INTL("Z") => 0x5A,
    # Windows keys
    _INTL("Numpad 0") => 0x60,
    _INTL("Numpad 1") => 0x61,
    _INTL("Numpad 2") => 0x62,
    _INTL("Numpad 3") => 0x63,
    _INTL("Numpad 4") => 0x64,
    _INTL("Numpad 5") => 0x65,
    _INTL("Numpad 6") => 0x66,
    _INTL("Numpad 7") => 0x67,
    _INTL("Numpad 8") => 0x68,
    _INTL("Numpad 9") => 0x69,
    _INTL("Multiply") => 0x6A,
    _INTL("Add") => 0x6B,
    _INTL("Separator") => 0x6C,
    _INTL("Subtract") => 0x6D,
    _INTL("Decimal") => 0x6E,
    _INTL("Divide") => 0x6F,
    _INTL("F1") => 0x70,
    _INTL("F2") => 0x71,
    _INTL("F3") => 0x72,
    _INTL("F4") => 0x73,
    _INTL("F5") => 0x74,
    _INTL("F6") => 0x75,
    _INTL("F7") => 0x76,
    _INTL("F8") => 0x77,
    _INTL("F9") => 0x78,
    _INTL("F10") => 0x79,
    _INTL("F11") => 0x7A,
    _INTL("F12") => 0x7B,
    _INTL("F13") => 0x7C,
    _INTL("F14") => 0x7D,
    _INTL("F15") => 0x7E,
    _INTL("F16") => 0x7F,
    _INTL("F17") => 0x80,
    _INTL("F18") => 0x81,
    _INTL("F19") => 0x82,
    _INTL("F20") => 0x83,
    _INTL("F21") => 0x84,
    _INTL("F22") => 0x85,
    _INTL("F23") => 0x86,
    _INTL("F24") => 0x87,
    _INTL("Num Lock") => 0x90,
    _INTL("Scroll Lock") => 0x91,
    # Multiple position Shift, Ctrl and Menu keys
    _INTL(";:") => 0xBA,
    _INTL("+") => 0xBB,
    _INTL(",") => 0xBC,
    _INTL("-") => 0xBD,
    _INTL(".") => 0xBE,
    _INTL("/?") => 0xBF,
    _INTL("`~") => 0xC0,
    _INTL("{") => 0xDB,
    _INTL("\|") => 0xDC,
    _INTL("}") => 0xDD,
    _INTL("'\"") => 0xDE,
    _INTL("AX") => 0xE1, # Japan only
    _INTL("\|") => 0xE2
    # Disc keys
  }



2) Check your 'Settings' script and you will find:
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:
  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
Male
Seen March 30th, 2019
Posted March 8th, 2019
14 posts
5.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?

WolfPP

Discord: Wolf#1235

Male
Brazil
Seen 37 Minutes Ago
Posted 37 Minutes Ago
871 posts
1.3 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:
@screensize  = (1.floor).to_i
Or (first ignore above) and change, in "Setting" script, to:
DEFAULTSCREENZOOM    = 2.0
Male
Seen March 30th, 2019
Posted March 8th, 2019
14 posts
5.5 Years
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.
Advertiser Content