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

Protocol error in smpmap (IndexError: list index out of range) #231

Closed
RedNicStone opened this issue Jan 14, 2020 · 2 comments
Closed

Protocol error in smpmap (IndexError: list index out of range) #231

RedNicStone opened this issue Jan 14, 2020 · 2 comments

Comments

@RedNicStone
Copy link

Hello,
I'm quite new to SpockBot (worked with CraftProtocol before) and experiencing an Issue.

I've first tried to start SpockBot in Python version 3.6 and got the following error:

  File "start.py", line 29, in <module>
    client.start('[serverAddr]', 25565)
  File "/usr/local/lib/python3.7/site-packages/spockbot-0.2.0-py3.7.egg/spockbot/plugins/helpers/start.py", line 34, in start
  File "/usr/local/lib/python3.7/site-packages/spockbot-0.2.0-py3.7.egg/spockbot/plugins/core/event.py", line 29, in event_loop
  File "/usr/local/lib/python3.7/site-packages/spockbot-0.2.0-py3.7.egg/spockbot/plugins/core/event.py", line 36, in run_continuous
  File "/usr/local/lib/python3.7/site-packages/spockbot-0.2.0-py3.7.egg/spockbot/plugins/core/event.py", line 62, in emit
  File "/usr/local/lib/python3.7/site-packages/spockbot-0.2.0-py3.7.egg/spockbot/plugins/core/net.py", line 160, in tick
  File "/usr/local/lib/python3.7/site-packages/spockbot-0.2.0-py3.7.egg/spockbot/plugins/core/select.py", line 70, in poll
  File "/usr/local/lib/python3.7/site-packages/spockbot-0.2.0-py3.7.egg/spockbot/plugins/core/event.py", line 62, in emit
  File "/usr/local/lib/python3.7/site-packages/spockbot-0.2.0-py3.7.egg/spockbot/plugins/core/net.py", line 176, in handle_recv
  File "/usr/local/lib/python3.7/site-packages/spockbot-0.2.0-py3.7.egg/spockbot/plugins/core/net.py", line 114, in read_packet
  File "/usr/local/lib/python3.7/site-packages/spockbot-0.2.0-py3.7.egg/spockbot/plugins/core/event.py", line 62, in emit
  File "/usr/local/lib/python3.7/site-packages/spockbot-0.2.0-py3.7.egg/spockbot/plugins/helpers/world.py", line 101, in handle_map_chunk_bulk
  File "/usr/local/lib/python3.7/site-packages/spockbot-0.2.0-py3.7.egg/spockbot/plugins/tools/smpmap.py", line 247, in unpack_bulk
  File "/usr/local/lib/python3.7/site-packages/spockbot-0.2.0-py3.7.egg/spockbot/plugins/tools/smpmap.py", line 220, in unpack
  File "/usr/local/lib/python3.7/site-packages/spockbot-0.2.0-py3.7.egg/spockbot/plugins/tools/smpmap.py", line 168, in unpack
IndexError: list index out of range

Here is the full log:

Be careful, it's very big (and full with junk). I suggest viewing with nano.

process.log

After that I tried starting it with Python 3.7, and after fixing this issue about async, the same error occurred.

In Python 2.7 a different issue occurred, but in case of this request it is not important.

I was using bat and cursedspock to, but its unlikely that they caused the error.
If someone wants more information on my setup, please contact me.

The server is on 1.8.9 and running ViaVersion + addons to support protocols up to MC version 1.13. If someone thinks it has to do with the server I will make an open test server to test if this is the case.

Thanks for your help

  • RNS

Please excuse my English i'm from Germany

@nickelpro
Copy link
Member

The smpmap.py decoder is known to be broken, even for the version we claim to support. SpockBot has been abandoned for a looooong time. I'm currently working on a rewrite but for right now you're better off working with Mineflayer.

@RedNicStone
Copy link
Author

Oh, I didn't knew it was abandoned.
I would really like to help, but my Minecraft protocol skills are mediocre and the code is almost unreadable to me at some passages.
I'm going to try out Mineflayer as you said, but since I am totally new to JavaScript, this is gonna take a while.

Thanks for the help!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants