collapse collapse

 Community


 User Info




Willkommen Gast. Bitte einloggen oder registrieren.

 Partnerseiten

rpgvx.net

Das Forum ist offline

Autor Thema: Video  (Gelesen 4781 mal)

Cege

  • Gast
Video
« Antwort #15 am: April 14, 2008, 12:10:40 »
Auch ma wieder ne Frage ^^ lol
Ähm, hab das AVI Skript :

[div class=\'codetop\']CODE[div class=\'codemain\' style=\'height:200px;white-space:pre;overflow:auto\']class Scene_Movie
##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).         exp Scene_Movie.new("???")
## If you want to play multiple movies in a row
##(for example before the game starts, maybe a "developed by", "produced by", "intro movie"
## set or something... Go to the "main" section of code and find the line "$scene = Scene_Title.new".
##Just after that line add:
##CODE
##Scene_Movie.new("dev_by")
##Scene_Movie.new("pro_by")
##Scene_Movie.new("intro")
##$scene = Scene_Movie.new("intro",8,false)assuming the filename of the intro movie is "intro.avi" and it's 8 seconds long.
##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::cool.gif\" style=\"vertical-align:middle\" emoid=\"B)\" border=\"0\" alt=\"cool.gif\" /]
      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)','')

hab also alles gemacht (Ordner "movies" angelegt und avi datei darein kopiert.. )
Aufgerufen und.... nix... ^^ hängt sich auf und passiert nix, keine fehlermedlung etc...
Hab schon nen ganz guten rechner eigendlich...

und die Taktik mit im BGM reinkopieren und per "Play BGM" aufrufen funzt genauso wenig...

Jemand ne Alternative?

Video

ERZENGEL

  • Gast
Video
« Antwort #16 am: April 14, 2008, 14:24:03 »
Das Skript funktioniert nicht zu über 90%. Importier es mal besser als SE (Endung ändern in mp3/ogg), da BGMs wiederholt werden.
« Letzte Änderung: April 14, 2008, 14:24:50 von ERZENGEL »

Video

Cege

  • Gast
Video
« Antwort #17 am: April 14, 2008, 14:32:43 »
Ähm oke nun werdens mehr fragen xD
Kann doch eigendlich garnich gehen oda? Da mp3s keine Videos anzeigen können...
und einfach umbennen werden die dateien meist unbrauchbar, also wenn meinst wohl sicher
um converten oda? ^^

Also habs grad ma ausprobiert, nix ^^
Also höchstens die mucke kann man hören...

Video

Talyana Meriweather Rahl

  • Gast
Video
« Antwort #18 am: April 14, 2008, 16:11:28 »
Nene^^ du verschiebst das einfach in den Ordner^^

Aber dann öffnet sich ein nicht gerade schönes 2. Fenster muss man dazu sagen deswegen habe ich es inzwischen sein gelassen^^

Video

Offline Razael

  • Helfende Hand.
  • Mr. MACK-Tile
  • ***
  • Beiträge: 282
Video
« Antwort #19 am: April 14, 2008, 18:59:21 »
Man könnte doch solche Videos als Extras einbauen ^^ man schaltet sie Frei und wählt sie über menu an dann wäre auch das 2te Fenster okay XD
Nimm das Leben wies kommt und Geniesse die guten Momente und Lerne aus den Schlechten.
Spoiler for Hiden:
Disorder | Rating
Paranoid: Low
Schizoid: Low
Schizotypal: Low
Antisocial: Low
Borderline: Low
Histrionic: Low
Narcissistic: Low
Avoidant: Low
Dependent: Low
Obsessive-Compulsive: Low

URL of the test: http://www.4degreez.com/misc/personality_disorder_test.mv
URL for more info: http://www.4degreez.com/disorder/index.html
Spoiler for Hiden:
Take the Magic: The Gathering 'What Color Are You?' Quiz.[/div][!--SPOILER DIV--][/div][!--SPOILER DIV--]
Spoiler for Hiden:
Zu 30 % sind Sie: Du bist ein Phönix!
Du bist Jahrtausende alt und weise.
Test[!--SPOILER DIV--][/div][!--SPOILER DIV--]
Spoiler for Hiden:
Zu 69 % sind Sie: Gratulation! Deine emoti

Video

Cege

  • Gast
Video
« Antwort #20 am: April 15, 2008, 09:39:47 »
gut hat funktioniert...
Habt zwar recht, sieht jetzt nich sooo toll aus aba hab au schon schlimmeres gesehen :)
Vllt findet sich da ja auch im laufe der Zeit nochma ne bessere Lösung ^^

Video

Cege

  • Gast
Video
« Antwort #21 am: April 17, 2008, 17:19:25 »
...und es gab eine bessere Lösung OHNE nervigem Extra Fenster ;)

Hab ein perfektes Skript gefunden HIER *_* Is leicht einzubauen und funktioniert perfekt ^^

Video

Izzy

  • Gast
Video
« Antwort #22 am: April 18, 2008, 12:56:35 »
Naja perfekt ist sone Sache, da steht man soll es auf eigenes Risiko benutzen und in nem fertigen Spiel wird von abgeraten, das heißt es wird noch seeehr viele Bugs haben.
Trotzdem danke, sie werden mit sicherheit dran arbeiten :)

 


 Bild des Monats

rooftop party

Views: 4430
By: papilion

 Umfrage

  • Wer soll das BdM gewinnen?
  • Dot Kandidat 1
  • 3 (25%)
  • Dot Kandidat 2
  • 1 (8%)
  • Dot Kandidat 3
  • 2 (16%)
  • Dot Kandidat 4
  • 0 (0%)
  • Dot Kandidat 5
  • 6 (50%)
  • Stimmen insgesamt: 12
  • View Topic

 Schnellsuche





SimplePortal 2.3.3 © 2008-2010, SimplePortal