ethanriverpage / monopolygobot

Bot for the mobile game Monopoly GO!, written in Python utilizing BlueStacks
GNU General Public License v3.0
9 stars 1 forks source link

it ceeps clicking everywhere. especialli at the bankheis icon. do you run it at a specific resolution>? desktop and player? #2

Open Breuk22 opened 1 year ago

Breuk22 commented 1 year ago

and i get this message: haning on bankheist

atokcullens commented 1 year ago

im using it and keep crash when to load pop up.. any suggestion?

Breuk22 commented 1 year ago

what php version do you use? Also the money, rolls etc in the header of your screen isn't ritght it says 0, money, 0 rolls etc

image

atokcullens commented 1 year ago

i don't know which php.. im just downloading the files and install using the guide lines.. when to start the program.. the pop up appear and auto close..

atokcullens commented 1 year ago

https://github.com/ethanriverpage/monopolygobot/assets/142563299/a9b7116e-3fdd-4725-979f-86fad3b57fd6

see its close automatically

ethanriverpage commented 1 year ago

@atokcullens You must specify the name of your BlueStacks instance in the .env file in the project directory. See here: https://github.com/ethanriverpage/monopolygobot#environment-variables. Also ensure to have your window in the foreground.

@Breuk22 @atokcullens The bot works best when maximized to it's full resolution while maintaining it's aspect ratio (this means no black bars but stretched to full vertical resolution). Try also moving it to the left side of the screen and see if that makes any difference. I haven't had much time to test it's adaptability to different window sizes and resolutions.

Here are my BlueStacks instance settings, for reference: HD-MultiInstanceManager_yEqDF52cyc HD-MultiInstanceManager_yEqDF52cyc

@Breuk22 The bank heist handler will hang due to needing to use a BlueStacks macro for interaction with the game client, instead of using the script itself to do it. I have attached the BlueStacks macro I use, but you might have to remake them for your game client. You can import these through the macro manager of BlueStacks, by default AutoRoll is mapped to Num0 and BankHeist to Num1.

BankHeist.json AutoRoll.json

atokcullens commented 1 year ago

@atokcullens You must specify the name of your BlueStacks instance in the .env file in the project directory. See here: https://github.com/ethanriverpage/monopolygobot#environment-variables. Also ensure to have your window in the foreground.

@Breuk22 @atokcullens The bot works best when maximized to it's full resolution while maintaining it's aspect ratio (this means no black bars but stretched to full vertical resolution). Try also moving it to the left side of the screen and see if that makes any difference. I haven't had much time to test it's adaptability to different window sizes and resolutions.

Here are my BlueStacks instance settings, for reference: HD-MultiInstanceManager_yEqDF52cyc HD-MultiInstanceManager_yEqDF52cyc

@Breuk22 The bank heist handler will hang due to needing to use a BlueStacks macro for interaction with the game client, instead of using the script itself to do it. I have attached the BlueStacks macro I use, but you might have to remake them for your game client. You can import these through the macro manager of BlueStacks, by default AutoRoll is mapped to Num0 and BankHeist to Num1.

BankHeist.json AutoRoll.json

hi,,, thanks for reply..

but still i can't open it.. 1sy im using normal bot from lewisgibson.. it work and can open.. 2nd im installing this bot it won't start.. anything im messing up?? Screenshot (13) Screenshot (14)

Breuk22 commented 1 year ago

first of all : thank you for your quick responses and help! I really admire that. I did what you told me and imported the macros. (are there more?) it freezes now on caching the images: image

I run it in a vm. does it need cuda? or a powerfull videocard/processor/ram? I give it now 4 cores and 8 gig and only have a intel 840. is that enough? I really love your project. I am learning a lot about it, but am far from your level

Breuk22 commented 1 year ago

the heist btw is just a coincident.

I use the latest version of python 10.

as you can see it doesn't read the money, rolls right image

could you please give me a little bit more instructions?

Thanks in advance

Kind regards Bjorn

Breuk22 commented 1 year ago

btw it's the same when i set the auto roll off

ethanriverpage commented 1 year ago

@Breuk22 I've made a large mistake in that I forgot to document that you start the bot by pressing the PageUp key on your keyboard. This will in turn activate all the different mechanisms of the bot to get it to function. You can then safely stop the bot by pressing PageDown.

Solutions (for repo):

ethanriverpage commented 1 year ago

