Pokemon-Go-Controller icon indicating copy to clipboard operation
Pokemon-Go-Controller copied to clipboard

Does autoclick script work when running the controller on simulator?

Open wangjunji opened this issue 8 years ago • 4 comments

I successfully run the controller on the simulator cuz I have only one ios device, but have to manually refresh the simulated location in Xcode by several clicks. I just wonder whether the autoclick script still works when running the controller on simulator cuz I have to click direction arrows to make movements. (Haven't tried that yet cuz it takes time to adjust x,y)

wangjunji avatar Jul 12 '16 11:07 wangjunji

@wangjunji Can you post better instructions on how to run this? I am confused on how to start, but would like to try it out.

neoblizz avatar Jul 12 '16 18:07 neoblizz

@neoblizz First set the controller ip to localhost http://127.0.0.1:8080 in readAndChangeXML.py (the default 80 port is disabled on Mac),and modify the according line in ViewController.swift

webServer.startWithPort(8080, bonjourName: "pokemonController")

then run the controller app in simulator and run readAndChangeXML.py in the terminal, you will see the gps logs in the terminal when make movements in the controller.(You'd better add an try..catch.. block in python script or it will raise timeout error if you don't operate the controller for a while) Then start a new single page application project in Xcode and connect your iphone to Mac with a usb cable. Add the gpx file generate by the python script to the project then run the app on your iphone just leave it at background then open Pokemon go. There is a location symbol(an arrow) at the bottom of Xcode for you to simulate location ,choose the pokemonLocation to refresh the location in Pokemon go when you make movements in the controller. Have a try.

wangjunji avatar Jul 13 '16 05:07 wangjunji

Thank you so much @wangjunji, will try it out.

neoblizz avatar Jul 13 '16 17:07 neoblizz

@wangjunji I'm pretty sure that you cannot, which is why it is recommended to use a second iDevice. As you've already said, you have to use the arrow keys in the simulator to move around, but all the autoclick script does is click at the given (x,y) position. So you can't move and refresh the location at the same time, at least not with the autoclicker.

EmDee avatar Jul 14 '16 23:07 EmDee