In Minecraft I was hoping to find a way to read the chat automatically like pictured below
In order to record transactions made in the virtual shop into a PostgreSQL database. Preferably using Python. I do not own the Minecraft server.
My plan is to either find a way to directly read the packets sent from the Minecraft server (preferred for reliability, but of unknown difficulty) or as a backup plan maybe figure out how to screen scrape the text. I've found some resources that would let me change the font to monospaced which would provide a more reliable way to read in the font and I believe create perfectly consistent places on the screen for each character. I could face a direction that is close to black but not quite, but would prefer not to have to. As pictured above you see there are many different colors of font to contend with too.
Even after reducing it as described above, I'm still not sure how to turn it into text using python.
Any tips on my approach? Any hints at how I could read the packets coming from the server? Any tips on scraping the text from my screen?
mc3p.plugin.log
– Seamaid