Well, yeah, this script was my very first and certainly most rewarding dom3-related programming experience so far. But it just so happens that just now I find the following switch in the Dom3 game help:
Code:
--statfile Create a player info file after each turn (stats.txt)
Was that always in there? That would have made the initial programming a little easier, I think.
Here's the easily parseable contents of one such stats.txt file:
Code:
Statistics for game 'Test' turn 45
Arcoscephale is computer controlled
Ermor played this turn
T'ien Ch'i didn't play this turn
C'tis played this turn
Agartha played this turn
Helheim played this turn
Niefelheim didn't play this turn
The script now surpasses the functionality offered by this file. But to think that I could have just used this instead of reading from the file system and interpreting the results... and to think that I found the --scoresdump switch, but not this one...

hehe
Maybe I will put this inside to be able to tell AI opponents and so on in a later version. This needs a rehaul, anyway.