Zeus Video Player

Discussion in 'RGSS Scripts (RMXP)' started by Zeus81, Nov 20, 2012.

  1. Zeus81

    Zeus81 Veteran Veteran

    Messages:
    164
    Likes Received:
    149
    First Language:
    French
    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: Jan 10, 2014
    #1
  2. Jeneeus Guruman

    Jeneeus Guruman The Returnee Veteran

    Messages:
    1,078
    Likes Received:
    188
    Location:
    Philippines
    First Language:
    Filipino
    Very nice script. It works in VX too but there are some placing bugs when not in fullscreen.
     
    #2
  3. Zeus81

    Zeus81 Veteran Veteran

    Messages:
    164
    Likes Received:
    149
    First Language:
    French
    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.
     
    #3
  4. Jeneeus Guruman

    Jeneeus Guruman The Returnee Veteran

    Messages:
    1,078
    Likes Received:
    188
    Location:
    Philippines
    First Language:
    Filipino
    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.
     
    #4
  5. Zeus81

    Zeus81 Veteran Veteran

    Messages:
    164
    Likes Received:
    149
    First Language:
    French
  6. Jeneeus Guruman

    Jeneeus Guruman The Returnee Veteran

    Messages:
    1,078
    Likes Received:
    188
    Location:
    Philippines
    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.
     
    #6
  7. SkyTech21

    SkyTech21 Villager Member

    Messages:
    16
    Likes Received:
    0
    First Language:
    English
    Very nice!
     
    #7
  8. zacheatscrackers

    zacheatscrackers Machinehead Veteran

    Messages:
    393
    Likes Received:
    124
    Location:
    Pennsylvania (formerly Delaware)
    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.
     
    #8
  9. nepo

    nepo Villager Member

    Messages:
    12
    Likes Received:
    0
    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
  10. Zeus81

    Zeus81 Veteran Veteran

    Messages:
    164
    Likes Received:
    149
    First Language:
    French
    You use the insert script command in events and you write in it :

     
    Last edited by a moderator: Dec 17, 2012
    #10
  11. nepo

    nepo Villager Member

    Messages:
    12
    Likes Received:
    0
    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: Dec 17, 2012
    #11
  12. Zeus81

    Zeus81 Veteran Veteran

    Messages:
    164
    Likes Received:
    149
    First Language:
    French
    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
  13. nepo

    nepo Villager Member

    Messages:
    12
    Likes Received:
    0
    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: Dec 17, 2012
    #13
  14. Zeus81

    Zeus81 Veteran Veteran

    Messages:
    164
    Likes Received:
    149
    First Language:
    French
    Print screen of your command plz.
     
    #14
  15. nepo

    nepo Villager Member

    Messages:
    12
    Likes Received:
    0
    What do you mean by command:D the event?
     
    #15
  16. Zeus81

    Zeus81 Veteran Veteran

    Messages:
    164
    Likes Received:
    149
    First Language:
    French
    Yes.
     
    #16
  17. nepo

    nepo Villager Member

    Messages:
    12
    Likes Received:
    0
    Hope this helps :) I did it exactly the way you said from the start
     
    #17
  18. nepo

    nepo Villager Member

    Messages:
    12
    Likes Received:
    0
    Oops Here! I am new to scripts, however i renamed my avi to file and set a movie map... ^^[​IMG]
     
    Last edited by a moderator: Dec 17, 2012
    #18
  19. Zeus81

    Zeus81 Veteran Veteran

    Messages:
    164
    Likes Received:
    149
    First Language:
    French
    Ah ok, haha.

    Write it like this :

    Graphics.play_movie(

    "Movies/file.avi",

    true, true)
     
    #19
  20. nepo

    nepo Villager Member

    Messages:
    12
    Likes Received:
    0
    Still that :

    [​IMG]
     
    #20

Share This Page