Skip to content

Full Auto

Florian Kostenzer edited this page Oct 2, 2018 · 5 revisions

Full Auto

RDRM-PGSS Full-Auto controls everything with one command.

Installation

Clone the Repo:

git clone https://github.com/123FLO321/RealDeviceRaidMap --recurse-submodules

Installing requirements

Install homebrew (Only on MacOS)

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

Install Python 3.6 (Any Host)

Download and install the latest Python 3.6 version from here or your favourite package manager.

Install tesseract (Any Host)

Download and install the latest Tesseract version (for MacOS: brew install tesseract)

Create a Virtual Environment (Any Host) (optional but recommended)

  • Create a venv using this command: python3.6 -m venv path/to/create/venv (example: python3.6 -m venv ~/venv_pgss)
  • Activate the venv using this command: source path/to/venv/bin/activate (example: source ~/venv_pgss/bin/activate
  • Make sure to always activate the venv when running python commands later on

Install Python Requirements (Any Host)

Go into the PGSS folder and install the requirements: pip3.6 install -r requirements.txt -U (Comment out mysqlclient or psycopg2 and psycopg2-binary depending on your DB-type)

Enable Xcode CLI Tools (Only on MacOS)

  • Install Xcode CLI Tools if the are not installed allready: xcode-select --install
  • Enable the TOols: sudo xcode-select -s /Applications/Xcode.app/Contents/Developer

Install idevicelocation (Only on MacOS)

Run the following commands (might take a while)

brew install --HEAD usbmuxd
brew install --HEAD libimobiledevice
brew install libimobiledevice
brew install libzip

export PATH=/usr/local/opt/openssl/bin:$PATH
export LD_LIBRARY_PATH=/usr/local/opt/openssl/lib:$LD_LIBRARY_PATH
export CPATH=/usr/local/opt/openssl/include:$CPATH
export LIBRARY_PATH=/usr/local/opt/openssl/lib:$LIBRARY_PATH
export PKG_CONFIG_PATH=/usr/local/opt/openssl/lib/pkgconfig

git clone https://github.com/123FLO321/idevicelocation
cd idevicelocation
./autogen.sh
make
sudo make install
cd ..
rm -rf idevicelocation

brew uninstall libimobiledevice
brew install --HEAD libimobiledevice
brew link --overwrite libimobiledevice
sudo chmod -R 777 /var/db/lockdown/

Configure Full-Auto

  • Go into the PGSS folder
  • Copy config.example.py to config.py
  • Edit config.py

Prepare Xcode

TODO

SQL

Run the following SQL to update the PGSS and Monocle tables:

MySQL:

ALTER TABLE pokemon_images
ADD COLUMN  form smallint(6) DEFAULT NULL;

ALTER TABLE raids
ADD COLUMN  form smallint(6) DEFAULT NULL;

PostgreSQL:

ALTER TABLE pokemon_images
ADD COLUMN form smallint DEFAULT NULL;

ALTER TABLE raids
ADD COLUMN form smallint DEFAULT NULL;

Important Config (need to change)

  • DB_ENGINE: Configure your DB connection.
  • SCAN_AREA: Set a Polygon (or MultiPolygon) where Full-Auto should scan raids inside. (make sure to import Polygon or Multipolygon like in the example in the config)
  • DEVICE_LIST: Enter all Identifiers of the Devices you want to use. (Get them in: Xcode -> Window -> Devices and Emulators -> Device Properties -> Identifier)
  • SCREENSHOT_DELAYS The interval (in seconds) to capture screenshots. Array that matches DEVICE_LIST order.
  • TELEPORT_DELAYS: The time (in seconds) to stay at coords in order to capture screenshots. Array that matches DEVICE_LIST order.

You can leave all other settings the default values (for now)

Run Full-Auto

python3.6 raidscan.py (or python3.6 raidscan.py config2 to use another config)

Still need help? Check #faq or ask in #help in our Discord