[ACE][SCRIPT REQUEST] Movie Fullscreen Zoom Add-on

UPDATED:

So I've figured out a temporary solution to my problem but it is in no way a perfect fix hopefully Zeus or Zane may be able to look at this and figure out a way to preform it in fullscreen but til then i got what i want in windowed mode🙂

First Go to Game_Interpreter Line 1037+ and change it from this below.

Spoiler
#-------------------------------------------------------------------------- # * Play Movie #-------------------------------------------------------------------------- def command_261 Fiber.yield while $game_message.visible Fiber.yield name = @params[0] Graphics.play_movie('Movies/' + name) unless name.empty? end
to this below.

Spoiler
#-------------------------------------------------------------------------- # * Play Movie #-------------------------------------------------------------------------- def command_261 Fiber.yield while $game_message.visible Fiber.yield name = @params[0] Graphics.resize_screen(640,480) Graphics.play_movie('Movies/' + name) unless name.empty? Graphics.resize_screen(544,416) Resolution.resize(640,480) end
next lets create a new script under Materials and call it whatever you want I myself included it in my Core Script so if you plan to have multiple scripts within your game i would do the same otherwise just make a script called Resolution or something like that to make it easy to remember what the script does just by looking at its name. Next paste this script below.

Spoiler
#==============================================================================# ■ Class: Resolution#==============================================================================class Resolution def self.resize(width,height) getSystemMetrics = Win32API.new('user32', 'GetSystemMetrics', 'I', 'I') moveWindow = Win32API.new('user32','MoveWindow',['l','i','i','i','i','l'],'l') findWindowEx = Win32API.new('user32','FindWindowEx',['l','l','p','p'],'i') window = findWindowEx.call(0,0,"RGSS Player",0) screenwidth = getSystemMetrics.call(0) screenheight = getSystemMetrics.call(1) moveWindow.call(window,(screenwidth - width) / 2,(screenheight - height) / 2,width,height,1) endend
Alright sweet we are almost done now we need to go into our main process scripts and place 1 line of code into the Main Script.

It's the one that looks like this below initially.

Spoiler
#==============================================================================# ** Main#------------------------------------------------------------------------------# This processing is executed after module and class definition is finished.#==============================================================================rgss_main { SceneManager.run } 
Now make it look like this below.

Spoiler
#==============================================================================# ** Main#------------------------------------------------------------------------------# This processing is executed after module and class definition is finished.#==============================================================================Resolution.resize(640,480) # Resolution.resize(width,height)rgss_main { SceneManager.run } 
and now all modifications needed to run a higher resolution for both movies and gameplay in windowed mode is complete now when you play a movie in 640x480 it will center properly and then resize the graphic's back to its original size prior to increasing the resolution this way all images in other scripts don't need to be resized and edited its fully plug and play. this also works for higher resolution rates as well i've tested 800x600 for gameplay and it works perfectly fine i'm currently rendering a 800x600 video to test the movie side of things to make sure it still works with the 800x600 resolution so until then i can only confirm this works 100% for 640x480 windowed mode, but its a start in the right direction 🙂

UPDATE: anything above 640x480 has issue's when it comes to movies so trying to figure out if there is a way to center graphics because if so then all we'd need to do is make it center the video instead of using Graphics.resize_screen and it will work with any video does anyone know how i would go about getting it to center?
I recommend using my full screen script. It will go to your pc's native resolution and apply it to your TV, It works for movies also.

http://forums.rpgmakerweb.com/index.php?/topic/19981-full-screen-20/?hl=%2Bfull+%2Bscreen+%2Bzane
Why not use Zeus Video Player? IIRC it's completely compatible.

(It's RMVXA too)
i didn't realize there was already scripts made for this i did a google search and came up with nothing 🙁 for once google was not my friend 🙁 lol thanks guy's i'm gonna try these out and see how it looks 🙂
I recommend using my full screen script. It will go to your pc's native resolution and apply it to your TV, It works for movies also.

http://forums.rpgmakerweb.com/index.php?/topic/19981-full-screen-20/?hl=%2Bfull+%2Bscreen+%2Bzane
Tried both of these and neither of them worked zeus' version is incompatible with the animated title screen i'm using and zane's DOES NOT resize my movie image just the screen but the screen stretch is a major improvement to zeus's 640x480
Ah I figured it did from working directly from the graphics class. But I never had to play movies so I guess I never fully tested it :/ Sorry about the movie part. But glad you like the results of the screen size!
I had no idea that Ace didn't auto stretch movies.

oh crap those scripts didnt work. dang. I got a 61 inch screen too,
@Shin Well at least it will stretch your game across the screen haha.
@Shin Well at least it will stretch your game across the screen haha.
hey zane i've been experimenting and i figured out how to toggle changes to the movie's script but it only works in windowed mode atm we need to play with this a bit more.

Spoiler
class Game_Interpreter #-------------------------------------------------------------------------- # * Play Movie #-------------------------------------------------------------------------- def command_261 Fiber.yield while $game_message.visible Fiber.yield name = @params[0] Graphics.resize_screen(640, 480) Graphics.play_movie('Movies/' + name) unless name.empty? Graphics.resize_screen(544, 416) end 
i used this to test if i could use a 640 x 480 video and have it center properly and it actually worked as for the 544x416 line that was just to reset the size for the actual game cause i haven't converted all maps to work with 640x480 yet but it served as a good test to get in the right direction now we just need to convert this into the way you resized the game and it should theoretically work with your fullscreen script so try and see if you can find a way to emulate something like this in your script and that should hopefully fix your problem obviously your gonna have to change it to the format you use but that is what i did as an example to show it can be done easily like that for windowed mode 🙂

Original thread: https://forums.rpgmakerweb.com/threads/ace-script-request-movie-fullscreen-zoom-add-on.26094/