Page 1 of 1

Custom video with editor ?

Posted: Fri Nov 07, 2014 3:13 pm
by Rougecorne
Hello all :)

It's possible to insert custom video (.avi) in the editor ?
For exemple : The intro cinematic, and the ending cinematic.

Re: Custom video with editor ?

Posted: Fri Nov 07, 2014 3:26 pm
by Skuggasveinn
Yes

you use GameMode.playVideo(filename)
where file name is the path inside your mod_asset folder to your video.
The video must be encoded with VP8 (see http://en.wikipedia.org/wiki/VP8) , the last time I checked the beta version of handbrake could encode into VP8 (see https://handbrake.fr)
Videos do not play inside the editor, if you want to play the videos from the original game you need to point to them (I don't know the filepath or filename)

if you leave GameMode.playVideo outside a function it will play when you start your dungeon from the game.
You can also nest GameMode.playVideo inside a function and call that if you want to play cutscenes during the gameplay itself, and you can call GameMode.completeGame(filename) for the ending.

Hope that points you in the right direction.

Skuggasveinn.

Re: Custom video with editor ?

Posted: Fri Nov 07, 2014 4:21 pm
by Rougecorne
Wow, that's perfect !
Thank you :) !

I try that tonight :)

Re: Custom video with editor ?

Posted: Sun Nov 09, 2014 7:22 pm
by Rougecorne
Mmm, i try that but it's not work :/

I try with this script:

Code: Select all

function intromovie()
	GameMode.playVideo("Mon film2_Encode")
end

Re: Custom video with editor ?

Posted: Sun Nov 09, 2014 7:41 pm
by Phillip_Lynx
Rougecorne wrote:Mmm, i try that but it's not work :/

I try with this script:

Code: Select all

function intromovie()
	GameMode.playVideo("Mon film2_Encode")
end
do you get an errormessage?

So blind I would guess 2 things :). First, grimrock do not like the SPACE and second, you have to add the file-extension (GameMode.playVideo("Mon film2_Encode.avi")).

Re: Custom video with editor ?

Posted: Sun Nov 09, 2014 9:25 pm
by Rougecorne
Mmm, it's not .avi, when i convert my video for VP8, i just have:

Monfilm2_Encode.fichier (In french ^^)

I encoded video with this website:

http://firefogg.org/make/index.html (You need Firefox). And then, i choose "WebM (VP8)".

Re: Custom video with editor ?

Posted: Sun Nov 09, 2014 9:29 pm
by Rougecorne
Mmm, i try to make "MonFilm2_Encode.WebM", but when i test in-game (not with the editor), i have this message:

MonFilm2_Encode.WebM : The file do not exist.

Re: Custom video with editor ?

Posted: Mon Nov 10, 2014 2:31 am
by msyblade
You need to type the path. ie: "mod_assets\cinematics\movie.avi"

Re: Custom video with editor ?

Posted: Mon Nov 10, 2014 12:48 pm
by Rougecorne
I have this message:

Invalid escape sequence near "mod_assets"

function intromovie()
GameMode.playVideo("mod_assets\cinematics\Monfilm2_Encode.avi")
end