I was wanting to make a few mods to collect some data from the game for data analysis, and automatic testing. So I wanted to know if anyone knew how to or knows where an example is, if outputting data to some text file.
I'm wanting to make some automatic unit testing things, basic engagement testing with large iteration numbers. And I'm hoping to output the data that makes the score graph, then run rated replays and do some big data on all that stuff.
You can't write to an external file.
Best approach is to gather the data in-game and when the game ends you write it all to the log in some readable format. Then use an external program to read the log, get the readable format and parse it.
I have a tool you can install and run relatively easily: https://github.com/HardlySoftly/FAF-AI-Autorun
It is designed for auto-running AI vs AI games in large batches, so isn't exactly your use case, but it does include a variety of things that will overlap with what you're interested in:
Hopefully this is helpful
@softles Holy shit my dude, this is outstanding.
I was driving myself mad trying to get io.open to do something. I'll be sure to check your code out and ask you a million questions!