Advertisement
Guest User

Untitled

a guest
Aug 15th, 2016
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Batch 5.87 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=C:\Python27\Python.exe
  6. SET BranchPath="MY_BRANCH_PATH"
  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=MY_KEY_IS_HERE
  17. SET auth=google
  18. SET locale=EN
  19.  
  20. SET username=USER
  21. SET password=PASS
  22. SET username1=USER1
  23. SET password1=PASS1
  24.  
  25.  
  26. ::kill all python processes
  27. :Start
  28. echo Force closing all python processes....
  29. taskkill /IM python.exe /F
  30. echo Starting worker processes....
  31.  
  32.  
  33. ::title of this command window
  34. title Pokemon Go Map Manager
  35.  
  36. ::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)
  37.  
  38. echo Starting instance number 1...
  39. 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%                                     
  40. ping 127.0.0.1 -n 6 > nul
  41. echo Starting instance number 2...
  42. Start "Movable2" /d %BranchPath% /MIN %PythonPath% %Executable% -a %auth% -u %username% -p %password% -l "59.3411525957, 18.0405032393" -st 5 -ns -k %GAPI%                                    
  43. ping 127.0.0.1 -n 6 > nul
  44. echo Starting instance number 3...                                 
  45. Start "Movable3" /d %BranchPath% /MIN %PythonPath% %Executable% -a %auth% -u %username% -p %password% -l "59.3383433793, 18.0479104485" -st 5 -ns -k %GAPI%                                    
  46. ping 127.0.0.1 -n 6 > nul                              
  47. echo Starting instance number 4... 
  48. Start "Movable4" /d %BranchPath% /MIN %PythonPath% %Executable% -a %auth% -u %username% -p %password% -l "59.3336618417, 18.0468512776" -st 5 -ns -k %GAPI%                                    
  49. ping 127.0.0.1 -n 6 > nul          
  50. echo Starting instance number 5...                     
  51. Start "Movable5" /d %BranchPath% /MIN %PythonPath% %Executable% -a %auth% -u %username% -p %password% -l "59.3317893923, 18.0383870518" -st 5 -ns -k %GAPI%                                    
  52. ping 127.0.0.1 -n 6 > nul                          
  53. echo Starting instance number 6...     
  54. Start "Movable6" /d %BranchPath% /MIN %PythonPath% %Executable% -a %auth% -u %username% -p %password% -l "59.3345980705, 18.0309804831" -st 5 -ns -k %GAPI%                                    
  55. ping 127.0.0.1 -n 6 > nul                      
  56. echo Starting instance number 7...         
  57. Start "Movable7" /d %BranchPath% /MIN %PythonPath% %Executable% -a %auth% -u %username% -p %password% -l "59.3392797363, 18.0320374996" -st 5 -ns -k %GAPI%                                    
  58. ping 127.0.0.1 -n 6 > nul                  
  59. echo Starting instance number 8...             
  60. Start "Movable8" /d %BranchPath% /MIN %PythonPath% %Executable% -a %auth% -u %username% -p %password% -l "59.3458341794, 18.0415617699" -st 5 -ns -k %GAPI%                                    
  61. ping 127.0.0.1 -n 6 > nul  
  62. echo Starting instance number 9...                             
  63. Start "Movable9" /d %BranchPath% /MIN %PythonPath% %Executable% -a %auth% -u %username% -p %password% -l "59.3430293349, 18.0489661517" -st 5 -ns -k %GAPI%                                    
  64. ping 127.0.0.1 -n 6 > nul                                  
  65. echo Starting instance number 10...
  66. Start "Movable10" /d %BranchPath% /MIN %PythonPath% %Executable% -a %auth% -u %username1% -p %password% -l "59.3402152084, 18.0563768286" -st 5 -ns -k %GAPI%                                      
  67. ping 127.0.0.1 -n 6 > nul                              
  68. echo Starting instance number 11...
  69. Start "Movable11" /d %BranchPath% /MIN %PythonPath% %Executable% -a %auth% -u %username1% -p %password% -l "59.3355376187, 18.0553220655" -st 5 -ns -k %GAPI%                                      
  70. ping 127.0.0.1 -n 6 > nul                          
  71. echo Starting instance number 12...    
  72. Start "Movable12" /d %BranchPath% /MIN %PythonPath% %Executable% -a %auth% -u %username1% -p %password% -l "59.3308522616, 18.0542563326" -st 5 -ns -k %GAPI%                                      
  73. ping 127.0.0.1 -n 6 > nul                          
  74. echo Starting instance number 13...    
  75. Start "Movable13" /d %BranchPath% /MIN %PythonPath% %Executable% -a %auth% -u %username1% -p %password% -l "59.3289797403, 18.0458017848" -st 5 -ns -k %GAPI%                                      
  76. ping 127.0.0.1 -n 6 > nul                          
  77. echo Starting instance number 14...    
  78. Start "Movable14" /d %BranchPath% /MIN %PythonPath% %Executable% -a %auth% -u %username1% -p %password% -l "59.3271077727, 18.0373293946" -st 5 -ns -k %GAPI%                                      
  79. ping 127.0.0.1 -n 6 > nul              
  80. echo Starting instance number 15...                        
  81. Start "Movable15" /d %BranchPath% /MIN %PythonPath% %Executable% -a %auth% -u %username1% -p %password% -l "59.3299119634, 18.0299275177" -st 5 -ns -k %GAPI%                                      
  82. ping 127.0.0.1 -n 6 > nul      
  83. echo Starting instance number 16...                                
  84. Start "Movable16" /d %BranchPath% /MIN %PythonPath% %Executable% -a %auth% -u %username1% -p %password% -l "59.332724591, 18.022516898" -st 5 -ns -k %GAPI%                                    
  85. ping 127.0.0.1 -n 6 > nul                                  
  86. echo Starting instance number 17...    
  87. Start "Movable17" /d %BranchPath% /MIN %PythonPath% %Executable% -a %auth% -u %username1% -p %password% -l "59.3374024476, 18.0235670645" -st 5 -ns -k %GAPI%                                      
  88. ping 127.0.0.1 -n 6 > nul                                  
  89. echo Starting instance number 18...    
  90. Start "Movable18" /d %BranchPath% /MIN %PythonPath% %Executable% -a %auth% -u %username1% -p %password% -l "59.3420880504, 18.0246287763" -st 5 -ns -k %GAPI%                                      
  91. ping 127.0.0.1 -n 6 > nul                                  
  92. echo Starting instance number 19...    
  93. Start "Movable19" /d %BranchPath% /MIN %PythonPath% %Executable% -a %auth% -u %username1% -p %password% -l "59.3439619409, 18.0330854159" -st 5 -ns -k %GAPI%                                      
  94.  
  95. ::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)
  96.  
  97. echo Waiting 30 minutes to restart all processes
  98. ping 127.0.0.1 -n 1801 > nul
  99.  
  100. goto Start
  101. pause
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement