Picture failure

Talk about creating Grimrock 1 levels and mods here. Warning: forum contains spoilers!
Meraz
Posts: 38
Joined: Sun Feb 17, 2013 12:26 pm

Picture failure

Post by Meraz »

ok been trying to make my own picture to run at the end of my dungeon. It is dds format , i added it to my Jojos Tower - mod_assets - cinematics folder .. but it crashes when i try to run it...
[String "CinematicMode.lua" ]:0: File not found:
Stack traceback:
[C]: in function 'load'
[String "CinematicMode.lua" ]: in functionshowImage'
[String "CinematicMode.lua" ]: in main chunk
[String "CinematicMode.lua" ]: in function 'update'
[String "Grimrock.lua" ]: in function display'
[String "Grimrock.lua" ]: in main chunk

An error log has been written .. This is what i get when i step on the pressure plate, it crashes me to desk top and prints that on screen. Should I have made a new folder or something to place my dds picture in or something? Any ideas? :oops:
User avatar
Drakkan
Posts: 1318
Joined: Mon Dec 31, 2012 12:25 am

Re: Picture failure

Post by Drakkan »

seems like you have picture in another folder. I advice you to re-check location, usually problem is that in your .lua is way to /assets/... but you have it in mod_assets :)
if this is not problem could you copy here your lua file so we can see definition?
Breath from the unpromising waters.
Eye of the Atlantis
Meraz
Posts: 38
Joined: Sun Feb 17, 2013 12:26 pm

Re: Picture failure

Post by Meraz »

-- cinematic with a title and story text
enableUserInput()
startMusic("assets/samples/music/intro.ogg")

-- show the image
showImage

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

-- show the title screen
sleep(1)
setFont("IntroTitle")
showText("JoJo's Tower", 3)
sleep(2)
fadeOutText(1)

-- show story text
sleep(1)
setFont("Intro")
textWriter([[
You made it!

classified text

Well done!
]])
click()
fadeOutText(0.5)

fadeOut(4)
fadeOutMusic(3)

still crashing even after i changed it to mod_assets on the lua for the pressure plate...

function endgame()
completeGame("mod_assets/cinematics/oops.lua")
end

do i need a specific spot for my picture or?

p.s. sound plays just fine

also i saved it in dds form from Paint.Net
User avatar
Drakkan
Posts: 1318
Joined: Mon Dec 31, 2012 12:25 am

Re: Picture failure

Post by Drakkan »

ok check following
1. that script

function endgame()
completeGame("mod_assets/cinematics/oops.lua")
end

is correctly joined from pressure_plate to script (lua) object in your dungeon editor

2. that you have oops.lua in your mod_assets/cinematics/oops.lua directory
3. that you have intro.ogg in assets/samples/music/ directory
edit: if sounds play fine its ok, you are using default one, so no need to check this
4. that you have caveshot.dds image in your mod_assets/textures/cinematic/intro/caveshot.tga (this is quite important - image need to be saved in dds format but link is in .tga


if still not working I suppose it is something wrong with your picture format, but its just my tip
Breath from the unpromising waters.
Eye of the Atlantis
Meraz
Posts: 38
Joined: Sun Feb 17, 2013 12:26 pm

Re: Picture failure

Post by Meraz »

did i need to make an intro file?

sorry im fairly new to all this
User avatar
Drakkan
Posts: 1318
Joined: Mon Dec 31, 2012 12:25 am

Re: Picture failure

Post by Drakkan »

Meraz wrote:did i need to make an intro file?

sorry im fairly new to all this
if you are asking about my point 3), then no, you can use default one, no prob with that. If you are asking about intro general I am not sure, but I think it could work even without intro.
Breath from the unpromising waters.
Eye of the Atlantis
Meraz
Posts: 38
Joined: Sun Feb 17, 2013 12:26 pm

Re: Picture failure

Post by Meraz »

I dont know what i am doing ,, if i put the one from the original game in it, it works fine, i put mine in and add to the folder (it goes in the same folder that i put the intro and exit lua right?).. it crashes.
User avatar
Drakkan
Posts: 1318
Joined: Mon Dec 31, 2012 12:25 am

Re: Picture failure

Post by Drakkan »

Meraz wrote:I dont know what i am doing ,, if i put the one from the original game in it, it works fine, i put mine in and add to the folder (it goes in the same folder that i put the intro and exit lua right?).. it crashes.
well then I suppose your picture has somethign wrong :/
if you want send it to my email: sirrobbo@centrum.cz
and I will save it in correct dds format
Breath from the unpromising waters.
Eye of the Atlantis
User avatar
msyblade
Posts: 792
Joined: Fri Oct 12, 2012 4:40 am
Location: New Mexico, USA
Contact:

Re: Picture failure

Post by msyblade »

I believe what is happening is that you have your path for the intro dds set to "TEXTURES/cinematics", remove the textures part :) On a side note, this is the 2nd time this week that i have seen that, perhaps both got the script from the same place, and that part does not belong. Gotta be more than coincidence to happen to two different ppl so quickly. (Maybe i better go check my "proper end credits" in the superthread! (that would be embarrasing!)

EDIT: Got it, it is in a "assets/textures/cinematics" path when using a stock LoG photos, but when using custom pic, it is just in "mod_assets/cinematics". So simply adding mod_ in front of the path doesn't work! :lol: Hope it helps!
Currently conspiring with many modders on the "Legends of the Northern Realms"project.

"You have been captured by a psychopathic diety who needs a new plaything to torture."
Hotel Hades
Meraz
Posts: 38
Joined: Sun Feb 17, 2013 12:26 pm

Re: Picture failure

Post by Meraz »

mailed it to you, both the jpg version and the dds

Thanks for helping me with this

ps i tried again this time removing the one you said, still crashed me to desk with error, music still plays fine.. =(

one more thing what format should the dds be in, i seen a post with someone that had it set to A8R8G8B8 format, is that wrong?
Last edited by Meraz on Tue Mar 05, 2013 12:14 am, edited 1 time in total.
Post Reply