The RPG Maker Resource Kit

RMRK RPG Maker Creation => Requests => Script Request => Topic started by: Fallen Angel on December 26, 2007, 06:30:56 AM

Title: [RESOLVED] Ive Searched alot but i need a movie Script
Post by: Fallen Angel on December 26, 2007, 06:30:56 AM
Ok i just spent 2 hours searching for movie scripts I found alot but nothing that works Im making my movies from Window movie maker and i whant to stick them in my game (btw im using rmxp) if someone could link me a page or the script it would be the best  ;D thnx in advance
Title: Re: Ive Searched alot but i need a movie Script
Post by: &&&&&&&&&&&&& on December 26, 2007, 08:10:49 AM
###########################################################
class Scene_Movie
###########################################################
#Created by SoundSpawn
###########################################################
#Fixed by Popper
###########################################################
#Instruction
#  1) Movies must in in a new folder called Movies in your directory
#  2)If you call this script from and event (EG:    Call Script: $scene = Scene_Movie.new("INTRO") )
#  3) Have fun playin movies with this script!!!
###########################################################
###########################################################
###########################################################

def initialize(movie)
@readini = Win32API.new 'kernel32', 'GetPrivateProfileStringA', %w(p p p p l p), 'l'
@movie_name = Dir.getwd()+"\\Movies\\"+movie+".avi"
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 == 640
fullscreen
Graphics.update
sleep(0.1)
Graphics.update
sleep(0.1)
Graphics.update
sleep(0.1)
fullscreen
end


status = " " * 255
movie.call("play FILE",0,0,0)
loop do 
sleep(0.1)
@message.call(@temp.to_i,11,0,0)
Graphics.update
@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)
$scene = Scene_Map.new
break
end
end
$scene = Scene_Map.new
end

end
Title: Re: Ive Searched alot but i need a movie Script
Post by: Fallen Angel on December 26, 2007, 09:35:45 AM
Ok I put in And made the new folder called Movies and inserted the call Script excactly how it was shown am I supposed to put the Movies folder in Graphics where Animations pararomas and characters are and stuff or sumthin cuz i get Santax error I know its somthing  im doing wrong but ya can you help me plz? Oh thnx for the Script :)
Title: Re: Ive Searched alot but i need a movie Script
Post by: Fallen Angel on December 28, 2007, 02:48:11 AM
Hello?   ???
Title: Re: Ive Searched alot but i need a movie Script
Post by: &&&&&&&&&&&&& on December 28, 2007, 01:00:06 PM
Just drop it anywhere and make sure it is labled right. I didn't write is, so I don't know.
Title: Re: Ive Searched alot but i need a movie Script
Post by: Fallen Angel on December 28, 2007, 08:07:20 PM
well I did that part im just not entirly sure excactly were to put the movie folder where the game will read it lol
Title: Re: Ive Searched alot but i need a movie Script
Post by: Algid on February 07, 2008, 09:35:10 PM
Well, I got it to work, but only the sound plays...


You put it outside of all but the game folder, next to Data and Audio.
Title: Re: Ive Searched alot but i need a movie Script
Post by: Fallen Angel on February 08, 2008, 06:44:36 PM
oh well if its only the sound that work then I'm not going to use but thnx anyways it was worth a try  :)
Title: Re: Ive Searched alot but i need a movie Script
Post by: Falcon on February 08, 2008, 10:36:17 PM
Strike 1, this should have gone in script requests.