Maximize RMVX - Full Screen -, Maximize RMVX Window Bug - Full Screen - |
|
|
|
|
May 6 2008, 01:30 PM
|

Level 5

Group: Member
Posts: 60
Type: Event Designer
RM Skill: Skilled

|
This is also a good resolution script http://www.rpgrevolution.com/forums/?showtopic=14066I ran into a crazy bug in RMVX. That allows you to Maximize the Screen. So I put a script together to show you how it works. First of all you will need to put in the Movie Script http://www.rpgrevolution.com/forums/?showtopic=11987Next Download the attachment & put it in your Project Folder [MyDocuments/RMVX/Project/'folderhere'] Then you must run RMVX in Full Screen  & replace Script Editor in Main 'script' with this code. CODE #============================================================================== # ** Main #------------------------------------------------------------------------------ # After defining each class, actual processing begins here. #==============================================================================
begin Graphics.freeze Audio.bgm_play("Movies/" + '0', 0, 0) Audio.bgm_stop $scene = Scene_Movie.close_scene $scene = Scene_Movie.new("0") $scene = Scene_Title.new $keybd = Win32API.new ('user32.dll', 'keybd_event', ['i', 'i', 'l', 'l'], 'v') $keybd.call 0xA4, 0, 0, 0 $keybd.call 0x0D, 0, 0, 0 $keybd.call 0xA4, 0, 2, 0 $keybd.call 0x0D, 0, 2, 0 $scene.main while $scene != nil Graphics.transition(30) rescue Errno::ENOENT filename = $!.message.sub("No such file or directory - ", "") print("Unable to find file #{filename}.") end It'll do some crazy stuff, but wait till the Main Title's Audio starts to play then click on the Game on the Taskbar. -The Graphics might be Frozen, but Minimize it and Maximize it again & then it should play.--It might work on some computers; It'll depend on your system.-# I'm Just Letting Everyone Know so those who want to look into making a better script can use this as reference to an alternative Full Screen. #
This post has been edited by anime4mage: May 27 2008, 07:28 AM
__________________________
|
|
|
|
|
|
|
|
|
May 6 2008, 02:40 PM
|

Looking for scripter to hire? PM me *O*

Group: +Gold Member
Posts: 1,038
Type: Scripter
RM Skill: Undisclosed

|
As far as I know, that's only full screen script at this time :3 + The movie script is also include same script that change window to fullscreen. CODE def close_scene $keybd = Win32API.new ('user32.dll', 'keybd_event', ['i', 'i', 'l', 'l'], 'v') $keybd.call 0xA4, 0, 0, 0 $keybd.call 0x73, 0, 0, 0 $keybd.call 0x73, 0, 2, 0 $keybd.call 0xA4, 0, 2, 0 end #End Movie Script#
__________________________
Check out my NEW blog!!! MVP (Most Valuable Poster) Award 2008 
|
|
|
|
|
|
|
|
Guest_From_Ariel_*
|
May 15 2008, 11:08 AM
|
Guests