@atokcullens It seems to be that the program is struggling to get the window position from your BlueStacks window.

  1. Ensure that you are running the script as administrator.
  2. Hover over the BlueStacks window to see the window title -- make sure that matches in the .env file.
  3. Turn off advertisements in BlueStacks as well.

I can't replicate this issue on my end, so it is difficult to solve this. Give these steps a shot and see if it works for you.

Breuk22 commented 1 year ago

thats a pretty big thing yes :)

I get now ththats a pretty big thing yes :)

now I get this with python3.11 image

Breuk22 commented 1 year ago

and this is what i get with python 3.10: image

couldn't get it compiled with 3.12 because of pillow not being supported.

atokcullens commented 1 year ago

https://github.com/ethanriverpage/monopolygobot/assets/142563299/4f647c61-a7f0-4adf-a7c1-69e9de534207

@atokcullens It seems to be that the program is struggling to get the window position from your BlueStacks window.

  1. Ensure that you are running the script as administrator.
  2. Hover over the BlueStacks window to see the window title -- make sure that matches in the .env file.
  3. Turn off advertisements in BlueStacks as well.

I can't replicate this issue on my end, so it is difficult to solve this. Give these steps a shot and see if it works for you.

thanks for reply..as u can see.. i already open with administrator ..but still.. please help

atokcullens commented 1 year ago

@atokcullens It seems to be that the program is struggling to get the window position from your BlueStacks window.

  1. Ensure that you are running the script as administrator.
  2. Hover over the BlueStacks window to see the window title -- make sure that matches in the .env file.
  3. Turn off advertisements in BlueStacks as well.

I can't replicate this issue on my end, so it is difficult to solve this. Give these steps a shot and see if it works for you.

about .env ..i didn't get it.. can you explain to me? Screenshot (15)

atokcullens commented 1 year ago

thats a pretty big thing yes :)

I get now ththats a pretty big thing yes :)

now I get this with python3.11 image

so when u use this bot..can make dice ?or just bot play ?

Breuk22 commented 1 year ago

are you still working on this project or did you lost interest?

atokcullens commented 12 months ago

are you still working on this project or did you lost interest?

still working..but won't work.. i don't know how.

Breuk22 commented 12 months ago

Can I help? Where are you stuck? I specialize in AI and Image recognition) And made already a lot of mods. Do you still like playing the game? Ik can fill your friend bar for free 860 dice and the monopoly man token. And am currently building a 100-dice-link generator. I can give you dice on a daily basis. And lots of stickers.

Even if you don’t want my help the offer stil stands. You can even get the reroller for free. I was even thinking to mod your bod with the reroller for events (roll as long as you get on those special squares for example) I even started the dicemaker to keep your bots feeding dice 😉

Let me know what you think. I am not a good programmer but very stubborn )

And thanks again for your reactions. Most devs don’t react

Kind regards’ Bjorn

(I do have a team of very good programmers that could help, but only with your permission)

Sent from Mailhttps://go.microsoft.com/fwlink/?LinkId=550986 for Windows

From: @.> Sent: Thursday, 30 November 2023 08:13 To: @.> Cc: @.>; @.> Subject: Re: [ethanriverpage/monopolygobot] it ceeps clicking everywhere. especialli at the bankheis icon. do you run it at a specific resolution>? desktop and player? (Issue #2)

are you still working on this project or did you lost interest?

still working..but won't work.. i don't know how.

— Reply to this email directly, view it on GitHubhttps://github.com/ethanriverpage/monopolygobot/issues/2#issuecomment-1833223869, or unsubscribehttps://github.com/notifications/unsubscribe-auth/A6NZBGFJVYTUAQRLFSYXU33YHAWYHAVCNFSM6AAAAAA5X4IXGCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMZTGIZDGOBWHE. You are receiving this because you were mentioned.Message ID: @.***>

McSon2 commented 9 months ago

Hey I'm interested, I'm also stuck with the bot on [CACHE] Caching C:\Users\McSon\Desktop\monopolygobot-main\images\in-home-icon.png...

Breuk22 commented 4 months ago

Hi Ethan, could you please provide me a video of how the things are running at your setup? it would help me enormously.

I've created several bot's in the meantime, on that can play up to 6 games and do all the quick wins completely by itself

https://github.com/user-attachments/assets/43ea2d5d-d323-4398-9e95-388b1cdc95a4

Sorry for the bad quality had to compress it a lot :)