Giter VIP home page Giter VIP logo

Comments (43)

 avatar commented on September 9, 2024

after installing pip you need to run the command:

pip install -r requirements.txt

later u run the: python spacecrypto-bot.py

from bomberland-bot.

s-areal avatar s-areal commented on September 9, 2024

yes, i forgot to mention that I've already have runned pip install -r requirements.txt
The problem was i had to add 3 to phyton. It boots running python3 spacecrypto-bot.py

It starts but it stalls next and nothing happens.... I already gave permissions for python and terminal to record screen.
[2022-02-20 22:57:37] [INFO] Connect wallet button detected, logging in!

from bomberland-bot.

s-areal avatar s-areal commented on September 9, 2024

yep nothing happens

2022-02-20 23:46:21] [INFO] Bot Iniciado. Versao: 1.06
[2022-02-20 23:46:21] [INFO] Qtd naves total: 10
[2022-02-20 23:46:21] [INFO] Qtd naves enviar: 10
[2022-02-20 23:46:21] [INFO] Starting Login
[2022-02-20 23:46:23] [INFO] Connect wallet button detected, logging in!
[2022-02-20 23:47:11] [INFO] Starting Login
[2022-02-20 23:47:13] [INFO] Connect wallet button detected, logging in!

from bomberland-bot.

bolshoytoster avatar bolshoytoster commented on September 9, 2024

@s-areal I'll set up a mac vm to see if I can reproduce this.

from bomberland-bot.

Bryandibraga avatar Bryandibraga commented on September 9, 2024

to me shows up [WARNING] No action found.

from bomberland-bot.

s-areal avatar s-areal commented on September 9, 2024

like i told before I already gave permissions for python and terminal to record screen. Do you have to gave some kind of permission for controlling the input device (mouse) or something like that? just a tought...

from bomberland-bot.

bolshoytoster avatar bolshoytoster commented on September 9, 2024

@s-areal the error is because it can't find anything it needs to do. You might have set up spacecrypto (login, go into a 'game') first.

from bomberland-bot.

s-areal avatar s-areal commented on September 9, 2024

it should click in the button that is detected that should do the login IMO
anyway i logged in manually, all my ships are 100% and it keeps repeating this, but the mouse never moves

[2022-02-21 00:21:16] [INFO] Refresh Spaceship to Fight
[2022-02-21 00:21:27] [INFO] Spaceships sent to Fight: 3
[2022-02-21 00:21:38] [INFO] Spaceships sent to Fight: 6
[2022-02-21 00:21:50] [INFO] Spaceships sent to Fight: 9
[2022-02-21 00:21:55] [INFO] Finish Click ships
[2022-02-21 00:21:57] [INFO] Spaceships sent to Fight: 10
[2022-02-21 00:22:08] [INFO] Refresh Spaceship to Fight
[2022-02-21 00:22:20] [INFO] Spaceships sent to Fight: 3
[2022-02-21 00:22:31] [INFO] Spaceships sent to Fight: 6
[2022-02-21 00:22:43] [INFO] Spaceships sent to Fight: 9
[2022-02-21 00:22:48] [INFO] Finish Click ships

from bomberland-bot.

bolshoytoster avatar bolshoytoster commented on September 9, 2024

@s-areal if you run

python3 -c 'from pyautogui import moveTo
moveTo(0, 0)'

in the terminal does your cursor go to the top-left of your screen?
(copy-paste the command including the newline)

from bomberland-bot.

s-areal avatar s-areal commented on September 9, 2024

I have only 10 ships and already set this in the setting file and made a printscreen of 0/10 and 10/10

from bomberland-bot.

bolshoytoster avatar bolshoytoster commented on September 9, 2024

@s-areal have you run the command I asked you to?

from bomberland-bot.

Bryandibraga avatar Bryandibraga commented on September 9, 2024

now my cursor goes to right corner on connect wallet screen

from bomberland-bot.

bolshoytoster avatar bolshoytoster commented on September 9, 2024

@Bryandibraga what is the output of the bot?

from bomberland-bot.

s-areal avatar s-areal commented on September 9, 2024

@bolshoytoster
pip install -r requirements.txt - runs ok
then i must type "python3 spacecrypto-bot.py" if i type "python spacecrypto-bot.py" i get the error i+ve posted before:

