Screen Resolution + Map Size?

Im using this screen resolution script to change it to 720p resolution and im having troubles with the map fitting the resolution.
Im aware of the resolution script that stretches instead of changing and i dont want it.
Here is what it looks like if you were to use the script.
Image
Content Hidden Spoiler
  1. #==============================================================================
  2. # ■ Win32API
  3. #------------------------------------------------------------------------------
  4. # by Squall [email hidden]
  5. # Change the window size
  6. # I must thank cybersam for his mouse and keyboard scripts. they were very
  7. # useful finding some winapi function.
  8. #
  9. # !! this script MUST be on top of all other or the game will crash,
  10. #    if you use scripts to enlarge maps!
  11. #==============================================================================
  12.  
  13. class Win32API
  14. #--------------------------------------------------------------------------
  15. # - define constant
  16. #--------------------------------------------------------------------------
  17. GAME_INI_FILE = ".\\Game.ini"         # define "Game.ini" file
  18. HWND_TOPMOST = 0                      # window always active
  19. HWND_TOP = -1                         # window active when used only
  20. SWP_NOMOVE   = 0                      # window pos and sizes can be changed
  21. #--------------------------------------------------------------------------
  22. # - Win32API.GetPrivateProfileString // check your game title in Game.ini
  23. #--------------------------------------------------------------------------
  24. def Win32API.GetPrivateProfileString(section, key)
  25.    val = "\0"*256
  26.    gps = Win32API.new('kernel32', 'GetPrivateProfileString',%w(p p p p l p), 'l')
  27.    gps.call(section, key, "", val, 256, GAME_INI_FILE)
  28.    val.delete!("\0")
  29.    return val
  30. end
  31. #--------------------------------------------------------------------------
  32. # - Win32API.FindWindow // find the RGSS window
  33. #--------------------------------------------------------------------------
  34. def Win32API.FindWindow(class_name, title)
  35.    fw = Win32API.new('user32', 'FindWindow', %(p, p), 'i')
  36.    hWnd = fw.call(class_name, title)
  37.    return hWnd
  38. end
  39. #--------------------------------------------------------------------------
  40. # - Win32API.SetWindowPos // change window positions and sizes
  41. #--------------------------------------------------------------------------
  42. def Win32API.SetWindowPos(w, h)
  43.    title =  Win32API.GetPrivateProfileString("Game", "Title")
  44.    hWnd = Win32API.FindWindow("RGSS Player", title)
  45.    swp = Win32API.new('user32', 'SetWindowPos', %(l, l, i, i, i, i, i), 'i')
  46.    win = swp.call(hWnd, HWND_TOP, 240, 240, w + 6, h + 32, 0)
  47.  
  48.    #the line below makes the window on top of all others
  49.    #win = swp.call(hWnd, HWND_TOPMOST, 0, 0, w + 6, h + 32, SWP_NOMOVE)
  50.    return win
  51. end
  52. #--------------------------------------------------------------------------
  53. # - Win32API.client_size // check the window width and height
  54. #--------------------------------------------------------------------------
  55. def Win32API.client_size
  56.    title =  Win32API.GetPrivateProfileString("Game", "Title")
  57.    hWnd = Win32API.FindWindow("RGSS Player", title)
  58.    rect = [0, 0, 0, 0].pack('l4')
  59.    Win32API.new('user32', 'GetClientRect', %w(l p), 'i').call(hWnd, rect)
  60.    width, height = rect.unpack('l4')[2..3]
  61.    return width, height
  62. end
  63. end
  64.  
  65. #==============================================================================
  66. # - proceed with creation of the window
  67. #------------------------------------------------------------------------------
  68. # the width and height variables set the screen size.
  69. #==============================================================================
  70. $width = 1280
  71. $height = 720
  72. win = Win32API.SetWindowPos($width, $height)
  73. if(win == 0)
  74.    p "Size change has failed!"
  75. end
Expand to see the code.

I tried editing viewports in the Spriteset_Map but had nothing but fail.

What scripts would i need to change and what parts in order to see the map all the way and do scrolling correctly?

Thanks in advance.
The script you posted changes the resloution, but not the viewport.

Take a look on Spriset_Map and Spriteset_Battle and change the viewport values, it's probably (0, 0, 640, 480)
I tried to change it but the screen goes all wacky when i try to move.
Selwyns resolution script (the one you're using, and the "stretch"-script as well, assuming my Custom Resolution Script) won't work beyond 640x480 pixels. You can't change this by simply editing viewports or the like.
I also can't point you to an existing system, as I'm not aware of one, however, I think I remember vgvgf doing something of the sort... and in general, I think I've seen it done... as I said though: Not with Selwyns script.
While screen resolution scripts will actually work with larger sized, you are forced to face issues related to movement, until you figure out how to define the center coordinates and bounds of a map for the new screen size. You'll also need a custom Tilemap, since the default one won't work properly in larger resolutions, and will not display all tiles on the extra portions of the screen.

Original thread: https://www.hbgames.org/forums/viewtopic.php?t=71054