It's not the best solution, but it works. Besides that, I haven't seen much video players except for the one made by soundspawn.Bluescope":2mtw7mhy said:General information: As I just found out, you can play AVI files with RMXP in a seperate window (exits fullscreen and minimizes your Game.exe). You can play the files with the audio play event commands, like "Play [insert audio resource type]". Depending on what resource type you choose, your replay settings will slightly change (explained below). Note that your video must be in the correct directory, e.g. Audio\ME\ to be selectable from the list.
Replay from BGM command: Oversaturated movie display, looping
Replay from BGS command: Normal display, looping
Replay from ME command: Normal display, not looping
Replay from SE command: Normal display, not looping
Thanks I'll try..guitarshredderj":10fbf00y said:To be honest with you dude, like Zekallinos said, I've never really seen anyone use Soundspawn's AVI script, because a lot of the problems your having, a lot of others do too. I tried it myself, and I couldn't get it to work either. To save myself the trouble though, instead, i just improvised. I'm using Kain Nobels splash script, which is generally used for company logos and such, and Mogs animated title screen-Sofia to make things look more professional. Then, I'm using pictures for the inro, along with actual gameplay animation. This is just a suggestion though to you. You can still try.
Here's the script anyways
# Copy this into a new section of your game. To play a file, move the avi file
# into a "movies" subdirectory (yourgame\data, yourgame\graphics, yourgame\movies).
# Then call "Scene_Movie.new(filename)" where filename is your movies actual
# filename (minus the .avi).
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+".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(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)
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)
Input.update
break
end
end
movie.call("close FILE",0,0,0)
bail
end
def bail
if @width == 640
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)','')
The call script im using is exactly as follows (test1.avi being the name of the avi file)
Scene_Movie.new("test1")]
Since this usually doesn't work for people, some possible errors to take into consideration, is you could have a codec error, which in that case, you'll have to download some codec packs. Another thing is, depending on what scripts your using, you may have a script conflict. Also make sure you put the move into a subdirectory folder like it says in the beginning of the script. Best of luck to you. :thumb:
Thanks I'll try..
But I don't sure that I know how to use that.. You have ICQ? or messenger?
And you will help me there?
Zekallinos":16l60p87 said:Oh yes, that reminds me...
Glitch, what about this?
And also....
Flash videos, although I wonder if it works.
LGC admin":uc4v2u77 said:so...
I think my video is wmv..
What now? Which script i need to add to my game and what to do next?
Glitchfinder can you add me to your messenger (if you don't have so open please..) and help me there?
I'll try to talk english good there [=
Anyway, this is my messenger ID:
dinezra@hotmail.com
monkeydlu":1cnubc8s said:if anything, you can rely on Pseudo animation, lol.
monkeydlu":2qa8qgua said:it's not all that hard, a good 10-15 hours will do it :P
but yeah, of course it's be better with actual motion, but it's hard to do XD Since of course, the Avi script barely works, same with flash, but it's actually possible if you had your own artist and could draw seperate parts... just needs the right experimenting
I'm the one who made that btw, not sure about a new one...? XD