A short project testing if ChatGPT can play Honkai: Star Rail (HSR). Running code as admin is a MUST.
- Clone this repository from the repo or using this url:
https://github.com/aiejvn/HSR-GPT-Project.git. - Download tesseract.
- Create a
.envfile with your GPT API key inside. It should be in the same folder asmain.py. cdinto this project and runpip install -r requirements.txt.- Open a window of Honkai : Star Rail and start a combat.
- Run
action_controller.pyas admin (required so that the program can make input).
-
action_controllerqueries screen_reader for whose turn it is currently ("NOBODY" if it is the enemy's turn) & team health. -
screen_readeropens the game (assuming you are running it) and reads necessary info from game. Returns this toaction_controller. -
action_controllerfeeds this information and internal tracker of other necessary information (i.e. skill points) into main - gets back what move to take. -
action_controllertranslates this move into key presses. Inputs this into game and waits some time for the animations to finish.
- Phantylia the Undying (Difficulty V)
- "Harmonious Choir" The Great Septimus & "Embryo of Philosophy" Sunday (Difficulty V)
- Shadow of "Feixiao" (Difficulty V)