QQ: 715586983
Discord: https://discord.com/invite/7cEvvfcd
Latest Tutorial on Bilibili Homepage
- Emulator: Set the resolution to 1280*720 pixels, 240 DPI. Enable adb debugging. Note the adb debugging port of the emulator.
- If you are using Mumu emulator, please disable background activity running at the bottom of the settings.
- BA Game Settings:
- Game: Turn off skill animations;
- Graphics: Set to low resolution; Turn off black bars at the top and bottom during battles,
- In the café, manually adjust the camera angle to the highest and stack all furniture on the right side of the screen if possible.
- Download and extract the approximately 100MB zip file to any folder.
- Rename the example.json file in the BAAH_CONFIGS folder to any other name, such as task.json.
- Double-click BAAH_GUI.exe to open the interface.
- After modifying the task content of a configuration file in the interface, click
Save and Execute
in the bottom right corner of the interface.
- Ensure your Python environment version is >= 3.10.
- Ensure adb.exe is available on your computer, and later modify the ADB_PATH in the configuration file to point to adb.exe on your computer.
- Execute
git clone https://github.com/sanmusen214/BAAH.git
in the command line. - Execute
cd BAAH
to enter the project directory. - Execute
pip install -r requirements.txt
to install the required dependencies. - Execute
python jsoneditor.py
to run the GUI, and modify the path to adb.exe at the bottom of the GUI. - Execute
python main.py config.json
to start executing BAAH according to the config.json configuration.
- Ensure you have a docker environment
- You can run in the following ways:
- Local compilation through
git clone https://github.com/sanmusen214/BAAH.git
and then executedocker compose up -d
. (If you don't have a suitable network environment, you can uncomment thedockerfile: Dockerfile.CN
line in thedocker-compose.yml
file) - Get the image built by Github Action and execute
docker run -d --name BAAH -p 8000:8000 ghcr.io/sanmusen214/baah:latest
, or use the followingdocker-compose.yml
file, executedocker compose up -d
- Local compilation through
services:
baah:
image: ghcr.io/sanmusen214/baah:latest
container_name: BAAH
volumes:
- ./DATA/CONFIGS:/app/BAAH/DATA/CONFIGS
- ./BAAH_CONFIGS:/app/BAAH/BAAH_CONFIGS
environment:
- TZ=Asia/Shanghai
- HOST=0.0.0.0
- PORT=8000
# - TOKEN=YOUR_TOKEN
ports:
- 8000:8000
Download BAAH1.x.xx_update.zip on Github releases or by clicking the update button in the GUI, then extract all contents to overwrite the existing files in the BAAH folder.
Or just double click UPDATE.exe
to update BAAH.
Please:
- Check if the issue is already listed in the FAQs.
- Check whether the BAAH is the latest version. You can update BAAH through the update button in the GUI.
- Describe your game server, BAAH version.
- Describe your purpose.
- Describe the behavior of BAAH before and after the error occurred or provide a recording.
- Provide logs of BAAH.exe before and after the error occurred.
Please check if the adb port number in your configuration file matches the adb port number of the emulator.
Please verify if your server selection in the configuration file is correct.
Click the three horizontal lines in the upper right corner of the emulator, open problem detection, scroll to the bottom, and the adb port number will be displayed.
You can click the using serial number
box on the right side of the adb port input box when connecting to the LDPlayer emulator, then enter emulator-5554
, or try emulator-5556
, emulator-5558
, etc., until the connection is successful.
Click Multi-player on the right side of the emulator to find out the current emulator's ID number. The port number is: 5555 + ID * 2.
Please check the "If anti-censorship is enabled, please check this option" box when selecting the server.
This issue usually occurs in CN server official BAs. Unbind the swipe trigger distance from the server in the configuration file and change 40 to 60.
Switch to different configuration files in the GUI interface, then click Save and Run in the bottom right corner separately.
BAAH can be run through the command line, just cd to the BAAH folder, and execute BAAH.exe your_config.json
. By combining the Windows Task Scheduler, you can run BAAH automatically at a specific time.
If you are using a bat command or Windows Task Scheduler, make sure to cd to the BAAH folder, then execute BAAH.exe config1.json
followed by BAAH.exe config2.json
.
BAAH is compatible with ALAS and MAA, but:
- Please do not attempt to run BAAH and ALAS or MAA on the same multi-opened emulator/same emulator port simultaneously, as they will compete for screenshots. Please set up multiple multi-opened emulators.
- Please be careful not to let the automation scripts restart the adb service, BAAH will not try to shut down the adb daemon, you should start BAAH after other automation tools.
Please set the BAAH folder as an exception in your antivirus software, then extract it again. BAAH is completely open source.