Ending game and intro cinematics

Ask for help about creating mods and scripts for Grimrock 2 or share your tips, scripts, tools and assets with other modders here. Warning: forum contains spoilers!
Post Reply
User avatar
ratman
Posts: 158
Joined: Fri Jan 10, 2020 1:13 am

Ending game and intro cinematics

Post 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.
User avatar
THOM
Posts: 1266
Joined: Wed Nov 20, 2013 11:35 pm
Location: Germany - Cologne
Contact:

Re: Ending game and intro cinematics

Post by THOM »

Can you post the full function your pressure plate triggers?
THOM formaly known as tschrage
_______________________________________________
My MOD (LoG1): Castle Ringfort Thread
My MOD (LoG2): Journey To Justice Thread | Download
User avatar
ratman
Posts: 158
Joined: Fri Jan 10, 2020 1:13 am

Re: Ending game and intro cinematics

Post by ratman »

Code: Select all

function endGame()
	completeGame("mod_assets/cinematics/ending.lua")
end
User avatar
THOM
Posts: 1266
Joined: Wed Nov 20, 2013 11:35 pm
Location: Germany - Cologne
Contact:

Re: Ending game and intro cinematics

Post 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/
THOM formaly known as tschrage
_______________________________________________
My MOD (LoG1): Castle Ringfort Thread
My MOD (LoG2): Journey To Justice Thread | Download
User avatar
Zo Kath Ra
Posts: 931
Joined: Sat Apr 21, 2012 9:57 am
Location: Germany

Re: Ending game and intro cinematics

Post 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
User avatar
ratman
Posts: 158
Joined: Fri Jan 10, 2020 1:13 am

Re: Ending game and intro cinematics

Post 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/
User avatar
THOM
Posts: 1266
Joined: Wed Nov 20, 2013 11:35 pm
Location: Germany - Cologne
Contact:

Re: Ending game and intro cinematics

Post 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.
THOM formaly known as tschrage
_______________________________________________
My MOD (LoG1): Castle Ringfort Thread
My MOD (LoG2): Journey To Justice Thread | Download
User avatar
ratman
Posts: 158
Joined: Fri Jan 10, 2020 1:13 am

Re: Ending game and intro cinematics

Post by ratman »

Would it be possible for me to create cinematics with just a picture? and if so, how?
Post Reply