File "spacecrypto-bot.py", line 2, in
from cv2 import cv2
ImportError: No module named cv2

And no, the cursor does not move. should i install pip again?
Should I uses this commands to install PIP

curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
python3 get-pip.py

from bomberland-bot.

bolshoytoster avatar bolshoytoster commented on September 9, 2024

@s-areal what does it say when you run pip install opencv-python?

from bomberland-bot.

Bryandibraga avatar Bryandibraga commented on September 9, 2024

bolshoytoster what do you mean with output?

from bomberland-bot.

bolshoytoster avatar bolshoytoster commented on September 9, 2024

@Bryandibraga what does it say in the terminal?

from bomberland-bot.

s-areal avatar s-areal commented on September 9, 2024

zsh: command not found: pip

from bomberland-bot.

bolshoytoster avatar bolshoytoster commented on September 9, 2024

@s-areal does pip3 install opencv-python work?

from bomberland-bot.

s-areal avatar s-areal commented on September 9, 2024

I tried installing pip again, please take a look

100 2548k 100 2548k 0 0 6742k 0 --:--:-- --:--:-- --:--:-- 6742k
simaoareal@Mini-de-Simao spacecrypto-bot % python3 get-pip.py

Collecting pip
Using cached pip-22.0.3-py3-none-any.whl (2.1 MB)
Installing collected packages: pip
Attempting uninstall: pip
Found existing installation: pip 22.0.3
Uninstalling pip-22.0.3:
ERROR: Could not install packages due to an OSError: Cannot move the non-empty directory '/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/pip-22.0.3.dist-info/': Lacking write permission to '/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/pip-22.0.3.dist-info/'.

simaoareal@Mini-de-Simao spacecrypto-bot % pip install opencv-python
zsh: command not found: pip
simaoareal@Mini-de-Simao spacecrypto-bot % ls
README.md debug.py requirements.txt spacecrypto-bot.py
pycache get-pip.py screen_test
debug.log img_compare settings.yaml
simaoareal@Mini-de-Simao spacecrypto-bot % cd ..
simaoareal@Mini-de-Simao ~ % pip install opencv-python
zsh: command not found: pip
simaoareal@Mini-de-Simao ~ %

from bomberland-bot.

Bryandibraga avatar Bryandibraga commented on September 9, 2024

@Bryandibraga what does it say in the terminal?

[2022-02-20 22:06:54] [INFO] Starting Login
[2022-02-20 22:06:58] [INFO] Connect wallet button detected, logging in!

but teh cursor goes to extreme right bottom corner

from bomberland-bot.

bolshoytoster avatar bolshoytoster commented on September 9, 2024

@s-areal try running sudo python3 get-pip.py to install it.

from bomberland-bot.

bolshoytoster avatar bolshoytoster commented on September 9, 2024

@Bryandibraga it might be confused by the background; try logging in manually then running the bot.

from bomberland-bot.

Bryandibraga avatar Bryandibraga commented on September 9, 2024

@bolshoytoster After login in manually the cursor dont moves.

from bomberland-bot.

bolshoytoster avatar bolshoytoster commented on September 9, 2024

@Bryandibraga what does the terminal say now?

from bomberland-bot.

s-areal avatar s-areal commented on September 9, 2024

did sudo python3 get-pip.py
did pip install -r requirements.txt

and i get this

Requirement already satisfied: pyobjc-framework-ExternalAccessory==8.2 in /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages (from pyobjc->PyAutoGUI==0.9.53->-r requirements.txt (line 5)) (8.2)

from bomberland-bot.

bolshoytoster avatar bolshoytoster commented on September 9, 2024

@s-areal that's good, try running the bot again.

from bomberland-bot.

Bryandibraga avatar Bryandibraga commented on September 9, 2024

@bolshoytoster [2022-02-20 22:19:26] [WARNING] No action found

from bomberland-bot.

s-areal avatar s-areal commented on September 9, 2024

i've tried again. the mouse does not move on the connect wallet. I connect to metamask manually and press play

the mouse does not move and terminal is showing up this

