Cinematic Help

Talk about creating Grimrock 1 levels and mods here. Warning: forum contains spoilers!
User avatar
LocalFire
Posts: 261
Joined: Thu Feb 21, 2013 1:16 am
Location: Auckland, New Zealand

Cinematic Help

Post 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?
User avatar
Neikun
Posts: 2457
Joined: Thu Sep 13, 2012 1:06 pm
Location: New Brunswick, Canada
Contact:

Re: Cinematic Help

Post by Neikun »

Can you post your intro.lua as well?
"I'm okay with being referred to as a goddess."
Community Model Request Thread
See what I'm working on right now: Neikun's Workshop
Lead Coordinator for Legends of the Northern Realms Project
  • Message me to join in!
User avatar
LocalFire
Posts: 261
Joined: Thu Feb 21, 2013 1:16 am
Location: Auckland, New Zealand

Re: Cinematic Help

Post 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)
User avatar
Neikun
Posts: 2457
Joined: Thu Sep 13, 2012 1:06 pm
Location: New Brunswick, Canada
Contact:

Re: Cinematic Help

Post by Neikun »

LocalFire wrote: showImage("mod_assets/textures/cinematic/intro/lich.tga")
Just curious, is it supposed to be cinematic or cinematics?
"I'm okay with being referred to as a goddess."
Community Model Request Thread
See what I'm working on right now: Neikun's Workshop
Lead Coordinator for Legends of the Northern Realms Project
  • Message me to join in!
User avatar
LocalFire
Posts: 261
Joined: Thu Feb 21, 2013 1:16 am
Location: Auckland, New Zealand

Re: Cinematic Help

Post by LocalFire »

It's the right files I already checked; (I had a problem with that earlier)
User avatar
LocalFire
Posts: 261
Joined: Thu Feb 21, 2013 1:16 am
Location: Auckland, New Zealand

Re: Cinematic Help

Post by LocalFire »

I use paint.net to edit my images That's not gonna cause problems is it?
User avatar
Neikun
Posts: 2457
Joined: Thu Sep 13, 2012 1:06 pm
Location: New Brunswick, Canada
Contact:

Re: Cinematic Help

Post 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.
"I'm okay with being referred to as a goddess."
Community Model Request Thread
See what I'm working on right now: Neikun's Workshop
Lead Coordinator for Legends of the Northern Realms Project
  • Message me to join in!
User avatar
LocalFire
Posts: 261
Joined: Thu Feb 21, 2013 1:16 am
Location: Auckland, New Zealand

Re: Cinematic Help

Post by LocalFire »

okay will do
User avatar
LocalFire
Posts: 261
Joined: Thu Feb 21, 2013 1:16 am
Location: Auckland, New Zealand

Re: Cinematic Help

Post by LocalFire »

Still getting the same error message. Do the images have to be a specific size and dimension?
User avatar
Neikun
Posts: 2457
Joined: Thu Sep 13, 2012 1:06 pm
Location: New Brunswick, Canada
Contact:

Re: Cinematic Help

Post 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.
"I'm okay with being referred to as a goddess."
Community Model Request Thread
See what I'm working on right now: Neikun's Workshop
Lead Coordinator for Legends of the Northern Realms Project
  • Message me to join in!
Post Reply