Vai al contenuto


Toggle Chat RM - Chat Apri la Chat in un popup

E' severamente vietato richiedere supporto su RPG Maker in chat!
@  Caba33akaMimik : (25 May 2012 - 09:56 PM) sera a tutti ^^
@  Melosx : (25 May 2012 - 08:30 PM) Buonasera a tutti
@  Hashmin : (25 May 2012 - 02:15 PM) ciao a tt!
@  Pech93 : (24 May 2012 - 01:55 PM) ho aggiunto delle composizioni originali!!! Chi le vuole ascoltare e dare qualche commento costruttivo?
@  MihaChan : (23 May 2012 - 09:19 PM) a parte i denti -che stanno decidendo di darmi noia in questi giorni-, tutto okay~
@  Melosx : (23 May 2012 - 09:18 PM) bene ^.^ ... Tu??
@  MihaChan : (23 May 2012 - 09:17 PM) come va? xD
@  MihaChan : (23 May 2012 - 09:16 PM) okay
@  MihaChan : (23 May 2012 - 09:16 PM) ah
@  Melosx : (23 May 2012 - 09:14 PM) ciao miha... ai dont spic inglisc
@  MihaChan : (23 May 2012 - 09:12 PM) how'sa goin'?
@  MihaChan : (23 May 2012 - 09:12 PM) ciao Mel!
@  Melosx : (23 May 2012 - 09:07 PM) ciao
@  MihaChan : (23 May 2012 - 09:06 PM) salve D:
@  Pech93 : (23 May 2012 - 08:05 PM) MIk?
@  Melosx : (23 May 2012 - 07:51 PM) VIENI SU MSN!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
@  Melosx : (23 May 2012 - 07:51 PM) MIIIIIIIIIIIIIIIIIIIKKKKKKKKKKKK!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
@  Melosx : (23 May 2012 - 07:46 PM) *iù
@  Melosx : (23 May 2012 - 07:38 PM) iu spin mi rai rau bebi rai rau laic a record bebi rau rau rau rau
@  Melosx : (23 May 2012 - 07:37 PM) lalalallalallalallallllllllllalalalallaaaaaaaaaaaaaaaaaaaaaa!!!!!!!!!!!!!!!!!!

Video Player


  • Per cortesia connettiti per rispondere
14 risposte a questa discussione

#1 OFFLINE   Andrea

Andrea

    Neofita

  • Utenti RM
  • 8 Messaggi:

Inviato 04 January 2012 - 08:41 PM

Salve mi servirebbe uno script per fare partire dei piccoli video nella stessa schermata del gioco....qualcuno potrebbe aiutarmi??? Grazie in anticipo =)

#2 OFFLINE   Ally

Ally

    Fondatori

  • Amministratori
  • 5558 Messaggi:
  • Localitàrpgmkr
  • Ruolo:
    Scripter
  • Progetto VX:
    Essence
  • Tool:
    RM2k/2k3

Inviato 04 January 2012 - 09:32 PM

Si ha bisogno di uno script che è presente nel forum:
topic1782.html

Sposto in Richieste Script RGSS2.
Immagine inserita
Spoiler

#3 OFFLINE   Andrea

Andrea

    Neofita

  • Utenti RM
  • 8 Messaggi:

Inviato 05 January 2012 - 02:43 PM

ho gia provato questo script ma appena faccio partire il video mi dice...
"Script 'video' line317: RunetimeError Occurred
Il driver non può riconoscere il parametro del comando specificato"

#4 OFFLINE   Ally

Ally

    Fondatori

  • Amministratori
  • 5558 Messaggi:
  • Localitàrpgmkr
  • Ruolo:
    Scripter
  • Progetto VX:
    Essence
  • Tool:
    RM2k/2k3

Inviato 05 January 2012 - 03:38 PM

