Zeus Video Player

Zeus81

Veteran
Veteran
Joined
Mar 17, 2012
Messages
164
Reaction score
150
First Language
French
Primarily Uses
Zeus Video Player
by Zeus81
There are already many scripts to play video out there but this one is a little different in that it works in fullscreen too...
And have some other features.

- No screen flickering.
- Doesn't break fullscreen mode, F1 and F12.
- Can center or fit to screen videos with a different resolution.
- Optionally can quit before the end by pressing Enter/Escape.
- Pauses when focus is lost.
- You can choose the background image of the player (in case your video doesn't fill all the space)
It will automatically load the image named 'ZeusVideoPlayer' if found in Pictures folder.

If you're searching for a format that should play on almost all computers you may check this link : http://support.microsoft.com/kb/899113

How to Use
Graphics.play_movie( filename, cancellable, fit_to_screen )
- filename = path of the video file.
- cancellable = true if you want to allow the player to stop the video by pressing Enter or Escape, false otherwise.
This option can be omitted and default value is true.
- fit_to_screen = true if you want the video to be stretched to fit the screen in case it doesn't match, false if you just want it to be centered.
If you're using scripts like Fullscreen++ true is recommended.
This option can be omitted and default value is true.
ex : Graphics.play_movie( "Movies/prout.avi", true, true )
or Graphics.play_movie( "Movies/prout.avi" )

Script
https://www.dropbox.com/s/q933du4ix2r0cep/Zeus%20Video%20Player.rb
 
Last edited by a moderator:

Jeneeus Guruman

The Returnee
Veteran
Joined
Mar 28, 2012
Messages
1,078
Reaction score
197
First Language
Filipino
Very nice script. It works in VX too but there are some placing bugs when not in fullscreen.
 

Zeus81

Veteran
Veteran
Joined
Mar 17, 2012
Messages
164
Reaction score
150
First Language
French
Primarily Uses
Huh I though it would crash on VX haha, but yes that's normal (because it's for XP).

I'll do a little update to make it work on both versions.
 

Jeneeus Guruman

The Returnee
Veteran
Joined
Mar 28, 2012
Messages
1,078
Reaction score
197
First Language
Filipino
Huh I though it would crash on VX haha,
Actually, it crashed if I swapped it to fullscreen to window or vice versa in VX.

I'm also actually making my own video player too but in either mpeg or ogv format.
 

Jeneeus Guruman

The Returnee
Veteran
Joined
Mar 28, 2012
Messages
1,078
Reaction score
197
First Language
Filipino
I think, I'm quitting making my own video player because yours was very awesome without any "Game.exe has stopped unexpectedly". It also works for most file types, too.
 

zacheatscrackers

Machinehead
Veteran
Joined
Aug 5, 2012
Messages
394
Reaction score
128
First Language
English
Primarily Uses
RMMV
Awesome! I'll consider using this in my game and give you credit accordingly. I need a good movie script.
 

nepo

Villager
Member
Joined
Dec 17, 2012
Messages
12
Reaction score
0
Primarily Uses
Hey, i really want to try this script, however i don´t know how...i added it as a new script then what is the next step? :p thx, i don´t know scripts at all :(
 

Zeus81

Veteran
Veteran
Joined
Mar 17, 2012
Messages
164
Reaction score
150
First Language
French
Primarily Uses
You use the insert script command in events and you write in it :

Graphics.play_movie(path, cancelable, fit)path = path of the avi file

cancelable = true if we want to allow to stop the video before its end, or false

fit = true if we want the video to be stretched to fit when not in 640x480, false if we want it to be centered.

example :

Graphics.play_movie("Movies/prout.avi", true, true)
 
Last edited by a moderator:

nepo

Villager
Member
Joined
Dec 17, 2012
Messages
12
Reaction score
0
Primarily Uses
Yeah, i did that, it either crashes or i get the text: Not able to find file (eval) in command_355 movies-1.avi...where am i to place the file of my avi? Or also error: syntax error while rnning script :(
 
Last edited by a moderator:

Zeus81

Veteran
Veteran
Joined
Mar 17, 2012
Messages
164
Reaction score
150
First Language
French
Primarily Uses
It's up to you to choose it.

If you do : Graphics.play_movie("file.avi", true, true)

It'll search file.avi in your game's root folder.

If you do : Graphics.play_movie("Movies/file.avi", true, true)

It'll search file.avi in the Movies folder.

If you do : Graphics.play_movie("Banana/file.avi", true, true)

It'll search file.avi in the Banana folder.
 

nepo

Villager
Member
Joined
Dec 17, 2012
Messages
12
Reaction score
0
Primarily Uses
Yeah, I thought that it is like that :) However, I can´t get the xcript working, it keeps saying -syntax error while reading it :( All i have to do is add it as a new script, no other script changes necessary, or?
 
Last edited by a moderator:

Zeus81

Veteran
Veteran
Joined
Mar 17, 2012
Messages
164
Reaction score
150
First Language
French
Primarily Uses
Print screen of your command plz.
 

nepo

Villager
Member
Joined
Dec 17, 2012
Messages
12
Reaction score
0
Primarily Uses
What do you mean by command:D the event?
 

nepo

Villager
Member
Joined
Dec 17, 2012
Messages
12
Reaction score
0
Primarily Uses
Hope this helps :) I did it exactly the way you said from the start
 

nepo

Villager
Member
Joined
Dec 17, 2012
Messages
12
Reaction score
0
Primarily Uses
Oops Here! I am new to scripts, however i renamed my avi to file and set a movie map... ^^
 
Last edited by a moderator:

Zeus81

Veteran
Veteran
Joined
Mar 17, 2012
Messages
164
Reaction score
150
First Language
French
Primarily Uses
Ah ok, haha.

Write it like this :

Graphics.play_movie(

"Movies/file.avi",

true, true)
 

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

Latest Threads

Latest Posts

Latest Profile Posts

Woke up on an awful nightmare of being banned here because some mod didn't liked me in a super-heroes freeform round robin RP where I used throwing normal hammer as power and it was qualified being too OP. XD Nice to read you all guys. Will not wait next nightmares.
Staring at all the RPG Maker versions I have and realizing that my project has been a long time coming. But, I finally feel like I have the knowledge and experience to make it into something good.
We're almost done with the jam game! :D

Forum statistics

Threads
104,324
Messages
1,005,563
Members
135,844
Latest member
andrewshetty123
Top