I need suggestions on making a script
Posted: 21 May 2009, 18:32
Hello, I am interested in exporting data from replays from games I have played in Spring into an external program so that it can be parsed, analyzed and stored into a database.
I am a programmer, but I have no Lua experience, and I am wondering how I would go about coding something like this.
It is my intention on sending the data using sockets, as I would like it to be fairly fast, and the program that parses the data could potentially be run on another PC, is this possible with Spring's implementation of Lua?
What kind of information can I expect to extract? I would like to know things such as when/how/where a building/unit gets built, what players are playing, when they leave and the result of the game.
I additionally would like the ability to do this in real-time, so I could write programs that could guess certain things such as how long it takes for my opponent to upgrade to stronger AA, or if he doesn't build anti-nukes, how soon would he switch to T2, what units he gets owned by, what his favorite units are, etc.
I have a feeling that someone may of attempted to do something like this already, I would like to hear the experiences they had doing so.
I am a programmer, but I have no Lua experience, and I am wondering how I would go about coding something like this.
It is my intention on sending the data using sockets, as I would like it to be fairly fast, and the program that parses the data could potentially be run on another PC, is this possible with Spring's implementation of Lua?
What kind of information can I expect to extract? I would like to know things such as when/how/where a building/unit gets built, what players are playing, when they leave and the result of the game.
I additionally would like the ability to do this in real-time, so I could write programs that could guess certain things such as how long it takes for my opponent to upgrade to stronger AA, or if he doesn't build anti-nukes, how soon would he switch to T2, what units he gets owned by, what his favorite units are, etc.
I have a feeling that someone may of attempted to do something like this already, I would like to hear the experiences they had doing so.