PokemonGoBot icon indicating copy to clipboard operation
PokemonGoBot copied to clipboard

Still not working on Mac

Open CptJackieSparrow opened this issue 10 years ago • 15 comments

Exception in thread "main" java.io.FileNotFoundException: config.properties (No such file or directory) at java.io.FileInputStream.open0(Native Method) at java.io.FileInputStream.open(FileInputStream.java:195) at java.io.FileInputStream.(FileInputStream.java:138) at java.io.FileInputStream.(FileInputStream.java:93) at ink.abb.pogo.scraper.MainKt.main(Main.kt:90)

I have config.properties file ready, in the same folder with jar file. still getting this error. Updated Java Enviroment, and JDK too

CptJackieSparrow avatar Jul 21 '16 18:07 CptJackieSparrow

Are you sure you don't have a typo ? Works perfectly here.

falko100 avatar Jul 21 '16 18:07 falko100

You most likely have it as a txt file. Right click the file. Go to 'Get Info'. Under 'Name & Extension' you'll likely see 'config.properties.txt' Delete the '.txt' and then save/keep your change.

leadboots5 avatar Jul 21 '16 19:07 leadboots5

nope i did it already.. I dunno i'm certainly doing something wrong, PC is not catching pokemon either.. You guys locate jar file on desktop?

CptJackieSparrow avatar Jul 21 '16 20:07 CptJackieSparrow

Did you try to locate your folder in the terminal cd "your folder"

ghost avatar Jul 21 '16 20:07 ghost

THIS HELPED THANK YOU @Dr4mEdo

CptJackieSparrow avatar Jul 21 '16 21:07 CptJackieSparrow

:dancer: @Dr4mEdo

CptJackieSparrow avatar Jul 21 '16 21:07 CptJackieSparrow

Guys I have one last request. I'd like to have a bash script for this one, features will be: 1st) End process after 8 minutes of farming/botting 2nd) Start process 3rd) exectue "cd [location of my pokebot folder]" 4th)execute "java -jar [jar folder name] 5th) loop, i have no coding skills, so i'll be glad if someone can create it for me if it's not time consuming

CptJackieSparrow avatar Jul 21 '16 21:07 CptJackieSparrow

I've put together this script which seems to do somewhat what I think you're looking for, although not in the order you asked. It makes the process timeout after 480 seconds, which is 8 minutes and then restarts again. To make this work more easily as a one click to run program, you could put it in a .command file. This file need it's permissions changed by running chmod a+x [.command file location here]

function timeout() { perl -e 'alarm shift; exec @ARGV' "$@"; }
cd [location of my pokebot folder]
while true
do
timeout 480 java -jar pogo.scraper-all-0.2.1.jar
done

I've tested it with 15 seconds timeout and it seemed to do the trick just fine. Hope it works for you as well. For many, including me, this isn't useful as restarting makes users using Google to login needing to authenticate each time through google.com/devices... Oh well :)

WithoutWout avatar Jul 21 '16 22:07 WithoutWout

@CptJackieSparrow what did you have to do to get it working?

apexjnr avatar Jul 22 '16 00:07 apexjnr

open terminal write "cd" hit space the drag and drop the folder your jar app in (not jar app, te folder), hit enter then write "java -jar" hit space them drag and drop jar app, hit enter.

CptJackieSparrow avatar Jul 22 '16 06:07 CptJackieSparrow

@CptJackieSparrow i should've removed this, i just used the absolute path to the file from my user

apexjnr avatar Jul 22 '16 06:07 apexjnr

@withoutwout thanks brother. I'll have a look at it when i go home, lets see if a code dumb like me can make it work

CptJackieSparrow avatar Jul 22 '16 08:07 CptJackieSparrow

@WithoutWout

Exception in thread "Thread-16" com.pokegoapi.exceptions.RemoteServerException: com.google.protobuf.InvalidProtocolBufferException: Contents of buffer are null at com.pokegoapi.api.map.Map.getMapObjects(Map.java:175) at com.pokegoapi.api.map.Map.getMapObjects(Map.java:147) at com.pokegoapi.api.map.Map.getMapObjects(Map.java:93) at ink.abb.pogo.scraper.MainKt$main$$inlined$fixedRateTimer$lambda$lambda$1.invoke(Main.kt:166) at ink.abb.pogo.scraper.MainKt$main$$inlined$fixedRateTimer$lambda$lambda$1.invoke(Main.kt) at kotlin.concurrent.ThreadsKt$thread$thread$1.run(Thread.kt:18) Caused by: com.google.protobuf.InvalidProtocolBufferException: Contents of buffer are null at com.pokegoapi.main.ServerRequest.getData(ServerRequest.java:31) at com.pokegoapi.api.map.Map.getMapObjects(Map.java:173) ... 5 more Exception in thread "Thread-15" java.lang.IndexOutOfBoundsException: Index: 0, Size: 0 at java.util.ArrayList.rangeCheck(ArrayList.java:653) at java.util.ArrayList.get(ArrayList.java:429) at com.pokegoapi.main.RequestHandler.sendServerRequests(RequestHandler.java:104) at com.pokegoapi.api.map.Map.getMapObjects(Map.java:170) at com.pokegoapi.api.map.Map.getMapObjects(Map.java:147) at com.pokegoapi.api.map.Map.getMapObjects(Map.java:93) at com.pokegoapi.api.map.Map.getMapObjects(Map.java:83) at com.pokegoapi.api.map.Map.getRetainedMapObject(Map.java:51) at com.pokegoapi.api.map.Map.getCatchablePokemon(Map.java:64) at ink.abb.pogo.scraper.MainKt.processMapObjects(Main.kt:216) at ink.abb.pogo.scraper.MainKt$main$$inlined$fixedRateTimer$lambda$lambda$1.invoke(Main.kt:167) at ink.abb.pogo.scraper.MainKt$main$$inlined$fixedRateTimer$lambda$lambda$1.invoke(Main.kt) at kotlin.concurrent.ThreadsKt$thread$thread$1.run(Thread.kt:18)

here's the error i'm getting now

CptJackieSparrow avatar Jul 22 '16 09:07 CptJackieSparrow

That error means, as the first line indicates in an unreadable way, that the remote server broke down, aka Niantics servers are broken.

jabbink avatar Jul 22 '16 10:07 jabbink

thank you guys for your awesome support!

CptJackieSparrow avatar Jul 22 '16 11:07 CptJackieSparrow