Group: Member
Posts: 3
Type: None
RM Skill: Undisclosed
This script works for me but the problem is i got no sound (volume is set to 750, but i can hear game back ground music while the video is playing) and it plays the video in super fast speed as if it is fast forwarding...whats going on?
This post has been edited by Traumatized: Apr 21 2009, 05:10 PM
Group: Member
Posts: 64
Type: None
RM Skill: Intermediate
hmm... I was looking for one of these everyone i saw had random amounts of problems hopefully this one works well (started scrapping the idea of using movies lol)
*SNAG [with credit of course]*
__________________________
Hmm.... rm2k isn't compatible with vista? Looks like I'll go to rmvx... Scripting? Oh sweet, I get to add new stuff! OH DEAR GOD! *head explodes*
Group: Member
Posts: 3
Type: None
RM Skill: Undisclosed
Can someone tell me why my video is not playing right? it got no sound and it is playing in fast forward speed. I got the video in mp4 format and i convert it to avi then i use it to play but wont work... may be my video converter is mess up...does anyone know any free program that lets me convert mp4 to avi?
oni please use edit your post and do not double post...it gets very annoying for some and its against the rules in almost every forum...
Where's your Moderator position, Aznguy? Oh, that's right - you have none. Please do not backseat moderate. We have Moderators and Administrators for that. However I do agree with you.
@Traumatised, I don't think you've heard of it, but there's this new thing called Google. Why don't you try it?
@Kunitaj, the video needs to be in an .avi format. .mpg/.mpeg will not work with an .avi player. It's common sense...
@Tsutanai, use Woratana's 'Skip Tite Screen' script and mod it so the character ends up on a blank map with an Autorun video call. After the video is done, put in the event command "Return To Title Screen". I have not tried it, but this should work with a bit of logic. I'll test it as soon as I've got the script down-pat. If said method doesn't work, there's always the RGSS2 script requests forum.
@Oioioi, can you please use proper grammar/spelling and specify what you mean? Don't expect any help so quick with such a vague request.
@Berka, this is a great, simple alternative to Ariel's and Trebor's scripts. I just love it when I see a script of yours released and used! *flails* Continue the top-quality works, and I look forward to experimenting with this script.
__________________________
Banned for attempting to hack the site - The Admin Team
Group: Member
Posts: 36
Type: None
RM Skill: Beginner
dude the problem with this is that not everybody has the same resolution as your monitor so if you for example make your resolution 1650 x 1200 like me then my sister won't be able to play the game because he computer can only go 1024 x 800.
#-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- # - Game_Film II - reloaded ^^ # par berka # www.rpgmakervx-fr.com #-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- # Rgss 1&2 v 1.0 #-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- # -Utilisation- # �crivez dans un event, commande ins�rer un script: # # #minimum requis: # [film] # obligatoire ! # film = monfilm.avi # ou mpg... nom du fichier � lire # # #configuration optionnelle, l'ordre n'est pas important # mettre les 4 coordonn�es sinon aucune ! # x = 12 # position horizontale # y = 1 # position verticale # w = 150 # redimensionnement du film: largeur # h = 150 # redimensionnement du film: hauteur # # full = true # active (ou pas) le plein �cran dans le mode fenetr� # vol = 750 # entre 0 et 1000 volume sonore du film # bass = 999 # entre 0 et 1000 volume des basses: tres faible nuance # aig = 250 # entre 0 et 1000 volume des aigus: tres faible nuance # #commandes: # bouton B pour quitter, C pour interrompre/reprendre la lecture #-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- # pourquoi un nouveau script de video ? # simplement pour ne plus avoir � r�pondre � toutes ces questions sur la video ! # ce script est le plus simple possible: j'ai test� toutes les erreurs possibles # l'appel est personalisable # le format de la video est auto-d�tect� # ajout du plein �cran # de la gestion du volume # Un dossier Films est automatiquement cr�� dans votre projet. # vous y d�posez les vid�os � lire ! # Il vaut mieux prendre de petites videos: parce que les d�mos de 200 Mo... #-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
class Game_Film def initialize(hash) hash.has_key?(:film) ? film=hash[:film] : return hash.has_key?(:x) ? @x=hash[:x]+" " : @x="0" hash.has_key?(:y) ? @y=hash[:y]+" " : @y="0" hash.has_key?(:w) ? @w=hash[:w]+" " : @w="" hash.has_key?(:h) ? @h=hash[:h]+" " : @h="" hash.has_key?(:vol) ? @vol=hash[:vol]+" " : @vol="1000" hash.has_key?(:bass) ? @bass=hash[:bass]+" " : @bass="1000" hash.has_key?(:aig) ? @aig=hash[:aig]+" " : @aig="1000" hash.has_key?(:pos) ? @pos="at pos #{hash[:pos].to_i*1000} " : @pos="at pos 0 " @full=hash[:full] if hash.has_key?(:full) @full&&dim_ecran !=[640,480] ? @plee="fullscreen " : @plee="" @type=" " @type=" type mpegvideo" if File.extname(film)==(".mpg"||".mpeg") @type=" type avivideo" if File.extname(film)==".avi" @nom='./Films/'+film (p "fichier #{@nom} non trouv�";return) if !FileTest.exist?(@nom) @film=Win32API.new('winmm','mciSendString','ppll','v') lecture end def handle jeu="\0"*256 ini=Win32API.new('kernel32','GetPrivateProfileStringA','pppplp', 'l') ini.call('Game','Title','',jeu,255,".\\Game.ini") return Win32API.new('user32','FindWindowEx','llpp','l').call(0,0,nil,jeu.delete!("\0")) end def lecture v,t,status,pause=version,Time.now," "*255,false @film.call("open #{@nom} alias FILE#{@type} style child parent "+handle.to_s,0,0,0) @film.call("put FILE window at #{@x}#{@y}#{@w}#{@h}",status,255,0) @film.call("setaudio File volume to #{@vol}",status,255,0) @film.call("setaudio File bass to #{@bass}",status,255,0) @film.call("setaudio File trebble to #{@bass}",status,255,0) @film.call("play FILE #{@plee} notify",status,255,handle) loop{sleep(0.1) Input.update @film.call("status FILE mode notify",status,255,0) break if status.unpack("aaaa")=="stop".split(//)||Input.trigger?(Input::B) if Input.trigger?(Input::C) if !pause;@film.call("pause FILE notify",status,255,handle);pause=true else;@film.call("play FILE #{@plee} notify",status,255,handle);pause=false end end (t=maj(t))if v=='xp'} @film.call("close FILE notify",0,0,handle) $scene=Scene_Map.new end def dim_ecran lw=Win32API.new('user32','GetSystemMetrics','i','i') return lw.call(0),lw.call(1) end def maj(t) (Graphics.update;return Time.now)if t.sec<=Time.now.sec-9||t.min !=Time.now.min return t end def version;FileTest.exist?('./Data/scripts.rvdata') ? 'vx': 'xp';end end Dir.open("./Films") rescue Dir::mkdir("./Films",0777) class Game_Interpreter;def eval(script);cmd_eval(script);end;end#rmvx class Interpreter;def eval(script);cmd_eval(script);end;end#rmxp def cmd_eval(script) if script.include?("[film]") hash={} script.gsub!("[film]"){} list=script.split("\n") list.each{|e|e.gsub!(" "){};f=e.split("=");hash[f[0].to_sym]=f[1] if !f[1].nil?} Game_Film.new(hash) else;return Kernel.eval(script) end end
Group: Member
Posts: 4
Type: Developer
RM Skill: Beginner
Okay this is what i've done,copy my movie into the films folder,rename the script but there's an error. the error is :fichier./Films/modulasas.avi(my video) non trouve.
This post has been edited by wallywest07: Sep 9 2009, 02:30 PM
Group: Member
Posts: 44
Type: Artist
RM Skill: Intermediate
This is a really nice script and I would absolutely love to use it. Unfortunately, when I use the ORBS battle system script, the video won't appear if it's not on full screen. Is there a way to make them more compatible with each other? If not, I can understand.
Edit: For some reason, it works fine now. But now Woratana's Character Text Box script stopped working with this script. Is there a way to fix that?
This post has been edited by PnP: Sep 13 2009, 01:59 PM
Group: Member
Posts: 4
Type: Developer
RM Skill: Beginner
OK here's what I've done.Before my computer was formatted i can play the video. Now after reformatting it only shows a blank black screen without the video. i've installed klite codec pack 4.9 and nothing changes.
The Demo version video can be played.What should i do?