PyTibia icon indicating copy to clipboard operation
PyTibia copied to clipboard

[BUG] - Positions are None

Open TS-Yaloshi opened this issue 3 years ago • 8 comments

Describe the bug image

The positions are None, which results in a TypeError None. The screenshot is all zero.

To Reproduce Select Tibia window in the app. Click on Play.

Expected behavior It detects the tabs correctly.

TS-Yaloshi avatar Jul 26 '23 17:07 TS-Yaloshi

This issue also happens to me

kaybenot avatar Aug 06 '23 20:08 kaybenot

yes, happened similar on mine too. image

Gopal-Kshetri avatar Aug 18 '23 05:08 Gopal-Kshetri

@TS-Yaloshi can you give me a screenshot?

lucasmonstrox avatar Aug 19 '23 00:08 lucasmonstrox

A screenshot of what exactly? I posted one of the program in debug mode. The error is similar to Gopal-Kshetri's screenshot.

TS-Yaloshi avatar Aug 20 '23 22:08 TS-Yaloshi

From what I have deduced so far is, battleye causes the screenshots of the game to be black after 2 minutes or so of logging in. Due to this we get the above error of return None. The screenshot taken are black.

Have you considered this issue and tackled in your code? @lucasmonstrox

Gopal-Kshetri avatar Aug 21 '23 11:08 Gopal-Kshetri

If the problem is related to BattleEye you should create a projection of the window using OBS Studio. Although I'm not sure if the latest version of OBS will work. Probably version 24~26 are better.

thiagoretes avatar Aug 21 '23 17:08 thiagoretes

yeah, I tried that but the pytibia project doesn't detect anything other than the game window hence unable to give the obs projection as an input to the project.

Gopal-Kshetri avatar Aug 22 '23 09:08 Gopal-Kshetri

Well, after looking into the code it needs some refactoring to be able to grab screen from OBS and inject input into Tibia window. Currently Lucas is doing all the tasks in his own OT, that's why it's not ready for use with OBS.

thiagoretes avatar Aug 22 '23 10:08 thiagoretes