any way to do dream sequences? Even the same exact ones?

Talk about creating Grimrock 1 levels and mods here. Warning: forum contains spoilers!
User avatar
Komag
Posts: 3654
Joined: Sat Jul 28, 2012 4:55 pm
Location: Boston, USA

any way to do dream sequences? Even the same exact ones?

Post by Komag »

I want to trigger the cube dream messages upon resting or upon an event. Even if we can't change the messages or anything, I would like to just get the original game ones working - possible?

(I couldn't find any clue about them in the asset pack scripts, and only a model)
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: any way to do dream sequences? Even the same exact ones?

Post by Neikun »

I think I saw an onSleep hook somewhere in the references.

EDIT: For party,
onRest: a hook which is called when the party starts resting. The function gets one parameter, the party itself. If the function returns false, resting is cancelled.
onWakeUp: a hook which is called when the party wakes up. The function gets one parameter, the party itself. If the function returns false, waking up is cancelled.

That would be a good place to start.
"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
JohnWordsworth
Posts: 1397
Joined: Fri Sep 14, 2012 4:19 pm
Location: Devon, United Kingdom
Contact:

Re: any way to do dream sequences? Even the same exact ones?

Post by JohnWordsworth »

I know it's not quite the same, but I think I remember seeing that the gears are models in the asset pack. I guess you could probably make them a decoration or something, put them in a room with custom walls that are completely black and/or shroud them with a pile of fog and FX and use a bunch of hudPrint messages. Then you just teleport them there in the onSleep hook.

Heh, that gives me a cool idea - you could also implement a dream world that your party go to (could even be included in some story and/or puzzles) by teleport to/from the dream world alternately when you wake up from rest.
My Grimrock Projects Page with links to the Grimrock Model Toolkit, GrimFBX, Atlas Toolkit, QuickBar, NoteBook and the Oriental Weapons Pack.
User avatar
Neikun
Posts: 2457
Joined: Thu Sep 13, 2012 1:06 pm
Location: New Brunswick, Canada
Contact:

Re: any way to do dream sequences? Even the same exact ones?

Post by Neikun »

Dream you, real you. Very nice!

The gears model is indeed there. It is also huuuuge. Not entirely sure how to make it work in a dungeon. It's designed to be seen below the floor and above the ceiling.
"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!
nichg
Posts: 48
Joined: Thu Oct 11, 2012 12:38 pm

Re: any way to do dream sequences? Even the same exact ones?

Post by nichg »

You could use a tileset with empty models for everything I guess, and teleport them to that level.
User avatar
Komag
Posts: 3654
Joined: Sat Jul 28, 2012 4:55 pm
Location: Boston, USA

Re: any way to do dream sequences? Even the same exact ones?

Post by Komag »

Those are some interesting ideas, I'll have to try some of it and see what works or not
Finished Dungeons - complete mods to play
User avatar
Komag
Posts: 3654
Joined: Sat Jul 28, 2012 4:55 pm
Location: Boston, USA

Re: any way to do dream sequences? Even the same exact ones?

Post by Komag »

I just tried using a new wallset where I simply commented out all the models for things like ceilings, walls, etc, and as soon as I tried to go into a preview the editor crashed with:
"attempt to index a nil value" and listed "placeCeilingMesh" and "placeWalls" among other stuff.

Is there any model that is "blank" I could try/use?

EDIT - I tried setting all the ceilings, floors, walls, and pillars to metal_hooks_wall.fbx and it works, the whole world is black except for a million floating hooks! So a blank model would work I think.

When I place the dream model in the room it looks pretty huge and good, but there is no animation - any idea how to "jump start" it?
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: any way to do dream sequences? Even the same exact ones?

Post by Neikun »

if you downloaded my trials of turnulsk source, I have a model file that is a microscopic dot in transparent space.
Probably invisible.
It should be called empty.model or something
"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: any way to do dream sequences? Even the same exact ones?

Post by Komag »

Got it, tried the "empty" model, it's working pretty well! Except I see a tiny sparkling line, sorta diagonal. It's ALMOST perfectly blank and nothing, but not quite.

So this is indeed a method to get a "floating in space" wallset working, at least.
Finished Dungeons - complete mods to play
User avatar
Daniv
Posts: 29
Joined: Sat Aug 11, 2012 10:34 am
Location: Northamptonshire, England

Re: any way to do dream sequences? Even the same exact ones?

Post by Daniv »

I made a transparent texture and applied it to a floor, ceiling, wall and pillar model, just to make a basic wall set. I can see torches hanging in space on the other side of the walls, so I think it's working.

> Clear Walls <

import "mod_assets/scripts/clear_wall_set.lua"
Post Reply