forked from ocram444/EldenRL
-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.py
22 lines (19 loc) · 1.15 KB
/
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import train
if __name__ == '__main__':
'''User Settings'''
env_config = {
"PYTESSERACT_PATH": r'C:\Program Files\Tesseract-OCR\tesseract.exe', # Set the path to PyTesseract
"MONITOR": 1, #Set the monitor to use (1,2,3)
"DEBUG_MODE": False, #Renders the AI vision (pretty scuffed)
"GAME_MODE": "PVP", #PVP or PVE
"BOSS": 8, #1-6 for PVE (look at walkToBoss.py for boss names) | Is ignored for GAME_MODE PVP
"BOSS_HAS_SECOND_PHASE": False, #Set to True if the boss has a second phase (only for PVE)
"PLAYER_HP": 2140, #Set the player hp (used for hp bar detection)
"PLAYER_STAMINA": 118, #Set the player stamina (used for stamina bar detection)
"DESIRED_FPS": 24 #Set the desired fps (used for actions per second) (24 = 2.4 actions per second) #not implemented yet #My CPU (i9-13900k) can run the training at about 2.4SPS (steps per secons)
}
CREATE_NEW_MODEL = True
#Create a new model or resume training for an existing model
'''Start Training'''
print("💍 EldenRL 💍")
train.train(CREATE_NEW_MODEL, env_config)