Angband.oook.cz
Angband.oook.cz
AboutVariantsLadderForumCompetitionComicScreenshotsFunniesLinks

Go Back   Angband Forums > Angband > Development

Reply
 
Thread Tools Display Modes
Old April 28, 2019, 18:42   #1
wobbly
Veteran
 
Join Date: May 2012
Location: Adelaide, Australia
Posts: 2,106
wobbly is on a distinguished road
Level gen questions(chunks & gens)?

So I've started playing around in level generation again & I have a series of questions. I'd like to be able to take gens from pre-refractor variants into a V-like & currenty am getting nowhere fast. I have lots of questions but for now I want the most basic rundown. Anyway some questions.
  • Most gens are split between chunk & gen. What goes in _chunk, what goes in _gen?
  • How do I convert levels from before _chunk, _gen?
  • Classic, has just _gen & I've followed that format for my small classic (OWD) in recent coffeeband versions, why is that the case and have I done anything wrong?
  • I'm interested in grabbing the old FA wilderness levels & the Sil levels for coffeeband theme levels. Any help on how to go about this is appreciated.
  • A bunch of other stuff I've missed because I don't know what I'm doing.
wobbly is offline   Reply With Quote
Old April 29, 2019, 13:38   #2
Gwarl
Knight
 
Join Date: Jan 2017
Posts: 774
Gwarl is on a distinguished road
I am likewise mystified by level generation processes and would also like to steal wilderness from FAangband if someone with understanding can explain it to us.

What would be super cool would be some sort of command line utility that includes necessary angband includes and spits out the generated dungeon layout into a .txt file for examination.
Gwarl is offline   Reply With Quote
Old April 29, 2019, 13:55   #3
Nick
Vanilla maintainer
 
Nick's Avatar
 
Join Date: Apr 2007
Location: Canberra, Australia
Age: 54
Posts: 7,860
Donated: $60
Nick will become famous soon enough
Chunks are just pieces of dungeon - usually a whole level, but levels can be made up of chunks. They will have all the rooms and corridors, and only has monsters, treasure and traps where the room specifies it (pits, vaults, etc). The _gen() functions will generally specify a level size, then call one or more _chunk() functions to fill it, then add rock other than granite, stairs, objects, traps, the player, and monsters.

FA levels are a whole nother deal, and mere designed prior to the chunk system. Basically they work by
  • placing exits
  • making paths to join all the exits
  • filling the level with appropriate terrain (grass for plains, trees for forest, etc)
  • adding "formations" which are little clumps of other terrain
  • sometimes adding ponds and/or "wilderness vaults"
although some like river levels or Nan Dungortheb levels work a bit differently, and the dungeon entrance levels are special too.

The curious may have noted that Angband now has a data file called world.txt which specifies all the levels and how to get from one to another. I have no idea why I mentioned that now
__________________
One for the Dark Lord on his dark throne
In the Land of Mordor where the Shadows lie.
Nick is offline   Reply With Quote
Old June 8, 2019, 08:22   #4
wobbly
Veteran
 
Join Date: May 2012
Location: Adelaide, Australia
Posts: 2,106
wobbly is on a distinguished road
I'm wondering how easy it is to just fudge the mountain level generation. For my purpose it's just a dungeon level, orientation doesn't matter as it's not connecting wilderness maps.

So if it places the plateaus 1st as rooms and joins them normally, then places the branch ends as tiny rooms & joins them to a plateau room & then does a sweep of the map turning off all the room flags...

I'm not sure, maybe that works or maybe it just ends up looking wrong.
wobbly is offline   Reply With Quote
Reply


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
Comments on themed level gen part 1 - interesting rooms wobbly Vanilla 9 November 8, 2018 22:30
How does level gen work? wobbly Vanilla 26 July 22, 2018 11:07
Level completion (for level clearers) fizzix Vanilla 19 July 19, 2011 22:44
questions about artifacts and "superb" level Plybuf Vanilla 12 June 5, 2011 10:44
{UN} play by play impressions & a couple questions. will_asher Variants 15 September 1, 2007 15:35


All times are GMT +1. The time now is 08:12.


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