Advertisement
Guest User

Untitled

a guest
Jul 29th, 2016
269
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.90 KB | None | 0 0
  1. :: Set PythonPath to where your Python is installed, Typically C:\Python27\Python.exe
  2. :: Set BranchPath to where you have the Pokemon Live Map folder
  3.  
  4. SET PythonPath= C:\Python27\Python.exe
  5. SET BranchPath= C:\Users\x\Desktop\PokemonGo-Map-develop
  6. SET Executable=runserver.py
  7.  
  8. ::GAPI is your google map api key
  9. ::auth is the authentication service you are using. PTC or Google
  10. ::Self explanatory, username of the chosen auth service
  11. ::again.. do i need to explain? password of chosen auth
  12. ::Threads default is 1, if you want more, change it here.. 1 is recommended until multithreading is fixed in windows.
  13. ::locale is the language output in your terminal, default is EN (english)
  14.  
  15.  
  16. SET GAPI= AIzaSyAZzeHhs-8JZ7i18MjFuM35dJHqxxxxxx
  17. SET auth= ptc
  18. SET username= xxxx
  19. SET password= xx
  20. SET thread=-t 2
  21. SET locale=EN
  22.  
  23.  
  24. ::kill all python processes
  25. taskkill /IM python.exe /F
  26. echo Starting worker processes....
  27.  
  28.  
  29. ::title of this command window
  30. title Pokemon Go Map
  31.  
  32. ::paste the second column of colors here, down to the last space of the color you wanted. Pink = 1 Leap, Purple - 2 Leaps, Blue = 3 Leaps, Green = 4 Leaps, and Yellow = 5 Leaps. The amount of workers required gets silly after 5 Leaps :P)
  33.  
  34. Start "Movable1" /d %BranchPath% /MIN %PythonPath% %Executable% -a %auth% -u %username% -p %password% -l "30.448999, -84.28708" -st 7 -H 0.0.0.0 -P 5000 -k %GAPI% -L %locale% %thread%
  35. ping 127.0.0.1 -n 6 > nul
  36. Start "Movable2" /d %BranchPath% /MIN %PythonPath% %Executable% -a %auth% -u %username% -p %password% -l "30.466510274, -84.28708" -st 7 -ns -k %GAPI% -L %locale% %thread%
  37. ping 127.0.0.1 -n 6 > nul
  38. Start "Movable3" /d %BranchPath% /MIN %PythonPath% %Executable% -a %auth% -u %username% -p %password% -l "30.4577534566, -84.2694870156" -st 7 -ns -k %GAPI% -L %locale% %thread%
  39. ping 127.0.0.1 -n 6 > nul
  40. Start "Movable4" /d %BranchPath% /MIN %PythonPath% %Executable% -a %auth% -u %username% -p %password% -l "30.4402421826, -84.2694870156" -st 7 -ns -k %GAPI% -L %locale% %thread%
  41. ping 127.0.0.1 -n 6 > nul
  42. Start "Movable5" /d %BranchPath% /MIN %PythonPath% %Executable% -a %auth% -u %username% -p %password% -l "30.4314853664, -84.28707526" -st 7 -ns -k %GAPI% -L %locale% %thread%
  43. ping 127.0.0.1 -n 6 > nul
  44. Start "Movable6" /d %BranchPath% /MIN %PythonPath% %Executable% -a %auth% -u %username% -p %password% -l "30.4402398242, -84.3046650835" -st 7 -ns -k %GAPI% -L %locale% %thread%
  45. ping 127.0.0.1 -n 6 > nul
  46. Start "Movable7" /d %BranchPath% /MIN %PythonPath% %Executable% -a %auth% -u %username% -p %password% -l "30.4577510982, -84.3046650835" -st 7 -ns -k %GAPI% -L %locale% %thread%
  47. ping 127.0.0.1 -n 6 > nul
  48.  
  49. ::this part is the time it will pause till going back to the start again to restart the servers (edit the 1801 to change the delay in seconds)
  50.  
  51. echo Waiting 30 minutes to restart all processes
  52. ping 0.0.0.0 -n 1801 > nul
  53.  
  54. goto start
  55. pause
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement