Page 1 of 1

Ending game and intro cinematics

Posted: Mon Apr 20, 2020 4:49 pm
by ratman
I have completed making my dungeon, and now am trying to make intro/ending cinematics. I have the files in my 'mod_assets/cinematics' folder, but the intro simply doesn't occur, and when the party steps on the pressure plate that triggers the ending it says 'attempt to call global 'completeGame' (a nil value). Thanks for any help.

Re: Ending game and intro cinematics

Posted: Mon Apr 20, 2020 5:17 pm
by THOM
Can you post the full function your pressure plate triggers?

Re: Ending game and intro cinematics

Posted: Mon Apr 20, 2020 5:21 pm
by ratman

Code: Select all

function endGame()
	completeGame("mod_assets/cinematics/ending.lua")
end

Re: Ending game and intro cinematics

Posted: Mon Apr 20, 2020 7:05 pm
by THOM
Okay, next question would be, what ending.lua does.

However completeGame in LoG2 works different than in LoG1.

Have a look here:
http://www.grimrock.net/modding/creating-cinematics/

Re: Ending game and intro cinematics

Posted: Mon Apr 20, 2020 7:53 pm
by Zo Kath Ra
ratman wrote: Mon Apr 20, 2020 5:21 pm

Code: Select all

function endGame()
	completeGame("mod_assets/cinematics/ending.lua")
end
viewtopic.php?f=22&t=7951&p=121819#p121819

Re: Ending game and intro cinematics

Posted: Mon Apr 20, 2020 9:53 pm
by ratman
THOM wrote:
Okay, next question would be, what ending.lua does.
I just copy & pasted from the official site but changed the text to my own. I kept the default picture and music the same though.

http://www.grimrock.net/modding_log1/ho ... inematics/

Re: Ending game and intro cinematics

Posted: Mon Apr 20, 2020 9:57 pm
by THOM
No - you have copied and pasted what comes from the officioal LoG1 site.

In LoG2 you cannot script cinematics that way. You can just include movie files or write an own cinnematics system - like we did in ORRR3.

Re: Ending game and intro cinematics

Posted: Mon Apr 20, 2020 10:00 pm
by ratman
Would it be possible for me to create cinematics with just a picture? and if so, how?