-
Member
Originally Posted by
TmanD6
Is there a way to disable pokestops? It would make the script run faster, morely interest in pokmon than pokestop
Originally Posted by
xCry0x
Code:
if cell.Fort:
for Fort in cell.Fort:
if Fort.Enabled == False:
if Fort.GymPoints:
gyms.append([Fort.Team, Fort.Latitude, Fort.Longitude])
elif Fort.FortType:
pokestops.append([Fort.Latitude, Fort.Longitude])
The if fort.enable == True argument -- change it to be false as above. That will disable it.
Already answered
-
Post Thanks / Like - 1 Thanks
TmanD6 (1 members gave Thanks to xCry0x for this useful post)
-
Active Member
Originally Posted by
xCry0x
Already answered
what file is this is in? and can i edit it in notepad?
-
Member
Not trying to be rude, but do you always execute scripts on your system without the faintest clue of what they do or how they work?
It is the example.py file and you can edit it in any text editor.. same file being edited in the past 16 pages of comments.
-
Member
Originally Posted by
canynonman
any way to change the default port from 5000 to something else? Already in use on my system...
ps: thanks for this awesome hack!
change last line of example to this:
app.run(debug=True, host='0.0.0.0', port=5000)
-
Member
this works like a charm. ****ing amazing. haha, this is such a huge advatange, omg!
-
Active Member
Originally Posted by
xCry0x
Not trying to be rude, but do you always execute scripts on your system without the faintest clue of what they do or how they work?
It is the example.py file and you can edit it in any text editor.. same file being edited in the past 16 pages of comments.
Reason I asked is I searched the example.py script and did not find any corresponding lines. So I assumed it was in the pokemon_pb2.pyc (which can not be edited in notepad). I am not a python programmer and have no knowledge of how to open up a .pyc file though I'm assuming I could learn fairly easily and recompile said script however I would be a monkey with a hammer at that point and the slightest screw up of a keystroke would cause a lot more work than I'm willing to do today.
I took someone's modified example.py so it is entirely possible they removed gyms and pokestops already since I have never seen a gym or pokestop on the map, however I wanted to ensure they were not loading in the background so I had to confirm those lines were indeed in example.py and the modified example.py someone was kind enough to post earlier in the thread had already been optimized.
-
Member
Got it - it is line 391
The only difference between what I posted and the default is the True/False toggle.
I just toggled it false incase, for some reason, I wanted to display them in the future.
-
Member
Originally Posted by
Detk0rd
where did you find the example.py? what folder?
-
Member
Originally Posted by
derfington
having same issue, step, then 3 or 4 wrong user pass eorrs, then a second step, then a bunch of errors, then another step etc
Anyone else has experienced this? I figure this is the reason why my map looks half way loaded. I contsantly get wrong username/password after about 25% completion. Is it just server issues?
-
Post Thanks / Like - 1 Thanks
goku340 (1 members gave Thanks to twicedead for this useful post)
-
Member
I'm getting this too.
Says" login_ptc: could not decode JSON from" than "Wrong username/Password"
-
Member
so whats some rare pokemon i should look out for?
-
Member
I am having a strange error that says "No module named flask". I installed all the requirements but I still can't run it.
-
Member
Originally Posted by
AJones
I am having a strange error that says "No module named flask". I installed all the requirements but I still can't run it.
Check C:\Python27\Lib\site-packages (or whereever you installed python
Should have a set of folders for flask there.
-
Member
Originally Posted by
xCry0x
Check C:\Python27\Lib\site-packages (or whereever you installed python
Should have a set of folders for flask there.
Yep, I have them there. I figured out the issue, I have multiple Python versions on my computer. When I run example.py it automatically picks another version that doesn't have the modules installed.
-
Active Member
why does this not Work with Google account, any idea what makes the difference? Is there a way to change your acc into a pkmn trainer acc; I am lvl 20.... (I did consider creating a trainer acc when i started out, bummer lol)