Code Monkey home page Code Monkey logo

Comments (15)

falko100 avatar falko100 commented on May 30, 2024

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

from pokemongobot.

leadboots5 avatar leadboots5 commented on May 30, 2024

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.

from pokemongobot.

CptJackieSparrow avatar CptJackieSparrow commented on May 30, 2024

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?

from pokemongobot.

 avatar commented on May 30, 2024

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

from pokemongobot.

CptJackieSparrow avatar CptJackieSparrow commented on May 30, 2024

THIS HELPED THANK YOU @Dr4mEdo

from pokemongobot.

CptJackieSparrow avatar CptJackieSparrow commented on May 30, 2024

💃 @Dr4mEdo

from pokemongobot.

CptJackieSparrow avatar CptJackieSparrow commented on May 30, 2024

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

from pokemongobot.

WithoutWout avatar WithoutWout commented on May 30, 2024

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 :)

from pokemongobot.

apexjnr avatar apexjnr commented on May 30, 2024

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

from pokemongobot.

CptJackieSparrow avatar CptJackieSparrow commented on May 30, 2024

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.

from pokemongobot.

apexjnr avatar apexjnr commented on May 30, 2024

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

from pokemongobot.

CptJackieSparrow avatar CptJackieSparrow commented on May 30, 2024

@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

from pokemongobot.

CptJackieSparrow avatar CptJackieSparrow commented on May 30, 2024

@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

from pokemongobot.

jabbink avatar jabbink commented on May 30, 2024

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

from pokemongobot.

CptJackieSparrow avatar CptJackieSparrow commented on May 30, 2024

thank you guys for your awesome support!

from pokemongobot.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.