nicholaskillin / gloomhaven-hand-manager

This is a companion app for the board game Gloomhaven. It allows you to select a character, indicate which perks and ability enhancements you have, select a hand, and then track your hand for a campaign.
https://gloomhaven-hand-manager.herokuapp.com/
3 stars 2 forks source link

Duplicated Card #99

Closed nicholaskillin closed 4 years ago

nicholaskillin commented 4 years ago

I enhanced the card "Mana Bolt" and sometimes when I play it and then discard it an unenhanced version shows up in my discard pile, but a duplicate that is still the enhanced version remains in my hand.

ColinVanAlstine commented 4 years ago

One of the players in my group had this happen with an enhanced Scurry (Mindthief) on the public version of the card manager. I asked him to try playing on staging as this might be a better experience. Last week he had the duplicate card issue happen with Brain Leech on staging, though this time the card was not enhanced. In both cases he had played the card and one version was in his Chosen Cards and the other remained in the unselected pool. Discarding the active cards and selecting the duplicate from the pool again caused another duplicate to appear in the unselected pool.

There are three of us using the card manager in my group and myself and the other player haven't experienced this bug yet.

Screen_Shot_2020-07-10_at_10 21 09_PM
nicholaskillin commented 4 years ago

Thanks @ColinVanAlstine. Looks like there is something going on for sure since I've heard this a couple times now from different people. Knowing that the card doesn't have to be enhanced helps me not run down that rabbit trail. I will have to look into this to see if I can find out why it's doing that.

One thing that may be helpful (if you run into this again) is to see if there are any errors in the Console. I think it's running into some kind of an error when it tries to remove that selected card from the hand area.

Here is an article that covers accessing the console if you don't know how to do that.

https://www.wickedlysmart.com/hfjsconsole/

ColinVanAlstine commented 4 years ago

@nicholaskillin I retired the brute, became a trash bag full of bugs and ran into this issue again with an enhanced Biting Gnats. I have a dump of the console below.

console 01 console 02 console 03

Interesting behavior - it leaves the unmodified version of the card in my hand, and I can create second and third versions of the enhanced card when I lose and recover them. When I select them in my hand, they are all selected together. When I play them, one is played, and one remains in my hand. Odd clustering.

Four cards selected (3 are dups of each other)

nicholaskillin commented 4 years ago

