dice4321 / Gunkolle

This script was originally meant to execute kancolle expeditions but was repurpose for girls frontline (by Ryuuhou https://github.com/Ryuuhou/AHKanColle)
Other
16 stars 14 forks source link

Invalid screen #19

Closed anonpan closed 5 years ago

anonpan commented 5 years ago

When I run Gunkolle.ahk it detects Nox and it says "Window found" but then it says "Invalid Screen, Retrying (1)" and I can't get the "Ready". I'm on the game's home screen, should I be somewhere else? The game is running at 1280 x 720 and speed mode.

dice4321 commented 5 years ago

Are you running an AMD GPU? If so, this script wont work because of how NOX renders images differently with an AMD GPU.

anonpan commented 5 years ago

nope, Nvidia.

dice4321 commented 5 years ago

Home screen with the the T-doll secretary right? Maybe try restoring window size? If that doesn't work, not sure what else could be the problem.

alt text

anonpan commented 5 years ago

I managed to fix that problem but I have a new one now. I get the "Ready" but then when I click the "Start" button, a pop up saying "Window "NoxPlayer" was not found" appears.

dice4321 commented 5 years ago

oh, I should get around to changing this. Its because you renamed your nox player

alt text

Put NoxPlayer in the title of your copy of Nox just like the 2nd emulator shown.

anonpan commented 5 years ago

The last update fixed that issue but now I'm having another problem. It detects Nox and everything, I get the 'Ready', the macro starts running, goes to formation, changes the leader (not always, sometimes it gets stuck after filtering the dolls), goes to the battle screen, selects 4-3e, deploys the echelons, resupplies and everything but then it selects the first two enemies, scrolls the map and it stops there. It doesn't select the other two enemies.

image

This is where it gets stuck. Maybe it's because of the way I set the drag of the map? I tried changing it a couple of times but it still doesn't work.

image

dice4321 commented 5 years ago

Make sure you drag all the way down, until you cant drag anymore, like 4-3e map has to hit the top.

anonpan commented 5 years ago

Everything works fine now, finally! Can I ask you a couple of questions? Is the main tank automatically repaired when it becomes too damaged? And how does the randomization work? I just want to make sure I don't get banned for using this.

Edit: I observed the loop for a while and I noticed the main tank does get repaired automatically.

dice4321 commented 5 years ago

It locates the picture and clicks the center of the image in a circular pattern. I wasn't in the last two ban waves, so far so good. Maybe il add a normal distribution to the pattern later on aswell.