Skip to content
This repository has been archived by the owner on Nov 22, 2021. It is now read-only.

tmarenko/mff_auto

Repository files navigation

mff_auto

Game bot for Marvel Future Fight game. Compatible with 7.5.1 version.

FAQ

Q: What this bot can do?

A: mff_auto can play almost all game modes: World Bosses, Alliance Battle, Co-op missions, Dimension missions, Timeline battles, Legendary battles, World Boss Invasions, Epic Quests, Danger Room, Giant Boss Raid, Shadowland.

Also it can enable Autoplay++ feature anywhere and do your daily routines.

Q: Which Android emulators are supported?

A: NoxPlayer (up to 7.0.1.0) and BlueStacks.

Q: Why are you suggesting to use NoxPlayer?

A: NoxPlayer has shortcut to force close applications (requires to reset game's state). Shifter's biometric farming is available only using NoxPlayer!

Video example

Video footage of all game modes running by mff_auto: https://youtu.be/QcgZcAwBL-I

Installation

  • Install NoxPlayer (or BlueStacks) and then install and run Marvel Future Fight.

  • Set NoxPlayer (or BlueStacks) screen resolution at least 1280x720. If you encounter problems then try 1920x1080.

  • Set in Marvel Future Fight setting GRAPHICS to at least Medium. Lesser settings will lead to blurried text.

    In the same setting's menu turn off this notifications: Mission Navigation Auto Popup and Future Pass Point Acquired.

  • Download last release: Link to releases

  • Run start.bat

Usage

Setup window

On first start you will see Setup window. Follow the instructions in the window:

  • You need to select one of opened emulators. Name of the emulator will be stored in settings/gui/game.json.

    You can change it manually after or delete settings/gui/game.json if you want to run Setup again.

  • (Only for NoxPlayer) Then you will be asked questions. Read instructions and select Yes or No.

    At the end you will be asked to click at MFF app in the window. Position of app icon will be stored in settings/gui/game.json.

    You need to restart NoxPlayer and mff_auto to apply changes.

    This will allow mff_auto to close and start the game.

Main window

main_window

  • Game screen shows you game's image at 6-7 fps.

  • Missions Queue allows you to add, edit or remove available missions in mff_auto.

    Run button will run all checked missions from top to bottom.

  • Setting allows you to edit available settings.

  • Quick Start allows you to quick run a few modes without adding them to mission queue.

  • Autoplay++ enables casting skills in the battles (also skips cutscenes).

  • Debug Log at bottom shows you messages about current running code.

    You can also check it in logs\debug.log file.

Development

At current state Marvel Future Fight bot is at beta stage.

  • Timeline battle do not check if your team is available for battle. Please setup team manually.
  • Alliance and World Boss battles do not check if your characters can do these modes. Make sure that you have strong characters.
  • Shadowland requires a big roaster of powerful heroes. Make sure that you have at least 60 to 90 T2 characters and uniforms for them.

Contribution

Feel free to contribute. Don't forget about license.

Running from source code

  • Install Python 3.6.5
  • Install Tesseract OCR 3.05.02 and add path to Tesseract to your PATH environment.
  • Download source code and install all requirements: pip install -r requirements.txt
  • Copy tessdata folder to your Tesseract folder.
  • Add lib folder to your PYTHONPATH or mark it as lib source.

Check example.py for examples of running any modes.

Capture video for debugging

from lib.emulators.nox_player import NoxPlayer
from lib.game.game import Game
from lib.video_capture import EmulatorCapture

nox = NoxPlayer("NoxPlayer")
game = Game(nox)
with EmulatorCapture(nox) as recorder:
    # video file is in `logs` folder
    # ... do your stuff here ...
    recorder.pause()
       # pause recording
    recorder.resume()

Building release package from source code

  • Run build.py