[2022-02-21 01:18:24] [INFO] Spaceships sent to Fight: 3
[2022-02-21 01:18:33] [INFO] Spaceships sent to Fight: 5
[2022-02-21 01:18:43] [INFO] Spaceships sent to Fight: 7
[2022-02-21 01:18:53] [INFO] Spaceships sent to Fight: 9
[2022-02-21 01:18:58] [INFO] Finish Click ships
[2022-02-21 01:19:00] [INFO] Spaceships sent to Fight: 10
[2022-02-21 01:19:13] [INFO] Refresh Spaceship to Fight
[2022-02-21 01:19:23] [INFO] Spaceships sent to Fight: 2

and so one

from bomberland-bot.

bolshoytoster avatar bolshoytoster commented on September 9, 2024

@Bryandibraga could you make sure nothing blocks the screen (i.e. the terminal window)

from bomberland-bot.

bolshoytoster avatar bolshoytoster commented on September 9, 2024

@s-areal could you try this again please.

from bomberland-bot.

s-areal avatar s-areal commented on September 9, 2024

the mouse never moved, never
Ive also deleted any "desktops"
terminal is out of the away now

same thing

from bomberland-bot.

Bryandibraga avatar Bryandibraga commented on September 9, 2024

@bolshoytoster its not

from bomberland-bot.

s-areal avatar s-areal commented on September 9, 2024

@s-areal could you try this again please.

Does not move

from bomberland-bot.

s-areal avatar s-areal commented on September 9, 2024

@s-areal could you try this again please.

Does not move

I stop the bot, type your command and nothing happens

from bomberland-bot.

s-areal avatar s-areal commented on September 9, 2024

dont you think this as nothing to do with permissions?

from bomberland-bot.

s-areal avatar s-areal commented on September 9, 2024

Yeah, the bot detects what is happening, but is not able to do any task...

from bomberland-bot.

bolshoytoster avatar bolshoytoster commented on September 9, 2024

@s-areal you could try running sudo python3 spacecrypto-bot.py to give it superuser permissions.

from bomberland-bot.

s-areal avatar s-areal commented on September 9, 2024

i did it and ....t doesn't work

2022-02-21 01:35:29] [INFO] Bot Iniciado. Versao: 1.06
[2022-02-21 01:35:29] [INFO] Qtd naves total: 60
[2022-02-21 01:35:29] [INFO] Qtd naves enviar: 10
[2022-02-21 01:35:32] [WARNING] Nenhuma acao encontrada
[2022-02-21 01:35:33] [WARNING] Nenhuma acao encontrada
[2022-02-21 01:35:33] [WARNING] Nenhuma acao encontrada
[2022-02-21 01:35:34] [WARNING] Nenhuma acao encontrada
[2022-02-21 01:35:34] [INFO] Refresh Spaceship to Fight
[2022-02-21 01:35:45] [INFO] Spaceships sent to Fight: 3
[2022-02-21 01:35:57] [INFO] Spaceships sent to Fight: 6
[2022-02-21 01:36:08] [INFO] Spaceships sent to Fight: 9
[2022-02-21 01:36:14] [INFO] Finish Click ships
[2022-02-21 01:36:16] [INFO] Spaceships sent to Fight: 10
[2022-02-21 01:36:27] [INFO] Refresh Spaceship to Fight
[2022-02-21 01:36:38] [INFO] Spaceships sent to Fight: 3
[2022-02-21 01:37:12] [INFO] Spaceships sent to Fight: 6

the mouse wont move

from bomberland-bot.

s-areal avatar s-areal commented on September 9, 2024

it doesn't work. Thanks so much for your help...
I gotta go now, i will see if you reply tommorow.
Thanks again

from bomberland-bot.

bolshoytoster avatar bolshoytoster commented on September 9, 2024

@s-areal according to this reddit post it should create a popup asking to give it permission. You might be able to get it to do the popup again by reinstalling PyAutoGUI: pip install PyAutoGUI==0.9.53 --ignore-installed.

Edit: I got my mac vm set up, you can just go into Settings -> Security & Privacy -> Accessibility -> Privacy then click the padlock in the bottom left and tick next to Terminal under Input Monitoring and Screen Recording.

from bomberland-bot.

bolshoytoster avatar bolshoytoster commented on September 9, 2024

The problem I've run into, the default thresholds in settings.yaml are too high I'm experimenting with lower amounts to see what will work best.

from bomberland-bot.

bolshoytoster avatar bolshoytoster commented on September 9, 2024

@Bryandibraga could you change hard in settings.yaml to 0.25.

from bomberland-bot.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.