Page 1 of 2

Cinematic Help

Posted: Thu Feb 21, 2013 1:31 am
by LocalFire
I need help with a custom cinematic for my opening, I've got everything working with standard images but want to add custom images.

I know you need .DDS fromat and reference them as .tga in intro.lua, and I made sure it was DXT5 and generate mipmaps; but when I run the dungeon it crashes and I get this error

[string "Cinematic Mode.lua"} :0: D3D Error- CreateTexture failed
D3DERR_INVALIDCALL
Stack traceback:
[C]: in function 'load'
[string"Cinematic Mode.lua"] in function 'showImage'
[string"Cinematic Mode.lua"] in main chunk
[string"Cinematic Mode.lua"] in function 'update'
[string "Grimrock.lua"] in function "display'
[string "Grimrock.lua"] in main chunk
Can anyone help me?

Re: Cinematic Help

Posted: Thu Feb 21, 2013 1:34 am
by Neikun
Can you post your intro.lua as well?

Re: Cinematic Help

Posted: Thu Feb 21, 2013 1:40 am
by LocalFire
-- cinematic with a title and story text
enableUserInput()
startMusic("assets/samples/music/intro.ogg")

showImage("mod_assets/textures/cinematic/intro/lich.tga")
fadeIn(2)

-- show the title text
sleep(1)
setFont("IntroTitle")
showText("The Paths of The Earth", 3)
sleep(2)
fadeOutText(1)

-- show the story text
sleep(1)

setFont("Intro")
textWriter([[
Shadowmere is a land ravaged by war, blighted by the touch of necromancy,
Encircled by the Immortal clans. Near its heart stands the College of Shadowmere,
Though young it was endured seige, its walls have turned armies

This is a place of power
]])
click()
fadeOutText(0.5)
textWriter([[ Arcane scrolls and Tomes are housed here, A lifetime of dedicated study will reap the rewards of magical skill and power

This is a palce of Learning
]])
click()
fadeOutText(0.5)
textWriter([[But what good is such power if it comes so late?
Secret Histories tell of a hidden dungeon concealed beneath the college cellar
The Masters hide the truth, but still some clever students find a way

This is a place of secrets
]])
click()
fadeOutText(0.5)
textWriter([[ What secret lie in wait
Tomes of Forbbidden Knowledge!
Potions of wonderous effect!
Weapons of Power!
They await the brave and the curious

They await those who would walk the Paths of the Earth!
]])
click()
fadeOutText(0.5)

fadeOut(4)
fadeOutMusic(3)

Re: Cinematic Help

Posted: Thu Feb 21, 2013 1:44 am
by Neikun
LocalFire wrote: showImage("mod_assets/textures/cinematic/intro/lich.tga")
Just curious, is it supposed to be cinematic or cinematics?

Re: Cinematic Help

Posted: Thu Feb 21, 2013 1:47 am
by LocalFire
It's the right files I already checked; (I had a problem with that earlier)

Re: Cinematic Help

Posted: Thu Feb 21, 2013 1:49 am
by LocalFire
I use paint.net to edit my images That's not gonna cause problems is it?

Re: Cinematic Help

Posted: Thu Feb 21, 2013 1:59 am
by Neikun
Well the only thing that comes to mind is that the image is improperly compressed.
Try saving the image in an uncompressed format just to test.

Re: Cinematic Help

Posted: Thu Feb 21, 2013 2:01 am
by LocalFire
okay will do

Re: Cinematic Help

Posted: Thu Feb 21, 2013 2:08 am
by LocalFire
Still getting the same error message. Do the images have to be a specific size and dimension?

Re: Cinematic Help

Posted: Thu Feb 21, 2013 2:15 am
by Neikun
I am venturing into territory I've not yet charted. So My apologies if I'm not super helpful.
My next idea is maybe you need to enable mipmaps when you save it?
Though I'm not sure why.