Page 1 of 1

Game Database

Posted: Tue Jun 01, 2010 10:17 pm
by norb
This is a very cool new feature included in the latest patch!

You can dump out full stats for the entire battle in csv format. You could easily use all this to create some pretty cool game reports.

The new command is:
dumpgamedb

Just map this to a button or to a keyboard key and it will work when ever you hit it.

It will always write out a file called:

work/sowgb_gamedb_currenttime.csv

Should be able to have some fun with this, seeing who's men did the most damage in MP :)

Re:Game Database

Posted: Wed Jun 02, 2010 5:47 am
by Garnier
Awesome, thanks.

Now what we need is for them to be generated automatically when the game ends, and placed in a separate folder, with a name that has the date in it. This way the players don't have to do any work to get them. This, unlike most things we ask for, is actually easy! :P

After that I can make a report generator which will format them nicely for posting on the forum. :)

Re:Game Database

Posted: Wed Jun 02, 2010 7:55 am
by norb
Yeah, and when I do that, you'll want something else :) I understand that this is the way things go, so hopefully someone with some ingenuity will figure out how to automate them for you.

Re:Game Database

Posted: Wed Jun 02, 2010 12:52 pm
by Marching Thru Georgia
Norb wrote:
This is a very cool new feature included in the latest patch!
You're right, this is very cool. It's going to be very useful for modding. Now it will be easy to quantify just what effect a csv change makes.

Re: Game Database

Posted: Thu Jun 03, 2010 12:06 pm
by JMayer
Is there a way you might add to the dumpgamedb files the Wounded and Missing counts? We need those two figures also to update our Campainge Game. Hope you will add those for us. Thanks for everything you have done and hope more is to come.
JMayer

Re: Game Database

Posted: Thu Jun 03, 2010 12:58 pm
by norb
I will try to remember to get those in there, it's easy to do, just have to remember :)

Re: Game Database

Posted: Thu Jun 03, 2010 2:05 pm
by Garnier
A couple other things that would be nice besides the K/W/M:

1. Say whether a unit has surrendered or routed.
2. Name of map played (at the beginning of the log).
3. Ammunition for each regiment.

Re: Game Database

Posted: Thu Jun 03, 2010 7:28 pm
by Garnier
I also just found a bug with this. For the player's name after a unit, it takes the player as high up on the chain of command as possible, instead of the player actually directly controlling the unit.

For instance if you have a division commanded by player1, that has a brigade commanded by player2, the name that shows up in this log file will be player1 for all of the units.

Re: Game Database

Posted: Thu Jun 03, 2010 9:00 pm
by norb
Thanks guys, I'll add these to the feature list.