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

ViperX420

Veteran
Veteran
Joined
Mar 28, 2014
Messages
62
Reaction score
23
First Language
English
Primarily Uses
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.

#-------------------------------------------------------------------------- # * 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.

#-------------------------------------------------------------------------- # * 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.

#==============================================================================# ■ 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.

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

#==============================================================================# ** 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?
 
Last edited by a moderator:

ViperX420

Veteran
Veteran
Joined
Mar 28, 2014
Messages
62
Reaction score
23
First Language
English
Primarily Uses
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 :)
 

ViperX420

Veteran
Veteran
Joined
Mar 28, 2014
Messages
62
Reaction score
23
First Language
English
Primarily Uses
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
 

Zane

Food for thought
Veteran
Joined
Jun 9, 2013
Messages
913
Reaction score
110
First Language
US English
Primarily Uses
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!
 

ShinGamix

DS Style 4Ever!
Veteran
Joined
Mar 18, 2012
Messages
3,905
Reaction score
451
First Language
April Fools
Primarily Uses
N/A
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,
 

Zane

Food for thought
Veteran
Joined
Jun 9, 2013
Messages
913
Reaction score
110
First Language
US English
Primarily Uses
@Shin Well at least it will stretch your game across the screen haha.
 

ViperX420

Veteran
Veteran
Joined
Mar 28, 2014
Messages
62
Reaction score
23
First Language
English
Primarily Uses
@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.

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 :)
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

How many parameters is 'too many'??
Yay, now back in action Happy Christmas time, coming back!






Back in action to develop the indie game that has been long overdue... Final Fallacy. A game that keeps on giving! The development never ends as the developer thinks to be the smart cookie by coming back and beginning by saying... "Oh bother, this indie game has been long overdue..." How could one resist such? No-one c
So I was playing with filters and this looked interesting...

Versus the normal look...

Kind of gives a very different feel. :LZSexcite:
To whom ever person or persons who re-did the DS/DS+ asset packs for MV (as in, they are all 48x48, and not just x2 the pixel scale) .... THANK-YOU!!!!!!!!! XwwwwX

Forum statistics

Threads
105,849
Messages
1,016,975
Members
137,563
Latest member
cexojow
Top