problems when tracking multiple users
Expected Behavior
Clicking on Info - shows user info about user currently in focus Clicking on Items - shows items of user currently in focus .. same for Pokemon and Pokedex
Actual Behavior
Clicking on Info - always shows the first username, shows info of a random user Clicking on Items - always shows the first username, shows items of a random user .. same for Pokemon and Pokedex
All item names are undefined, some item counts are undefined
Steps to Reproduce
Start SimpleHTTPServer and go to localhost:8000
Other Information
OS: Ubuntu 14.04 Git Commit: c7ab5b03cb93b5393bebbc383545a50e8519e57a
I'm using wchill/refactor branch and I had similar behavior with multiple users. A few minutes ago though, I made a commit to my own build of wchill/refactor: https://github.com/BobbyWibowo/OpenPoGoWeb/commit/7a9af54e4fa74da6cfc89363bc16d090b59ce053 (I actually intended to use this build personally, but I made a git in case someone wants to merge some of my customization here). You can either try to test my build or try to merge that commit to the latest revision of wchill/refactor branch. Please report once you have tested it. It's working fine on my end with 2 users though.
EDIT: Moved my forked-repo to its own repo (https://github.com/BobbyWibowo/OpenPoGoWeb2)
I've also noticed that after 3 people, the 4th starts creating issues. Not bot tracking for one.
This suggests how to implement multi-user functionality using PokemonGo-Bot from the dev branch: https://github.com/cronyp/botbash
Theres a simple Solution for that. If you're using 2 Bots on the same server, the map needs access to the bots config.
so for example:
Your Bot 1 is here: /usr/share/pokebot1/ Your Bot 2 is here: /usr/share/pokebot2/
You're using the webinterface from the first Bot so:
/usr/share/pokebot1/web/
in /usr/share/pokebot1/web there are 3 json files inventory- youraccount.json /userdata- youraccount.json / location-youraccount.json or something.
The map is accessing those 3 files. so if you have defined 2 accounts the bot is searching for the 3 files of the 2nd bot in the same directory but they are in the web folder ob /usr/share/pokebot2/web.
so do: ln -sf /usr/share/pokebot2/web/*-youraccount.json /usr/share/pokebot1/web/
then ur creating a hotlink and tell the bot that the files are in the other folder and it works fine.
@e0xify I haven't tried the bot on a Linux device, but I'm assuming you can't simply run the bot multiple times, but each with their own config?