Page 1 of 1

[Help] Crashing during custom cinematics

Posted: Tue Jan 15, 2013 10:36 am
by ChizFreak
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:

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)
It crashes with the following error:

Image

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

Image


What am I doing wrong?

Re: [Help] Crashing during custom cinematics

Posted: Tue Jan 15, 2013 4:56 pm
by msyblade
Try changing your "showImage" to .tga instead of .dds (I know it's weird, but I think it will solve the issue ;))

Edit: leave the file .dds, just call it .tga in the string