Page 1 of 3
Picture failure
Posted: Mon Mar 04, 2013 8:47 pm
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?

Re: Picture failure
Posted: Mon Mar 04, 2013 9:23 pm
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?
Re: Picture failure
Posted: Mon Mar 04, 2013 10:00 pm
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
Re: Picture failure
Posted: Mon Mar 04, 2013 10:23 pm
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
Re: Picture failure
Posted: Mon Mar 04, 2013 10:34 pm
by Meraz
did i need to make an intro file?
sorry im fairly new to all this
Re: Picture failure
Posted: Mon Mar 04, 2013 10:57 pm
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.
Re: Picture failure
Posted: Mon Mar 04, 2013 11:02 pm
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.
Re: Picture failure
Posted: Mon Mar 04, 2013 11:09 pm
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
Re: Picture failure
Posted: Mon Mar 04, 2013 11:36 pm
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!

Hope it helps!
Re: Picture failure
Posted: Mon Mar 04, 2013 11:58 pm
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?