Non ricordavo desse dei problemi.
E' presente quest'altro script di trebor777:
#======================================================================
=========
# By trebor777
# Date: 26/10/2008
# Version 1.5 - Updated 27/10/2008
#-------------------------------------------------------------------------------
# RMVX Avi Player
#
# Instructions:
# Video Specification ( to ensure good playability )
# Recommended encoding: Xvid + MP3 CBR (very important to keep a constant
# bit rate for the audio, else it won't play it)
# Video Resolution : Up to 640*480
# Save the videos into a new folder called Movies in your project root folder.
#
# Call in an event(using the call script command) or in your script:
#
# Movie.play("myvideo",width,height)
# Movie.play("myvideo")
#
# By providing the dimensions of your video, if smaller than 640*480, the script
# will stretch it in the window(or in the screen if in fullscreen), to fit a
# width of 640px, but keeping the original aspect ratio.
#
# Don't need to provide the dimensions if the video is 640*480.
#===============================================================================
module Movie
attr_accessor :fps
def self.play(movie, width=Graphics.width, height=Graphics.height)
movie= "./Movies/#{movie}.avi"
fps = 24
readini= Win32API.new 'kernel32', 'GetPrivateProfileStringA', %w(p p p p l p), 'l'
wnd= Win32API.new('user32','FindWindowEx','%w(l,l,p,p)','L')
@mplayer= Win32API.new('winmm','mciSendString','%w(p,p,l,l)','V')
@detector = Win32API.new('user32','GetSystemMetrics','%w(l)','L')
timer= 1.0/fps
info= " " * 255
game_name= "\0" * 256
readini.call('Game','Title','',game_name,255,".\\Game.ini")
game_name.delete!("\0")
hwnd= wnd.call(0,0,nil,game_name).to_s
@mplayer.call("open #{movie} alias FILM style child parent #{hwnd}",0,0,0)
@mplayer.call("status FILM length",info,255,0)
movie_lenght = info.unpack("a*")[0].gsub!("\000","").to_i
info= " " * 255
@ratio = height.to_f/width
@width = 0
self.update_stretch
@mplayer.call("play FILM window",0,0,0)
loop do
sleep(timer)
Input.update
update_stretch
@mplayer.call("status FILM mode",info,255,0)
s= info.unpack("a*")[0].gsub!("\000","")
break if Input.repeat?(Input:: or s.to_s == "stopped"
end
@mplayer.call("close FILM",0,0,0)
Input.update
end
def self.update_stretch
n_w = @detector.call(0)
if @width != n_w
@width = n_w
w = (n_w == 640)? 640 : Graphics.width
h = (n_w == 640)? 480 : Graphics.height
new_height = (w*@ratio).round
@mplayer.call("put FILM window at 0 #{(h-new_height)/2} #{w} #{new_height}",0,0,0)
end
end
end
Non lo ho ancora provato, quindi non so dirti se funziona... Presumibilmente i file video devono essere in .avi, e forse c'è bisogno di qualche codec installato, tipo Xvid...

Se no, se sei proprio agli inizi, e vuoi per forza usare un video nel tuo progetto, usa i tool meno recenti (cui ti farai maggiormente le ossa), oppure usa il tool nuovo (VX Ace). Questi fanno inserire già di default i video.
Ricorda però che video ed mp3 saranno simbolo di pesantezza per il progetto =)
Immagine inserita
Spoiler

#5 OFFLINE   Andrea

Andrea

    Neofita

  • Utenti RM
  • 8 Messaggi:

Inviato 05 January 2012 - 03:47 PM

Ora provo con questo =) potresti dirmi qual'e il callScript?

EDIT:
Trovato =)

