created cinematic of finish???

Talk about creating Grimrock 1 levels and mods here. Warning: forum contains spoilers!
User avatar
bacchus1974
Posts: 77
Joined: Sun Apr 08, 2012 7:35 pm

created cinematic of finish???

Post by bacchus1974 »

hello

i don t understand how i must do to created a cinematic or image for finish my dungeon

please help me
User avatar
Montis
Posts: 340
Joined: Sun Apr 15, 2012 1:25 am
Location: Grimrock II 2nd playthrough (hard/oldschool)

Re: created cinematic of finish???

Post by Montis »

When destiny calls, the chosen have no choice.

My completed dungeon (LoG1): Hypercube
User avatar
bacchus1974
Posts: 77
Joined: Sun Apr 08, 2012 7:35 pm

Re: created cinematic of finish???

Post 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
SpacialKatana
Posts: 163
Joined: Fri Sep 14, 2012 6:20 pm

Re: created cinematic of finish???

Post 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.
User avatar
pulpum
Posts: 155
Joined: Wed Apr 18, 2012 1:23 am
Location: bordeaux, france

Re: created cinematic of finish???

Post by pulpum »

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???

Post 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
User avatar
bacchus1974
Posts: 77
Joined: Sun Apr 08, 2012 7:35 pm

Re: created cinematic of finish???

Post 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
User avatar
Montis
Posts: 340
Joined: Sun Apr 15, 2012 1:25 am
Location: Grimrock II 2nd playthrough (hard/oldschool)

Re: created cinematic of finish???

Post 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.
When destiny calls, the chosen have no choice.

My completed dungeon (LoG1): Hypercube
User avatar
bacchus1974
Posts: 77
Joined: Sun Apr 08, 2012 7:35 pm

Re: created cinematic of finish???

Post 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
User avatar
Montis
Posts: 340
Joined: Sun Apr 15, 2012 1:25 am
Location: Grimrock II 2nd playthrough (hard/oldschool)

Re: created cinematic of finish???

Post 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.
When destiny calls, the chosen have no choice.

My completed dungeon (LoG1): Hypercube
Post Reply