Submit Your Article


 
RPG Maker

Welcome Guest ( Log In | Register )


  Games Resources RPG Maker VX RPG Maker XP Scripts Tutorials Downloads

3 Pages V  < 1 2 3 >  
Closed TopicStart new topic
> Movie Script, Sound Spawn script
kurosaki_daniel
post Jul 27 2008, 12:38 PM
Post #21



Group Icon

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




Make file called Movies in <Mydocuments>/<RMXP or RMVX>/<your project>/Movies
ie subdirectory (yourgame\data, yourgame\graphics, yourgame\movies <-put mpg files here)


dry.gif i dont understand this part what kind of file must i make and where must i place the file please tell me. sleep.gif
Go to the top of the page
 
+Quote Post
   
Yanazake
post Aug 1 2008, 04:29 AM
Post #22


Level 6
Group Icon

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.
Go to the top of the page
 
+Quote Post
   
kurosaki_daniel
post Aug 5 2008, 02:23 AM
Post #23



Group Icon

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




QUOTE (Yanazake @ Aug 1 2008, 03:51 AM) *
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.


biggrin.gif Thanks it was a lot of help laugh.gif biggrin.gif
Go to the top of the page
 
+Quote Post
   
GunZz
post Aug 19 2008, 04:34 PM
Post #24


Level 4
Group Icon

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




Can you upload a demo ?
Go to the top of the page
 
+Quote Post
   
modern-day-pirat...
post Aug 24 2008, 07:32 PM
Post #25


Level 4
Group Icon

Group: Member
Posts: 56
Type: Event Designer
RM Skill: Beginner




Could we possibly get a demo of this in action?
I want to see it working before attempting it myself.


__________________________
Go to the top of the page
 
+Quote Post
   
pannawat
post Sep 6 2008, 11:01 AM
Post #26



Group Icon

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 smile.gif
Go to the top of the page
 
+Quote Post
   
miget man12
post Nov 10 2008, 04:37 PM
Post #27


Making a Comeback
Group Icon

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:
[Show/Hide] Scene_Movie
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.
Go to the top of the page
 
+Quote Post
   
IceSageX
post Jan 8 2009, 01:47 AM
Post #28


Level 1
Group Icon

Group: Member
Posts: 7
Type: None
RM Skill: Intermediate




Edit: Nevermind, I fixed it myself.

This post has been edited by IceSageX: Jan 8 2009, 03:22 AM
Go to the top of the page
 
+Quote Post
   
t45l
post Jan 11 2009, 07:54 AM
Post #29


Level 1
Group Icon

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




A demo would be nice as i keep getting some errors wink.gif
Go to the top of the page
 
+Quote Post
   
Mickadell
post Jan 17 2009, 02:53 AM
Post #30


Level 5
Group Icon

Group: Member
Posts: 71
Type: Event Designer
RM Skill: Masterful




Comment
Rate: Ok
I think it's good but not exactly nessery.
Go to the top of the page
 
+Quote Post
   
Tharore
post Feb 17 2009, 12:04 PM
Post #31



Group Icon

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....
Go to the top of the page
 
+Quote Post
   
Luxofgames
post Feb 17 2009, 01:53 PM
Post #32



Group Icon

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




Hi i did everything (hopefully) as i should i copied the script into Scene_Movie i then called it using the event script, but its doing nothing except make my character and other animations really slow can anybody help???
Go to the top of the page
 
+Quote Post
   
Luxofgames
post Feb 18 2009, 04:35 PM
Post #33



Group Icon

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




Ok managed to get it working, well kind of, i managed to get the second window to open but it closed immediatly , so i deleted the lines
Audio.bgm_stop
$scene = Scene_movie.close("Movie")
and it played the video but obviously the window didn't close and I can't continue my game, i was wondering how does it play the video and then allow for me too play the game, how do i do that? Hope you guys can help!
Go to the top of the page
 
+Quote Post
   
sirSLR
post Mar 10 2009, 08:28 AM
Post #34


Level 4
Group Icon

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:
[Show/Hide] Scene_Movie
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 Game
My Sprites

IM GONNA BEAT UP YOU ALL
Go to the top of the page
 
+Quote Post
   
buny
post Apr 29 2009, 05:02 PM
Post #35


Level 15
Group Icon

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'Z

VLAD REQUIEM IS UPDATE! to ~8~
The TopicszZ


@~Action Battle System~@


[Show/Hide] Action Battle System
Bored Battle System Like This
[Show/Hide] Normal Style


So Do you liem MMORPG style?or Zelda?
if yes you'll need this...
style~>
[Show/Hide] Requiem SABS


Join Here ABS


@###@@@###@#
@####@##@##@##
@@#@@@##@@


[Show/Hide] good again
[Show/Hide] NEVER GIVE UP
[Show/Hide] DONT WASTE MY TIME AGAIN!!!!!!!!!!!!!!!!!!!!
[Show/Hide] LASSSSTTTTT ONE
clever you are the 99999999 visitors who open this get outta here!!!!!
Go to the top of the page
 
+Quote Post
   
Dragon-boy
post May 11 2009, 06:18 PM
Post #36


Level 7
Group Icon

Group: Revolutionary
Posts: 109
Type: Scripter
RM Skill: Skilled




k i did everything and i am getting this response " Script 'Scene_Movie' line 15: SyntaxError occurred"

and some if you could put a demo plz and thank you


__________________________

If you like the pictures and would like to see more please pm for the download of my game to become a BETA TEStER :)

ScreenShots














Banner






Go to the top of the page
 
+Quote Post
   
Frieza2000
post Jul 2 2009, 09:10 PM
Post #37



Group Icon

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.Attached File  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
Go to the top of the page
 
+Quote Post
   
kazemagun
post Jul 23 2009, 01:17 AM
Post #38


Level 4
Group Icon

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!
Go to the top of the page
 
+Quote Post
   
Linkio123
post Oct 23 2009, 07:30 PM
Post #39


Level 2
Group Icon

Group: Member
Posts: 22
Type: Event Designer
RM Skill: Masterful




sad.gif PLZ help me! I know, im not the best scripter BUT this is so hard! i cant get it to work! plz help???


__________________________
I Dare You To Spoil...

Go to the top of the page
 
+Quote Post
   
Linkio123
post Oct 24 2009, 06:38 AM
Post #40


Level 2
Group Icon

Group: Member
Posts: 22
Type: Event Designer
RM Skill: Masterful




mad.gif I need this script so bad!!! but nothing is working! OMFG i am ready to explode!!! someone help!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Please don't double post, just be patient and wait for some help.

~The Law~


This post has been edited by The Law G14: Oct 24 2009, 08:53 AM


__________________________
I Dare You To Spoil...

Go to the top of the page
 
+Quote Post
   

3 Pages V  < 1 2 3 >
Closed TopicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

Lo-Fi Version Time is now: 18th June 2013 - 06:59 PM
RPG RPG Revolution is an Privacy Policy and Legal
eXTReMe Tracker