Go Back   Angband Forums > Angband > Development

Thread Tools Display Modes
Old April 6, 2020, 19:11   #11
Join Date: May 2012
Location: Adelaide, Australia
Posts: 2,435
wobbly is on a distinguished road
Thanks. That makes sense. It is something I can maybe pull out with a bit of work. It's a basic square room with blocks of cells & the blocks of cells potentially only really need a length, a starting co-ordinate & an orientation from 1 to 4. I'll think about it, for the moment changing the datafiles is something I don't actually know how to do. For now it does what I want it to do & I can look at it again when I understand the code a bit better.
wobbly is offline   Reply With Quote
Old April 6, 2020, 20:56   #12
Join Date: Apr 2009
Location: Pisa / DL0
Posts: 965
fph is on a distinguished road
I think that the point that they are trying to make is: what is the actual advantage of this method wrt 3-4 different kennel sizes hardcoded in the config files? That method looks simpler to understand, change, and keep bug-free.
Dive fast, die young, leave a high-CHA corpse.
You read a scroll labeled 'lol gtfo' of Teleport Level.
fph is offline   Reply With Quote
Old April 6, 2020, 21:14   #13
Join Date: May 2012
Location: Adelaide, Australia
Posts: 2,435
wobbly is on a distinguished road
I guess the pt from my perspective is I'm always seeing the same rooms. A prefab gives you 1 room which over the space of 100+ dlvls you see again & again & they're going to be the exact same rooms next play through, & the next. Always the same. 2 or 3 versions of a prefab is only giving you a couple more & each has to be drawn & added to a datafile. 3 variables from 1-5 is already giving 125 different rooms, you can get far more variance stacking variations & probabilities.

Last edited by wobbly; April 6, 2020 at 21:21.
wobbly is offline   Reply With Quote
Old April 6, 2020, 21:43   #14
Vanilla maintainer
Nick's Avatar
Join Date: Apr 2007
Location: Canberra, Australia
Age: 55
Posts: 8,671
Donated: $60
Nick will become famous soon enough
So a simpler example of the sort of thing you're trying to do is Nomad's template rooms. These have optional features which are generated or not at random. I think Nomad's approach to what you're doing would just be to introduce about 50 rooms to a file covering every possible configuration

Note too that vaults can specify monsters of a given type.
One for the Dark Lord on his dark throne
In the Land of Mordor where the Shadows lie.
Nick is online now   Reply With Quote
Old April 7, 2020, 17:01   #15
Join Date: May 2012
Location: Adelaide, Australia
Posts: 2,435
wobbly is on a distinguished road
Yeah I've looked at the template rooms. It's a pretty nice idea but actually fairly awkward to work with in some ways. At the end of the day I don't think I agree. It's hard to "break code/configuration separation" if it doesn't exist in the first place.

/* name						rows	cols	builder */
ROOM("staircase room",		0,		0,		staircase)
ROOM("simple room",			0,		0,		simple)
ROOM("moria room",			0,		0,		moria)
ROOM("large room",			0,		0,		large)
ROOM("crossed room",		0,		0,		crossed)
ROOM("circular room",		0,		0,		circular)
ROOM("overlap room",		0,		0,		overlap)
ROOM("room template",		11,		33,		template)
ROOM("Interesting room",	40,		50,		interesting)
ROOM("monster pit",			0,		0,		pit)
ROOM("monster nest",		0,		0,		nest)
ROOM("huge room",			0,		0,		huge)
ROOM("room of chambers",	0,		0,		room_of_chambers)
ROOM("Lesser vault",		22,		22,		lesser_vault)
ROOM("Medium vault",		22,		33,		medium_vault)
ROOM("Greater vault",		44,		66,		greater_vault)
ROOM("Lesser vault (new)",	22,		22,		lesser_vault)
ROOM("Medium vault (new)",	22,		33,		medium_vault)
ROOM("Greater vault (new)",	44,		66,		greater_vault)
Which of these actually are editable outside the code? Very few, & generally the least common. Fact is, the vast majority of level gen is actually under the hood & needs code change & recompiling to work. There's a fair bit that you can do in the edit files, but a hell of a lot more that you can't. If you look at the pit code not only is it impossible to change outside of the code (with the exception of the monsters), it's actually pretty awkward to change inside the code, the monster placement routine is setup for a fixed 5x11 size.

Level gen is currently a mix of these room generators & edit file rooms with the generators doing the bulk of the level. I think it would be a mistake to ignore the part that is actually building most of the level.
wobbly is offline   Reply With Quote
Old April 8, 2020, 00:07   #16
Pete Mack
Join Date: Apr 2007
Location: Seattle, WA
Posts: 5,999
Donated: $40
Pete Mack is on a distinguished road
Fair enough.
Pete Mack is offline   Reply With Quote

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Adding color rooms to Angband droof Vanilla 63 April 8, 2020 11:07
Comments on themed level gen part 1 - interesting rooms wobbly Vanilla 9 November 8, 2018 22:30
Angband color rooms t4nk Development 3 December 10, 2016 02:36
Why I love Ironman rooms Therem Harth AAR 0 April 18, 2012 04:02
In what order to explore rooms fph Vanilla 5 December 7, 2010 18:10

All times are GMT +1. The time now is 20:52.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, vBulletin Solutions Inc.