Zeus Video Player

● ARCHIVED · READ-ONLY
Started by Zeus81 20 posts View original ↗
  1. 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
  2. Very nice script. It works in VX too but there are some placing bugs when not in fullscreen.
  3. 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.
  4. Zeus81 said:
    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.
  5. 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.
  6. Very nice!
  7. Awesome! I'll consider using this in my game and give you credit accordingly. I need a good movie script.
  8. 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 :(
  9. 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)
  10. 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 :(
  11. 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.
  12. 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?
  13. Print screen of your command plz.
  14. What do you mean by command:D the event?
  15. Yes.
  16. Hope this helps :) I did it exactly the way you said from the start
  17. Oops Here! I am new to scripts, however i renamed my avi to file and set a movie map... ^^
  18. Ah ok, haha.

    Write it like this :

    Graphics.play_movie(

    "Movies/file.avi",

    true, true)
  19. Still that :