Page 1 of 3
created cinematic of finish???
Posted: Mon Sep 24, 2012 11:51 am
by bacchus1974
hello
i don t understand how i must do to created a cinematic or image for finish my dungeon
please help me
Re: created cinematic of finish???
Posted: Mon Sep 24, 2012 12:06 pm
by Montis
Re: created cinematic of finish???
Posted: Mon Sep 24, 2012 12:25 pm
by bacchus1974
thanks but i don t understand how i do to realized a cinematic but with this tutorial where i file a file ending.lua
Re: created cinematic of finish???
Posted: Mon Sep 24, 2012 6:13 pm
by SpacialKatana
You have to create the script "ending.lua" and place it in your "mod_assets/cinematics" folder.
eg:-
Code: Select all
-- simple one image cinematic
enableUserInput()
startMusic("assets/samples/music/myending.wav")
-- show the image
showImage("assets/textures/cinematic/intro/ending.tga")
fadeIn(2)
sleep(4)
fadeOut(4)
Have a trigger fire this script to end the game:-
Code: Select all
function endgame()
completeGame("ending.lua") -- think this is right??
end
You can put the images/wav files where you want, as long as you give the correct path for them in the script. It's all packed up in the .dat when you export/publish.
Re: created cinematic of finish???
Posted: Mon Sep 24, 2012 9:00 pm
by pulpum
by making a lua script, you mean a file made with a text editor, and .lua ?
Re: created cinematic of finish???
Posted: Mon Sep 24, 2012 9:12 pm
by SpacialKatana
pulpum wrote:by making a lua script, you mean a file made with a text editor, and .lua ?
Yup. Make an ordinary .txt file in the correct directory (cinematics in this case), and simply rename it .lua
Re: created cinematic of finish???
Posted: Tue Sep 25, 2012 12:49 pm
by bacchus1974
hello
i have rename a photo an ending.tga and i put this file in my directory mod_assets/cinematics/ending.tga and
i have created a file ending.lua that i put in my directory mod_assets/cinematics/ending.lua
after i write what in my lua script?????????????
but i have error in my lua script :
-- show the image
showImage("mod_assets/cinematics/ending.tga") attempt to call global 'showimage' (a nil value)
fadeIn(2)
sleep(4)
fadeOut(4)
function endgame()
completeGame("ending.lua") -- think this is right??
end
please help me
end
Re: created cinematic of finish???
Posted: Tue Sep 25, 2012 1:24 pm
by Montis
This:
Code: Select all
-- show the image
showImage("mod_assets/cinematics/ending.tga") attempt to call global 'showimage' (a nil value)
fadeIn(2)
sleep(4)
fadeOut(4)
needs to be in the
ending.lua, not in the lua script entity.
Re: created cinematic of finish???
Posted: Tue Sep 25, 2012 4:39 pm
by bacchus1974
in my ending.lua i write this:
-- show the image
showImage("mod_assets/cinematics/ending.tga")
fadeIn(2)
sleep(4)
fadeOut(4)
and in my lua script i have write :
function endgame()
completeGame("mod_assets/cinematics/ending.lua")
end
I have connected my lua script with dungeon_pressure plate when i pass with my team on this trap the message game completed appear
but i don t see my image.tga
thanks for your help
Re: created cinematic of finish???
Posted: Tue Sep 25, 2012 4:52 pm
by Montis
Your image actually has to be .dds as stated here:
http://www.grimrock.net/modding/how-to- ... inematics/
You also need to name it correctly ("image" vs "ending" ?) and put it in the correct folder.