created cinematic of finish???
- bacchus1974
- Posts: 77
- Joined: Sun Apr 08, 2012 7:35 pm
created cinematic of finish???
hello
i don t understand how i must do to created a cinematic or image for finish my dungeon
please help me
i don t understand how i must do to created a cinematic or image for finish my dungeon
please help me
- Montis
- Posts: 340
- Joined: Sun Apr 15, 2012 1:25 am
- Location: Grimrock II 2nd playthrough (hard/oldschool)
Re: created cinematic of finish???
This should help you:
http://www.grimrock.net/modding/how-to- ... inematics/
http://www.grimrock.net/modding/how-to- ... inematics/
- bacchus1974
- Posts: 77
- Joined: Sun Apr 08, 2012 7:35 pm
Re: created cinematic of finish???
thanks but i don t understand how i do to realized a cinematic but with this tutorial where i file a file ending.lua
-
SpacialKatana
- Posts: 163
- Joined: Fri Sep 14, 2012 6:20 pm
Re: created cinematic of finish???
You have to create the script "ending.lua" and place it in your "mod_assets/cinematics" folder.
eg:-
Have a trigger fire this script to end the game:-
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.
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)Code: Select all
function endgame()
completeGame("ending.lua") -- think this is right??
endRe: created cinematic of finish???
by making a lua script, you mean a file made with a text editor, and .lua ?
ad&d / ff / d&d
-
SpacialKatana
- Posts: 163
- Joined: Fri Sep 14, 2012 6:20 pm
Re: created cinematic of finish???
Yup. Make an ordinary .txt file in the correct directory (cinematics in this case), and simply rename it .luapulpum wrote:by making a lua script, you mean a file made with a text editor, and .lua ?
- bacchus1974
- Posts: 77
- Joined: Sun Apr 08, 2012 7:35 pm
Re: created cinematic of finish???
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
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
- Montis
- Posts: 340
- Joined: Sun Apr 15, 2012 1:25 am
- Location: Grimrock II 2nd playthrough (hard/oldschool)
Re: created cinematic of finish???
This:
needs to be in the ending.lua, not in the lua script entity.
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)- bacchus1974
- Posts: 77
- Joined: Sun Apr 08, 2012 7:35 pm
Re: created cinematic of finish???
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
-- 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
- Montis
- Posts: 340
- Joined: Sun Apr 15, 2012 1:25 am
- Location: Grimrock II 2nd playthrough (hard/oldschool)
Re: created cinematic of finish???
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.
You also need to name it correctly ("image" vs "ending" ?) and put it in the correct folder.