Skip to content

CLI tool written in Python that will help you to "help" others level their GBs in browser game Forge of Empires.

Notifications You must be signed in to change notification settings

foe-mmr/FOE-CLI-GB-COST-CALCULATOR

Repository files navigation

FOE Command Line GB Cost Calculator

Screenshot

File foe_snipe.py contains Python script that can be used to calculate if GB is profitable for sniping

  1. First Clone or download repository.

Script will check for pip, pychrome, tabulate and will try to install them if they are not found but if that fails you need to do steps 2, 3 manually.

  1. Install (if not already installed) pip for Python 2 with:
sudo apt install python-pip
  1. To install pychrome and tabulate and mttkinter, simply:
pip install pychrome
pip install tabulate
pip install mttkinter
  1. Setup Chrome with debugging (chrome version >= 59):

If on Linux or MacOS you can use:

python open_chrome.py

that will open new chrome session with debuggind mode and you will not have to close all chrome windows. (Tested only on MacOS but shopuld work on Linux too)

google-chrome --remote-debugging-port=9222

Or for OSX:

/Applications/Google\ Chrome\ 2.app/Contents/MacOS/Google\ Chrome  --remote-debugging-port=9222

No other Chrome windows should be open before. Chrome window should be opened automatically after running this command.

  1. In another terminal run python script:
python foe_snipe.py
  1. open FOE in browser and if everythings ok then you should see something like this in terminal:
ARC bonus:  90 %
Open GB to use calculator

after you have opened some GB:

#    Cost    Difference
---  ------  ------------
1    0       0
2    73      5
3    0       0
4    0       0
5    0       0
Remaining FPs to level:  75
INVEST:  73
REWARD:  5

Its totally safe to use as only server request responses are read, theres no way for Inno to know that you are using this.

How to install and run Python on Windows

  1. download Python 2.7 installer https://www.python.org/downloads/windows/
  2. Install Python
  3. Open Command line: Start menu -> Run and type cmd.
  4. Install pip: for Python 2.7.9+ type:
  C:\python27\python.exe py -3 -m ensurepip
  1. install pychrome and tabulate:
  C:\Python27\Scripts\pip.exe install pychrome

and

  C:\Python27\Scripts\pip.exe install tabulate
  1. Open Chrome with debugging:
start chrome --remote-debugging-port=9222
  1. Type this to run script:
  C:\python27\python.exe C:\Users\YOUR-USER-NAME\Downloads\FOE-CLI-GB-COST-CALCULATOR-master\foe_snipe.py

change "YOUR-USER-NAME" to your actuall username or change path if you have downloaded it elsewhere

About

CLI tool written in Python that will help you to "help" others level their GBs in browser game Forge of Empires.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages