breach-protocol-autosolver icon indicating copy to clipboard operation
breach-protocol-autosolver copied to clipboard

OCR Doesn't grab complete grid when Game Resolution and Monitor Resolution don't match

Open keiichi000 opened this issue 3 years ago • 4 comments

I currently run CP2077 @ 1920x1080, but it's upscaled to my monitor size of 3440x1440. When I use the current version of the breach protocol, it doesn't seem to capture the whole grid of options properly. I think it's looking at the game resolution when the game is in focus, instead of the monitor resolution.. Not sure how to fix this, since I don't think the older version (1.5) had this issue with the mismatched resolutions

NOTE: It seems that in the older version of CP2077, the monitor was handing the upscaling to full screen. But, now it appears it's being done by the driver. So, the issue might not be the software, but a change in the drivers. I'll have to investigate more on my end when I get a chance.

OS; WIndows 10 Platform: Native via GOG, version 1.5 BPA: 2.3.0

keiichi000 avatar Feb 16 '22 04:02 keiichi000

Could you attach snapshot generated by autosolver?

marcincichocki avatar Feb 16 '22 16:02 marcincichocki

w11 steam v2.02 bpa 2.11.0 borderless window 3440x1440

It seems to work on smaller ones, but at 7x7 it just loses that left most column and fails

Screenshot 2023-11-05 014709 bpa-snapshot-601debff-165b-4a2a-b802-eedcb36e5446.tar.gz

williamoverstreet avatar Nov 05 '23 05:11 williamoverstreet

I think that the default layout of the fragments is affected by the modded buffer. Could you verify if this is case?

At the moment, the layout is not configurable, but I could add this to the settings.

marcincichocki avatar Nov 05 '23 09:11 marcincichocki

If you don't mind building autosolver form source, you can fix it yourself now by changing this line: https://github.com/marcincichocki/breach-protocol-autosolver/blob/v2.11.0/src/core/ocr/fragments/grid-fragment.ts#L25

The first argument determines distance in percentage from left border (without black bars) to the start of the grid fragment. If you decrease it, it should make grid fragment bigger, thus solving your issue.

marcincichocki avatar Nov 05 '23 12:11 marcincichocki