Andrewthe13th / Inventory_Kamera

Scans Genshin Impact characters, artifacts, and weapons from the game window into a JSON file.
MIT License
695 stars 116 forks source link

[BUG] Artifact scan stops upon reaching high level, lower stared artifact. #303

Open seeLelouch opened 2 years ago

seeLelouch commented 2 years ago

What happed? What is seems to be a bug?

GenshinImpact_iLHi5aCqUe

If you look at the picture, the scanner will stop after reaching the 3-star sands under the settings "Minimum artifact rarity 5 and minimum artifact level 4".

Scanner should continue scanning a few of the artifacts that come after.

How to reproduce this issue

Level a 3? star artifact to above desired 5 star level and lock? it

Expected behavior

Scanner should continue scanning a few of the artifacts that come after.

Info about your device

Checklist before sending issue

Instruction: Check the tickbox by replacing [ ] with [x] (in editor) or tick it after leaving the Text Editor:

Additional checklist for Scanning issues

Cupcak3 commented 2 years ago

Thanks for bringing this to my attention. I see the problem and figure out a fix.

Cupcak3 commented 2 years ago

I believe V1.2.7 should fix this issue.

seeLelouch commented 2 years ago

I believe V1.2.7 should fix this issue.

Issue persistent in 1.2.7

seeLelouch commented 2 years ago

https://github.com/Andrewthe13th/Inventory_Kamera/blob/9dcceffe08f9e00d37b20dcc56fa234094436698/InventoryKamera/scraping/ArtifactScraper.cs#L472

The problem lies in the algorithm and I am guessing it would have to be changed quite a bit to fix this.

Scanning until last desired level of artifact of wanted rarity and disposing of artifacts with lower rarity than wanted?

Cupcak3 commented 2 years ago

Sorry for missing this with the V1.3.0 release. I'll have it fixed in the next version