|
  |
Movie Script, Sound Spawn script |
|
|
|
|
Aug 1 2008, 04:29 AM
|
Level 6

Group: Member
Posts: 80
Type: Artist
RM Skill: Skilled

|
it is saying for you to use MPG files... I'm not sure, but I think it should accept AVI also. There is a limitation about the size. It must be the same resolution of RMXP game window.
Also, you must put the movies in a folder called "movies" on the main folder of your game. In other words, the one that have the "Data", "graphics" and other folders with the game content.
|
|
|
|
|
|
|
|
|
Sep 6 2008, 11:01 AM
|

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

|
Can you guide me to edit Graphics.resize_screen? I used 640x480 Video in VX but when it played , it lose Right and Bottom of video screen , I tried Free Video Converter as you suggested but I can't find 544x416 Resolution , So I think only choice is have to edit Graphics.resize_screen , But I don't know how to do it.. Can you please tell me how to do? Thank
|
|
|
|
|
|
|
|
|
Nov 10 2008, 04:37 PM
|
Making a Comeback

Group: Revolutionary
Posts: 393
Type: Musician
RM Skill: Intermediate

|
Ok... There haven't been any posts in this topic since September... But I'm really having some trouble, some help would be nice... I am using Windows XP and RMVX I have my 'Main' set up as follows: CODE begin Graphics.freeze Audio.bgm_play("Movies/" + '01_Opening_Montage', 100, 100) Audio.bgm_stop $scene = Scene_Movie.close_scene #closes active movie window $scene = Scene_Movie.new("01_Opening_Montage") $scene = Scene_Cctitle.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 Yes, I have my Title Screen set up as 'Scene_Cctitle', so as to avoid compatibilty issues with other scripts I'm using(But that part works fine...) When I start up the game the movie(It might be a problem with the movie itself) just doesn't play... I edited the movie script a bit: 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
game_name = "\0" * 256 @readini.call('Game','Title','',game_name,255,".\\Game.ini") game_name.delete!("\0") @wnd = Win32API.new('user32','FindWindowEx','%w(l,l,p,p)','L') @temp = @wnd.call(0,0,nil,game_name).to_s movie = Win32API.new('winmm','mciSendString','%w(p,p,l,l)','V') movie.call("open \""+@movie_name+"\" alias FILE style 1073741824 parent " + @temp.to_s,0,0,0) @message = Win32API.new('user32','SendMessage','%w(l,l,l,l)','V') @detector = Win32API.new('user32','GetSystemMetrics','%w(l)','L') @width = @detector.call(0) if @width == 544 fullscreen Graphics.update sleep(1) Graphics.update sleep(1) Graphics.update sleep(1) end status = " " * 255 movie.call("play FILE",0,0,0) loop do sleep(0.1) # @message.call(@temp.to_i,11,0,0) #Remove '#' if using RMXP # Graphics.update #Remove '#' if using RMXP @message.call(@temp.to_i,11,1,0) Input.update movie.call("status FILE mode",status,255,0) true_status = status.unpack("aaaa") if true_status.to_s != "play" break end if Input.trigger?(Input::B) #can change or add Input::C Input.update break end end movie.call("close FILE",0,0,0) bail end
def bail if @width == 544 fullscreen end end end
def fullscreen()
$full.call(18,0,0,0) $full.call(13,0,0,0) $full.call(18,0,2,0) $full.call(13,0,2,0) end $full = Win32API.new('user32','keybd_event','%w(l,l,l,l)','')
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 Thanks! Also, it might help to put this in the RGSS2 Section because from what I've gathered, it works for VX too
This post has been edited by miget man12: Nov 10 2008, 04:52 PM
__________________________
By the way:   I'm bored because it's summer so I decided to drop by for a bit.
|
|
|
|
|
|
|
|
|
Feb 17 2009, 12:04 PM
|

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

|
Ok maybe am i getting old threads back or W/E... but i need some help, i want to make a intro at the main, (when game starts)
but a window pops up with the vid, but only for only 1 sec, i mean, like, a window pops up and it dissapear again,
maybe i have a bad english, but please help....
|
|
|
|
|
|
|
|
|
Mar 10 2009, 08:28 AM
|

Level 4

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

