quarry icon indicating copy to clipboard operation
quarry copied to clipboard

Collecting Data with Proxy?

Open AbnormalMatrix opened this issue 4 years ago • 3 comments

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!

AbnormalMatrix avatar Feb 09 '21 00:02 AbnormalMatrix

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.

Gjum avatar Feb 09 '21 02:02 Gjum

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?

AbnormalMatrix avatar Feb 09 '21 03:02 AbnormalMatrix

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().

barneygale avatar Apr 03 '21 02:04 barneygale