Replay System

Post here if you want to help developing something for FAF.

Replay System

Postby wetlettuce » 22 Mar 2014, 21:58

I'd like to help with a new replay system.

Can I have the current DB structure please.
wetlettuce
Avatar-of-War
 
Posts: 63
Joined: 07 Feb 2012, 23:25
Has liked: 1 time
Been liked: 1 time

Re: Replay System

Postby Lu_Xun_17 » 23 Mar 2014, 12:18

You should contact Raging Squirrel, he had aleady started to work on redesigned replay vault, but he never found time to finish it.
User avatar
Lu_Xun_17
Contributor
 
Posts: 860
Joined: 31 Aug 2011, 22:56
Has liked: 17 times
Been liked: 224 times
FAF User Name: LuXy

Re: Replay System

Postby wetlettuce » 23 Mar 2014, 14:11

I have. I've also contacted Zep. Just awaiting structure so I can make a start.
wetlettuce
Avatar-of-War
 
Posts: 63
Joined: 07 Feb 2012, 23:25
Has liked: 1 time
Been liked: 1 time

Re: Replay System

Postby Ze_PilOt » 01 Apr 2014, 09:11

The structure is as easy as it can be:

`id` bigint(20) unsigned NOT NULL DEFAULT '0',
`gameName` tinytext,
`filename` varchar(200) DEFAULT NULL,
`startTime` timestamp NULL DEFAULT NULL,
`EndTime` timestamp NULL DEFAULT NULL,
`gamemod` varchar(50) DEFAULT NULL,
`playerId` mediumint(8) unsigned NOT NULL,
`mapId` mediumint(8) unsigned DEFAULT NULL COMMENT 'map id',
`rating` double NOT NULL DEFAULT '0',
`gamemodid` tinyint(3) unsigned DEFAULT NULL,

I will only explain the no self-explanatory fields:

id is the uid of the game.
filename is the directory where the map is.
rating is the rating of the player before the game.
gamemodid is the uid of the featured mod (while gamemod is the featured mod name in full letter).

There is of course another table that link the uid of a game to the replay (a blob field).
Nossa wrote:I've never played GPG or even heard of FA until FAF started blowing up.
User avatar
Ze_PilOt
Supreme Commander
 
Posts: 8985
Joined: 24 Aug 2011, 18:41
Location: fafland
Has liked: 18 times
Been liked: 376 times
FAF User Name: Ze_PilOt

Re: Replay System

Postby RoLa » 01 Apr 2014, 11:10

Is there any chance to get the replay tables as tar gz dump? I wanna try to make a replay cluster system so that we can search in older replays faster.
User avatar
RoLa
Contributor
 
Posts: 313
Joined: 23 Apr 2013, 22:14
Has liked: 5 times
Been liked: 19 times
FAF User Name: RoLa

Re: Replay System

Postby RoLa » 26 Sep 2014, 22:15

I would like to help with replay system. Is there any chance to get

- the structure of all tables
- the dump of the whole database except login table ( i would generate a randomly filled one)

you posted some information:
viewtopic.php?f=42&t=6799&start=20

It would be easier with all the data, to experiment with. I know it's a really huge dump, but i could put it online on my server so other developers could download it from there. Maybe a tar.gz file of all replays would also be enough. Most Information should be in there.
User avatar
RoLa
Contributor
 
Posts: 313
Joined: 23 Apr 2013, 22:14
Has liked: 5 times
Been liked: 19 times
FAF User Name: RoLa

Re: Replay System

Postby Ze_PilOt » 27 Sep 2014, 11:40

Dumping the DB is several GB of data and would freeze the server for a day, so I will say no on that.

For prototyping a better system, the best alternative for the moment is to use the current structure and fill it with 3-4 millions of random data similar to the real ones.
Nossa wrote:I've never played GPG or even heard of FA until FAF started blowing up.
User avatar
Ze_PilOt
Supreme Commander
 
Posts: 8985
Joined: 24 Aug 2011, 18:41
Location: fafland
Has liked: 18 times
Been liked: 376 times
FAF User Name: Ze_PilOt

Re: Replay System

Postby nine2 » 27 Sep 2014, 14:16

Is the rest of the replay data (eg: teams) inside the replay file in the header in json? Ta
nine2
Councillor - Promotion
 
Posts: 2416
Joined: 16 Apr 2013, 10:10
Has liked: 285 times
Been liked: 515 times
FAF User Name: Anihilnine

Re: Replay System

Postby Ze_PilOt » 27 Sep 2014, 14:32

partytime wrote:Is the rest of the replay data (eg: teams) inside the replay file in the header in json? Ta

Yes.

On Top of these metadata, the server save the player position, color, faction, and rating before / after the game.
Nossa wrote:I've never played GPG or even heard of FA until FAF started blowing up.
User avatar
Ze_PilOt
Supreme Commander
 
Posts: 8985
Joined: 24 Aug 2011, 18:41
Location: fafland
Has liked: 18 times
Been liked: 376 times
FAF User Name: Ze_PilOt

Re: Replay System

Postby nine2 » 28 Sep 2014, 04:35

So can you post the rest of the db schema please?
nine2
Councillor - Promotion
 
Posts: 2416
Joined: 16 Apr 2013, 10:10
Has liked: 285 times
Been liked: 515 times
FAF User Name: Anihilnine

Next

Return to Contributors

Who is online

Users browsing this forum: No registered users and 1 guest