Draw/populate the dungeon on the fly?

Talk about creating Grimrock 1 levels and mods here. Warning: forum contains spoilers!
Post Reply
User avatar
HaunterV
Posts: 676
Joined: Mon Apr 16, 2012 9:54 pm
Location: Barrie, Ontario, Canada

Draw/populate the dungeon on the fly?

Post by HaunterV »

Would it be possible to populate the dungeon on the fly? as in use scripting to put in doors, alcoves, monsters, etc... as the player moves throughout the level?

I envision a zelda NES style dungeon except in this case the next room would be populated as you are in the current room solving the puzzle/fighting.

Too much script work?

a potential perk to this is people that load up your dungeon in he editor to see where everything is would be real real confused unless they read every line of code.
Grimrock Community 'FrankenDungeon 2012. Submit your entry now!: http://tinyurl.com/cnupr7h
SUBMIT YOUR ASSETS! Community Asset Pack (C.A.P.): http://tinyurl.com/bqvykrp
Behold! The HeroQuest Revival!: http://tinyurl.com/cu52ksc
User avatar
ScroLL
Posts: 56
Joined: Tue Sep 18, 2012 12:21 pm
Location: Vermont

Re: Draw/populate the dungeon on the fly?

Post by ScroLL »

Edit: nvm
Last edited by ScroLL on Thu Sep 27, 2012 7:47 am, edited 1 time in total.
User avatar
antti
Posts: 688
Joined: Thu Feb 23, 2012 1:43 pm
Location: Espoo, Finland
Contact:

Re: Draw/populate the dungeon on the fly?

Post by antti »

Static assets (alcoves, pits and so on) might not work correctly when spawned on the fly but it should be possible to spawn these randomly in the initialize stage (by inserting script to init.lua).

Doing dungeons that are entirely random should be possible too, at least in theory. I've been waiting for someone to start doing a roguelike-mod for quite a while now. :twisted:
Steven Seagal of gaming industry
User avatar
Blichew
Posts: 157
Joined: Thu Sep 27, 2012 12:39 am

Re: Draw/populate the dungeon on the fly?

Post by Blichew »

On a side-note and quasi-related stuff:

Can mapDesc (forgot the exact name) property in Dungeon.lua file can be accessed and changed from lua script ?
You know, so at the beginning i have like:

######
##..##
##..##
#####

and after fulfilling a few conditions (one of them being a check if party wouldn't be standing "outside" the dungeon after the change) it changes to:

######
###..#
###..#
#####

Blichew
User avatar
petri
Posts: 1917
Joined: Thu Mar 01, 2012 4:58 pm
Location: Finland

Re: Draw/populate the dungeon on the fly?

Post by petri »

Unfortunately the dungeon geometry is built only once when the game is started and can't be dynamically changed. Sorry!
User avatar
Neikun
Posts: 2457
Joined: Thu Sep 13, 2012 1:06 pm
Location: New Brunswick, Canada
Contact:

Re: Draw/populate the dungeon on the fly?

Post by Neikun »

Counter-point!
The use of secret doors as all walls would produce entirely changeable geometry. All you have to do is fill the map with floor.
"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
Blichew
Posts: 157
Joined: Thu Sep 27, 2012 12:39 am

Re: Draw/populate the dungeon on the fly?

Post by Blichew »

:EDIT: @Neikun, that's the general idea, you posted it faster and even answered already, thanks :)

Ouch...

Ok, another way then - is it possible ?

1. Draw a room
2. onSomething spawn a wall
3. if certain conditions met: destroy that wall
4. will the floor persist beneath the wall ? or do I have to clone the wall object (name should be in asset pack, right ?) and change the replaceFloor property (if there's even such one) ?

Thanks for the reply :)
User avatar
petri
Posts: 1917
Joined: Thu Mar 01, 2012 4:58 pm
Location: Finland

Re: Draw/populate the dungeon on the fly?

Post by petri »

You don't need to destroy the secret doors, just open/close them when needed.
User avatar
Neikun
Posts: 2457
Joined: Thu Sep 13, 2012 1:06 pm
Location: New Brunswick, Canada
Contact:

Re: Draw/populate the dungeon on the fly?

Post by Neikun »

Petri's got the idea.
"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
HaunterV
Posts: 676
Joined: Mon Apr 16, 2012 9:54 pm
Location: Barrie, Ontario, Canada

Re: Draw/populate the dungeon on the fly?

Post by HaunterV »

I did concieve of doing an all floor with all secret doors maze then wait for someone to mod an ogre to look like a minotaur and have a thesius vs the minotaur map. Constantly changing maze.
Grimrock Community 'FrankenDungeon 2012. Submit your entry now!: http://tinyurl.com/cnupr7h
SUBMIT YOUR ASSETS! Community Asset Pack (C.A.P.): http://tinyurl.com/bqvykrp
Behold! The HeroQuest Revival!: http://tinyurl.com/cu52ksc
Post Reply