A collection of various problems in the installation process of WeChat jumping auxiliary script (magic warrior version) (with tutorial link)

Please see the script principle: https://zhuanlan.zhihu.com/p/32452473

Installation tutorial version 1: https://zhuanlan.zhihu.com/p/32497067

Installation tutorial version 2 (the easiest): https://mp.weixin.qq.com/s?__biz=MzU0MTU0NTQ3OQ==&mid=2247483764&idx=1&sn=66069d20586ed90496733be65afddebc

Installation tutorial video version (should be a big hand of Tsinghua University): https://www.bilibili.com/video/av17796840/

The above are various tutorials on how to run scripts. Their core codes are provided by magical warriors, and the operations are similar.

1. Use the Adb tool to get the screenshot of the current mobile phone, and use adb to pull the screenshot up

2. Use matplot to display screenshots (which have been processed by image recognition)

3. Click the starting point and the target position with the mouse to calculate the pixel distance (which has been processed by image recognition)

4. Calculate the pressing time according to the pixel distance;

5. Use the Adb tool to tap the screen to charge for a jump;

However, the installation process was not smooth, so I combined various mistakes made by me and my roommates and netizens, and compiled a summary of the problems, hoping to help you get rid of various misinformation.

1.pip install image

This is a common error in installation tutorial version 1


Mr. Li Xiaozhou explained as follows: "As soon as you see so many red errors, you don't know what's wrong. This error should be caused by the conflict between the django version and the python version, but you don't need to worry about this. Generally, you can skip the error and run the program directly. Successful (as if it didn't exist)."

I also had this error myself, but I ignored it and did not affect the script running.

The installation tutorial version 2 used by the roommate did not have this error.

2. xxx is not an internal command


This is a common mistake made by newbies. There are two reasons, one is that pip, python and the like (that is, your xxx) have not been successfully installed, and the other is that the environment variables have not been successfully configured. The configuration of environment variables is similar to the jdk configuration of java. Please Baidu by yourself. Any questions you can ask me.

3. Link device problem

This problem is actually very difficult to solve, I have been stuck here for a long time.


or

or


(F:\jump\wechat_jump_game-master>python wechat_jump_auto.py

close failed in file object destructor:

IOError: [Errno 0] Error


Xuanfeng 畨瑁? ADB 鍙婇┍锷 ㄥ Gou 閰 rugged Xinjiang 鐜 鍙 graceful)

--The reason for the garbled characters is not yet clear. The original content of the garbled code is as follows:

"Please make sure the phone has ADB turned on and connected to the computer, then open the jump game and use this program, are you sure you want to start?"

or


After entering adb devices, it prompts
* daemon not running. starting it now on port 5037 * 
* daemon started successfully *
and does not display the device


The above are all caused by the fact that the mobile phone is not successfully connected to the computer, and the [usb debugging] function of the mobile phone needs to be turned on. Different mobile phones have different turning on methods, so you can check the method of turning on the [usb debugging] on your mobile phone. In addition, if there is an MTP media device option, it should also be checked instead of selecting only charging or USB storage.

One way to avoid this problem is to enter adb devices on the command line after installing adb and configuring the environment variables. If the device name is displayed, it proves that the connection between the phone and the computer is successful.

If it has been determined that usb debugging is turned on , but the device name still does not appear, there are three situations.

1. There is no adb interface driver. Please check the device manager of the computer when the mobile phone is connected, if there is a yellow exclamation mark as follows


Prove lack of driver. You can download the driver wizard or install this driver by other methods.

2. If the driver is installed, adb devices still cannot find the device

Please use the following method

http://blog.csdn.net/feiniao8651/article/details/39826539

This is how my computer is configured.

3. If the configuration in the added 2 is still not good, it is to restart Dafa

I have to say that the network administrators' pat and restart and change another one is still effective. My computer is connected to the Meizu mobile phone after configuring the 2 methods, but the vivo x20 still cannot be connected. So I restarted the computer and restarted the phone, nothing changed, and it worked.


4. The program can run, but the jump is not allowed

Many friends have no problem running the game, the game can jump by itself, and the config is no problem, but the jump is always inaccurate. This may be the reason why the computer or mobile phone is stuck. The computer's 360 or housekeeper and other software will manage the connection between the mobile phone and the computer. Additional program links will cause the program to run into a short-term freeze. Such a freeze is usually not felt, but it will affect the accuracy of the bounce. , so if you complete the configuration, it is recommended to close the related management software of the mobile phone connection, so that you can bounce more accurately.

In addition, the script config of more versions (ios version, full screen version, etc.) can be downloaded from the github of Zhihu, the magical warrior. The source code is open, and everyone can study together to improve the performance and compatibility of the program. constantly improving.


The road to programming is long and learning never ends.


Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325691066&siteId=291194637