|
This is the functional part of the code that makes it go fullscreen...... hell if I know how / why... I literally removed everything i could and it would still do the maximized stretched window thing... If you remove even one more thing it stopps working maybe someone can figure out how to automatically set the window to forfront CODE class Scene_Movie def initialize(movie) @readini = Win32API.new 'kernel32', 'GetPrivateProfileStringA', %w(p p p p l p), 'l' @movie_name = Dir.getwd()+"\\Movies\\"+movie+".mpg" main end
def main $keybd = Win32API.new ('user32.dll', 'keybd_event', ['i', 'i', 'l', 'l'], 'v') $keybd.call 0xA4, 0, 0, 0 $keybd.call 0x73, 0, 0, 0 $keybd.call 0x73, 0, 2, 0 $keybd.call 0xA4, 0, 2, 0 $keybd = Win32API.new ('user32.dll', 'keybd_event', ['i', 'i', 'l', 'l'], 'v') $keybd.call 0xA4, 0, 0, 0 $keybd.call 0x0D, 0, 0, 0 $keybd.call 0xA4, 0, 2, 0 $keybd.call 0x0D, 0, 2, 0
status = " " * 255 loop do sleep(0.1) true_status = status.unpack("aaaa") Input.update break end end end I reduced the calls in main down to this... CODE #====================================================================== ======== # ** Main #------------------------------------------------------------------------------ # After defining each class, actual processing begins here. #==============================================================================
begin Graphics.freeze Audio.bgm_play("Movies/" + '0', 0, 0) Audio.bgm_stop
$scene = Scene_Movie.new("0")
$scene = Scene_Title.new
$scene.main while $scene != nil Graphics.transition(30) rescue Errno::ENOENT filename = $!.message.sub("No such file or directory - ", "") print("Unable to find file #{filename}.") end So hopefully someone else can build off this...
|
|
|
|
|
|
|
|
|
May 21 2008, 07:09 AM
|

Level 5

Group: Member
Posts: 60
Type: Event Designer
RM Skill: Skilled

|
hey that's Great! but I would leave in one more keybd code on main, because somehow it didn't work on my computer. CODE #============================================================================== # ** Main #------------------------------------------------------------------------------ # After defining each class, actual processing begins here. #==============================================================================
begin Graphics.freeze Audio.bgm_play("Movies/" + '0', 0, 0) Audio.bgm_stop $scene = Scene_Movie.new("0") $scene = Scene_Title.new $keybd = Win32API.new ('user32.dll', 'keybd_event', ['i', 'i', 'l', 'l'], 'v') $keybd.call 0xA4, 0, 0, 0 $keybd.call 0x0D, 0, 0, 0 $keybd.call 0xA4, 0, 2, 0 $keybd.call 0x0D, 0, 2, 0 $scene.main while $scene != nil Graphics.transition(30) rescue Errno::ENOENT filename = $!.message.sub("No such file or directory - ", "") print("Unable to find file #{filename}.") end
__________________________
|
|
|
|
|
|
|
|
Guest_From_Ariel_*
|
May 21 2008, 09:15 AM
|
Guests

|
Heres a finished polished and more accurate way to do it.... W/o relying on a bug Special thnx in script... CODE #------------------------------------------------------ # High resoloution addon # Thnx Mechacrash and Kyloc and myself when I get done upddating it # # I attached it onto here asi want videos to play and be caled upto the new # window size please help..... # # ..... Usage: Resolution.resize(Width,Height) # This will scale the window upto width/height #so I.E. # #... Rpgamker VX defailt windowed size = 544x416 if we put Resolution.resize(1088,832) in main #Then the windowed mode will be scaled upto 1088x832 i.e 200% # # # p.s. this is currently a part of a W.I.P. script of my own that might blow peoples socks off. #more to come. 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) if width == 0 and height == 0 then moveWindow.call(window,0,0,screenwidth ,screenheight ,1) else moveWindow.call(window,(screenwidth - width) / 2,(screenheight - height) / 2,width,height,1) end end end Edit I made the code so it will auto screen resize to full screen if you pass it Resolution.resize(0 ,0 )
This post has been edited by From_Ariel: May 27 2008, 05:45 PM
|
|
|
|
|
|
|
|
Guest_From_Ariel_*
|
May 27 2008, 05:07 PM
|
Guests

