Skip to content
LmeSzinc edited this page Jul 2, 2024 · 5 revisions

Installation Tutorial

Auto-installers are available only on Windows, manual installation is required on Mac OS and Linux.

Download

Download the latest auto-installer on Github Releases, don't download the source code.

After the download is complete, unzip the auto-installer and double-click to open src.exe inside.

Install

At first start, you will enter the installation page.

  1. Choose your language.
  2. Select Global under Update.
  3. (Optional) Import settings from old SRC.
  4. Click the Install button.

install_1

Wait for SRC to start.

If you encounter problems here, please take a complete screenshot and report to the developers on Github issues or Discord.

install_2

Usage

Install an emulator

Install an emulator and install Honkai: StarRail on it.

Why use emulators? If you run a bot on the desktop client, game windows must stay at front. I guess you don't wanna baby-sit there without being able to move the mouse and keyboard while running the bot, so use the emulators.

How's the performance? Lme's 8700k+1080ti using MuMu12 emulator with graphic settings very high gets 40 fps. It shouldn't be a problem to run with maximum graphic settings and 60 fps if you have newer PC specs.

Enter the settings of your emulator:

  1. Set display mode to Landscape.
  2. Set resolution to1280x720.
emulator_1

If you are using BlueStacks or LD Player, enable ADB too.

BlueStacks_ADB

My game died when downloading resources

Restart game client and the remaining resources will continue to be downloaded.

My game died as soon as I opened it

This is because the game client reads the device information and refuses to run on low-end devices. Just change it to a newer phone model in the emulator settings. All major emulators will have such settings.

emulator_3

Enter SRC

  1. Select your first SRC instance.
  2. Select SRC Settings on sidebar.

use_1

Configure SRC

  1. Read the help text, configure Serial, Game Sever, In-game Text Language.

use_2

Enable Tasks

  1. On the sidebar, select the task you would like to run.
  2. Enable task.
  3. Configure task settings.

Tips: You can have multiple tasks enabled, SRC will schedule them automatically.

use_3

Start Running

  1. Select Overview on the sidebar
  2. Your tasks enabled will be shown on scheduler queue.
  3. Click the Start button and scheduler will start running.

Emulators and games are auto launched

With the correct settings, SRC can automatically launch emulators and games, and you don't need to manually launch emulator and login to game before running. Auto emulator launch currently only supports MuMu family and Nox family.

Keep running at background

Keep scheduler running, SRC will auto login and empty stamina once stamina recovers. In order to save resources, it's recommended to set SRC Settings - Optimization Settings - When Task Queue is Empty to Close Game.

use_4

Manual Installation Tutorial

Note: Manual installation tutorial is suitable for users with programming knowledge. If you don’t know what python, git, and adb are, please use auto-installers.

Prepare Environment

Deploy

Clone repository.

git clone https://github.com/LmeSzinc/StarRailCopilot

Enter project directory.

cd StarRailCopilot

Create a python 3.10.10 environment using conda. Let's say the new environment is named src.

Note: We don't maintain dependencies of lower or higher python versions, 3.10.10 is recommended.

conda create -n src python==3.10.10

Activate the environment just created.

conda activate src

After activating a virtual environment, you should have a (src) prefix on your console like this:

(src) D:\StarRailCopilot>

If you don't have a prefix or the prefix is (base), you failed to activate the environment.

If you are using Windows, install requirements with:

pip install -r requirements.txt

If you are using Mac or Linux, install requirements with:

pip install -r requirements-in.txt

Prepare env

  1. Download ADB and add it to path.
  2. Install Git and add it to path.

Start Using

At the environment just activated, launch the GUI backend. (running on port 22367 by default)

python gui.py

Visit 127.0.0.1:22367 in browser.

For atx-agent related errors after starting SRC, please refer here to compile the version needed. For example, set GOARCH=arm64 when compiling on an M series Mac.

After successful compilation, use ADB to push atx-agent to the /data/local/tmp/ directory of the simulator and restart SRC. The issue should be solved after atx-agent successfully installed on the emulator.