Submit Your Article


 
RPG Maker

Welcome Guest ( Log In | Register )


  Games Resources RPG Maker VX RPG Maker XP Scripts Tutorials Downloads

2 Pages V   1 2 >  
Reply to this topicStart new topic
> Maximize RMVX - Full Screen -, Maximize RMVX Window Bug - Full Screen -
anime4mage
post May 6 2008, 01:30 PM
Post #1


Level 5
Group Icon

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




This is also a good resolution script http://www.rpgrevolution.com/forums/?showtopic=14066

[Show/Hide] Picture
I 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=11987

Next 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
Attached File(s)
Attached File  Moviesfolder.zip ( 3.8K ) Number of downloads: 220
 


__________________________
http://www.animemage.org<< My website (^^)
Go to the top of the page
 
+Quote Post
   
woratana
post May 6 2008, 02:40 PM
Post #2


Looking for scripter to hire? PM me *O*
Group Icon

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


Go to the top of the page
 
+Quote Post
   
anime4mage
post May 12 2008, 07:20 AM
Post #3


Level 5
Group Icon

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




Yeah but that just presses/enables the Alt Enter buttons. that makes it go to full screen.

This however Maximizes the Screen while on your desktop and stretch’s the graphics.
Granted that Full Screen has to be enabled.

I just thought that it was crazy enough to post.

Because Graphics.resize only goes to a certain resolution, and many computers are on a different resolution setting.
--------------------------------------------------------------------------------------------------------------------------------------

Whow--- 20 downloads(@@) ?Please reply if this is working I would like to know how it is on other computer settings?

This post has been edited by anime4mage: May 12 2008, 07:49 AM


__________________________
http://www.animemage.org<< My website (^^)
Go to the top of the page
 
+Quote Post
   
Guest_From_Ariel_*
post May 15 2008, 11:08 AM
Post #4





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

Go to the top of the page
 
+Quote Post
   
anime4mage
post May 21 2008, 07:09 AM
Post #5


Level 5
Group Icon

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


__________________________
http://www.animemage.org<< My website (^^)
Go to the top of the page
 
+Quote Post
   
Guest_From_Ariel_*
post May 21 2008, 09:15 AM
Post #6





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% smile.gif
#
#
# 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
Go to the top of the page
 
+Quote Post
   
anime4mage
post May 27 2008, 07:24 AM
Post #7


Level 5
Group Icon

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




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 (^^)


__________________________
http://www.animemage.org<< My website (^^)
Go to the top of the page
 
+Quote Post
   
TheUndreaming
post May 27 2008, 02:49 PM
Post #8



Group Icon

Group: Member
Posts: 4
Type: Developer
RM Skill: Skilled




If you go in-game and just press F1, there's a checkbox that says "Launch game in Fullscreen" ... that works too smile.gif
Go to the top of the page
 
+Quote Post
   
Guest_From_Ariel_*
post May 27 2008, 05:07 PM
Post #9





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 smile.gif

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
Go to the top of the page
 
+Quote Post
   
the_last_dragoon
post May 27 2008, 08:27 PM
Post #10



Group Icon

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.


Attached File(s)
Attached File  full_screen.jpg ( 59.62K ) Number of downloads: 29
 


__________________________
That which does not kill you makes you Stronger;
That which does not kill me...Better Run Like Hell!!!
Go to the top of the page
 
+Quote Post
   
Netto
post May 27 2008, 08:32 PM
Post #11


芸術家
Group Icon

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
Go to the top of the page
 
+Quote Post
   
anime4mage
post May 28 2008, 02:06 PM
Post #12


Level 5
Group Icon

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




Plus it don't resize windows resolution in background, and most scripts work better out of Full screen.


__________________________
http://www.animemage.org<< My website (^^)
Go to the top of the page
 
+Quote Post
   
anime4mage
post May 29 2008, 09:04 AM
Post #13


Level 5
Group Icon

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?


__________________________
http://www.animemage.org<< My website (^^)
Go to the top of the page
 
+Quote Post
   
platipus
post May 30 2008, 11:40 AM
Post #14


Level 11
Group Icon

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
Go to the top of the page
 
+Quote Post
   
anime4mage
post Jun 3 2008, 07:21 AM
Post #15


Level 5
Group Icon

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




For now yes, I am trying to look into making something else with the current issue at hand, but yes for this bug movie script is needed unless you use the modded script that Ariel gave.


__________________________
http://www.animemage.org<< My website (^^)
Go to the top of the page
 
+Quote Post
   
krudtso
post Jun 4 2008, 12:17 PM
Post #16


Level 1
Group Icon

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.
Go to the top of the page
 
+Quote Post
   
DarthRevan
post Jun 4 2008, 03:48 PM
Post #17



Group Icon

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 ?
Go to the top of the page
 
+Quote Post
   
Guest_From_Ariel_*
post Jun 4 2008, 04:16 PM
Post #18





Guests





This one works

http://www.rpgrevolution.com/forums/?showtopic=14066
Go to the top of the page
 
+Quote Post
   
DarthRevan
post Jun 4 2008, 04:48 PM
Post #19



Group Icon

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




QUOTE (From_Ariel @ Jun 4 2008, 08:30 PM) *


dry.gif

I read that repeatdly during 30 minutes trying to understand where to put the scripts, but they didn´t work at all ! Is it compatible wirh 1280x1024 ? As I asked above, does this increase the quality or only the size ?
Go to the top of the page
 
+Quote Post
   
BannedBot 197
post Jun 4 2008, 05:47 PM
Post #20



Group Icon

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




can i play movie in vx with full screen?
that is awesome... laugh.gif
Go to the top of the page
 
+Quote Post
   

2 Pages V   1 2 >
Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

Lo-Fi Version Time is now: 21st May 2013 - 06:26 PM
RPG RPG Revolution is an Privacy Policy and Legal
eXTReMe Tracker