Advertisement
Guest User

Untitled

a guest
Aug 20th, 2016
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Batch 5.83 KB | None | 0 0
  1. @echo off
  2. :: Set PythonPath to where your Python is installed, Typically C:\Python27\Python.exe
  3. :: Set BranchPath to where you have the Pokemon Live Map folder
  4.  
  5. SET PythonPath=PATH\TO\PYTHON.EXE
  6. SET BranchPath="PATH\TO\POKEMONGO-MAP FOLDER"
  7. SET Executable=runserver.py
  8.  
  9. ::GAPI is your google map api key
  10. ::auth is the authentication service you are using. PTC or Google
  11. ::Self explanatory, username of the chosen auth service
  12. ::again.. do i need to explain? password of chosen auth
  13. ::locale is the language output in your terminal, default is EN (english)
  14.  
  15.  
  16. SET GAPI=GAPI_KEY
  17. SET auth=AUTH_TYPE
  18. SET locale=EN
  19.  
  20. SET username=USER
  21. SET password=PASS
  22.  
  23.  
  24.  
  25. ::kill all python processes
  26. :Start
  27. echo Force closing all python processes....
  28. taskkill /IM python.exe /F
  29. echo Starting worker processes....
  30.  
  31.  
  32. ::title of this command window
  33. title Pokemon Go Map Manager
  34.  
  35. ::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)
  36.  
  37. echo Starting instance number 1...
  38. Start "Movable1" /d %BranchPath% /MIN %PythonPath% %Executable% -a %auth% -u %username% -p %password% -l "59.336471, 18.039445" -st 5 -H 0.0.0.0 -P 5000 -k %GAPI%                                     
  39. ping 127.0.0.1 -n 6 > nul
  40. echo Starting instance number 2...
  41. Start "Movable2" /d %BranchPath% /MIN %PythonPath% %Executable% -a %auth% -u %username% -p %password% -l "59.3411525957, 18.0405032393" -st 5 -ns -k %GAPI%                                    
  42. ping 127.0.0.1 -n 6 > nul
  43. echo Starting instance number 3...                                 
  44. Start "Movable3" /d %BranchPath% /MIN %PythonPath% %Executable% -a %auth% -u %username% -p %password% -l "59.3383433793, 18.0479104485" -st 5 -ns -k %GAPI%                                    
  45. ping 127.0.0.1 -n 6 > nul                              
  46. echo Starting instance number 4... 
  47. Start "Movable4" /d %BranchPath% /MIN %PythonPath% %Executable% -a %auth% -u %username% -p %password% -l "59.3336618417, 18.0468512776" -st 5 -ns -k %GAPI%                                    
  48. ping 127.0.0.1 -n 6 > nul          
  49. echo Starting instance number 5...                     
  50. Start "Movable5" /d %BranchPath% /MIN %PythonPath% %Executable% -a %auth% -u %username% -p %password% -l "59.3317893923, 18.0383870518" -st 5 -ns -k %GAPI%                                    
  51. ping 127.0.0.1 -n 6 > nul                          
  52. echo Starting instance number 6...     
  53. Start "Movable6" /d %BranchPath% /MIN %PythonPath% %Executable% -a %auth% -u %username% -p %password% -l "59.3345980705, 18.0309804831" -st 5 -ns -k %GAPI%                                    
  54. ping 127.0.0.1 -n 6 > nul                      
  55. echo Starting instance number 7...         
  56. Start "Movable7" /d %BranchPath% /MIN %PythonPath% %Executable% -a %auth% -u %username% -p %password% -l "59.3392797363, 18.0320374996" -st 5 -ns -k %GAPI%                                    
  57. ping 127.0.0.1 -n 6 > nul                  
  58. echo Starting instance number 8...             
  59. Start "Movable8" /d %BranchPath% /MIN %PythonPath% %Executable% -a %auth% -u %username% -p %password% -l "59.3458341794, 18.0415617699" -st 5 -ns -k %GAPI%                                    
  60. ping 127.0.0.1 -n 6 > nul  
  61. echo Starting instance number 9...                             
  62. Start "Movable9" /d %BranchPath% /MIN %PythonPath% %Executable% -a %auth% -u %username% -p %password% -l "59.3430293349, 18.0489661517" -st 5 -ns -k %GAPI%                                    
  63. ping 127.0.0.1 -n 6 > nul                                  
  64. echo Starting instance number 10...
  65. Start "Movable10" /d %BranchPath% /MIN %PythonPath% %Executable% -a %auth% -u %username1% -p %password% -l "59.3402152084, 18.0563768286" -st 5 -ns -k %GAPI%                                      
  66. ping 127.0.0.1 -n 6 > nul                              
  67. echo Starting instance number 11...
  68. Start "Movable11" /d %BranchPath% /MIN %PythonPath% %Executable% -a %auth% -u %username1% -p %password% -l "59.3355376187, 18.0553220655" -st 5 -ns -k %GAPI%                                      
  69. ping 127.0.0.1 -n 6 > nul                          
  70. echo Starting instance number 12...    
  71. Start "Movable12" /d %BranchPath% /MIN %PythonPath% %Executable% -a %auth% -u %username1% -p %password% -l "59.3308522616, 18.0542563326" -st 5 -ns -k %GAPI%                                      
  72. ping 127.0.0.1 -n 6 > nul                          
  73. echo Starting instance number 13...    
  74. Start "Movable13" /d %BranchPath% /MIN %PythonPath% %Executable% -a %auth% -u %username1% -p %password% -l "59.3289797403, 18.0458017848" -st 5 -ns -k %GAPI%                                      
  75. ping 127.0.0.1 -n 6 > nul                          
  76. echo Starting instance number 14...    
  77. Start "Movable14" /d %BranchPath% /MIN %PythonPath% %Executable% -a %auth% -u %username1% -p %password% -l "59.3271077727, 18.0373293946" -st 5 -ns -k %GAPI%                                      
  78. ping 127.0.0.1 -n 6 > nul              
  79. echo Starting instance number 15...                        
  80. Start "Movable15" /d %BranchPath% /MIN %PythonPath% %Executable% -a %auth% -u %username1% -p %password% -l "59.3299119634, 18.0299275177" -st 5 -ns -k %GAPI%                                      
  81. ping 127.0.0.1 -n 6 > nul      
  82. echo Starting instance number 16...                                
  83. Start "Movable16" /d %BranchPath% /MIN %PythonPath% %Executable% -a %auth% -u %username1% -p %password% -l "59.332724591, 18.022516898" -st 5 -ns -k %GAPI%                                    
  84. ping 127.0.0.1 -n 6 > nul                                  
  85. echo Starting instance number 17...    
  86. Start "Movable17" /d %BranchPath% /MIN %PythonPath% %Executable% -a %auth% -u %username1% -p %password% -l "59.3374024476, 18.0235670645" -st 5 -ns -k %GAPI%                                      
  87. ping 127.0.0.1 -n 6 > nul                                  
  88. echo Starting instance number 18...    
  89. Start "Movable18" /d %BranchPath% /MIN %PythonPath% %Executable% -a %auth% -u %username1% -p %password% -l "59.3420880504, 18.0246287763" -st 5 -ns -k %GAPI%                                      
  90. ping 127.0.0.1 -n 6 > nul                                  
  91. echo Starting instance number 19...    
  92. Start "Movable19" /d %BranchPath% /MIN %PythonPath% %Executable% -a %auth% -u %username1% -p %password% -l "59.3439619409, 18.0330854159" -st 5 -ns -k %GAPI%                                      
  93.  
  94. ::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)
  95.  
  96. echo Waiting 30 minutes to restart all processes
  97. ping 127.0.0.1 -n 1801 > nul
  98.  
  99. goto Start
  100. pause
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement