-
Notifications
You must be signed in to change notification settings - Fork 120
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MapObjects lack of pokemon and other issue #73
Comments
Need to increase radius of get map objects call to 1000 |
@jmangeja1 to 1000 !? Any idea about my 're-using' mapobjects issue? Looks like I can't re-use it at all, as it appears empty by then :S |
@dnsBlah I actually haven't used this Ali, but if you look at keyphacts phosphine you'll see they use 1000 as the radius |
Sorry my spelling is awful. I'm on an iPhone. Ali= API |
hmmm I will have a look in that later then |
I do see a limit of 100 there, going to give it a try :) Still an issue when re-using mapobjects like this:
getPokemonsNearby and getPokeFortsNearby look like this:
As far as I know, I'm not getting 'new' mapObjects, just trying to re-use the mapobjects i retrieved earlier. |
@dnsBlah. Yea, you can only scan a short distance for Pokemon so not many will show up. I recommend implementing a mapping tool and incorporating that in your program |
@jmangeja1 Yes I gathered that one :) Anyways yet I don't understand the second part I retrieve map objects and store it in a variable (aCells) If I print aCells after the pokemon loop |
@dnsBlah I'm learning N as I go with this app, but what do you mean there has been an update to pokemons nearby in the game? Regarding your second question as to why the Acells empty... Are you modifying acells as you loop through Pokemon? |
@dnsBlah let me read your source code posted above. |
@dnsBlah in function getnearbypokemons look at the line cells= getmapobjects(radius =10) that's clearing acells because radius is only 10 and its overwriting acells |
actually I don't think that should affect it |
could someone tell me where to place this libencrypt.so |
Place it in same directory as the python program that you are running or edit path to include it |
still it says no forts found.. what could be the problem? |
Did you download correct version? I actually don't use this Ali. I use keyphacts edited pgoapi |
i just downloaded it.. its the latest one |
Hi @jmangeja1 , thanks for your time, but I only do And if radius 10 is too low, I even put it on 9 now. As it gives me more often results without multiple loops and sleep times. pgoapi / kryphacts are using radius in meters I guess. |
@dnsBlah that line is called when you don't find any Pokemon so it might be clearing out the cells variable. I would test that. Take out that getmapcells call inside the get pokemonsnearby and see if that works. I think that's why your forts are empty |
@jmangeja1 is it possible by calling getmapobjects to return to a variable named cells inside pokemonsnearby function, to overwrite an older variable named aCells, which is even outside that function, and without mentioning it to be global at the beginning of pokemonsnearby function? Then it's time to stop doing python... Maybe its a bug/'unsolved feature' from proto's ? They work in 'memory/cache' ? Is getmapobjects stored in something like 'cache' instead of the variable I defined? |
I would google a little but on Python pass by object reference. This is the explanation of how Python passes arguments in functions. From what I can remember a cells should be unaffected once you reassign something in a function. So I'm not sure why you're cells are being cleared out. |
It's ok for now.. with my workaround with threshold delays |
Hi all,
is it just me or are there soo much less pokemons on the map (meaning wild_pokemon and catchable_pokemon)
Is there any way to find more pokemons?
Im already doing a scan in the walkto function, every 10th loop
Besides that, to minimize the mapobject calls I decided to store the results for a while
When I stored the result(s) in a global var, and later on print then out again, i only see 3 empty cells for some reason. Just to be clear, I did not do another request.
When I start the bot, check map objects and stored them globally
Use the global results to filter forts and go there one by one
when arrived I use the same globals to filter pokemons. guess what, its empty?!!
The text was updated successfully, but these errors were encountered: