Replay site functionality

Replay site functionality

For the discussion of infrastructure improvements and changes.

Moderator: Moderators

Post Reply
User avatar
koshi
Lobby Developer
Posts: 1058
Joined: 14 Aug 2007, 16:15

Replay site functionality

Post by koshi » 29 Feb 2012, 17:30

While fixing up the next incarnation of the ladder system I've realized that I probably already have most of the infos the old replay site used to show in the ladder webfrontend (or can easily get them):
  • Game/Map name
  • Playerlist ordered by time of death (initially hidden)
  • map/modoptions
  • Date/duration
What I know I'm missing is minimap (with playposition overlay?).
Please list anything else, also new requests.
0 x

User avatar
Licho
Zero-K Developer
Posts: 3803
Joined: 19 May 2006, 19:13

Re: Replay site functionality

Post by Licho » 29 Feb 2012, 17:34

Been there, did that..

http://zero-k.info/Battles

If you want that for some other mod (even on other domain) let me know.

Recorded automagically by all springie-type autohosts.

Look what url minimaps have if you want to link them.
They are stored on ZK site by internal name so it should be trivial to pair them together.

URL is like http://zero-k.info/Resources/Vittra_v1.minimap.jpg

(invalid chars replaced with _ )
0 x

User avatar
koshi
Lobby Developer
Posts: 1058
Joined: 14 Aug 2007, 16:15

Re: Replay site functionality

Post by koshi » 29 Feb 2012, 17:46

Plugging your website here really didn't answer my question, thanks.
0 x

User avatar
Licho
Zero-K Developer
Posts: 3803
Joined: 19 May 2006, 19:13

Re: Replay site functionality

Post by Licho » 29 Feb 2012, 17:52

What is your question and is it indeed a question?
0 x

User avatar
koshi
Lobby Developer
Posts: 1058
Joined: 14 Aug 2007, 16:15

Re: Replay site functionality

Post by koshi » 29 Feb 2012, 18:00

I think it's obvious that I'm asking people to add what in comparison between the old replay site and what I listed is missing.
0 x

abma
Spring Developer
Posts: 3540
Joined: 01 Jun 2009, 00:08

Re: Replay site functionality

Post by abma » 01 Mar 2012, 12:12

two easy solutions for a minimap: either use
http://api.springfiles.com/ and fetch it

or reuse the code of the backend:

https://github.com/springfiles/upq/blob ... etadata.py (its python...)
0 x

User avatar
koshi
Lobby Developer
Posts: 1058
Joined: 14 Aug 2007, 16:15

Re: Replay site functionality

Post by koshi » 01 Mar 2012, 12:39

I've indeed already implemented fetching the minimaps this way :)
There's also a pull-request on the example client you might not have been notified about.
0 x

SirMaverick
Posts: 834
Joined: 19 May 2009, 21:10

Re: Replay site functionality

Post by SirMaverick » 01 Mar 2012, 19:14

koshi wrote: Please list anything else, also new requests.
- Who won?
- list of spectators
0 x

Tobi
Spring Developer
Posts: 4598
Joined: 01 Jun 2005, 11:36

Re: Replay site functionality

Post by Tobi » 02 Mar 2012, 00:15

Replays probably still have some extractable statistics embedded in them (if Spring didn't crash before the end of the game). You might be able to make some pretty graphs from those :-) . (although not all of them will be relevant for all games)
0 x

User avatar
koshi
Lobby Developer
Posts: 1058
Joined: 14 Aug 2007, 16:15

Re: Replay site functionality

Post by koshi » 02 Mar 2012, 00:24

I am parsing the whole message stream anyway, to determine deaths, quits and so forth to rank the players for score updates on the ladder. Got any suggestions for a nice graphing lib? I'm currently using matplotlib for a couple of static graphs, but I'd like sth interactive that isn't flash/air. (Unless someone wants to jump in and contribute that ;-) )
0 x

User avatar
knorke
Posts: 7971
Joined: 22 Feb 2006, 01:02

Re: Replay site functionality

Post by knorke » 02 Mar 2012, 07:50

random stuff:
-comments had spoiler function
-iirc replays were zipped, was bit annoying
-include endgame stats (like this tool: http://springfiles.com/spring/tools/spr ... s-viewer-0)
-would be cool if games could somehow store custom messages in the replay, and the site displays them. If the game is based on scoring it would display "player A - player B: 5-6" instead of just "player B wins"
maybe parse chat for that, would need some standard.
Licho wrote:Recorded automagically by all springie-type autohosts.
There is a "Game:" field, but what must I enter to see replays from the BA, gundam etc autohosts? Tried various spellings but none worked.
0 x

User avatar
Licho
Zero-K Developer
Posts: 3803
Joined: 19 May 2006, 19:13

Re: Replay site functionality

Post by Licho » 02 Mar 2012, 10:33

knorke wrote:
Licho wrote:Recorded automagically by all springie-type autohosts.
There is a "Game:" field, but what must I enter to see replays from the BA, gundam etc autohosts? Tried various spellings but none worked.
Those games didnt want to be recorded. Previously springie was doing it for all, calculating elo for all etc, but people complained so its opt-in only now, same as juggler.
0 x

User avatar
koshi
Lobby Developer
Posts: 1058
Joined: 14 Aug 2007, 16:15

Re: Replay site functionality

Post by koshi » 02 Mar 2012, 11:28

Not compressing the replays is just wasteful though. Even plain old zip takes about 70% off of the original size. Lzma does even better, but I understand that's nothing windows can commonly handle on its own?

Letting the replay carry some kind of information on how to display scores is not practical. Each ladder can have a different ranking algorithm that can even be changed after games have already been played. If there are other purposes, one could probably rely on a set prefix for chat, but wouldn't that just confuse flesh&blood players?
0 x

User avatar
smoth
Posts: 22295
Joined: 13 Jan 2005, 00:46

Re: Replay site functionality

Post by smoth » 02 Mar 2012, 16:58

Licho wrote:
knorke wrote:
Licho wrote:Recorded automagically by all springie-type autohosts.
There is a "Game:" field, but what must I enter to see replays from the BA, gundam etc autohosts? Tried various spellings but none worked.
Those games didnt want to be recorded. Previously springie was doing it for all, calculating elo for all etc, but people complained so its opt-in only now, same as juggler.
to be fair gundam cannot be played right now anyway thanks to LOL broken. So it isn't an issue.
0 x

User avatar
PicassoCT
Journeywar Developer & Mapper
Posts: 10201
Joined: 24 Jan 2006, 21:12

Re: Replay site functionality

Post by PicassoCT » 03 Mar 2012, 14:44

koshi wrote:Not compressing the replays is just wasteful though. Even plain old zip takes about 70% off of the original size. Lzma does even better, but I understand that's nothing windows can commonly handle on its own?

Letting the replay carry some kind of information on how to display scores is not practical. Each ladder can have a different ranking algorithm that can even be changed after games have already been played. If there are other purposes, one could probably rely on a set prefix for chat, but wouldn't that just confuse flesh&blood players?
Could you filter out response triggering lines? Just filter for lines that spark a cascade of coments... :)
0 x

Post Reply

Return to “Infrastructure Development”