Game Database

Stuck in a part of the game. Here's where the Grogs help the Newbies. Share your best strategies for winning and try someone elses.
Post Reply
User avatar
norb
Reactions:
Posts: 3778
Joined: Mon Nov 26, 2007 9:59 am
Location: Central Florida
Contact:

Game Database

Post 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 :)
Garnier
Reactions:
Posts: 1258
Joined: Thu May 07, 2009 6:43 pm

Re:Game Database

Post 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. :)
Last edited by Garnier on Wed Jun 02, 2010 6:46 am, edited 1 time in total.
Play Scourge of War Multiplayer! www.sowmp.com
Also try the singleplayer carryover campaign
User avatar
norb
Reactions:
Posts: 3778
Joined: Mon Nov 26, 2007 9:59 am
Location: Central Florida
Contact:

Re:Game Database

Post 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.
Last edited by norb on Wed Jun 02, 2010 1:24 pm, edited 1 time in total.
Reason: noticed that it read a little harsh and it was not intended that way
Marching Thru Georgia
Reactions:
Posts: 1769
Joined: Mon Mar 29, 2010 9:56 pm

Re:Game Database

Post 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.
I can make this march and I will make Georgia howl.
JMayer
Reactions:
Posts: 67
Joined: Mon Jul 20, 2009 4:16 am

Re: Game Database

Post 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
User avatar
norb
Reactions:
Posts: 3778
Joined: Mon Nov 26, 2007 9:59 am
Location: Central Florida
Contact:

Re: Game Database

Post by norb »

I will try to remember to get those in there, it's easy to do, just have to remember :)
Garnier
Reactions:
Posts: 1258
Joined: Thu May 07, 2009 6:43 pm

Re: Game Database

Post 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.
Play Scourge of War Multiplayer! www.sowmp.com
Also try the singleplayer carryover campaign
Garnier
Reactions:
Posts: 1258
Joined: Thu May 07, 2009 6:43 pm

Re: Game Database

Post 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.
Play Scourge of War Multiplayer! www.sowmp.com
Also try the singleplayer carryover campaign
User avatar
norb
Reactions:
Posts: 3778
Joined: Mon Nov 26, 2007 9:59 am
Location: Central Florida
Contact:

Re: Game Database

Post by norb »

Thanks guys, I'll add these to the feature list.
Post Reply