CatHack icon indicating copy to clipboard operation
CatHack copied to clipboard

CatHack Can`t work on a different ratio screen or another resolutions.

Open fSociety-Protected opened this issue 4 years ago • 8 comments

I have a 32:9 monitor 4k, and the CatHack only can scan the left 1080p res of my screen.

fSociety-Protected avatar Nov 03 '21 16:11 fSociety-Protected

Could you post a video/gif of what its doing? Do you have multiple monitors? Is display scaling set to 100%?

plumface-gcc avatar Nov 03 '21 23:11 plumface-gcc

Ofc.... I gonna record a video.

fSociety-Protected avatar Nov 03 '21 23:11 fSociety-Protected

https://screenrec.com/share/JfLZS95eK4 No, Im not using more than 1 monitor. Im playing on a 32:9 monitor, 135cm of screen from left side to right.

fSociety-Protected avatar Nov 04 '21 00:11 fSociety-Protected

### The problem is that the program only analyzes the classic 1080p resolution (16:9), but not the 4k (32:9).

fSociety-Protected avatar Nov 04 '21 00:11 fSociety-Protected

Yep I know why. In the modules/ChampPosition.cs class, it has a hard coded rectangular field of view for the orbwalker.

If you can wait a little bit, I may be able to find a solution by doing some testing on different aspect ratios. Or, you can try compiling by yourself and changing lines 20, 25 and 30 to your desired field of view.

549df83624592665b05db274bc72dc1d Rectangle FOV = new Rectangle**(starting position x, starting position y, width, height)**

plumface-gcc avatar Nov 04 '21 01:11 plumface-gcc

I will try to find a solution to my screen resolution/ratio problem with your advice.

Hardware wise I'm doing very well, RTX 2080TI, i9-9900K, 64GB RAM, SSD...

I'm not worried about a "drop" of FPS, anyway I would be glad if you could help me to solve this problem. If I find a solution before, I will post it as a thread on Github, for people who have this same problem.

And maybe, you could make an improvement to your program so that this "problem" won't happen in the future. Thanks for the help.

fSociety-Protected avatar Nov 04 '21 01:11 fSociety-Protected

I'll do some testing, but I do not have a 4k monitor so it may be a little janky. Add me on discord if you dont mind, we can do some testing there. Time007#7508

I'll help you with this tomorrow as its 11pm here already.

plumface-gcc avatar Nov 04 '21 02:11 plumface-gcc

Hey, Im trying to add/send a message in Discord, but Its impossible, pls ADD mee/accept my friend request. My Discord is: ҉҉#3923

fSociety-Protected avatar Nov 06 '21 00:11 fSociety-Protected