umasagashi / umacapture

umacapture is a software that extracts in-game information from the game ウマ娘 using only image recognition.
MIT License
20 stars 2 forks source link

Require run to Windows11 #66

Open waya0125 opened 2 years ago

waya0125 commented 2 years ago

Steps to Reproduce

When used in Windows 11 environment

Expected behavior

Normal operation in Windows 11 environment

Current behavior

Screenshots do not work properly, so captures are not converted to database. However, the screenshot itself is doing so there is some kind of problem

Reproduction rate

Almost certain in the environment at hand.

Screenshots

スクリーンショット 2022-09-11 175943 スクリーンショット 2022-09-11 180012

About the environment

App version: 0.0.3 OS: Windows 11 Pro 21H2 22000.918

Comments

Currently, there is a problem that screenshots do not work on Windows 11, even though it starts up, and I have to go to the trouble of running it on Windows 10 in order to take a screenshot. If you have the resources, please find out why it does not work under Windows 11 and make it work properly.

umasagashi commented 2 years ago

Thanks for reporting the issue!

For some reason, your game client is a bit more wide than expected. The image below is a blended screenshot with mine. As you can see, the position of the in-game UI matches, but the window size do not. image

At this point, the app treats the game screen as a fixed aspect ratio, so this may be a problem. I will add an option to switch this in the next version.

Or, if you can't wait, open umacapture installation directory and edit umacapture\data\flutter_assets\assets\config\platform.json as follows:

{
    "windows": {
        "window_recorder": {
            "minimum_size": {
                "height": 960,
                "width": 540
            },
            "recording_fps": 40,
            "window_profile": {
                "window_class": "UnityWndClass",
                "window_title": "umamusume",
                "fixed_aspect_ratio": false
            }
        }
    }
}

Then restart umacapture.

waya0125 commented 2 years ago

Sorry for the late reply. Thank you for your suggestion. I can't determine which is the cause of the problem because I have customizations in my environment, such as using unofficial software to increase the Unity frame rate and changing the size of Windows. I apologize for not being able to help you and for bringing the problem to my environment only.

I have changed to the above config and the screenshot works fine. We apologize for the inconvenience. Once again, we are waiting for the official update that will be provided later.

Just to be sure, I have written down the unofficial software we are using and the software environment we are using for customization. umamusume-localify Explorer Patcher

Again, our apologies for the inconvenience. wayamoti2015 - waya0125

umasagashi commented 2 years ago

Thanks for sharing the details! I am glad to hear that it worked in your environment as well.