This script is still in the testing phase and may cause some strange issues.
Hitting a wall while navigating? The path is wrong? Complaining about the slow pace? The map recording function has been added in beta-2.7.
You can now use the record_v7.2.py tool to record the path, and confirm that you are happy with the route XD
Found a BUG? Want to give feedback on the code issues? Join the Technical & Blowwater Group:QQ Group|Telegram群组
At present, this script only supports scaling 150%, screen resolution 2560x1440, and is now being greatly changed to solve the problem of screen rotation adaptation as soon as possible
This software is an external tool designed to automate playing Honkai Impact 3 - Star Rail. It is designed to interact with the game only through existing user interfaces and comply with relevant laws and regulations. The package aims to provide simplified and user-friendly interaction with the game, and it is not intended to disrupt game balance in any way or provide any unfair advantages. The package will not modify any game files or game code in any way.
This software is open source, free of charge, and for learning and exchange purposes only. The developer team has the final right to interpret this project. All problems arising from the use of this software are not related to this project and the developer team. If you encounter a merchant using this software to practice on your behalf and charging for it, it may be the cost of equipment and time, etc. The problems and consequences arising from this software have nothing to do with it.
Please note that based on MiHoYo's FairPlay statement for Honkai Impact 3 - Star Rail:
"It is strictly forbidden to use hack tools, accelerators, scripts or other third-party tools that undermine game fairness."
"Once discovered, miHoYo (hereinafter referred to as "we") will take measures such as deducting illegal gains - freezing game accounts - permanent bans based on the severity and frequency of violations."
- Install Python 3.11 (other versions may have many problems when installing dependencies)
- Enter
pip install -r requirements.txt
to install dependencies
- Enter
- Confirm that the game language is Simplified Chinese, key configuration is default, and sensitivity is default value.
- If your computer resolution is 2560*1440, please adjust the game resolution to 1920*1080 (windowed);
if your computer resolution is 1920*1080, please adjust the game resolution to 1920*1080 (full screen). - The battle is automatic in the game, and ensure that your team has enough strength to push small monsters flatly.
(If you enable auto-battle persistence, change "auto_battle_persistence" in config.json to 1) - It is recommended not to track anything on the map, and the character's initial position is better in the observation car
- Use a long-range attack character as the starter character. Currently, it is recommended to use March 7 with more stable running.
- Open Honkai_Star_Rail.py and wait for the program to automatically run to the "map number" entry
- If you do not know what the map number is or if you want to start overrunning, enter "0" and press Enter.
- During the five-second waiting period before starting, click back to the game screen to ensure that no menus or interfaces are open and wait for the program to run.
- During the program running, do not move the keyboard and mouse, otherwise it may cause deviation or collision problems.
- If using a simulator, please use a resolution of 1280*720p. The default is the Nox simulator. For other simulators, please connect to the adb first. (The simulator may swallow mobile phone actions.)
- If any problem occurs during the running process, or if you do not want to continue running and want to return to the main menu, use Ctrl+C and silently recite Long live Aileshia!
{
"real_width": 0, (actual width)
"auto_battle_persistence": 0, (whether to enable auto-battle in the game, fill in 1 to enable)
"real_height": 0, (actual length)
"github_proxy": "", (github proxy)
"rawgithub_proxy": "", (github proxy)
"webhook_url": "",
"start": true, (is it the first time running the script)
"picture_version": "20230515205738",
"star_version": "20230515220742",
"level": "INFO",
"adb": "127.0.0.1:62001",(62001 is the adb port)
"adb_path": "picture\\adb\\adb",(adb file path)
"proxies": ""
}
Script Recording Thank you@AlisaCat
-
Move with WASD. X is to enter combat. The left mouse button is to hit obstacles. F key is interact. Moving perspective with the mouse is forbidden. Only the direction keys left and right can be used to move perspective during recording. (During script execution, the left and right direction keys will be mapped = mouse movement.) During recording, you can only press one effective key on the keyboard (that is, multiple keys cannot be pressed at the same time). The script will only record the time when the key is pressed and the movement of the perspective, and will not record the pause time. (You can slowly record one key at a time to ensure accuracy). F9 stops recording and saves.
-
After completion, an output (time).json file will be generated. Please rename it and replace the map json you want to modify, and save the screenshot of the teleportation point in picture. (Then it can be submitted to the map branch or submitted to the management.)
-
Blank space filling in the map json example:
{ "name": "Uraura-1", (The map json name is 1-1_1.json) "author": "Starry-Wind", (Author name. The second author cannot overwrite the name of the first author.) "start": [ (Identify the image of the map where the teleportation starts, move the mouse to the middle of the image, and press the button) {"map": 1}, (Press the m key to open the map) {"picture\\orientation_1.jpg": 1.5}, (After recognizing the picture of orientation_1.jpg, move the mouse to the middle of the picture and press the button) {"picture\\map_1.jpg": 2}, (See the specific image, usually the map text named "Uraura") {"picture\\map_1_point_1.jpg": 1.5}, (The picture of the first teleportation point) {"picture\\transfer.jpg": 1.5} (The picture of the word "Teleportation") ] }
- Image recognition is a screenshot of the game screen, so there should be no overlap.
- Support maps Space Station "Black Tower", Yaliluo VI, and Fairy Ship "Luo Fu"
- If you encounter wall collision problems in the map, you can help update the map file submission here
- Please use March 7 to run the map to get the best experience.
- If you encounter any problem, please make sure you are using the latest version and check the document
⭐ If you like it, give it a star~ ⭐
- The simulated universe is under development.
- GUI development
- Additional features will be added, such as treasure hunting, field exploration, and litter picking.
Issue & Report a Bug | Fork & Open a New PR
All kinds of contributions including enhancements, new features, code improvements, issues and bugs reporting are welcome.
- The
main
branch of StarRailAssistant is the stable version, and all development is done in themain-beta
branch. So if you want to open a Pull Request, your commits need to be submitted to themain-beta
branch.
Thanks to the following contributors for their contributions to this project.