tehruttiger / Stockpiler

A Foxhole logi companion app for quickly reading and transcribing stockpile contents
28 stars 21 forks source link

"TypeError: only size-1 arrays can be converted to python scalars" #15

Closed vilobion closed 2 years ago

vilobion commented 2 years ago
PythonScalars

Get this when I hit F3 to try and capture a stockpile.

vilobion commented 2 years ago

I also get this same message when attempting to use the F2 functionality.

incantum commented 2 years ago

Screenshot_7 Same issue here

tehruttiger commented 2 years ago

This was reported by another user as well. It seems like it can't successfully find the Foxhole window. I need to add error handling to just grab the whole set of screens if it can't find the window using the current method.

tehruttiger commented 2 years ago

I believe this is fixed after my newest commits. I haven't compiled a new version yet though, so you would have to test with the code itself until I do that.

PeteNotFound commented 2 years ago

I fought with this problem a little bit on the new 1.2b version but I think I've figgured out why it happens. It's a resolution error (sadly I don't know which part in the code causes it.). My main monitor is running a 4K resolution and i got that error every time i tried to capture a stockpile(No matter if i used F2 or F3). Once I set my screen resolution to 1920x1080 in the Windows Display settings this error dissapeared.

tehruttiger commented 2 years ago

This issue should be fixed with the newest version that is in pre-release. Will reopen if it reappears.