Hi I am trying to figure out how to make a custom intro this is my intro.lua which I placed in mod_assets/cinematics
-- cinematic with a title and story text
enableUserInput()
startMusic("mod_assets/sounds/music/48Stonekeep.ogg")
showImage("mod_assets/textures/cinematic/intro/wizard.tga")
fadeIn(2)
-- show the title text
sleep(1)
setFont("IntroTitle")
showText("The Sinister Bannister", 3)
sleep(2)
fadeOutText(1)
-- show the story text
sleep(1)
setFont("Intro")
textWriter([[
You will eat meat!!!!
You must venture forth and disassemble the nefarious inanimate object!
]])
click(1)
fadeOutText(0.5)
fadeOut(4)
fadeOutMusic(3)
the file paths are correct for the image and music,my image is in dds format,I save my dungeon and export it.
When I start a new game with my custom dungeon absolutely nothing happens,the game just starts with no intro.
I've read everything Google can find on the subject but nothing I try works.I tried to make a script entity with the same code as my intro.lua but the game crashes and I get this message---
#intro:2: attempt to call global 'enableUserInput' (a nil value)
stack traceback:
#intro:2: in main chunk
[string "ScriptEntity.lua"]: in main chunk
[string "Map.lua"]: in function 'sendMessage'
[string "GameMode.lua"]: in function 'newGame'
[string "GameMode.lua"]: in function 'startGame'
[string "NewGameMenu.lua"]: in function 'startGame'
[string "NewGameMenu.lua"]: in function 'update'
[string "GameMode.lua"]: in function 'update'
[string "Grimrock.lua"]: in function 'display'
[string "Grimrock.lua"]: in main chunk
OS Version 6.2
OEM ID: 0
Number of processors: 2
Page size: 4096
Processor type: 586
Total memory: 3678 MB
Free memory: 1400 MB
Display device 0:
Device name: \\.\DISPLAY1
Device string: AMD Radeon HD 6300 series Graphics
State flags: 00000005
Display device 1:
Device name: \\.\DISPLAY2
Device string: AMD Radeon HD 6300 series Graphics
State flags: 08000000
If anyone can give me a hand I would really be gratefull
Please help
solomonsgrave
why will my intro cinematic not work
Re: why will my intro cinematic not work
Cant see any error in code.
Your image is a dds, its format is dxt5 - or dxt1?
And check the soundfile (ogg), sampling rate 44100?
If you´ve changed soundfile, make shure to restart grimrock.
Your image is a dds, its format is dxt5 - or dxt1?
And check the soundfile (ogg), sampling rate 44100?
If you´ve changed soundfile, make shure to restart grimrock.
Dungeon Master Resource Pack worker and passionated Beer drinker
