Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scanner can't seem to scan character after light cones and artifacts. #66

Open
pmcochran opened this issue Feb 10, 2024 · 12 comments
Open

Comments

@pmcochran
Copy link

I'm using HSR Scanner beta v0.6.1 and made sure the game is in 16:9 resolution and window. Stood in a dark space and no light in the background. Scanning was going just find, but, when it gets to characters it goes the data bank instead and it abort the scan. I don't what else I need to do for characters, but i did try it with faster scanning settings. My only guess is the scanner hasn't registered the new characters, so I'm turning to you guys if got any idea.
[17:57:24] > Starting scan...
[17:57:24] > Scanning light cones...
[17:57:30] > Quantity: 210/1500.
[17:58:18] > Finished scanning light cones.
[17:58:18] > Scanning relics...
[17:58:24] > Quantity: 650/1500.
[17:58:24] > Sorting by Rarity... (was Lv)
[18:01:01] > Finished scanning relics.
[18:01:01] > Scanning characters...
[18:01:03] > Character total: 43.
[18:01:03] > Scan aborted with error ValueError: Failed to parse character count from Data Bank screen. Got "43" instead. (Try scanning with a different in-game background, window resolution, or fullscreen/windowed mode, or increasing nav/scan delay in scanner configuration.)
Honkai_ Star Rail 2_9_2024 18_04_28

@kel-z
Copy link
Owner

kel-z commented Feb 10, 2024

Looks like the number "40" isn't being parsed correctly from "40/43" under Character.

Could you turn Debug Mode in the scanner configure tab, scan only characters, and then go to the debug folder (it gets created in the same folder as your output directory) and send the screenshot that has "40/43" on it here? Looks like I'm gonna need to tweak the sensitivity of the image processing for that part.

@kel-z
Copy link
Owner

kel-z commented Feb 10, 2024

And as an extra test, does this still happen on 1600x900 resolution?

@pmcochran
Copy link
Author

Here is the screenshot in 1600x900 resolution.
075655068377

I also try other methods like turning on HDR, then I tried HDR off and adjust my color settings to where the game look really dark and bright in others and it worked. However, i did notice so error in the relic part. It showed 'failed to extract level. Setting to 0.' Plus, errors for the relic rarity. I set the minimum to 4. I'm not sure if i did something wrong here, but I assume the rarity is the number of stars the relics are in. Lastly, the character traces maybe showing the wrong levels.

HSR Scan 2024-02-10_08_10_13 Log.txt
Screenshot 2024-02-10 084101

@kel-z
Copy link
Owner

kel-z commented Feb 10, 2024

Hmm, your game looks abnormally bright. For reference, this is what my screenshots look like:
225518842017
225423580272
225500043801

Could you try turning off any colour adjustment settings that you might have?

@hdaniel1
Copy link

I'm also getting this same error. Running at 1600 x 900 resolution. Here's my screenshot from the latest debug. Currently running with only characters.

183534386737

@kel-z
Copy link
Owner

kel-z commented Feb 22, 2024

I'm also getting this same error. Running at 1600 x 900 resolution. Here's my screenshot from the latest debug. Currently running with only characters.

183534386737

That is so strange. I'm able to parse 40/43 correctly when I save and run the exact same OCR function on that image.

It does look like that the 40 is rather close to the boundary of the image, so I'm gonna try increasing the size of the character count screenshot that the scanner takes and hopefully the numbers will get picked up properly.

@kel-z
Copy link
Owner

kel-z commented Feb 24, 2024

Lmk if it works or not on the latest release

@hdaniel1
Copy link

Now I get the following exception:

[10:13:13] [WARN] > Failed to parse character name. Got error: not enough values to unpack (expected 2, got 1). Retrying... (5/5)
[10:13:14] [ERROR] > Failed to parse character name. Got '' instead. Ending scan early.

Same settings as above (1600 x 900)
101304380663
log.txt

image

@kel-z
Copy link
Owner

kel-z commented Feb 24, 2024

That looks like a different issue now because it managed to reach the character screen. Which character does it not parse correctly? (could you send the screenshot of the character name)

@PureIsntHere
Copy link

I had this same issue, I was able to fix it by disabling HDR on my monitor. Seems the increase in brightness can cause issues with the detection

@janaipakos
Copy link

Adding a quick note here, I was getting 'Failed to parse level.' and errors related to having invalid values for relics. Used Debug mode and saw my screenshots were super bright. Should have read the NOTES more closely about HDR needing to be off. I feel like that should be a second bullet, instead of being in the dual monitor config bullet, but that might just be me

@kel-z
Copy link
Owner

kel-z commented Apr 27, 2024

I feel like that should be a second bullet, instead of being in the dual monitor config bullet

That makes sense to me. I'll do that, thanks for the suggestion!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants