Closed MestreLion closed 1 year ago
C:\Users\nikol\AppData\Roaming\Python\Python311\Scripts>hackmatch-bot [2023-09-07 10:47:42 CRITIC] main: Could not find the game config folder: C:\Users\nikol\OneDrive\Dokumente\My Games\EXAPUNKS*\config.cfg --> the error seems to be in "get_steam_user_id(config["steam_user_name"])" <-- when i enter my steam id here the script works again
After fixing the Steam ID i get the following errors n windowed mode: [2023-09-07 10:51:43 WARNIN] gui : Unsupported game window size: (1372, 797), must be one of ((1920, 1080), (1920, 1200), (1600, 900), (1366, 768)) <-- two Monitors, running on Ultrawide [2023-09-07 10:53:06 WARNIN] gui : Unsupported game window size: (1926, 1109), must be one of ((1920, 1080), (1920, 1200), (1600, 900), (1366, 768)) <-- two Monitors, running on Ultrawide [2023-09-07 10:53:46 WARNIN] gui : Unsupported game window size: (1606, 929), must be one of ((1920, 1080), (1920, 1200), (1600, 900), (1366, 768)) <-- Running only on second Monitor
After switching to fullscreen on second monitor (even while main monitor is running) i get the msg: Game window resized: (1920, 1080)
But after that nothing happens?! When i get into hackmatch i waited ~1min in the starting screen and after that i started a new match and waited until the first match failed. But both times the Bot didn't activate.
Don't know if i'm the problem or if there is still something missing in the script :D
ok the bot doesn't recognize that the game is running: C:\Users\nikol\AppData\Roaming\Python\Python311\Scripts>hackmatch-bot Read game settings: C:\Users\nikol\OneDrive\Dokumente\My Games\EXAPUNKS*\config.cfg Launching game and waiting 60 seconds for game window Launch game by Steam URI: steam://rungameid/716490 [2023-09-07 11:11:48 CRITIC] main: Game did not start after 60 seconds
This happens when:
EDIT1: Just tested it with my second monitor only --> same result
EDIT2: The TimeOut only occurred when i don't resize the window: C:\Users\nikol\AppData\Roaming\Python\Python311\Scripts>hackmatch-bot Read game settings: C:\Users\nikol\OneDrive\Dokumente\My Games\EXAPUNKS*\config.cfg Launching game and waiting 60 seconds for game window Launch game by Steam URI: steam://rungameid/716490 Read game settings: C:\Users\nikol\OneDrive\Dokumente\My Games\EXAPUNKS*\config.cfg Game window: <Win32Window left="0", top="0", width="2566", height="1469", title="EXAPUNKS"> [2023-09-07 11:21:19 WARNIN] gui : Unsupported game window size: (2566, 1469), must be one of ((1920, 1080), (1920, 1200), (1600, 900), (1366, 768)) Game window resized: (1920, 1080) [2023-09-07 11:24:43 CRITIC] main: Game window closed [error]
In this case the game started on my mainscreen and i moved it to my second one. After getting back to fullscreen on 2nd monitor i got no error why i needed to close the game.
EDIT3: Started it with --verbose (probably read the end first):
C:\Users\nikol\AppData\Roaming\Python\Python311\Scripts>hackmatch-bot --verbose
[2023-09-07 11:30:37 DEBUG ] main: Namespace(loglevel=10, benchmark=False, watch=False, timeout=850, string=None, path=None, debug=True)
[2023-09-07 11:30:37 INFO ] game: Read game settings: C:\Users\nikol\OneDrive\Dokumente\My Games\EXAPUNKS\76561197960902680\config.cfg
[2023-09-07 11:30:37 DEBUG ] game: Parsed game settings: {'DisplayIndex': '1', 'EnableCrtDistortion': 'False', 'EnableHistograms': 'True', 'EnableLeaderboards': 'True', 'EnableMultiplayer': 'True', 'FilterProfanity': 'False', 'ForceLowQualityTextures': 'False', 'Fullscreen': 'True', 'GifOutputDirectory': '', 'KeyMapping.Down': '115', 'KeyMapping.Left': '97', 'KeyMapping.Right': '100', 'KeyMapping.Start': '13', 'KeyMapping.Up': '119', 'KeyMapping.X': '106', 'KeyMapping.Y': '107', 'KeyMapping.Z': '108', 'Language': 'English', 'OS.Windows.UseOpenGL': 'False', 'Resolution.Height': '1080', 'Resolution.Width': '1920', 'ShowTenthPercentile': 'False', 'ShowTopPercentile': 'False', 'UseLargeFonts': 'False', 'UseSoftwareCursor': 'False', 'Volume.Music': '29', 'Volume.Sound': '25', 'Volume.Voice': '26'}
[2023-09-07 11:30:37 INFO ] main: Launching game and waiting 60 seconds for game window
[2023-09-07 11:30:37 INFO ] game: Launch game by Steam URI: steam://rungameid/716490
[2023-09-07 11:31:20 INFO ] game: Read game settings: C:\Users\nikol\OneDrive\Dokumente\My Games\EXAPUNKS\76561197960902680\config.cfg
[2023-09-07 11:31:20 DEBUG ] game: Parsed game settings: {'DisplayIndex': '1', 'EnableCrtDistortion': 'False', 'EnableHistograms': 'True', 'EnableLeaderboards': 'True', 'EnableMultiplayer': 'True', 'FilterProfanity': 'False', 'ForceLowQualityTextures': 'False', 'Fullscreen': 'False', 'GifOutputDirectory': '', 'KeyMapping.Down': '115', 'KeyMapping.Left': '97', 'KeyMapping.Right': '100', 'KeyMapping.Start': '13', 'KeyMapping.Up': '119', 'KeyMapping.X': '106', 'KeyMapping.Y': '107', 'KeyMapping.Z': '108', 'Language': 'English', 'OS.Windows.UseOpenGL': 'False', 'Resolution.Height': '900', 'Resolution.Width': '1600', 'ShowTenthPercentile': 'False', 'ShowTopPercentile': 'False', 'UseLargeFonts': 'False', 'UseSoftwareCursor': 'False', 'Volume.Music': '29', 'Volume.Sound': '25', 'Volume.Voice': '26'}
[2023-09-07 11:31:20 DEBUG ] gui : Keymap: {
Like the times before i started the game on my 2nd monitor in fullscreen. After that i switched to windowed (1600900) and switched back to fullscreen (19001200) As you can see the bot is taking screenshots and while beeing in windowed mode the coordinates change. but after switching back to fullscreen it's always the same
Looks like the 3 issues were solved, and now we advanced to other 2 distinct ones I can see:
Not able to read your Steam User ID. As you worked around that, I'll investigate it later
Multi-monitor setup is completely messed up. Let's tackle this one first:
Fast, play safe ti make it work: disconnect the 2nd monitor, set the 1st one to 1920x1080, and the game to windowed 1600x900. That's the most tested and trouble free setup
always run with --verbose
if it does not work, open a new issue, and paste the output using triple backticks, so it is displayed without any formatting, like this:
Bla black bla
Hagdk jdjcj jdjfj jdjcj
Sheuchdishsh
The triple backticks must be in its own line, one for opening the block, then your output, then another line of triple backticks (```
)
@Aratietur care to test if everything is ok now? Use the git version, not the Pypi one... (
pip install git+https://github.com/MestreLion/hackmatch.git
). If all works now I'll release an updated version on Pypi