|
QUOTE (miget man12 @ Nov 10 2008, 04:37 PM)  Ok... There haven't been any posts in this topic since September... But I'm really having some trouble, some help would be nice... I am using Windows XP and RMVX I have my 'Main' set up as follows: CODE begin Graphics.freeze Audio.bgm_play("Movies/" + '01_Opening_Montage', 100, 100) Audio.bgm_stop $scene = Scene_Movie.close_scene #closes active movie window $scene = Scene_Movie.new("01_Opening_Montage") $scene = Scene_Cctitle.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 Yes, I have my Title Screen set up as 'Scene_Cctitle', so as to avoid compatibilty issues with other scripts I'm using(But that part works fine...) When I start up the game the movie(It might be a problem with the movie itself) just doesn't play... I edited the movie script a bit: 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
game_name = "\0" * 256 @readini.call('Game','Title','',game_name,255,".\\Game.ini") game_name.delete!("\0") @wnd = Win32API.new('user32','FindWindowEx','%w(l,l,p,p)','L') @temp = @wnd.call(0,0,nil,game_name).to_s movie = Win32API.new('winmm','mciSendString','%w(p,p,l,l)','V') movie.call("open \""+@movie_name+"\" alias FILE style 1073741824 parent " + @temp.to_s,0,0,0) @message = Win32API.new('user32','SendMessage','%w(l,l,l,l)','V') @detector = Win32API.new('user32','GetSystemMetrics','%w(l)','L') @width = @detector.call(0) if @width == 544 fullscreen Graphics.update sleep(1) Graphics.update sleep(1) Graphics.update sleep(1) end status = " " * 255 movie.call("play FILE",0,0,0) loop do sleep(0.1) # @message.call(@temp.to_i,11,0,0) #Remove '#' if using RMXP # Graphics.update #Remove '#' if using RMXP @message.call(@temp.to_i,11,1,0) Input.update movie.call("status FILE mode",status,255,0) true_status = status.unpack("aaaa") if true_status.to_s != "play" break end if Input.trigger?(Input::B) #can change or add Input::C Input.update break end end movie.call("close FILE",0,0,0) bail end
def bail if @width == 544 fullscreen end end end
def fullscreen()
$full.call(18,0,0,0) $full.call(13,0,0,0) $full.call(18,0,2,0) $full.call(13,0,2,0) end $full = Win32API.new('user32','keybd_event','%w(l,l,l,l)','')
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 Thanks! Also, it might help to put this in the RGSS2 Section because from what I've gathered, it works for VX too i cant understand why i cant lay movie it always says file(eval):2in bgm_play movies/movie not found please help
__________________________
Working on a Bleach GameMy SpritesIM GONNA BEAT UP YOU ALL 
|
|
|
|
|
|
|
|
|
Apr 29 2009, 05:02 PM
|

Level 15

Group: Revolutionary
Posts: 294
Type: Developer
RM Skill: Intermediate

|
can we do it in cut scene????? and please DEMO plzzz.... and i suggest better using XILISOFT any converter ^^
__________________________
  Topic'ZVLAD REQUIEM IS UPDATE! to ~8~ The TopicszZ @~Action Battle System~@
Bored Battle System Like This So Do you liem MMORPG style?or Zelda? if yes you'll need this... style~> Join Here ABS @### @@@### @# @#### @## @## @## @@# @@@## @@[Show/Hide] DONT WASTE MY TIME AGAIN!!!!!!!!!!!!!!!!!!!! clever you are the 99999999 visitors who open this get outta here!!!!!
|
|
|
|
|
|
|
|
|
Jul 2 2009, 09:10 PM
|

Group: Member
Posts: 1
Type: Writer
RM Skill: Undisclosed

|
I've been meaning to do this since...last year, when I figured it out, but here's a working demo.
Scene_Movie_Demo.zip ( 1.82MB )
Number of downloads: 182 This script supposedly supports avi files, and I've gotten them to kind of play, but not as well as this mpg. I also figured out how to play them in battle. Use this script as your common event: temp = $scene Audio.bgs_play('Graphics/Movies/' + 'Inferno Punch', 100, 100) Audio.bgs_stop $scene = Scene_Movie.close_scene $scene=Scene_Movie.new( "Inferno Punch") $scene = temp The only problem is that common events are processed after damage is dealt, so the enemy dies before the movie plays. I haven't gone in and edited the standard scripts to change that yet, but hopefully you can figure that out. Also, the guy who recommended XILISOFT? THANK YOU!!!
This post has been edited by Frieza2000: Jul 2 2009, 10:14 PM
|
|
|
|
|
|
|
|
|
Jul 23 2009, 01:17 AM
|

Level 4

Group: Member
Posts: 49
Type: Developer
RM Skill: Intermediate

|
Hey guys i've tried the script it works alright, But when i get to a part where the music goes louader example -Naruto Shippuden Opening 1 It goes louder and it says Script Hanging Does it mean it went over the frequency?
__________________________
New Project - Final Fantasy Echoes Of Darkness ^^
I am as fast as the wind...I am KazeMagun!
|
|
|
|
|
|
|
|
  |
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:
RPG RPG Revolution is an Privacy
Policy and Legal
|
|