Page 2 of 3

Re: Picture failure

Posted: Tue Mar 05, 2013 12:11 am
by Drakkan
Meraz wrote: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.. =(
sent you new dds file, I think issue is here. Your file has 1,5mb when I converted it to no explicit DDS alpha it has just 0,4mb. I tested it and it is working correctly for me now. Check email and let me know

Re: Picture failure

Posted: Tue Mar 05, 2013 12:24 am
by msyblade
Ill bet that drakkan's fix works for you, but if not, please post the new error message. The .dds format requirement can be very finicky.

Re: Picture failure

Posted: Tue Mar 05, 2013 12:40 am
by Meraz
i must be doing something wrong some place ..

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

-- show the image
showImage("assets/cinematic/intro/mountain.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!

You see the light
at the end of the tunnel
and the fresh mountain air
caresses your face.
You take one final look behind
as you exit the cave.
Just like Jojo,
you live to fight another day.

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

fadeOut(4)
fadeOutMusic(3)


saved to new name gome.lua


pressure plate script says : function endgame()
completeGame("mod_assets/cinematics/gome.lua")
end

ok fellas, fix me! lol =)

Re: Picture failure

Posted: Tue Mar 05, 2013 12:44 am
by msyblade
Try changing your intro showImage path to:

- show the image
showImage("mod_assets/cinematics/mountain.tga")

And then make sure that is the path you placed the .dds into.

If that doesnt work, I'd like you to try this line in showImage, and let us know if it works.

showImage("assets/textures/cinematic/intro/page02.tga")

Re: Picture failure

Posted: Tue Mar 05, 2013 12:51 am
by Drakkan
small typo

-- show the image
showImage("assets/cinematic/intro/mountain.tga")
fadeIn(2)

cinematcs - not cinematic

Re: Picture failure

Posted: Tue Mar 05, 2013 12:57 am
by Meraz
-- cinematic with a title and story text
enableUserInput()
startMusic("assets/samples/music/intro.ogg")

-- show the image
showImage("assets/textures/cinematic/intro/page01.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!

You see the light
at the end of the tunnel
and the fresh mountain air
caresses your face.
You take one final look behind
as you exit the cave.
Just like Jojo,
you live to fight another day.

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

fadeOut(4)
fadeOutMusic(3)



When i have this it works just fine. When i change for my pic it drops to desk with the error message from the first post i made.

Re: Picture failure

Posted: Tue Mar 05, 2013 1:03 am
by msyblade
The initial post error, was because the path was not where the image actually was.

showImage("mod_assets/cinematics/mountain.tga")

unless you have it in:

showImage("mod_assets/cinematics/intro/mountain.tga")

the extra "intro" folder being the difference.

Re: Picture failure

Posted: Tue Mar 05, 2013 1:10 am
by Drakkan
cinematic with a title and story text
enableUserInput()
startMusic("assets/samples/music/intro.ogg")

-- show the image
showImage("mod_assets/textures/cinematics/intro/page01.tga") -- you need copy mountain.dds file here. You do not need create special intro folder for that,
-- but the path need to correspond where the picture is. so it could be something like -- showImage("mod_assets/textures/cinematics/mountain.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!

You see the light
at the end of the tunnel
and the fresh mountain air
caresses your face.
You take one final look behind
as you exit the cave.
Just like Jojo,
you live to fight another day.

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

fadeOut(4)
fadeOutMusic(3)

Re: Picture failure

Posted: Tue Mar 05, 2013 1:17 am
by Meraz
-- cinematic with a title and story text
enableUserInput()
startMusic("assets/samples/music/intro.ogg")

-- show the image
showImage("assets/cinematics/mountain.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!

You see the light
at the end of the tunnel
and the fresh mountain air
caresses your face.
You take one final look behind
as you exit the cave.
Just like Jojo,
you live to fight another day.

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

fadeOut(4)
fadeOutMusic(3)

re-downloaded the file he sent me and it still does not work. =( maybe i am destined to use the one from the game.. even if it doesnt fit as well.

Re: Picture failure

Posted: Tue Mar 05, 2013 1:21 am
by msyblade
the showImage path must point precisely, to the exact folder the file is in. You should use windows explorer to purposely put the mountain.tga file in "documents/Almost Human/Legend of Grimrock/dungeons/your dungeon/mod_assets/cinematics" folder (u even have to make the folder in mod_assets, i believe)

Then your showImage path must say exactly:
showImage("mod_assets/cinematics/mountain.tga")

Even capitalization matters, also, sometimes you are pointing to a "cinematic" folder, without the "s" at the end.and other times you are using "cinematics". you should check which is correct (cant be both), place your mountain.dds there, then make sure your showImage path matches precisely. You again removed the "mod_" path, GOT TO BE mod_assets, not assets. Assets is only for stock LoG things. mod_assets is solely for custom things in your dungeon.u re-added the "textures" folder,and the "intros" folder, which is not correct in "mod_assets", only if using a stock pic from "assets". You likely do not need the "intro" folder OR the "textures" folder in your showImage path. Keep us updated!