Closed 0withoutface0 closed 2 months ago
Need to run it as administrator (as mentioned in readme)
Need to run it as administrator (as mentioned in readme)
how do you run a py file as admin lol
yeah ive done that. i can send a video too.
rozenrade @.***> ezt írta (időpont: 2024. aug. 28., Sze, 22:34):
Need to run it as administrator (as mentioned in readme)
how do you run a py file as admin lol
— Reply to this email directly, view it on GitHub https://github.com/1hubert/genshin-dialogue-autoskip/issues/43#issuecomment-2316203799, or unsubscribe https://github.com/notifications/unsubscribe-auth/AXKFMMWJUCYRURTCP7MU46LZTYX6PAVCNFSM6AAAAABM6CXCLKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMJWGIYDGNZZHE . You are receiving this because you authored the thread.Message ID: @.***>
Need to run it as administrator (as mentioned in readme)
how do you run a py file as admin lol
open an elevated terminal and start it from there...
makes sense am dumb, thanks for clarifying. o7
@rozenrade @0withoutface0 There's a run.bat
file which makes it easier to run as admin as you can just right-click it 😉
@1hubert i will make a video of the issue rq (i havent been playing for a few weeks now cuz i was busy). last time i tried it didnt work even if run as admin i will report back in a few mins
@0withoutface0 No need for the video, I was just about to tell you -- The issue is on the script's side, not yours. Basically your screen resolution makes it so the skip button is in an "unexpected" place, as the script is dumb and assumes that the skip button's position will be on the same relative x and y position as it is in 1920x1080.
I don't know an easy fix to this, and due to IRL stuff and me no longer playing Genshin Impact, I'm no longer able to solve every single issue people might have. Sorry. If someone else wants to help I'll review & merge their PR ASAP.
The placement of the skip button is hard to predict between different non-1080p resolutions, so I was thinking of the following solution:
1) The first time you run the script, instead of asking for your screen resolution, it's going to ask you to switch tabs to Genshin Impact, talk to some NPC and click F9 to take a screenshot.
2) Some kind of simple vision AI could try to find the exact coordinates of the skip button, looking for places resembling an image of it which would be included in the repo.
3) Same with the bottom dialogue option (based on an image of the dialogue bubble)
4) Instead of saving WIDTH
and HEIGHT
in .env
, save the two above coordinates, and use them in the future.
ohhh i see! @1hubert i will add fixes for a few aspect ratios i can think of. (when i have time i will upload them here for merge) i want to stay at a minimal effort solution. thank you for explaining
Created a pull request. If there is any problem with the code let me know.
installed everything, started it up as admin, pressed f8 it printed RUNNING but its not doing anything.
display resolution is correct
any help is appreciated! ty