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

Link to post
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!

Link to post
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 post
Share on other sites
19 minutes ago, AzureSamurai said:

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

You'd need a copy of rpg maker XP and to insert a game.rxproj file into the root folder of Reborn 

Link to post
Share on other sites
2 minutes ago, AzureSamurai said:

And where i get a game.rxproj?

If you create a new project in RPG Maker, it'll create one automatically. From there, it's just an easy copy-paste

Link to post
Share on other sites
39 minutes ago, Michael_ said:

If you create a new project in RPG Maker, it'll create one automatically. From there, it's just an easy copy-paste

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

Thanks in advance

Link to post
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 post
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 post
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...