|
QUOTE (anime4mage @ May 27 2008, 07:38 AM)  That's a really good script, the only difference is-
That mine auto maximize's the screen at any resolution. Mechacrash and Kyloc's sets the window on one resolution.
That said...
There must be a way to say if computer at this resolution, use this resolution else computer at this resolution, use this resolution etc...
Then that would be a Full Screen Script (^^) I changed the script so it will now do auto full screen if you tell it Resolution.resize(0 , 0 )
also QUOTE ([b]TheUndreaming[/b]) TheUndreaming Posted Today, 03:03 PM If you go in-game and just press F1, there's a checkbox that says "Launch game in Fullscreen" ... that works too  re: that the reson this script was nesscessitated was because i couldn't get video to play in fullscreen mode and windowed mode reliably it would play in one or the other but if the user presses alt enter everything will goto pot. unless i find a way of fixing the new movie script im using the only workaround is to allow fullscreen via scaling the window and disable alt+enter
|
|
|
|
|
|
|
|
|
May 27 2008, 08:27 PM
|


Group: Member
Posts: 2
Type: None
RM Skill: Skilled

|
You guys do realise that RPG Maker VX comes with a fullscreen mode right?? All you have to do is lauch a test play, Right-click on the bar at the top, click properties, and check the box that says 'launch in full screen'. (See attachment) The next time you start a test play, it will be in full screen mode. So you really dont need any fancy scripts or bugs, lol.
__________________________
That which does not kill you makes you Stronger; That which does not kill me...Better Run Like Hell!!!
|
|
|
|
|
|
|
|
|
May 27 2008, 08:32 PM
|

芸術家

Group: Revolutionary
Posts: 708
Type: None
RM Skill: Skilled

|
QUOTE (the_last_dragoon @ May 27 2008, 08:41 PM)  You guys do realise that RPG Maker VX comes with a fullscreen mode right?? All you have to do is lauch a test play, Right-click on the bar at the top, click properties, and check the box that says 'launch in full screen'. (See attachment) The next time you start a test play, it will be in full screen mode. So you really dont need any fancy scripts or bugs, lol. Yes, but the screen will not be completely full, it will have a black boarder around it.
__________________________
Current Project[RC]: Twilight Realm 3DMMORPG w/dx9, and char creation through mysql after I get a server, now C++ scripting Current Project[VX]: Obsidian Trilogy just started 08/12/2008 Current Project[XP&RM2K3]: none
|
|
|
|
|
|
|
|
|
May 29 2008, 09:04 AM
|

Level 5

Group: Member
Posts: 60
Type: Event Designer
RM Skill: Skilled

|
QUOTE (From_Ariel @ May 27 2008, 06:21 PM)  I changed the script so it will now do auto full screen if you tell it Resolution.resize(0 , 0 ) Somehow I can't get it to work[R U pulling my leg (^^)]; do I have to space it out?
__________________________
|
|
|
|
|
|
|
|
|
May 30 2008, 11:40 AM
|

Level 11

Group: Revolutionary
Posts: 191
Type: Event Designer
RM Skill: Skilled

|
do we really need to rely on moviescript to make this work?
__________________________
using xp now and will continue to until a better rpg maker
|
|
|
|
|
|
|
|
|
Jun 4 2008, 12:17 PM
|
Level 1

Group: Member
Posts: 12
Type: Event Designer
RM Skill: Beginner

|
I have another way of doing this I haven't tested it but it shoudl work. Use a script to make the game resolution 600x480 then go to you game folder right-click it and check the box saying run in 600x480 mode.
|
|
|
|
|
|
|
|
|
Jun 4 2008, 03:48 PM
|

Group: Member
Posts: 4
Type: None
RM Skill: Undisclosed

|
Guys, I dind´t understand a thing. I tried to copy the scripts in the scripts area, in the maim script and nothing have worked. By the way, does this make the quality better (for example, if I set it to run at 1280x1024) or it just increases the screen ?
|
|
|
|
|
|
|
|
Guest_From_Ariel_*
|
Jun 4 2008, 04:16 PM
|
Guests

|
|
|
|
|
|
|
|
|
|
Jun 4 2008, 05:47 PM
|

Group: Banned
Posts: 0
Type: None
RM Skill: Undisclosed

|
can i play movie in vx with full screen? that is awesome...
|
|
|
|
|
|
|
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:
RPG RPG Revolution is an Privacy
Policy and Legal
|
|