SICGames / TBChestTracker

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

Clan Insights Showing Incorrect Results under Austria Date Time Format #96

Open gregenspurger opened 3 days ago

gregenspurger commented 3 days ago

My ClanChest Conditions are empty. Conditions AND points are empty. At which file i may find them? I have tried to restore Clanchests.db - no success Thanks in advice

gregenspurger commented 3 days ago

I see all data at ClanChest BUILDER, but NOTHING at ClanChest MANAGEMENT (Condition and points are empty)

gregenspurger commented 3 days ago

if it is possible to export and import ClanChest Conditions? Please send me the file for import :) (ClanChest Conditions are possible to ex- and import)

SICGames commented 3 days ago

chest conditions and points shouldn't be empty. They're all inside clansettings.db inside -> documents\TotalBattleChestTracker\db

gregenspurger commented 3 days ago

Thanks, i found a old clansettings.db and copied it into Folder DB. Now i see the Conditions. ** To explain: The problem occurred after I entered the points for the crypts and then switched back to "Conditions". After that, only the data for the points was available. Should the data of the conditions and the points be together in the file "clansettings.db"?

gregenspurger commented 3 days ago

clansettings.zip

clansettings-POINTSonly.zip

gregenspurger commented 3 days ago

At the Clansettings.db i found only "any" "any" definitions. I am searching for following data: (to see at ClanChest BUILDER)

image

SICGames commented 2 days ago

Thanks, i found a old clansettings.db and copied it into Folder DB. Now i see the Conditions. ** To explain: The problem occurred after I entered the points for the crypts and then switched back to "Conditions". After that, only the data for the points was available. Should the data of the conditions and the points be together in the file "clansettings.db"?

Yes. If you've entered stuff for points then saved it. Then decided to use Conditions instead, that should be fine. Should save everything.

How did the chest points and conditions disappear? If you've saved it, should've in the file.

SICGames commented 2 days ago

At the Clansettings.db i found only "any" "any" definitions. I am searching for following data: (to see at ClanChest BUILDER)

image

the (Any) definitions are like wild cards inside the conditions and points. When you use the drop down menu inside the conditions window and points window, it will reveal whatever type of chests you've selected. If you selected Common, it will start building chest names for Common Crypts.

As far as adding a new chest, using Chest Builder allows you to add a new chest the game has to offer.

common-crypt-level10

Inside Source and after Level 5 reads "Crypt". Crypt Type would be Common The Chest Name would be what is on top. Also since it has a level, hasLevel? Should be check marked. Minimal Level would be 5 and Maximum level would be 25 for Commons.

gregenspurger commented 2 days ago

Thanks, i have changed now to see the points, but i see only the number of chests. Something is going wrong. TMA-7.-15.11_07.30uhr_CUSTOM-points.zip clanchests.zip clansettings.zip exportSettings.zip

Please have a look at the Files if you can see what is the problem. Thanks in advice

gregenspurger commented 2 days ago

image image image image

SICGames commented 2 days ago

export your clan database within program and send attachment here. it'll be easier to diagnose the issue. if I am understanding you, chests aren't showing up when you're using conditions?

SICGames commented 2 days ago

Okay, loaded your clansettings.db inside a test clan. So, what you'll need to do is run Validate Clan Chest Integrity inside tools menu. It should give you "Invalid Points" error. Continue to repair it and it should show up within Clan Insights.

I did however notice that in Conditions, the minimal level is set to (Any). Conditions are only configured if your clan only wants to have:

10x level 15 common crypts per day 30x level 20 epic crypts a day 15x level 20 citadels a day

It just filters anything below the minimal level.

Also, if you're switching between Conditions and Points, best to run Validate Clan Chest Integrity. People didn't like the fact it ran on start up. They wanted it to be optional. But it runs after each time automation is stopped.

Maybe I'm not understanding you.

SICGames commented 2 days ago

as far as the original title goes, that should not even had happened. Not after a re-install or install or a upgrade. Installation does not touch your documents folder, only the program does.

Installation doesn't touch local application data folder either. Program Data folder, it does touch only because of clan insights. Other very necessary files like settings and what not do not get touched. It'd annoying to constantly have to update settings each time a person upgrades.

SICGames commented 2 days ago

