SICGames / TBChestTracker

Automatic chest counter program for the game Total Battle
GNU General Public License v3.0
17 stars 4 forks source link

Clan Chest Statistics shows nothing (0 chests all around) #47

Closed rzv-trsc closed 17 hours ago

rzv-trsc commented 1 month ago

Using Version 1.5.0; set up clan, clan mates, did the OCR tuning, added aliases where needed. However Clan Chests Statistics shows nothing for today, in spite of chests being properly added/counted. Note the chests in the Console are not displayed in Statistics. Clan chests management settings are default ("do not use" on all three tabs). Any hint on what's wrong?

image

SICGames commented 1 month ago

Where you from is the question? Localization isn't fully implemented. While it is adding citadel and everything else.... go to your clanchests.db file copy and past a portion showing Sirari. It's either in the Clan Stats issue or how OCR is identifying chests.

This shouldn't be giving you issues. And you're playing the game in English, I am assuming, right?

rzv-trsc commented 1 month ago

Thanks for your time & response. I'm in Romania (SE Europe); computer settings are:

{ "Clanmate": "Sirari", "chests": [ { "Name": "Sapphire Chest", "Type": 10, "Source": "level 15-19 vault of the ancients", "Level": 15 }, { "Name": "Elven Citadel Chest", "Type": 6, "Source": "level 20 citadel", "Level": 20 }, { "Name": "Rare Dragon Chest", "Type": 1, "Source": "level 20 rare crypt", "Level": 20 }, { "Name": "Elven Citadel Chest", "Type": 6, "Source": "level 15 citadel", "Level": 15 }, { "Name": "Elven Citadel Chest", "Type": 6, "Source": "level 15 citadel", "Level": 15 }, { "Name": "Elven Citadel Chest", "Type": 6, "Source": "level 15 citadel", "Level": 15 } ], "Points": 0 },

Yes, the game is set in English. Is it somehow related to our regional date format? (dd/mm/yyyy)? Clanchests.db seems to be storing all chests properly. Exporting to CSV (in spite of showing zero values) does output chest counts credited to clanmates (so apparently it's only the Statistics display that's affected). Can you think of any way to make this work? Once again, thanks for taking time to help!

PS: Side issue/display bugs identified: (1) Main app bottom bar shows 4 chests found, when in fact there was only one (check Console): image May be related to OCR area defined? :-)

(2) Export Clan Chests:

(not being picky, just trying to help)

SICGames commented 1 month ago

that should've exported something. Will look into it. Perhaps a date bug in Clan Stats.

rzv-trsc commented 3 weeks ago

Hey Paul, Just to update you, I think I found the culprit for Clan Chests Statistics showing nothing: while extracting and analyzing data in Excel I noticed an oddity: clanchests.db somehow had a double record for a player.

So I have this guy HaraldHarfagre, aliases HaraldHárfagre; actual name is HaraldHårfagre (almost never properly recognized by the OCR - but this is known limitation) but this wasn't added as an alias. Most chests were assigned to HaraldHarfagre but there was one entry (nill chests) for HaraldHårfagre (probably OCR-ized right exceptionally, once). As soon as I deleted the null entry in clanchests.db, the stats started to display data. So, in the everlasting words of pre-google internet, this was a typical PEBKAC issue (Problem Exists Between Keyboard And Chair). :-)

I hope this helps. Maybe consider including some tool to identify similar situations if you think it's worth it (although it's probably best not to over-complicate by adding yet another possible point of failure - ups, sorry, feature). :-)

PS: I haven't cross-checked Statistic report vs. my Excel (already defined my queries with filters and calculations based on my needs, so circumventing the included Stat viewer).

PPS: Thanks for your time, for the outstanding effort and for the priceless tool you're offering for free!