quarry
quarry copied to clipboard
Collecting Data with Proxy?
Hi, I want to make some sort of anti-cheat system but the first thing I need is to collect a bunch of training data. I want to make a program where the proxy will watch and record lots of types of data such as player position, blocks around them, when they attack, where they are looking and so on. But so far I can not figure out how I can get the program to output that kind of data. Any help would be awesome! Thanks in advance!
If you just want a proxy to dump some packet data and don't require it to be in python, you can use this existing one.
Thanks for the reply! That is some good advice however since I am going to be doing most of the programming in python it makes most sense to have this also done in python. Any ideas?
There's an example project here: https://github.com/barneygale/quarry/blob/master/examples/proxy_hide_chat.py
You basically want to implement a Bridge.packet_received
method that writes the buffer to a file then calls super()
.