Jump to content

Stupid question that probably isn't possible, but oh well


Byno

Recommended Posts

As I have titled this, it's probably not possible, but just in case it is, here goes nothing: when I soft reset the game, the game always automatically goes to the middle of the screen, despite me having placed it in a different location before. I'm talking about the location of the app itself once you open it, and not the location of the file. Sorry if I've wasted your time with this

Edit: Just realised I don't show what I want, so here goes. I want to know if it's possible to have the game stay in the same location when I open it, and when I SR it too. As in, not having it go back to the middle of the screen again

Edited by Byno
Didn't mention main topic at hand
Link to comment
Share on other sites

You spent more time saying it's a stupid question than you spent actually asking it 😄

Anyway, here's the stupid answer to your stupid question: it is possible to do it by editing the stupid file Scripts.rxdata, stupid script Win32API_, stupid function Win32API.restoreScreen stupid lines about the two stupid variables x and y:
 

Spoiler

 


  def Win32API.restoreScreen   
    setWindowLong = Win32API.new('user32', 'SetWindowLong', 'LLL', 'L')
    setWindowPos = Win32API.new('user32', 'SetWindowPos', 'LLIIIII', 'I')
    metrics = Win32API.new('user32', 'GetSystemMetrics', 'I', 'I')
    hWnd =  pbFindRgssWindow
    width = DEFAULTSCREENWIDTH*$ResizeFactor
    height = DEFAULTSCREENHEIGHT*$ResizeFactor
    if $PokemonSystem && $PokemonSystem.border==1
      width += BORDERWIDTH*2*$ResizeFactor
      height += BORDERHEIGHT*2*$ResizeFactor
    end
    #####MODDED
    aRect = self.GetWindowRect
    x = aRect.x
    y = aRect.y
    #####/MODDED
    #####MODDED, was x = [(metrics.call(0)-width)/2,0].max
    #####MODDED, was y = [(metrics.call(1)-height)/2,0].max
    setWindowLong.call(hWnd, -16, 0x14CA0000)
    setWindowPos.call(hWnd, 0, x, y, width+6, height+29, 0)
    Win32API.focusWindow
    return [width,height]
  end

 

 

 

 


Stupid answer put in the stupid file for the stupid Reborn Episode 18.2.stupid:
Scripts.rxdata

Make a stupid backup of your stupid Scripts.rxdata and of your stupid savegames before stupidly trying it!

  • Upvote 1
Link to comment
Share on other sites

On 3/21/2020 at 9:24 AM, Waynolt said:

You spent more time saying it's a stupid question than you spent actually asking it 😄

Anyway, here's the stupid answer to your stupid question: it is possible to do it by editing the stupid file Scripts.rxdata, stupid script Win32API_, stupid function Win32API.restoreScreen stupid lines about the two stupid variables x and y:
 

  Reveal hidden contents

 



  def Win32API.restoreScreen   
    setWindowLong = Win32API.new('user32', 'SetWindowLong', 'LLL', 'L')
    setWindowPos = Win32API.new('user32', 'SetWindowPos', 'LLIIIII', 'I')
    metrics = Win32API.new('user32', 'GetSystemMetrics', 'I', 'I')
    hWnd =  pbFindRgssWindow
    width = DEFAULTSCREENWIDTH*$ResizeFactor
    height = DEFAULTSCREENHEIGHT*$ResizeFactor
    if $PokemonSystem && $PokemonSystem.border==1
      width += BORDERWIDTH*2*$ResizeFactor
      height += BORDERHEIGHT*2*$ResizeFactor
    end
    #####MODDED
    aRect = self.GetWindowRect
    x = aRect.x
    y = aRect.y
    #####/MODDED
    #####MODDED, was x = [(metrics.call(0)-width)/2,0].max
    #####MODDED, was y = [(metrics.call(1)-height)/2,0].max
    setWindowLong.call(hWnd, -16, 0x14CA0000)
    setWindowPos.call(hWnd, 0, x, y, width+6, height+29, 0)
    Win32API.focusWindow
    return [width,height]
  end

 

 

 

 


Stupid answer put in the stupid file for the stupid Reborn Episode 18.2.stupid:
Scripts.rxdata

Make a stupid backup of your stupid Scripts.rxdata and of your stupid savegames before stupidly trying it!

Hi Waynolt, How can I edit rxdata file like scripts? What software i need to do it?

Link to comment
Share on other sites

Just now, AzureSamurai said:

Thanks, One last question, How can i enable party debug(pokemon editor) on scripts?

Thanks in advance

If you open the game in the editor, you'll see a green play button at the top. You'll need to first grab Reborn's PBS files which is available on their FAQ and throw that file into the root folder of the game. Then, you just need to click that play button. Alternatively, you could just use this:

 

Link to comment
Share on other sites

On 3/21/2020 at 1:24 PM, Waynolt said:

You spent more time saying it's a stupid question than you spent actually asking it 😄

Anyway, here's the stupid answer to your stupid question: it is possible to do it by editing the stupid file Scripts.rxdata, stupid script Win32API_, stupid function Win32API.restoreScreen stupid lines about the two stupid variables x and y:
 

  Hide contents

 



  def Win32API.restoreScreen   
    setWindowLong = Win32API.new('user32', 'SetWindowLong', 'LLL', 'L')
    setWindowPos = Win32API.new('user32', 'SetWindowPos', 'LLIIIII', 'I')
    metrics = Win32API.new('user32', 'GetSystemMetrics', 'I', 'I')
    hWnd =  pbFindRgssWindow
    width = DEFAULTSCREENWIDTH*$ResizeFactor
    height = DEFAULTSCREENHEIGHT*$ResizeFactor
    if $PokemonSystem && $PokemonSystem.border==1
      width += BORDERWIDTH*2*$ResizeFactor
      height += BORDERHEIGHT*2*$ResizeFactor
    end
    #####MODDED
    aRect = self.GetWindowRect
    x = aRect.x
    y = aRect.y
    #####/MODDED
    #####MODDED, was x = [(metrics.call(0)-width)/2,0].max
    #####MODDED, was y = [(metrics.call(1)-height)/2,0].max
    setWindowLong.call(hWnd, -16, 0x14CA0000)
    setWindowPos.call(hWnd, 0, x, y, width+6, height+29, 0)
    Win32API.focusWindow
    return [width,height]
  end

 

 

 

 


Stupid answer put in the stupid file for the stupid Reborn Episode 18.2.stupid:
Scripts.rxdata

Make a stupid backup of your stupid Scripts.rxdata and of your stupid savegames before stupidly trying it!

If it's not asking too much of you, could you please do this and upload the scripts.rxdata for Rejuvenation as well?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...