Git Product home page Git Product logo

Comments (17)

tmarenko avatar tmarenko commented on July 16, 2024

Any log files or additional information?

from mff_auto.

noramann avatar noramann commented on July 16, 2024

This is the last log, i only open start.bat -> Setup and open Nox, but nothing happens, the emulator doesn't appear on Setup.
debug_2021-03-22--08-53-01.log
Warning

from mff_auto.

tmarenko avatar tmarenko commented on July 16, 2024

Try to remove this file: settings\gui\game.json and run start.bat again.
If it fails then send me new log from that setup.

from mff_auto.

noramann avatar noramann commented on July 16, 2024

debug_2021-03-22--09-02-39.log

from mff_auto.

tmarenko avatar tmarenko commented on July 16, 2024

I think one of the reason why this happens: not enough OS permissions to get emulator's process here:

process = win32api.OpenProcess(win32con.PROCESS_QUERY_INFORMATION | win32con.PROCESS_VM_READ, 0, process_id)

Did you try to run start.bat as Administrator?

If it doesn't help you can try to create game.json manually.
Structure of game.json file for NoxPlayer:
{ "timeline_team": 1, "mission_team": 1, "acquire_heroic_quest_rewards": true, "player_name": "NoxPlayer", "player_type": "NoxWindow", "game_app_rect": null }
Replace NoxPlayer with your Nox's name from here:
image

then put this game.json file into settings\gui folder and try to run the bot.
The downside of this method is that you will have empty game_app_rect (because bot calculates it dynamicly in setup) so no restart game/farm bios options for you.

from mff_auto.

noramann avatar noramann commented on July 16, 2024

When i try to run as administrator, start.bat closes in miliseconds.

from mff_auto.

noramann avatar noramann commented on July 16, 2024

image

from mff_auto.

tmarenko avatar tmarenko commented on July 16, 2024

Did you start the emulator before starting the bot?

from mff_auto.

noramann avatar noramann commented on July 16, 2024

from mff_auto.

tmarenko avatar tmarenko commented on July 16, 2024

Nope

You should start NoxPlayer and the start the bot. Bot can't get any information from Nox Player for set up because NoxPlayer needs to be running for this.

from mff_auto.

tmarenko avatar tmarenko commented on July 16, 2024

image

You will see your running NoxPlayer then:
image

from mff_auto.

noramann avatar noramann commented on July 16, 2024

Nothing happens, i downloaded it again and started after having the nox open, I even tried with the bluestacks.

from mff_auto.

tmarenko avatar tmarenko commented on July 16, 2024

Nothing happens, i downloaded it again and started after having the nox open, I even tried with the bluestacks.

You can simply delete settings\gui\game.json to start Setup again, don't need to redownload all files again.

Well, maybe the other reason why this happens is something went wrong with getting key handle from Nox.
You can test by editing this file lib\players\android_emulator.py at 154 line here:

keys_found = self.key_handle is not None and self.player_key_handle is not None

Replace this with keys_found = True (make sure to keep spaces at the start of the line same) and run Setup again.

Also, what's your OS, OS language and NoxPlayer version?

from mff_auto.

noramann avatar noramann commented on July 16, 2024

Putting keys_found = True worked, thanks

from mff_auto.

tmarenko avatar tmarenko commented on July 16, 2024

Putting keys_found = True worked, thanks

Well it's not a real fix because now bot doesn't know how to send keystrokes into emulator now (i.e. you can't use "restart game" function).
If you still need ability to restart game, please tell about OS and NoxPlayer version. I'll try to test them myself sometimes later.

from mff_auto.

noramann avatar noramann commented on July 16, 2024

Windows 10 and Nox Version 7.0.1.0

from mff_auto.

tmarenko avatar tmarenko commented on July 16, 2024

I couldn't reproduce this issue with brand new Windows 10 Home Edition and NoxPlayer.
With clean setup NoxPlayer always has Qt5QWindowToolSaveBits handler for keys.
If you will found anything new or related to this issue then reopen it.

from mff_auto.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.