I was able to duplicate with this hand for the level 9 Brute: %5B%7B%22title%22%3A%22immovable-phalanx%22%2C%22level%22%3A6%2C%22enhancementSpots%22%3A2%2C%22enhancements%22%3A%5B%7B%22id%22%3A54%2C%22top%22%3A62%2C%22left%22%3A139%2C%22enhancement%22%3A%22%22%7D%2C%7B%22id%22%3A55%2C%22top%22%3A85%2C%22left%22%3A136%2C%22enhancement%22%3A%22%22%7D%5D%2C%22tracker%22%3A%5B%5D%7D%2C%7B%22title%22%3A%22skirmishing-maneuver%22%2C%22level%22%3A5%2C%22enhancementSpots%22%3A2%2C%22enhancements%22%3A%5B%7B%22id%22%3A51%2C%22top%22%3A92%2C%22left%22%3A144%2C%22enhancement%22%3A%22%22%7D%2C%7B%22id%22%3A52%2C%22top%22%3A203%2C%22left%22%3A139%2C%22enhancement%22%3A%22%22%7D%5D%2C%22tracker%22%3A%5B%5D%7D%2C%7B%22title%22%3A%22brute-force%22%2C%22level%22%3A3%2C%22enhancementSpots%22%3A4%2C%22enhancements%22%3A%5B%7B%22id%22%3A40%2C%22top%22%3A75%2C%22left%22%3A127%2C%22enhancement%22%3A%22%22%7D%2C%7B%22id%22%3A41%2C%22top%22%3A76%2C%22left%22%3A107%2C%22enhancement%22%3A%22%22%7D%2C%7B%22id%22%3A42%2C%22top%22%3A108%2C%22left%22%3A127%2C%22enhancement%22%3A%22%22%7D%2C%7B%22id%22%3A43%2C%22top%22%3A215%2C%22left%22%3A137%2C%22enhancement%22%3A%22%22%7D%5D%2C%22tracker%22%3A%5B%5D%7D%2C%7B%22title%22%3A%22fatal-advance%22%2C%22level%22%3A2%2C%22enhancementSpots%22%3A1%2C%22enhancements%22%3A%5B%7B%22id%22%3A35%2C%22top%22%3A223%2C%22left%22%3A136%2C%22enhancement%22%3A%22%22%7D%5D%2C%22tracker%22%3A%5B%5D%7D%2C%7B%22title%22%3A%22spare-dagger%22%2C%22level%22%3A1%2C%22enhancementSpots%22%3A2%2C%22enhancements%22%3A%5B%7B%22id%22%3A27%2C%22top%22%3A72%2C%22left%22%3A139%2C%22enhancement%22%3A%22%22%7D%2C%7B%22id%22%3A28%2C%22top%22%3A222%2C%22left%22%3A139%2C%22enhancement%22%3A%22%22%7D%5D%2C%22tracker%22%3A%5B%5D%7D%2C%7B%22title%22%3A%22balanced-measure%22%2C%22level%22%3A1%2C%22enhancementSpots%22%3A0%2C%22enhancements%22%3A%5B%5D%2C%22tracker%22%3A%5B%5D%7D%2C%7B%22title%22%3A%22unstoppable-charge%22%2C%22level%22%3A4%2C%22enhancementSpots%22%3A2%2C%22enhancements%22%3A%5B%7B%22id%22%3A44%2C%22top%22%3A80%2C%22left%22%3A138%2C%22enhancement%22%3A%22%2B1%22%7D%2C%7B%22id%22%3A45%2C%22top%22%3A202%2C%22left%22%3A137%2C%22enhancement%22%3A%22%22%7D%5D%2C%22tracker%22%3A%5B%5D%7D%2C%7B%22title%22%3A%22selfish-retribution%22%2C%22level%22%3A8%2C%22enhancementSpots%22%3A3%2C%22enhancements%22%3A%5B%7B%22id%22%3A63%2C%22top%22%3A78%2C%22left%22%3A137%2C%22enhancement%22%3A%22%22%7D%2C%7B%22id%22%3A64%2C%22top%22%3A189%2C%22left%22%3A136%2C%22enhancement%22%3A%22%22%7D%2C%7B%22id%22%3A65%2C%22top%22%3A213%2C%22left%22%3A144%2C%22enhancement%22%3A%22%22%7D%5D%2C%22tracker%22%3A%5B%5D%7D%2C%7B%22title%22%3A%22king-of-the-hill%22%2C%22level%22%3A9%2C%22enhancementSpots%22%3A3%2C%22enhancements%22%3A%5B%7B%22id%22%3A66%2C%22top%22%3A70%2C%22left%22%3A139%2C%22enhancement%22%3A%22%22%7D%2C%7B%22id%22%3A67%2C%22top%22%3A70%2C%22left%22%3A154%2C%22enhancement%22%3A%22%22%7D%2C%7B%22id%22%3A68%2C%22top%22%3A218%2C%22left%22%3A136%2C%22enhancement%22%3A%22%22%7D%5D%2C%22tracker%22%3A%5B%5D%7D%2C%7B%22title%22%3A%22crippling-offensive%22%2C%22level%22%3A7%2C%22enhancementSpots%22%3A3%2C%22enhancements%22%3A%5B%7B%22id%22%3A58%2C%22top%22%3A64%2C%22left%22%3A139%2C%22enhancement%22%3A%22%22%7D%2C%7B%22id%22%3A59%2C%22top%22%3A64%2C%22left%22%3A153%2C%22enhancement%22%3A%22%22%7D%2C%7B%22id%22%3A60%2C%22top%22%3A196%2C%22left%22%3A138%2C%22enhancement%22%3A%22%22%7D%5D%2C%22tracker%22%3A%5B%5D%7D%5D

nicholaskillin commented 4 years ago

Good news @ColinVanAlstine! I was finally able to track down the cause of this bug and it should be fixed!