Opened 10 years ago

Last modified 6 years ago

#776 assigned task

Collect statistics on dungeon generation

Reported by: takkaria Owned by: d_m
Milestone: Future Keywords: dungeon stats


This is so that when dungeon levels aren't always quite so big, we can keep relative levels the same.

Change History (8)

comment:1 Changed 10 years ago by magnate

  • Keywords dungeon added

comment:2 Changed 10 years ago by magnate

See also #342 and #786

comment:3 Changed 9 years ago by magnate

  • Status changed from new to confirmed

comment:4 Changed 8 years ago by magnate

  • Type changed from bug to task

comment:5 Changed 8 years ago by magnate

  • Keywords stats added
  • Milestone changed from 4.0 to 3.4.0
  • Owner set to d_m
  • Status changed from confirmed to assigned

Ok, assigning this ticket to d_m to fulfil our action from

First, there is the issue of telling generate.c whether we are in "stats mode" or "real mode". It was suggested on IRC that this be done using the events system. (I don't know what that actually entails - elly said "just create a new event for it" but there must be some code to act upon the event.)

Second, there is the issue of logging the relevant generation happenings if we are in stats mode. My simple thought was that these would be calls to stats_log_pit() or stats_log_vault() et al., which would live in main-stats.c. So the actual level_data structure doesn't need to exist outside main-stats.c, it's just modified there - we pass in the pit or vault index to log.

The structure is simply level_data[level].pit[pit_type] and level_data[level].vault[vault_type] at the moment. Could easily add u32b cavern to the level_data structure to log how often any given dlev is generated as a cavern level. Ditto for labyrinths, if they don't become a vault type ...

comment:6 Changed 8 years ago by magnate

  • Summary changed from Collect statistics on how rare vaults are to Collect statistics on dungeon generation

comment:7 Changed 7 years ago by fizzix

  • Milestone changed from 3.4.0 to 3.5.0

Punting to 3.5 - not urgent

comment:8 Changed 6 years ago by takkaria

  • Milestone changed from 3.5.0 to Future

Punting to post 3.5.

Note: See TracTickets for help on using tickets.