EDIT 2:
Mi da errore qui << break if Input.repeat?(Input:: or s.to_s == "stopped" >>
ho messo la parentesi finale ma niente =(

#6 OFFLINE   Ally

Ally

    Fondatori

  • Amministratori
  • 5558 Messaggi:
  • Localitàrpgmkr
  • Ruolo:
    Scripter
  • Progetto VX:
    Essence
  • Tool:
    RM2k/2k3

Inviato 05 January 2012 - 04:02 PM

Evitiamo tripli post, c'è il tasto modifica ^^

Comunque, le istruzioni sono all'interno dello script:

Citazione

# Instructions:
# Video Specification ( to ensure good playability )
# Recommended encoding: Xvid + MP3 CBR (very important to keep a constant
# bit rate for the audio, else it won't play it)
# Video Resolution : Up to 640*480
# Save the videos into a new folder called Movies in your project root folder.
#
# Call in an event(using the call script command) or in your script:
#
# Movie.play("myvideo",width,height)
# Movie.play("myvideo")
#
# By providing the dimensions of your video, if smaller than 640*480, the script
# will stretch it in the window(or in the screen if in fullscreen), to fit a
# width of 640px, but keeping the original aspect ratio.
#
# Don't need to provide the dimensions if the video is 640*480.
Il call script quindi sarà:
Movie.play("myvideo",width,height)
Movie.play("myvideo")
Dove myvideo, dovrà essere sostituito con il nome del tuo.

Quest'ultimi, dovranno essere inseriti in una cartella chiamata Movies all'interno del tuo progetto.
Immagine inserita
Spoiler

#7 OFFLINE   Andrea

Andrea

    Neofita

  • Utenti RM
  • 8 Messaggi:

Inviato 05 January 2012 - 04:14 PM

Probabilmente sto sbagliando qualcosa ma ho fatto tutto quello che hai scritto ma mi da sempre errore...

#8 OFFLINE   Ally

Ally

    Fondatori

  • Amministratori
  • 5558 Messaggi:
  • Localitàrpgmkr
  • Ruolo:
    Scripter
  • Progetto VX:
    Essence
  • Tool:
    RM2k/2k3

Inviato 05 January 2012 - 04:17 PM

Se non è una cosa urgente, posso provarci più tardi appena sono sul mio pc =)
Immagine inserita
Spoiler

#9 OFFLINE   Andrea

Andrea

    Neofita

  • Utenti RM
  • 8 Messaggi:

Inviato 05 January 2012 - 04:17 PM

Si mi faresti un enorme favore perchè è per un progetto per la prossima settimana...Grazie mille =)

#10 OFFLINE   Andrea

Andrea

    Neofita

  • Utenti RM
  • 8 Messaggi:

Inviato 08 January 2012 - 06:57 PM

Adesso mi servirebbe urgentemente...

#11 OFFLINE   Ally

Ally

    Fondatori

  • Amministratori
  • 5558 Messaggi:
  • Localitàrpgmkr
  • Ruolo:
    Scripter
  • Progetto VX:
    Essence
  • Tool:
    RM2k/2k3

Inviato 10 January 2012 - 05:11 AM

Per caso deve essere un video prima del titolo?
Immagine inserita
Spoiler

#12 OFFLINE   Andrea

Andrea

    Neofita

  • Utenti RM
  • 8 Messaggi:

Inviato 11 January 2012 - 07:48 PM

no dopo, tipo prendo uno scrigno e parte sto video...

#13 OFFLINE   Ally

Ally

    Fondatori

  • Amministratori
  • 5558 Messaggi:
  • Localitàrpgmkr
  • Ruolo:
    Scripter
  • Progetto VX:
    Essence
  • Tool:
    RM2k/2k3

Inviato 12 January 2012 - 06:29 PM

Da parecchi errori anche a me.
Hai provato a installare il codec Xvid?
Immagine inserita
Spoiler

#14 OFFLINE   Andrea

Andrea

    Neofita

  • Utenti RM
  • 8 Messaggi:

Inviato 13 January 2012 - 01:23 PM

no tu l'hai provato?

#15 OFFLINE   Ally

Ally

    Fondatori

  • Amministratori
  • 5558 Messaggi:
  • Localitàrpgmkr
  • Ruolo:
    Scripter
  • Progetto VX:
    Essence
  • Tool:
    RM2k/2k3

Inviato 14 January 2012 - 08:40 PM

No, non ero nel mio PC ^^
Prova ad installarlo e vedi se ti da errori.

Se no, posso consigliarti di usare il VX Ace che oltre ad avere features in più, ha proprio la possibilità di implementare i video senza problemi :)
Immagine inserita
Spoiler




1 utente(i) stanno leggendo questa discussione

0 utenti, 1 ospiti, 0 utenti anonimi