Skip to content
Permalink
Browse files

first attempt to parse new logs (#745)

* first attempt to parse new logs

* bugfix inventoryUpdate, address comments

* more bugfixes

* derp derp derp

* remove deprecated regex

* inventory updated take 3

* little fix

* debug helper

* json parse request object, idempotent ids

* bugfixes for random js errors

* add historic launch event to metadata

* bugfix currentMatch.matchTime

* update log decoder unit test

* use v3 for decks

* convertDeckFromV3

* updateDeck v3

* use globals.time

might be temporary

* conversion fix

should go into develop too

* fix drafts

I almost die

* misc bugfixes

* better globals.logTime

* only display valid tiles

* another deck v3 bugfix

* better timestamp for deck updates

* deck changes tile width

im hacking the hack

* hash the jsons

@lusbenjamin access using entry.hash on every json blob
  • Loading branch information
lusbenjamin authored and Manuel-777 committed Nov 23, 2019
1 parent 4c04a5b commit f30d653ec39c10fef20bf3374c91ca6a53aecd34
@@ -67,6 +67,7 @@ exports.EVENT_TO_NAME = {
FestivalFae_OkosMadness_20191110: "Okos Madness",
FestivalFae_Cascade_20191117: "Standard Cascade",

Historic_Launch_20191121: "Historic Launch",
Brawl_Launch_20191024: "Brawl Launch",
Precon_Brawl_ELD: "Precon Brawl",
Lore_WAR1_Momir: "Ravnica at War I - Momir",
@@ -136,6 +137,7 @@ exports.EVENT_TO_FORMAT = {
FestivalFae_OkosMadness_20191110: "Momir",
FestivalFae_Cascade_20191117: "Cascade",

Historic_Launch_20191121: "Historic",
Brawl_Launch_20191024: "Brawl",
Precon_Brawl_ELD: "Brawl",
Lore_WAR1_Momir: "Momir",
@@ -20,7 +20,7 @@ const {
let metagameData = {};
let ranksData = {};

const VERSION = 28;
const VERSION = 30;

const LANGUAGES = [
"EN",

Large diffs are not rendered by default.

@@ -11,7 +11,7 @@ function getDeckTypesAmount(deck: DeckData): { [key: string]: number } {

deck.mainDeck.forEach(function(card: CardData | any) {
// TODO remove group lands hack
if (card.id.id && card.id.id == 100) {
if (card.id && card.id.id && card.id.id == 100) {
types.lan += card.quantity;
return;
}
@@ -35,6 +35,7 @@ export const cardTile = function(
}

const wrap = createDiv([]);
wrap.style.width = "-webkit-fill-available";
const props = {
card,
deck,
@@ -17,7 +17,7 @@ describe("arena-log-decoder", () => {
const decoder = ArenaLogDecoder();
const logEntries = [];
decoder.append(text, logEntry => logEntries.push(logEntry));
expect(logEntries.length).toEqual(63);
expect(logEntries.length).toEqual(78);
});

it("finds the same log entries when reading the file in arbitrary chunks", () => {

0 comments on commit f30d653

Please sign in to comment.
You can’t perform that action at this time.