guimatheus92 / Bot_SpaceCrypto

This is an automation (bot) to play the game SpaceCrypto, it automatically log in, send ships to fight, refresh the game, new map, etc.
14 stars 6 forks source link

Multiaccounts not working? #8

Open Blackfoxx88 opened 2 years ago

Blackfoxx88 commented 2 years ago

Hi, Single account is working great, after i changed the images.

However, i wanted to use Multi account.

After enabling Multi account, and doing all the instructions regarding Flags on brave.

The bot reads the profile names. But says ot has 0 profiles.

guimatheus92 commented 2 years ago

Hi, Single account is working great, after i changed the images.

However, i wanted to use Multi account.

After enabling Multi account, and doing all the instructions regarding Flags on brave.

The bot reads the profile names. But says ot has 0 profiles.

This is quite strange, because I know people that are using the multiaccount feature (in a game perspective, you could earn less).

By let's try to fix this. Can you please create a new file called multi.py and paste the following code in it and run?

Code:

import pandas as pd
from pywinauto import Desktop

# Get all windows opens
windows = Desktop(backend="uia").windows()
window = [w.window_text() for w in windows]

# Create dataframe
df_windows = pd.DataFrame(window, columns =['WebBrowser'])

# Export to csv
df_windows.to_csv('window.csv', index=False)

After you run this code, it will create a file called window.csv, send this file in here so I can check the result please.

Blackfoxx88 commented 2 years ago
applications
Taskbar
C:\Users\TOBY\AppData\Local\Programs\Python\Python39\python.exe
BOT_SPGmain
C:\Windows\system32\cmd.exe
Space Crypto - Brave – Mardie_SPG
Bombcrypto - Brave – Bomb Crypto 1
Bombcrypto - Brave – Bomb Crypto 2
Space Crypto - Brave – Toby_SPG

geral - Discord
Search · spacecrypto - Brave – Personal
config.yaml - Bot_SpaceCrypto-main - Visual Studio Code
Program Manager
guimatheus92 commented 2 years ago
applications
Taskbar
C:\Users\TOBY\AppData\Local\Programs\Python\Python39\python.exe
BOT_SPGmain
C:\Windows\system32\cmd.exe
Space Crypto - Brave – Mardie_SPG
Bombcrypto - Brave – Bomb Crypto 1
Bombcrypto - Brave – Bomb Crypto 2
Space Crypto - Brave – Toby_SPG

geral - Discord
Search · spacecrypto - Brave – Personal
config.yaml - Bot_SpaceCrypto-main - Visual Studio Code
Program Manager

I don't know what character is this – from your answer, try to the query updated above and share the result with me again. I noticed that your profile name from Bombcrypto at least has blanks, but I don't if the account from SpaceCrypto it's correct or not, but either way in the guide How to enable multiaccount feature on Bot I'm telling try to keep the name clean without blanks or nulls in the second topic.

So let's try by going to your brave and change all names that has spaces/blanks, and after that go to your config.yaml file and set the names all over again, for example:

  multiaccount_names:
    - 'BCOIN_1'
    - 'BCOIN_2'
    - 'SPG_1'
Blackfoxx88 commented 2 years ago

Still having same issues.

image image image

guimatheus92 commented 2 years ago

Still having same issues.

image image image

You did correct on Brave and config.yaml file, the problem now is trying to get the name from your Brave application. That's why I asked you to run query above again. What is your SO language? It must be english or portuguese.