feat: parse Street Brawl item draft bucketing#397
Conversation
|
One thing I'm a bit on the fence about is that it our |
Yeah I'd agree it is too large for the hero json file, especially if we think this would be used on a page separate from each hero's main page. Have you seen any patterns in the data that show certain heroes share X set of weights? As I can see that one of the sets is used across 24 heroes |
…json Parse m_mapItemDraftBucketing and m_mapItemDraftCounterWeights from hero data into a dedicated street-brawl-data.json under an "item-buckets" object, instead of bloating hero-data.json. Every hero shares one pool of draftable items (AvailableItems) that default to the "Normal" bucket at weight 1.0. Only per-(hero, item) deviations are stored, as a flat Outliers edge list carrying whichever of Bucket / Weight / Counter differ from that default. The full bucketing is reconstructed as Normal @ 1.0 unless an outlier overrides it. Registers the StreetBrawlData.json wiki data page.
eae2a68 to
c74cbb1
Compare
The 24 heroes you mentioned is a set used for unreleased heroes (Raven-Slork etc). I also found that there's a default set of 178 items that are used for all heroes that can be minimized. I've done some data normalization, and it's much smaller now: from 1.2mb to 200kb. Also I redirected data to a separate file |
|
I've redone the parsing with the latest changes, see here Also, if any comments or further edits are required, I suggest to move this discussion to discord server, it's way easier to communicate there :) |
hassayag
left a comment
There was a problem hiding this comment.
Looks great, the default/outlier system is a nice way of laying it out 🚀
Parse m_mapItemDraftBucketing and m_mapItemDraftCounterWeights into a heradata.json. This will allow to list items that are more/less likely to be drafted for each hero in Street Brawl.
Parsed data in deadlock-data PR - Reopen deadbot PR or run deploy workflow for this branch here to reparse the data