Open ElPresidentePro opened 8 years ago
interesting, It seems that you are very close to getting the first bot 1.9, The problem is the chunks.
I have to do another release for 1.8 to fix a bug and then I will start merging in 1.9 changes tonight.
@gamingrobot Fantastic notice!
I have updated mcp inside spockbot to support 1.9 but its on a test branch due to being in a broken state. You can see the first pass of the update 4ba34bb. The bot joins the server then crashes due to failing to decode Chunk Data correctly. I think this is due to the new biome data that's included.
Cool stuff. I'll take a look at that chunk issue this evening.
@gamingrobot it looks like the problem is that I wrote the decoder for protodef's chunk packet, but spock has an extra field for biome data. do we still want it to be its own field, separate from block data, or should all the chunk data be a single field? nope, was already one binary blob before
For what is this error?
[DEBUG]: NETCORE: Connected to host: 192.168.1.38 port: 25695
[INFO]: My position: PlayerPosition(0, 0, 0) pitch: 0.0 yaw: 0.0
[DEBUG]: EVENTCORE: Exception while emitting event_tick None
Traceback (most recent call last):
File "C:\Users\osman\Desktop\spock\example.py", line 52, in <module>
client.start(SERVER, 25695)
File "C:\Users\osman\Desktop\spock\spockbot\plugins\helpers\start.py", line 34, in start
self.event.event_loop()
File "C:\Users\osman\Desktop\spock\spockbot\plugins\core\event.py", line 29, in event_loop
self.run_continuous()
File "C:\Users\osman\Desktop\spock\spockbot\plugins\core\event.py", line 36, in run_continuous
self.emit('event_tick')
File "C:\Users\osman\Desktop\spock\spockbot\plugins\core\event.py", line 62, in emit
if handler(event, d) == EVENT_UNREGISTER:
File "C:\Users\osman\Desktop\spock\spockbot\plugins\core\timers.py", line 132, in tick
timer.update()
File "C:\Users\osman\Desktop\spock\spockbot\plugins\core\timers.py", line 28, in update
self.fire()
File "C:\Users\osman\Desktop\spock\spockbot\plugins\core\timers.py", line 31, in fire
self.callback()
File "C:\Users\osman\Desktop\spock\example_plugin.py", line 97, in periodic_event_handler
self.clientinfo.position + Vector3(-1, 0, -1))
File "C:\Users\osman\Desktop\spock\spockbot\plugins\helpers\interact.py", line 167, in place_block
self.click_block(pos, **kwargs)
File "C:\Users\osman\Desktop\spock\spockbot\plugins\helpers\interact.py", line 155, in click_block
self._send_click_block(pos, **kwargs)
File "C:\Users\osman\Desktop\spock\spockbot\plugins\helpers\interact.py", line 138, in _send_click_block
'cur_pos_z': int(cursor_pos.z),
File "C:\Users\osman\Desktop\spock\spockbot\plugins\core\net.py", line 90, in push_packet
self.push(mcpacket.Packet(ident, data))
File "C:\Users\osman\Desktop\spock\spockbot\plugins\core\net.py", line 83, in push
data = packet.encode(self.comp_state, self.comp_threshold)
File "C:\Users\osman\Desktop\spock\spockbot\mcp\mcpacket.py", line 82, in encode
o += datautils.pack(dtype, self.data[name])
KeyError: 'hand'
@gamingrobot updated the protocol but all the plugins built on top of the protocol haven't been updated yet. So plugins that have to deal with the protocol directly (such as the Interact plugin, in this case), make incorrect assumption about the protocol structure, try to encode improper packets, and then the framework crashes.
this takes time without moving
how's it going?
Entity metadata needs to be updated still but chunk decoding is "working" (meaning decoding but not tested)
Entity metadata is done now. Now to to fix various crashes and double check the chunk decoding it working as intended.
How goes all the guys project?
All that is left is inventory, and some testing. @Gjum wrote the inventory so he would be the best person to update it, but if I find a free weekend I might try and dig though it.
sound good :+1:
http://wiki.vg/Protocol_History#1.10 :innocent:
We plan on supporting 1.9, but right now nobody is actively working on it.
Some things that need work:
IRC log for reference: