I see!
I played around with it a little bit, I think the easiest solution for me was to make it write the same packet structure that otclientv8 uses for their records, this worked to replay records in otcv8, I also had to add some starting packet "< 0 0000000000000000000000", not sure where...