Collection Sync

Post any question or suggestion related to Hex TCG here.
norraist
Posts:12
Joined:Thu Jan 22, 2015 1:44 pm
Collection Sync

Unread post by norraist » Thu Mar 19, 2015 3:13 am

Looks to be bugged - my sync shows me with 9534, I have 6757. Looks like it duplicated some values, I'm seeing just silly numbers in my legendaries for example (8 separate cards that are listing me as having 8 of. Sadly, not the case for any of them.)
User avatar
bogycoins
Posts:711
Joined:Thu May 26, 2011 11:42 am
Location:Cluj-Napoca, Romania
Contact:

Re: Collection Sync

Unread post by bogycoins » Thu Mar 19, 2015 10:31 am

This is interesting. It shouldn't be possible for this to happen as the collection is reset to 0 before importing. However, I've done changes that might help. Try triggering the collection event again (ah buyout or drafting) and let me know if it gets fixed.
norraist
Posts:12
Joined:Thu Jan 22, 2015 1:44 pm

Re: Collection Sync

Unread post by norraist » Thu Mar 19, 2015 10:55 am

Looks like your fixes did the trick. I had tried to force a resync last night with no luck, but triggering a new sync today worked. Thanks for the help!
norraist
Posts:12
Joined:Thu Jan 22, 2015 1:44 pm

Re: Collection Sync

Unread post by norraist » Thu Mar 19, 2015 11:54 am

Sorry, I jinxed it. Just bought 29 cards (to complete both my set 1 and set 2 collections!) log out, log back in and my sync now shows me with 22516 cards against 6727 actual.

** update, logged out, cleared the cache, restarted the browser: now at 24095 total cards. **
User avatar
bogycoins
Posts:711
Joined:Thu May 26, 2011 11:42 am
Location:Cluj-Napoca, Romania
Contact:

Re: Collection Sync

Unread post by bogycoins » Thu Mar 19, 2015 8:48 pm

Really weird. I've added some more logging to help figuring out what's happening. Please let me know if this happens again.
norraist
Posts:12
Joined:Thu Jan 22, 2015 1:44 pm

Re: Collection Sync

Unread post by norraist » Fri Mar 20, 2015 1:31 am

It gets even weirder! Had 4 auctions complete while I was at work - so new actual total is 6737. Sync thinks I have 24095 on a new instance of the browser.

1) Log out and re log in, same total.
2) Log out, clear cache, close browser. Open browser, log in, same total of 24095.
3) Log out, purchase single card in auction, close browser, reopen browser and log in. New total is: 3029 (!?)

(to be clear, taking my total from Hex is also including 1000 shards, so real total is more like 5737)
User avatar
bogycoins
Posts:711
Joined:Thu May 26, 2011 11:42 am
Location:Cluj-Napoca, Romania
Contact:

Re: Collection Sync

Unread post by bogycoins » Fri Mar 20, 2015 9:55 am

It seems that the problem appears when multiple syncs are triggering in short time and when the collection is big enough (few thousands). The server didn't had time to process one sync and then another one came in, and another and so on and it got messed up. I've done some more improvements to make sure only one sync run at a time, hopefully this problem won't happen anymore.
DunYoss
Posts:21
Joined:Sat May 02, 2015 3:37 am

Re: Collection Sync

Unread post by DunYoss » Sat May 02, 2015 9:13 pm

I'm trying synch for first time and it doesn't seem to be working. For now I'm assuming it's user error on my part. Help?

I got my code, updated config.ini (collection only), played a draft. I also did a bunch of AH stuff yesterday after the setup. What'd I miss?
User avatar
bogycoins
Posts:711
Joined:Thu May 26, 2011 11:42 am
Location:Cluj-Napoca, Romania
Contact:

Re: Collection Sync

Unread post by bogycoins » Sat May 02, 2015 9:29 pm

I've checked the logs and I saw your imports, last one with 6647 cards. Is this number wrong?
DunYoss
Posts:21
Joined:Sat May 02, 2015 3:37 am

Re: Collection Sync

Unread post by DunYoss » Sat May 02, 2015 10:30 pm

No that sounds about right. Weird that I don't actually see them. I'll try reloading the site.

EDIT: OK, after refresh I can see it.
Post Reply