[Help] Crashing during custom cinematics
Posted: Tue Jan 15, 2013 10:36 am
I used the official tutorial to make a cinematic and it doesn't seem to work for some reason...
I opened a txt, wrote the following code, and saved it as .lua:
It crashes with the following error:

If I remove the line with the music and the fade music I get this error instead:

What am I doing wrong?
I opened a txt, wrote the following code, and saved it as .lua:
Code: Select all
-- cinematic with a title and story text
enableUserInput()
startMusic("mod_assets/sounds/IntroNumber7.wav")
showImage("mod_assets/textures/introForestImage.dds")
fadeIn(2)
-- show the title text
sleep(1)
setFont("IntroTitle")
showText("The Trials of Sen", 3)
sleep(2)
fadeOutText(1)
-- show the story text
sleep(1)
setFont("Intro")
textWriter([[
The Fortress of Sen, build by eponymous architech.
It's a ground of trials for every hero (or heroes) that want the privilege
of walking through the city of the Gods, Anor Londo, and achieve maximum glory.
You've dropped into the pit that serves as entrance to the Fortress, go forth Brave Warrior!
Prove you're worthy of walking, amongst the Gods themselves!
]])
click()
fadeOutText(0.5)
fadeOut(4)
fadeOutMusic(3)

If I remove the line with the music and the fade music I get this error instead:

What am I doing wrong?