swipex / pokemate Goto Github PK
View Code? Open in Web Editor NEWAutomated PokemonGo Application
License: GNU General Public License v3.0
Automated PokemonGo Application
License: GNU General Public License v3.0
Is there a way to completely turn off evolving? It seems that changing automatic-evolving to false does not stop all evolving.
Changed location, and getting this error for some reason in this new location:
EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x00000000640e51eb, pid=9660, tid=0x00000000000024b8
JRE version: Java(TM) SE Runtime Environment (8.0_102-b14) (build 1.8.0_102-b14)
Java VM: Java HotSpot(TM) 64-Bit Server VM (25.102-b14 mixed mode windows-amd64 compressed oops)
Problematic frame:
C [jfxwebkit.dll+0xd651eb]
Don't know why it's happening now... Nothing changed from other version, except location...
Hello all. Excellent work guys.
I have being trying to compile the code, but there are some errors.
errors
Is there a way to turn off evolving?
Thanks
The Sidebar does doesent load any Pokémons.
Everytime it refreshes the UI this error pops up in the console:
Exception in thread "JavaFX Application Thread" java.lang.NullPointerException
at com.pokegoapi.api.inventory.CandyJar.getCandies(CandyJar.java:80)
at com.pokegoapi.api.pokemon.Pokemon.getCandy(Pokemon.java:150)
at dekk.pw.pokemate.PokeMateUI.lambda$null$5(PokeMateUI.java:162)
at com.sun.javafx.application.PlatformImpl.lambda$null$173(PlatformImpl.java:295)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.javafx.application.PlatformImpl.lambda$runLater$174(PlatformImpl.java:294)
at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:95)
at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
at com.sun.glass.ui.win.WinApplication.lambda$null$148(WinApplication.java:191)
at java.lang.Thread.run(Unknown Source)
I tried it with a different account and it loads fine on that one.
As stated in this comment, we should try to handle issues with configs.
Okay I am doing something wrong.
import com.pokegoapi.api.inventory.Bag;
context.getApi().getBag()
I can't find that import, it says the symbol does not exist. I checked the PokemonGo Class and there is not even a method getBag()
. Do I need to manually pull the newest PokemonGoAPI by myself?
I can't find this import
import com.pokegoapi.api.pokemon.EggPokemon;
Do I have to checkout the PokeAPI to get this working or is the snapshot dependency enough?
The automation crashed about 2 hours in and spammed these.
The automation is running out of pokeballs rather quickly. How do I set it up to use pokeballs, great balls and ultraballs in that order?
Still attempts to catch pokemon when out of pokeballs.
Cache locations of pokestops, and go to them in this case?
java.lang.NullPointerException
at com.sun.prism.d3d.D3DTexture.getContext(D3DTexture.java:84)
at com.sun.prism.d3d.D3DTexture.update(D3DTexture.java:207)
at com.sun.prism.d3d.D3DTexture.update(D3DTexture.java:151)
at com.sun.prism.impl.BaseContext.flushMask(BaseContext.java:109)
at com.sun.prism.impl.BaseContext.drawQuads(BaseContext.java:118)
at com.sun.prism.impl.VertexBuffer.flush(VertexBuffer.java:98)
at com.sun.prism.impl.BaseContext.flushVertexBuffer(BaseContext.java:101)
at com.sun.prism.impl.ps.BaseShaderContext.setRenderTarget(BaseShaderContext.java:746)
at com.sun.prism.impl.BaseContext.setRenderTarget(BaseContext.java:131)
at com.sun.prism.impl.BaseGraphics.(BaseGraphics.java:105)
at com.sun.prism.impl.ps.BaseShaderGraphics.(BaseShaderGraphics.java:86)
at com.sun.prism.d3d.D3DGraphics.(D3DGraphics.java:42)
at com.sun.prism.d3d.D3DGraphics.create(D3DGraphics.java:65)
at com.sun.prism.d3d.D3DSwapChain.createGraphics(D3DSwapChain.java:131)
at com.sun.javafx.tk.quantum.PresentingPainter.run(PresentingPainter.java:87)
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
at java.util.concurrent.FutureTask.runAndReset(Unknown Source)
at com.sun.javafx.tk.RenderJob.run(RenderJob.java:58)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at com.sun.javafx.tk.quantum.QuantumRenderer$PipelineRunnable.run(QuantumRenderer.java:125)
at java.lang.Thread.run(Unknown Source)
Does not crash the program. Just removes the pokemon UI and the lines drawn on the map
Hi. The bot seems to catch all the pokemon around when first started up, but then doesn't find a single one as it traverses its path. Also, tagging pokestops are not awarding XP. I am not softbanned.
The drop_items option in the config is IGNORED!
This has caused me to lose a lot of items :/, will PR in a sec (PR complete and ready to merge).
Hi Tim,
Nice to see this getting attention! With the influx of PRs you're getting, I would suggest looking into something like checkstyle alongside a Travis/CI integration to ensure consistent formatting as I've noticed lots of inconsistent PRs (tabs vs spaces, no spaces between braces and keywords, etc.). Checkstyle has plugins for IntelliJ/Eclipse and adding Travis into the mix would automate the testing of PRs for unformatted code.
I can help you get it setup if you're interested.
I'm not sure if it's a problem with the API, or if there's some other method that needs calling after loot()
All my pokestop tagging is like the one below, they don't increase XP. Just in case, I also checked beforehand that my items' bag was not full:
Profile update : 43300 XP on LVL 9 81,11 % to LVL 10
Profile update : 43300 XP on LVL 9 81,11 % to LVL 10
Tagged pokestop [+100xp]
Profile update : 43300 XP on LVL 9 81,11 % to LVL 10
Profile update : 43300 XP on LVL 9 81,11 % to LVL 10
when I run the .jar file, it successfully logs me in, and then it hits an exception
Exception in thread "main" java.lang.NullPointerException
at sun.misc.FloatingDecimal.readJavaFormatString(Unknown Source)
at sun.misc.FloatingDecimal.parseDouble(Unknown Source)
at dekk.pw.pokemate.Pokemate.(Pokemate.java:43)
at dekk.pw.pokemate.Pokemate.main(Pokemate.java.55)
I know that my config.properties is set up properly (already looked up in other issues to make sure that was fine), but I'm not sure what this is
Is it possible to make it so it always keeps at least 1 type of each Pokemon and only transfers the lowest one?
I signed in and it literally transferred like 50 Pokemon right off the back including some HIGH CP ones that were 1k+ just because they were doubles
Also save candy if you don't own the 3rd evolve etc?
https://i.imgur.com/2d2gVSP.png
When you get this error the map stops working/updating/moving but it looks like the bot continues
My pokemon storage is almost always full, a button for transferring unneeded ones right from the app would be nice (it takes forever to transfer them in the app).
Are you seeing the NFE w/ null value in Context.java:45?
If the user does not have the next form in their pokedex, the evolution should not proceed until this is the case.
IE [squirtle, wartortle, 50 candies] should not evolve the squirtle, it should wait for 100 to evolve the wartortle.
Is there a way to make the field in which the bot travels to a smaller area?
Say, to cover a smaller area with a few choice pokestops?
the config file needs an editor/generator because it is getting to be too large and too many factors.
We essentially can use a ListView and have key | value at the most basic level.
Hello, how do I activate an API? I created a browser key at the google site and have no idea how you are supposed to actually activate it.
i got the release and put it in a folder with the properties file set up and nothing happens when i double click the jar
Right now it just either indefinitely retries or spams error messages
Hi, could you supply instructions for compiling the .jar from the updated source? I keep getting issues when I try to build the project using gradlew :\
With this newest release, I get an error as soon as I try to catch a Pkmn:
A fatal error has been detected by the Java Runtime Environment:
EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x00000000642f51eb, pid=5072, tid=0x0000000000001c28
JRE version: Java(TM) SE Runtime Environment (8.0_102-b14) (build 1.8.0_102-b14)
Java VM: Java HotSpot(TM) 64-Bit Server VM (25.102-b14 mixed mode windows-amd64 compressed oops)
Problematic frame:
C [jfxwebkit.dll+0xd651eb]
Failed to write core dump. Minidumps are not enabled by default on client versions of Windows
If you would like to submit a bug report, please visit:
http://bugreport.java.com/bugreport/crash.jsp
The crash happened outside the Java Virtual Machine in native code.
See problematic frame for where to report the bug.
I can post the rest of the log, if needed.
So this can avoid the trainner to teleport to the location if he was far from the initial position.
Use icons for player/pokestop/gym/pokemon
Draw directions that player will walk on.
Show pokemon that are near/recently caught.
Display exp/ features in an InfoWindow that can update.
Smooth out the updating if possible (is currently hackfix)
So I clones the repo 10 minutes ago with the updated src/main folder, edited the config file and ran java -jar Pokemate.jar dekk.pw.pokemate.PokeMateUI
It has launch java -jar Pokemate.jar dekk.pw.pokemate.PokeMateUI
But it's just showing the command prompt updating with the actions, it appears that the UI hasn't launched. I've attached a screenshot of the folder layout.
My bot is set to use the preferred pokeball as the regular pokeball, but I have run out of them. So it just tries to keep catching pokemon with a pokeball and always fails.
Hello,
I am getting an error when trying to run the latest version, 0.1.5 was perfectly fine.
Exception in thread "JavaFX Application Thread" java.lang.NullPointerException
at com.pokegoapi.api.inventory.CandyJar.getCandies(CandyJar.java:80)
at com.pokegoapi.api.pokemon.Pokemon.getCandy(Pokemon.java:150)
at dekk.pw.pokemate.PokeMateUI.lambda$null$5(PokeMateUI.java:162)
at com.sun.javafx.application.PlatformImpl.lambda$null$173(PlatformImpl.java:295)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.javafx.application.PlatformImpl.lambda$runLater$174(PlatformImpl.java:294)
at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:95)
Hi, i don't know why but even if i log into with my PTC account it gaves me in the ui a different account with diffrent name, and it crashes.
(https://github.com/SwipeX/PokeMate/files/383449/hs_err_pid916.txt)
I'm getting:
INFO: Request: https://maps.googleapis.com/maps/api/directions/json?key=**************************************0&mode=walking&origin=533771067.00000000%2C-2729010.00000000&destination=533771066.97144836%2C-2729009.99476281
com.google.maps.errors.RequestDeniedException: This API project is not authorized to use this API. Please ensure this API is activated in the Google Developers
Console: https://console.developers.google.com/apis/api/directions_backend?project=_
at com.google.maps.errors.ApiException.from(ApiException.java:50)
at com.google.maps.DirectionsApi$Response.getError(DirectionsApi.java:75
)
at com.google.maps.internal.OkHttpPendingResult.parseResponse(OkHttpPend
ingResult.java:270)
at com.google.maps.internal.OkHttpPendingResult.await(OkHttpPendingResul
t.java:167)
at com.google.maps.PendingResultBase.await(PendingResultBase.java:56)
at dekk.pw.pokemate.tasks.Navigate.queryDirections(Navigate.java:61)
at dekk.pw.pokemate.tasks.Navigate.populateDirections(Navigate.java:83)
at dekk.pw.pokemate.tasks.Navigate.(Navigate.java:31)
at dekk.pw.pokemate.tasks.TaskController.(TaskController.java:20)
at dekk.pw.pokemate.PokeMate.(PokeMate.java:49)
at dekk.pw.pokemate.PokeMate.main(PokeMate.java:55)
Jul 25, 2016 9:34:15 PM com.google.maps.OkHttpRequestHandler handle
Could you advise exactly what type of API Key is required for the walking module? I issued a Google Maps Javascript Server SPI key, but this doesn't seem to be working. Which of these do I need?:
Google Maps APIs
Google Maps Android API
Google Maps SDK for iOS
Google Maps JavaScript API
Google Places API for Android
Google Places API for iOS
Google Maps Roads API
Google Static Maps API
Google Street View Image API
Google Maps Embed API
Google Places API Web Service
Google Maps Geocoding API
Google Maps Directions API
Google Maps Distance Matrix API
Google Maps Geolocation API
Google Maps Elevation API
Google Maps Time Zone API
And do they need to be Server or Browser enabled?
Other than that, AWESOME work SwipeX :D
How do I get a map that i can see myself? I cant figure it out based on the directions given. (I have no coding experience).
Also the bot seems to walk some where and just stop then crash.
eggs don't hatch until you actually login the game, I guess its because they need to be clicked ?
happened 3 times now, as soon as I login as normal the egg auto hatches
I get the following exception thread. App is still working, but I don't think this exception should be happening
Profile update : 540595 XP on LVL 23 84.48 % to LVL 24 - Gained 980 XP - XP/H: 22431 - Runtime: 00:02:37
Exception in thread "JavaFX Application Thread" java.lang.NullPointerException
at com.pokegoapi.api.inventory.CandyJar.getCandies(CandyJar.java:80)
at com.pokegoapi.api.pokemon.Pokemon.getCandy(Pokemon.java:150)
at dekk.pw.pokemate.PokeMateUI.lambda$null$5(PokeMateUI.java:162)
at com.sun.javafx.application.PlatformImpl.lambda$null$173(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.javafx.application.PlatformImpl.lambda$runLater$174(Unknown Source)
at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(Unknown Source)
at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
at com.sun.glass.ui.win.WinApplication.lambda$null$148(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Exception in thread "JavaFX Application Thread" java.lang.NullPointerException
at com.pokegoapi.api.inventory.CandyJar.getCandies(CandyJar.java:80)
at com.pokegoapi.api.pokemon.Pokemon.getCandy(Pokemon.java:150)
at dekk.pw.pokemate.PokeMateUI.lambda$null$5(PokeMateUI.java:162)
at com.sun.javafx.application.PlatformImpl.lambda$null$173(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.javafx.application.PlatformImpl.lambda$runLater$174(Unknown Source)
at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(Unknown Source)
at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
at com.sun.glass.ui.win.WinApplication.lambda$null$148(Unknown Source)
at java.lang.Thread.run(Unknown Source)
You know what could be AWESOME? If PokeMate could calculate the IV of every pokemon caught, and if its perfect (or >85%) keep it 👍
Ever better if you could just set a white-list of "perfect" pokemons to keep (some are just sausage meat even when they are perfect)
https://www.reddit.com/r/TheSilphRoad/comments/4tupg5/eli5_what_is_iv_and_what_is_perfect/
BTW:
Transferring 1/2 EKANS lvl 49
Being a lvl3 account when the pokemon was caught...I don't think that Ekans could be so hi-level. Maybe something's wrong there ;)
The config is picking and choosing pokemon based on their IV's so it should show their IV's in the GUI and the columns could be a bit smaller for stats.
Where do I paste my api key to? I'm new to this stuff.
This has been happening since I cloned the latest master (didn't test previous versions).
Exception in thread "JavaFX Application Thread" netscape.javascript.JSException: Invalid function reference
at com.sun.webkit.dom.JSObject.callImpl(Native Method)
at com.sun.webkit.dom.JSObject.call(JSObject.java:98)
at com.lynden.gmapsfx.javascript.JavascriptObject.invokeJavascript(JavascriptObject.java:230)
at com.lynden.gmapsfx.javascript.object.InfoWindow.setContent(InfoWindow.java:67)
at dekk.pw.pokemate.PokeMateUI.lambda$null$5(PokeMateUI.java:156)
at com.sun.javafx.application.PlatformImpl.lambda$null$173(PlatformImpl.java:295)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.javafx.application.PlatformImpl.lambda$runLater$174(PlatformImpl.java:294)
at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:95)
at com.sun.glass.ui.gtk.GtkApplication._runLoop(Native Method)
at com.sun.glass.ui.gtk.GtkApplication.lambda$null$49(GtkApplication.java:139)
at java.lang.Thread.run(Thread.java:745)
Please add different colors when printing captures or releases of Pokemon so we can identify them more easily. Also, displaying the stats of the Pokemon when capturing them would be helpful.
Love the UI update, but I'm still not getting any experience from tagging pokestops. I'm using a pretty small area with a lot of pokestops... is it possible it's attempting to tag stops before they refresh?
Fix your shit yo!
This is spammed in the console after about an hour or two of use. No idea where it is coming from.
So I type in "java -jar Pokemate.jar dekk.pw.pokemate.PokeMateUI" and get this Error:
Exception in thread "main" java.lang.NullPointerException
at dekk.pw.pokemate.PokeMate.main(PokeMate.java:36)
Whats wrong?
I have my API Key in just fine, and 0 issues with previous version, anyone else experience this?
Jul 24, 2016 9:08:36 PM com.google.maps.internal.OkHttpPendingResult retry
INFO: Retrying request. Retry #1
Jul 24, 2016 9:08:36 PM com.google.maps.internal.OkHttpPendingResult retry
INFO: Retrying request. Retry #2
GoogleMapView.mapResized: triggering resize event
Jul 24, 2016 9:08:37 PM com.google.maps.internal.OkHttpPendingResult retry
INFO: Retrying request. Retry #3
Jul 24, 2016 9:08:38 PM com.google.maps.internal.OkHttpPendingResult retry
INFO: Retrying request. Retry #4
Jul 24, 2016 9:08:40 PM com.google.maps.internal.OkHttpPendingResult retry
INFO: Retrying request. Retry #5
Jul 24, 2016 9:08:43 PM com.google.maps.internal.OkHttpPendingResult retry
INFO: Retrying request. Retry #6
Jul 24, 2016 9:08:45 PM com.google.maps.internal.OkHttpPendingResult retry
INFO: Retrying request. Retry #7
Jul 24, 2016 9:08:50 PM com.google.maps.internal.OkHttpPendingResult retry
INFO: Retrying request. Retry #8
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.