Proper End credits

Talk about creating Grimrock 1 levels and mods here. Warning: forum contains spoilers!
User avatar
msyblade
Posts: 792
Joined: Fri Oct 12, 2012 4:40 am
Location: New Mexico, USA
Contact:

Proper End credits

Post by msyblade »

Something I think that should be essential in all mods we make is proper credits giving due thanx to all of the contributers.
So I thought I'd paste mine to give an example for people who, like me, use the assets available here liberally. I'll paste the actual code afterward for anyone having trouble getting end credits to work.
SpoilerShow
Hotel Hades 2 Credits:

Designed, written, and created by msyblade

Custom assets:
Custom Wallsets by Daniv

Custom Alcoves by Neikun, batty and crisman

Custom spells by Grimwold

Randomized Tomes by Ixnatifual

The ability to put a project like this together:
The entire, awesome community on the grimrock.net forum.

Playtesters/Creative input:

subaruswift (The Original)

Neikun (The Pro)

twist86 (The Connoisseur)

aljen77 (The Completionist)

Thanx so much for playing!!
Make a connector in the editor (pressure plates, or monster onDie hooks work great),
to a script entity with a function call ie:

Code: Select all

"function ending()"
completeGame ("mod_assets/cinematics/ending.lua")
end
Here's a working end script. You need no custom assets except to have an .ogg file in mod_assets/sounds named intro.ogg or rename it however you like in the script. Also a good idea to get a custom pic for showImage.Otherwise just change the names of the mod, and contributers, and it's ready to go. It has two phases, a storyline outro, then onclick to credits. Enjoy!

Code: Select all

enableUserInput()
startMusic("mod_assets/sounds/intro.ogg")

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

-- show the title text
sleep(1)
setFont("IntroTitle")
showText("The End", 3)
sleep(2)
fadeOutText(1)

-- show the story text
sleep(1)
setFont("Intro")
textWriter([[
 Enter your game end storyline text here, 

use enter to get proper spacing, but limit to one page

]])
click()
fadeOutText(0.5)

-- show the story text
sleep(1)
setFont("Intro")
textWriter([[
"Your Mod" Credits:

     Designed, written, and created by "you"

            Custom assets:
Custom Wallsets by Daniv

Custom Alcoves by Neikun, batty and crisman

Custom spells by Grimwold

Randomized Tomes by Ixnatifual

The ability to put a project like this together: 
The entire, awesome community on the grimrock.net forum.

                     Playtesters/Creative input:

subaruswift (The Original)

Neikun    (The Pro)

twist86   (The Connoisseur)

aljen77  (The Completionist)  

Thanx so much for playing!!
]])
click()
fadeOutText(0.5)

fadeOut(4)
fadeOutMusic(3)
Cool?
Last edited by msyblade on Thu Dec 06, 2012 11:26 pm, edited 1 time in total.
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
User avatar
Komag
Posts: 3654
Joined: Sat Jul 28, 2012 4:55 pm
Location: Boston, USA

Re: Proper End credits

Post by Komag »

This looks good and helpful. I agree that authors should try not to forget this part of the dungeon publishing process :)
Finished Dungeons - complete mods to play
User avatar
Neikun
Posts: 2457
Joined: Thu Sep 13, 2012 1:06 pm
Location: New Brunswick, Canada
Contact:

Re: Proper End credits

Post by Neikun »

Excellent.
I was interested in this for some time.
Could we add this to the superthread?
"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
Komag
Posts: 3654
Joined: Sat Jul 28, 2012 4:55 pm
Location: Boston, USA

Re: Proper End credits

Post by Komag »

good idea
Finished Dungeons - complete mods to play
User avatar
SpiderFighter
Posts: 789
Joined: Thu Apr 12, 2012 4:15 pm

Re: Proper End credits

Post by SpiderFighter »

Nicely done, but you forgot something:
SpoilerShow
Credits Scroll script courtesy msyblade


Thanks for posting this...I'll certainly be using it. :)
User avatar
Komag
Posts: 3654
Joined: Sat Jul 28, 2012 4:55 pm
Location: Boston, USA

Re: Proper End credits

Post by Komag »

looking at this again, do I have it right that this is just adding "credits" to your ending.lua, not making a custom credit roll like the original game?
Finished Dungeons - complete mods to play
User avatar
msyblade
Posts: 792
Joined: Fri Oct 12, 2012 4:40 am
Location: New Mexico, USA
Contact:

Re: Proper End credits

Post by msyblade »

This types it out in order, one letter at a time, top to bottom, but does not scroll upwards. Similar to the intro script. If anyone knows how to scroll the text upwards in a cinematic lua, I'd be happy to add it!
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
User avatar
Neikun
Posts: 2457
Joined: Thu Sep 13, 2012 1:06 pm
Location: New Brunswick, Canada
Contact:

Re: Proper End credits

Post by Neikun »

Let's smoosh Komag's fade to white particle effect with a picture of credits as the texture file with a negative value for it's Y gravity....
-Crazy talker, here.
"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
SpiderFighter
Posts: 789
Joined: Thu Apr 12, 2012 4:15 pm

Re: Proper End credits

Post by SpiderFighter »

Neikun wrote:Let's smoosh Komag's fade to white particle effect with a picture of credits as the texture file with a negative value for it's Y gravity....
-Crazy talker, here.
Crazy like A FOX!!!
User avatar
Komag
Posts: 3654
Joined: Sat Jul 28, 2012 4:55 pm
Location: Boston, USA

Re: Proper End credits

Post by Komag »

That's what was tried but the particles spawn at a random angle so it was just too unreliable. Now, maybe some sort of custom door texture with the door very close to the player's face and very slowly rising or something, that might work
Finished Dungeons - complete mods to play
Post Reply