TwitchDropsMiner icon indicating copy to clipboard operation
TwitchDropsMiner copied to clipboard

Support for mining with multiple accounts

Open moligod opened this issue 3 years ago • 18 comments

Currently, only one account can be added image

moligod avatar Jul 15 '22 18:07 moligod

Hello o/

This has already been requested as a feature in: #22 - for now, it's a "maybe in the future" from my side. You can leave this issue open so that everyone else can see it's already been requested, but otherwise you can check out the linked issue for a "workaround" that'd allow you to use the miner with multiple accounts.

DevilXD avatar Jul 16 '22 17:07 DevilXD

So an interesting thing about the work around, for some reason whenever I have two instances of the program running it causes games to completely break, making it basically impossible to play a game with two programs open.

For Overwatch it causes the game to just be a black screen while other games like Fortnite the game just doesn't launch or launches without mouse detection.

The only arguments being used are --no-run-check and --tray however i've tried with just no run check and had the same issue.

iFireMonkey avatar Oct 25 '22 21:10 iFireMonkey

Hmm. This is actually a potential collision in play here, as the tray icon is registered and launched as a separate application window, but under the same name. This may cause two or more instances to "criss-cross" themselves on the tray icon access, which ends up causing issues with Windows itself, somehow.

Does this still happen if you just have two application windows open, but not put into the tray?

DevilXD avatar Oct 26 '22 05:10 DevilXD

Hey! Just went and tested this, after launching both copies under just --no-run-check it does appear that the issue still for whatever reason occurs.

I'm currently on Windows 11 Version 22H2 (Build 22623.870) and with only one open everything is fine however the moment I open the second one things such as video games start breaking and becoming unusable (mainly games from my experience), and once I close one of the two running copies everything starts working again like normal.

iFireMonkey avatar Oct 26 '22 11:10 iFireMonkey

That's really strange. I imagine it can be related to me using Python 3.8 to build this application, it's quite old by now, and Win11 is pretty new. You could try rebuilding the application with 3.10 to see if it'd help eliminate the issue. Please follow the instructions from here: https://github.com/DevilXD/TwitchDropsMiner#advanced-usage--build-instructions

For the Python installation, you can use the #1st point from here: https://github.com/DevilXD/TwitchDropsMiner/issues/12#issuecomment-1087831162 I recommend using the "All users" install with C:/Python310 as the installation path, to avoid issues.

DevilXD avatar Oct 26 '22 13:10 DevilXD

Hey! I've gone ahead and built the program using Python 3.10, sadly it appears this issue still occurs, I also tested closing one of the two running instances and just like the 3.8 build the issue stops.

Ironically enough however, by launching one instance VIA the pythonw main.py way and having one open through a normal .exe this issue doesn't occur at all

EDIT: Did some more quick testing and it appears that it does still cause issues even with one being open through python instead of an exe, I just got lucky on the first test

iFireMonkey avatar Oct 26 '22 13:10 iFireMonkey

I have no idea why this may be happening. Other than the tray icon, there's no operating system interaction beyond the GUI that's displayed. The aiohttp library handles all socket-related operations and there should be no problems with more than one instance of the library running at the same time either.

Unfortunately, I think I'm unable to help you with this issue. It sounds like something Windows 11 related specifically, which given it's current scarcity (I'm still on Windows 7, Win10 at work) I'm unable to even test it myself.

DevilXD avatar Oct 26 '22 18:10 DevilXD

Is there any way to open multiple programs or log in to multiple accounts?

lmde000111 avatar Feb 07 '23 22:02 lmde000111

I have had success with running multiple instances of this on linux (rpi3b+) while running python 3.11 with the source code.

My setup was: xvfb - For virtual display (i only have 1gb ram on rpi3b+) x11vnc - For viewing that virtual display systemd - For auto-starting the virtual display stuff and drops miners pyenv - To switch between python versions without installing them into system (i used python 3.11 for the drops miner) pyenv-virtualenv - Its not possible to use venv in pyenv so i had to use this

I was running 3 accounts, they ran ok, and i didn't get any rate limiting errors. Also i ran each account in a seperate folder with a copy of the source code to avoid conflicts.

Walter-o avatar Feb 19 '23 17:02 Walter-o

I manage to run 11 / 12 in same time with --no-run-check but after I was experiencing weird things, when I tried to open next one, I didn't show up, I couldn't open any folder.

headpunch avatar May 16 '23 21:05 headpunch