Where are you from? If you've told me, I probably forgot. I saw your Console image and it showed dd.mm.yyyy format. And inside your clanchests.db file, it showed 11/07/2024.

Chances are it may be a locale issue which needs to be resolved in upcoming versions.

gregenspurger commented 1 day ago

First, thanks for your good work! I am from AUSTRIA, Windows 10 running at (DE) (german), TotalBattle (EN). I have tried to change the date as mentioned from you days ago, but it doesnt work (changing / to . (point)) also mm.dd.yyyy to dd.mm.yyyy - the DAYFORMAT WORKS how it is actual.

At last time the programm crash at the end. Regardless if i click at the "Endbutton" or i press "F10". (The OCR-Process did not stop, waiting for test till 10 minutes.

When i make today the EXPORT from MENU - Export Clandatabase, it crashed also. See the Screenshots)

I have done a Chest Integry run, but it says "NO REPAIR NEEDED". Today i see the points and the Numbers of Chests, but after "OCR some new gifts" OCR hangs and the programm crashed. Here come the Files The Mighty Alliance.zip

16.11.2024-ExportCrash.zip

SICGames commented 1 day ago

please go change your date and time format back to Austria. I had to manually update your date in clanchests.db. In addition, Clan insights is not showing correctly under your date and time. This will be worked on. However, export works just fine.

TB-Chest-Tracker-Exports

This is a bug in Clan Insights

SICGames commented 1 day ago

I updated the title and will keep you updated when resolved. Also here is the clanchests.db file that has the correct date. You've had some mismatching dates. Keep the date format how you normally would in Austria. Germany.

clanchests.zip

gregenspurger commented 1 day ago

Thanks for the File! Renamed old file, import new one (with dots at the date inside). Opened Clan Insight = No Points or Chest to see!) Copyed the clanchest.db and changed the Dateformat from 7.11.2024 to 11/7/2024 NOW i can see the Data at Clan Insight!! I run Validate Clan Chest Integrity - Repair are running and changed Format to 7.11.2024 At Clan Insight NOW AGAIN NOTHING to see. I dont know why, but it works only with Dateformat mm/dd/yyyy ie 11/7/2024 Pleas do NOT change the Dateformat from slash to point - it DOESN'T work at me.

Now some screenshot from my Windows:

WorksOnlywithSlashesAtDate NewChestDB_Paul_NoChests Windows Region

Windows Region 2

gregenspurger commented 1 day ago

My "Windows-time" format is dd.mm.yy, but the Chesttracker (maybe only Clan Insights) works (at me) only mit mm/dd/yyyy. At now the Chesttracker write to clanchest_temp.db in wrong format (wrong is at me dd.mm.yyyy) and maybe that is the reason why then the Programm crashes.

*.temp file is always greater then the clanfile.db At now i copied the content from the temp-file to clanchest.db and changed the dateformat to MM/**DD/**YYYY - This is at now the only way it works.

days ago i started the programm with --force us locale (or so) but yesterday i remembered and deleted it. I checked it several times, it is cleand now

image

gregenspurger commented 1 day ago

OK, I discovered the following: Switched to use: Use Chest Points (to see the points of the Chests) "Clan Insights" and "Export with Chestpoints" works ONLY with Dateformat "Slash" and in "US-Format" mm/dd/yyyy, BUT if you use "Use Chest Conditions" the "Export with the Number of claimed Chests" works ONLY with "Points " between the dateformat (dd.mm.yyyy). (DE-Format) I hope this helps for analyses.

gregenspurger commented 11 hours ago

Thanks a lot!

Am 16.11.2024 um 10:03 schrieb Paul @.***>:

I updated the title and will keep you updated when resolved.

— Reply to this email directly, view it on GitHub https://github.com/SICGames/TBChestTracker/issues/96#issuecomment-2480486453, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACFKPVHWB4RERNGSWENI5ST2A4C7ZAVCNFSM6AAAAABRYTQRSWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIOBQGQ4DMNBVGM. You are receiving this because you authored the thread.

Mit freundlichen Grüßen Gerhard Regenspurger


Gerhard Regenspurger, Rossau 154, 2020 Aspersdorf - AUSTRIA mobil: +43 (0)664 / 432 33 31 e-mail: @.***