Advertisement
Guest User

Untitled

a guest
Jul 28th, 2016
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Batch 4.07 KB | None | 0 0
  1. :start
  2.  
  3.  
  4. SET PythonPath=C:\Python27\python.exe
  5. SET BranchPath=C:\Users\Chris\Desktop\PokemonGo-Map-develop2
  6. SET Executable=runserver.py
  7.  
  8. SET GAPI=*
  9. SET auth=google
  10. SET username=*
  11. SET password=*
  12. SET locale=EN
  13.  
  14. echo off
  15. cls
  16.  
  17. ::kill all python processes
  18. taskkill /IM python.exe /F
  19. echo %time% Starting worker processes...
  20.  
  21. title Pokemon Go Map
  22.  
  23. ::ping commands are to set a delay between opening all the servers, -n 2 = 1 second (2 pings total)
  24. :: if -st 10 then 4.9283 km, 1.425 km, 2.468175 km, 2.85 km -- http://www.sunearthtools.com/tools/distance.php -- https://github.com/AHAAAAAAA/PokemonGo-Map/wiki/How-to-cover-a-wider-area-with-multiple-searchers
  25.  
  26.  
  27. start "Alpha Sector" /d %BranchPath% /MIN %PythonPath% %Executable% -a %auth% -u %username% -p %password% -l "35.213428, -97.463332" -st 10 -H 0.0.0.0 -P 5000 -t 2 -k %GAPI% -L %locale%
  28. ping 127.0.0.1 -n 6 > nul
  29.  
  30. ::start "0,1" /d %BranchPath% /MIN %PythonPath% %Executable% -a %auth% -u %username% -p %password% -l "35.2646748, -97.463332" -st 10 -H 0.0.0.0 -P 5000 -t 2 -k %GAPI% -L %locale%
  31. ::ping 127.0.0.1 -n 2 > nul
  32.  
  33. ::start "0,2" /d %BranchPath% /MIN %PythonPath% %Executable% -a %auth% -u %username% -p %password% -l "35.2390514, -97.463332" -st 10 -H 0.0.0.0 -P 5000 -t 2 -k %GAPI% -L %locale%
  34. ::ping 127.0.0.1 -n 2 > nul
  35.  
  36. ::start "0,4" /d %BranchPath% /MIN %PythonPath% %Executable% -a %auth% -u %username% -p %password% -l "35.1878046, -97.463332" -st 10 -H 0.0.0.0 -P 5000 -t 2 -k %GAPI% -L %locale%
  37. ::ping 127.0.0.1 -n 2 > nul
  38.  
  39. start "1,2" /d %BranchPath% /MIN %PythonPath% %Executable% -a %auth% -u %username% -p %password% -l "35.2262455, -97.4361721" -st 10 -H 0.0.0.0 -P 5000 -t 2 -k %GAPI% -L %locale%
  40. ping 127.0.0.1 -n 2 > nul
  41.  
  42. start "1,3" /d %BranchPath% /MIN %PythonPath% %Executable% -a %auth% -u %username% -p %password% -l "35.2006105, -97.4361721" -st 10 -H 0.0.0.0 -P 5000 -t 2 -k %GAPI% -L %locale%
  43. ping 127.0.0.1 -n 2 > nul
  44.  
  45. ::start "1,1" /d %BranchPath% /MIN %PythonPath% %Executable% -a %auth% -u %username% -p %password% -l "35.2518689, -97.4361721" -st 10 -H 0.0.0.0 -P 5000 -t 2 -k %GAPI% -L %locale%
  46. ::ping 127.0.0.1 -n 2 > nul
  47.  
  48. ::start "-1,3" /d %BranchPath% /MIN %PythonPath% %Executable% -a %auth% -u %username% -p %password% -l "35.2006105, -97.4904919" -st 10 -H 0.0.0.0 -P 5000 -t 2 -k %GAPI% -L %locale%
  49. ::ping 127.0.0.1 -n 2 > nul
  50.  
  51. ::start "-1,2" /d %BranchPath% /MIN %PythonPath% %Executable% -a %auth% -u %username% -p %password% -l "35.2262455, -97.4904919" -st 10 -H 0.0.0.0 -P 5000 -t 2 -k %GAPI% -L %locale%
  52. ::ping 127.0.0.1 -n 2 > nul
  53.  
  54. ::start "-1,1" /d %BranchPath% /MIN %PythonPath% %Executable% -a %auth% -u %username% -p %password% -l "35.2518689, -97.4904919" -st 10 -H 0.0.0.0 -P 5000 -t 2 -k %GAPI% -L %locale%
  55. ::ping 127.0.0.1 -n 2 > nul
  56.  
  57. ::start "2,1" /d %BranchPath% /MIN %PythonPath% %Executable% -a %auth% -u %username% -p %password% -l "35.2390514, -97.4090122" -st 10 -H 0.0.0.0 -P 5000 -t 2 -k %GAPI% -L %locale%
  58. ::ping 127.0.0.1 -n 2 > nul
  59.  
  60. ::start "2,2" /d %BranchPath% /MIN %PythonPath% %Executable% -a %auth% -u %username% -p %password% -l "35.213428, -97.4090122" -st 10 -H 0.0.0.0 -P 5000 -t 2 -k %GAPI% -L %locale%
  61. ::ping 127.0.0.1 -n 2 > nul
  62.  
  63. ::start "2,3" /d %BranchPath% /MIN %PythonPath% %Executable% -a %auth% -u %username% -p %password% -l "35.1878046, -97.4090122" -st 10 -H 0.0.0.0 -P 5000 -t 2 -k %GAPI% -L %locale%
  64. ::ping 127.0.0.1 -n 2 > nul
  65.  
  66. ::start "Andy Alligator's" /d %BranchPath% /MIN %PythonPath% %Executable% -a %auth% -u %username% -p %password% -l "35.292731, -97.491365" -st 4 -H 0.0.0.0 -P 5000 -t 2 -k %GAPI% -L %locale%
  67. ::ping 127.0.0.1 -n 2 > nul
  68.  
  69. ::start "Alyssa" /d %BranchPath% /MIN %PythonPath% %Executable% -a %auth% -u %username% -p %password% -l "35.229196, -97.172862" -st 10 -H 0.0.0.0 -P 5000 -t 2 -k %GAPI% -L %locale%
  70. ::ping 127.0.0.1 -n 2 > nul
  71.  
  72. echo %time% Start-up complete!
  73.  
  74. ::loopback
  75. echo %time% 30 minutes until next restart...
  76. ping 127.0.0.1 -n 895 > nul
  77. echo %time% 15 minutes until next restart...
  78. ping 127.0.0.1 -n 895 > nul
  79. echo %time% RESTART IMMINENT - HOLD ON TO YOUR BUTTS
  80. ping 127.0.0.1 -n 11 > nul
  81. goto start
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement