Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] - starting issue #93

Open
TIBIA98 opened this issue Jul 24, 2024 · 2 comments
Open

[BUG] - starting issue #93

TIBIA98 opened this issue Jul 24, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@TIBIA98
Copy link

TIBIA98 commented Jul 24, 2024

poetry run python main.py
Traceback (most recent call last):
File "D:\downloads\PyTibia-main\main.py", line 2, in
from src.gameplay.threads.pyTibia import PyTibiaThread
File "D:\downloads\PyTibia-main\src\gameplay\threads\pyTibia.py", line 4, in
from src.gameplay.cavebot import resolveCavebotTasks, shouldAskForCavebotTasks
File "D:\downloads\PyTibia-main\src\gameplay\cavebot.py", line 2, in
from src.repositories.gameWindow.creatures import hasTargetToCreature
File "D:\downloads\PyTibia-main\src\repositories\gameWindow\creatures.py", line 8, in
from src.repositories.radar.config import walkableFloorsSqms
File "D:\downloads\PyTibia-main\src\repositories\radar\config.py", line 86, in
floorsPathsSqms = np.load(f'{currentPath}/npys/floorsPathsSqms.npy')
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\GRNX\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.12_qbz5n2kfra8p0\LocalCache\Local\pypoetry\Cache\virtualenvs\pytibia-TlZ42Pqm-py3.11\Lib\site-packages\numpy\lib\npyio.py", line 427, in load
fid = stack.enter_context(open(os_fspath(file), "rb"))

FileNotFoundError: [Errno 2] No such file or directory: 'D:\downloads\PyTibia-main\src\repositories\radar/npys/floorsPathsSqms.npy'

@TIBIA98 TIBIA98 added the bug Something isn't working label Jul 24, 2024
@TIBIA98
Copy link
Author

TIBIA98 commented Jul 24, 2024

ok i managed to start bot, setup client like in tutorial but nothing works, also got tons of this error in console
An exception occurred: Traceback (most recent call last):
File "D:\downloads\PyTibia-main\src\gameplay\threads\pyTibia.py", line 39, in mainloop
self.context.context = self.handleGameData(
^^^^^^^^^^^^^^^^^^^^
File "D:\downloads\PyTibia-main\src\gameplay\threads\pyTibia.py", line 66, in handleGameData
context = setDirectionMiddleware(context)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\downloads\PyTibia-main\src\gameplay\core\middlewares\gameWindow.py", line 15, in setDirectionMiddleware
if context['radar']['coordinate'][0] != context['radar']['previousCoordinate'][0] or context['radar']['coordinate'][1] != context['radar']['previousCoordinate'][1] or context['radar']['coordinate'][2] != context['radar']['previousCoordinate'][2]:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^
TypeError: 'NoneType' object is not subscriptable

@maximiliannm
Copy link

how did you solve f'{currentPath}/npys/floorsPathsSqms.npy') error and start bot?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants