RPG Maker Forums

I have been playing around with the WinAPI and RGSS3 for a while and I stumbled upon a script I wanted to make, though, there's a small problem on it. Using the 'RGSS Player' gives me an exact 544 x 416 snapshot, however, changing it to 'RGSS3 Player' somehow diverts the snapshot into a different x and y, capturing only a portion of the screen.

Here's what I am talking about:

def self.screenshot_game_sc prtsc_screenshot = Win32API.new('screenshot.dll', 'Screenshot', %w(l l l l p l l), '') window = Win32API.new('user32', 'FindWindowA', %w(p p), 'l') ini = (Win32API.new 'kernel32', 'GetPrivateProfileStringA', %w(p p p p l p), 'l') ace_game_name = "\0" * 256 ini.call('Game', 'Title', '', ace_game_name, 255, '.\Game.ini') ace_game_name.delete!('\0') win = window.call('RGSS Player', ace_game_name) dir = Dir.new("Screenshots/") count = 0 dir.entries.each {|i| count += 1} ace_file_name = "Screenshots/shot#{count}.png" prtsc_screenshot.call(0, 0, 544, 416, ace_file_name, win, 2) endHere's how this works, using a dll, this should work exactly as I want it to be, but whenever I do use RGSS3 player, it doesn't seem to work that much as I wanted. Is there a difference of how I should use the Win32API for the RGSS3?

Latest Threads

Latest Posts

Latest Profile Posts

Just beat the last of us 2 last night and starting jedi: fallen order right now, both use unreal engine & when I say i knew 80% of jedi's buttons right away because they were the same buttons as TLOU2 its ridiculous, even the same narrow hallway crawl and barely-made-it jump they do. Unreal Engine is just big budget RPG Maker the way they make games nearly identical at its core lol.
Can someone recommend some fun story-heavy RPGs to me? Coming up with good gameplay is a nightmare! I was thinking of making some gameplay platforming-based, but that doesn't work well in RPG form*. I also was thinking of removing battles, but that would be too much like OneShot. I don't even know how to make good puzzles!
one bad plugin combo later and one of my followers is moonwalking off the screen on his own... I didn't even more yet on the new map lol.
time for a new avatar :)

Forum statistics

Threads
106,018
Messages
1,018,357
Members
137,803
Latest member
andrewcole
Top