j0sh77
New Member
- Joined
- Jan 12, 2017
- Messages
- 12
Hello everyone!
I just started using Pokefarmer on January 4th with a new account. I've been running it about 8 hours a day since then with a walking pace, looting Pokestops, and catching Pokemon. I'm running this in a college town in Michigan.
Within this time, I've caught 4,757, hatched 48, and reached level 26.
Here's a spreadsheet showing the data.
If you'd like to count your own results, feel free to use this Java code to count caught/hatched. I may add more fields to analyze in the future, but for now this is what I have!
I just started using Pokefarmer on January 4th with a new account. I've been running it about 8 hours a day since then with a walking pace, looting Pokestops, and catching Pokemon. I'm running this in a college town in Michigan.
Within this time, I've caught 4,757, hatched 48, and reached level 26.
Here's a spreadsheet showing the data.
If you'd like to count your own results, feel free to use this Java code to count caught/hatched. I may add more fields to analyze in the future, but for now this is what I have!
Code:
import java.io.BufferedReader;
import java.io.File;
import java.io.FileReader;
import java.io.IOException;
import java.util.Hashtable;
public class Counter {
public static void main(String[] args) throws IOException {
Hashtable<String, Integer> caught = new Hashtable<String, Integer>();
Hashtable<String, Integer> hatched = new Hashtable<String, Integer>();
File f = new File("FULL-PATH-TO-THIS-FOLDER/PokeFarmer 1.0.166/Logs");
File[] files = f.listFiles();
for (File file : files) {
//filter directories and non .txt
if(file.isDirectory() || !file.getCanonicalPath().contains(".txt"))continue;
try(BufferedReader br = new BufferedReader(new FileReader(file))) {
for(String line; (line = br.readLine()) != null; ) {
//caught
if(line.contains("Trying to catch Pokemon")){
String pokemon = line.substring(101, line.indexOf(" CP("));
addValue(caught, pokemon);
}
//hatched
if(line.contains("hatched from egg")){
String pokemon = line.substring(85, line.indexOf("</b></font>"));
addValue(hatched, pokemon);
}
}
}
}
//print results
System.out.println("CAUGHT:");
for (String key : caught.keySet()) {
System.out.println(key + "\t" + caught.get(key));
}
System.out.println("\n\n\nHATCHED:");
for (String key : hatched.keySet()) {
System.out.println(key + "\t" + hatched.get(key));
}
}
//add values to hashtables
static void addValue(Hashtable<String, Integer> map, String word) {
if (map.containsKey(word)) {
map.put(word, map.get(word) + 1);
} else {
map.put(word, 1);
}
}
}