Opened 11 years ago
Closed 8 years ago
#786 closed task (fixed (in master))
Collect better statistics on items
Reported by: | takkaria | Owned by: | myshkin |
---|---|---|---|
Milestone: | 3.3.0 | Keywords: | items |
Cc: |
Description
Roll however many thousand levels and look at the items in them.
For combat gear, it would be put into the categories {good} {excellent} {artifact} etc.
For consumables, it would be good to have it itemised with how many there are per level (including stack sizes)
Change History (11)
comment:1 follow-up: ↓ 2 Changed 10 years ago by magnate
- Keywords items added
comment:2 in reply to: ↑ 1 Changed 10 years ago by magnate
comment:3 Changed 9 years ago by magnate
- Milestone changed from 4.0 to 3.3.0
- Status changed from new to confirmed
- Type changed from bug to task
fizzix and myshkin have both written generators for this. It's now merely an issue of how and where to integrate them into the codebase, document them etc. Once they're somewhere in http://github.com/angband/angband this ticket can be closed. That might enable closing #776, #192 and #720 as well.
comment:4 Changed 9 years ago by takkaria
note that fizzix's branch has had angband.exe added once and taken away again-- we'll have to cherrypick
comment:5 Changed 9 years ago by magnate
- Status changed from confirmed to pending
comment:6 Changed 9 years ago by magnate
- Resolution set to fixed
- Status changed from pending to closed
In master with [r296ffa6]
comment:7 Changed 9 years ago by magnate
- Resolution fixed deleted
- Status changed from closed to reopened
Reopened for the collation of stats over multiple runs of -mstats and output to nice parseable format (sqlite?). I don't know how to do four-dimensional tables in sqlite (or indeed anything else), but what we need is the contents of
struct level[100] { int kinds[z_info->k_max][ORIGIN_MAX]; int egos[z_info->k_max][z_info->e_max][ORIGIN_MAX]; int arts[z_info->a_max][ORIGIN_MAX]; int flags[z_info->k_max][OF_MAX][PVAL_MAX]; int races[z_info->r_max]; int vaults[z_info->v_max]; int pits[z_info->pit_max]; };
summed over all the runs.
comment:8 Changed 9 years ago by myshkin
- Owner set to myshkin
- Status changed from reopened to assigned
comment:9 Changed 9 years ago by magnate
- Milestone changed from 3.3.0 to Future
- Status changed from assigned to confirmed
Punting in accordance with new milestone policy (that any other milestone is only set once someone is actually working on the ticket).
comment:10 Changed 9 years ago by magnate
comment:11 Changed 8 years ago by magnate
- Milestone changed from Future to 3.3.0
- Resolution set to fixed
- Status changed from confirmed to closed
This is finally done: running angband with -mstats produces an sqlite db which you can interrogate with phpliteadmin (both myshkin and magnate have this set up on their web servers). Obviously there will be continuous improvement, but this can be closed.
See also #342 and #776