Advertisement
Guest User

Untitled

a guest
Aug 24th, 2016
173
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 3.31 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=  
  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=  
  17. SET auth=  
  18. SET username=  
  19. SET username1=
  20. SET username2=
  21. SET username3=
  22. SET password=  
  23. SET thread=-t 5
  24. SET locale=JP  
  25.  
  26.  
  27. ::kill 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
  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. echo Starting instance number 1...
  37. Start "Movable1" /d %BranchPath% /MIN %PythonPath% %Executable% -a %auth% -u %username% -p %password% -l 45.071807,7.653914 -st 4 -H 0.0.0.0 -P 5000 -k %GAPI%                                    
  38. ping 127.0.0.1 -n 6 > nul
  39. echo Starting instance number 2... 
  40. Start "Movable2" /d %BranchPath% /MIN %PythonPath% %Executable% -a %auth% -u %username% -p %password% -l 45.0783982999,7.65468127779 -st 4 -ns -k %GAPI%                                    
  41. ping 127.0.0.1 -n 6 > nul
  42. echo Starting instance number 3...                                
  43. Start "Movable3" /d %BranchPath% /MIN %PythonPath% %Executable% -a %auth% -u %username% -p %password% -l 45.0746315468,7.66235373759 -st 4 -ns -k %GAPI%                                    
  44. ping 127.0.0.1 -n 6 > nul                              
  45. echo Starting instance number 4... 
  46. Start "Movable4" /d %BranchPath% /MIN %PythonPath% %Executable% -a %auth% -u %username% -p %password% -l 45.0680402942,7.66158562837 -st 4 -ns -k %GAPI%                                    
  47. ping 127.0.0.1 -n 6 > nul          
  48. echo Starting instance number 5...                    
  49. Start "Movable5" /d %BranchPath% /MIN %PythonPath% %Executable% -a %auth% -u %username% -p %password% -l 45.0652156874,7.65314689857 -st 4 -ns -k %GAPI%                                    
  50. ping 127.0.0.1 -n 6 > nul                          
  51. echo Starting instance number 6...    
  52. Start "Movable6" /d %BranchPath% /MIN %PythonPath% %Executable% -a %auth% -u %username2% -p %password% -l 45.0689818282,7.64547509387 -st 4 -ns -k %GAPI%                                    
  53. ping 127.0.0.1 -n 6 > nul                      
  54. echo Starting instance number 7...        
  55. Start "Movable7" /d %BranchPath% /MIN %PythonPath% %Executable% -a %auth% -u %username2% -p %password% -l 45.0755731879,7.6462413638 -st 4 -ns -k %GAPI%                                    
  56.  
  57.  
  58. ::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)  
  59.  
  60. echo Waiting 30 minutes to restart all processes  
  61. ping 127.0.0.1 -n 1801 > nul  
  62.  
  63. goto start  
  64. pause
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement