spring replay site - Page 3

spring replay site

For the discussion of infrastructure improvements and changes.

Moderator: Moderators

Post Reply
dansan
Server Owner & Developer
Posts: 1192
Joined: 29 May 2010, 23:40

Re: spring replay site

Post by dansan » 05 Jul 2012, 02:12

just perfect <3
0 x

dansan
Server Owner & Developer
Posts: 1192
Joined: 29 May 2010, 23:40

Re: spring replay site

Post by dansan » 10 Jul 2012, 17:57

Bibim added more variables to SPADS, and now, if correctly configured, games will NOT to be uploaded that:
* never started or
* were shorter than 3 minutes or
* !stop AND shorter than 6 minutes
0 x

dansan
Server Owner & Developer
Posts: 1192
Joined: 29 May 2010, 23:40

Re: spring replay site

Post by dansan » 17 Jul 2012, 16:34

* RSS feed: newest uploads: http://replays.springrts.com/feeds/latest/
* RSS feed: newest uploads of specific uploader: /feeds/uploader/<username>/ (for autohost owners e.g. bibim, fabrice)
* no-auto-upload lowered to 3 min. game-running-time
* site for testing: replays-test.springrts.com
* web site statistics (deactivate here)
* playing with caching... no idea if for better or worse...
0 x

User avatar
danil_kalina
Posts: 505
Joined: 08 Feb 2010, 22:21

Re: spring replay site

Post by danil_kalina » 17 Jul 2012, 16:46

dansan wrote:* RSS feed: newest uploads: http://replays.springrts.com/feeds/latest/
* RSS feed: newest uploads of specific uploader: /feeds/uploader/<username>/ (for autohost owners e.g. bibim, fabrice)
* no-auto-upload lowered to 3 min. game-running-time
* site for testing: replays-test.springrts.com
* web site statistics (deactivate here)
* playing with caching... no idea if for better or worse...
I wanted to search replays with Godde - typed "Godde" in search window and hit enter :P
Site returned an error
0 x

User avatar
FLOZi
MC: Legacy & Spring 1944 Developer
Posts: 6109
Joined: 29 Apr 2005, 01:14

Re: spring replay site

Post by FLOZi » 17 Jul 2012, 17:03

Godde is too powerful for a webserver to handle :mrgreen:
0 x

dansan
Server Owner & Developer
Posts: 1192
Joined: 29 May 2010, 23:40

Re: spring replay site

Post by dansan » 17 Jul 2012, 17:10

danil_kalina wrote:I wanted to search replays with Godde - typed "Godde" in search window and hit enter :P
Site returned an error
oops... forbidding to caching a non-cachable thingy makes funny error :D
Thank you for reporting - is fixed.
0 x

User avatar
danil_kalina
Posts: 505
Joined: 08 Feb 2010, 22:21

Re: spring replay site

Post by danil_kalina » 17 Jul 2012, 18:11

when I search something by typing someone powerful, like Godde :P Results are:
so many useless stuff like
Search parameters ( Description, Comment, Player, Include spectators )

As for me, I hate them
Why do I need that stuff ? if you have Search window and there is an Advanced link next to search.

P.S. Get rid of them if this is not an advanced searching
0 x

dansan
Server Owner & Developer
Posts: 1192
Joined: 29 May 2010, 23:40

Re: spring replay site

Post by dansan » 17 Jul 2012, 22:27

Reasoning was: "all searches are technically advanced searches" - but your ui reasoning is sound :) So I fixed that with some conditional JS show/hide.
0 x

User avatar
danil_kalina
Posts: 505
Joined: 08 Feb 2010, 22:21

Re: spring replay site

Post by danil_kalina » 17 Jul 2012, 22:46

When replays are ready in notalobby we can cooperate to make user friendly UI for replays web site.
0 x

dansan
Server Owner & Developer
Posts: 1192
Joined: 29 May 2010, 23:40

Re: spring replay site

Post by dansan » 17 Jul 2012, 23:06

Looking forward to it - I'm happy for all input :)
0 x

User avatar
danil_kalina
Posts: 505
Joined: 08 Feb 2010, 22:21

Re: spring replay site

Post by danil_kalina » 25 Jul 2012, 18:21

dansan, you are dealing with replays.
How to find out what team won ?
0 x

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

Re: spring replay site

Post by koshi » 25 Jul 2012, 20:56

parse the command stream to find the last team still alive
0 x

dansan
Server Owner & Developer
Posts: 1192
Joined: 29 May 2010, 23:40

Re: spring replay site

Post by dansan » 25 Jul 2012, 22:32

If the demo file is complete, then an array of allyteams that won is stored after the cmd stream:

https://github.com/dansan/spring-replay ... ile.py#L89
https://github.com/spring/spring/blob/m ... r.cpp#L196

If it is not complete, then you have to do, what koshi writes. (check out his ladder code: https://github.com/renemilk/spring-ladd ... oparser.py)

Luckily all of this is OSS, so the knowledge can be shared between fellow devs :)
0 x

User avatar
danil_kalina
Posts: 505
Joined: 08 Feb 2010, 22:21

Re: spring replay site

Post by danil_kalina » 26 Jul 2012, 10:26

koshi wrote:parse the command stream to find the last team still alive
Is it for complete replays too ?
0 x

User avatar
danil_kalina
Posts: 505
Joined: 08 Feb 2010, 22:21

Re: spring replay site

Post by danil_kalina » 26 Jul 2012, 10:32

@dansan
Thank you for detailed answer.
We think we should consider complete replays only for determining the winner
0 x

User avatar
danil_kalina
Posts: 505
Joined: 08 Feb 2010, 22:21

Re: spring replay site

Post by danil_kalina » 26 Jul 2012, 14:41

Who knows how to Host a replay ? what script should we use ?
0 x

User avatar
Jools
XTA Developer
Posts: 2804
Joined: 23 Feb 2009, 16:29

Re: spring replay site

Post by Jools » 19 Oct 2012, 20:34

I cant get the replay uploading working, it get this error:

Code: Select all

* BadCharm won!
* Server stopped (running time: 14 minutes and 13 seconds)
*  unknown, inactive or invalid *uploader* account
I guess that's error code 1. I have these settings:
endGameCommand:python replay_upload.py -v -r %result -d %gameDuration "%type on %map" "uploaded from Semprini" "%type,%structure" "%demoFile" "[semprini]Replaybot"

endGameCommandEnv:XMLRPC_USER=[semprini]Replaybot;XMLRPC_PASSWORD=<pass>

endGameCommandMsg:(0)Demo file uploaded to http://replays.springrts.com/replay/%gameId|(1) unknown, inactive or invalid *uploader* account|(2) unknown or inactive *owner* account (remember to log in via web interface once):%|(3) replay already exists (same gameID)|(4) server or network error|(5) no error, but the match did not start or was shorter than 3 min. and thus the replay was not uploaded|(6) could not read spring demo file from disk|(7-9)Failed to upload demo file!
The account exists and I logged on with it. But could the problem be the brackets in the username?
0 x

dansan
Server Owner & Developer
Posts: 1192
Joined: 29 May 2010, 23:40

Re: spring replay site

Post by dansan » 21 Oct 2012, 11:05

Hmm... the brackets should be no problem. I see that the "[semprini]Replaybot" account successfully uploaded manually, but I cannot find any attempt to upload by XMLRPC in the logs. Maybe the problem is with the password - does it contain $ or | or ; or symbols that are relevant for perl?
I am online with the account Dansan_IRC atm. Maybe we can find out interactively.
0 x

User avatar
bibim
Lobby Developer
Posts: 901
Joined: 06 Dec 2007, 11:12

Re: spring replay site

Post by bibim » 21 Oct 2012, 11:57

Jools, you can set spadsLogLevel to 5 (debug) to see the end game command in the log as it is executed by SPADS.
0 x

User avatar
Jools
XTA Developer
Posts: 2804
Joined: 23 Feb 2009, 16:29

Re: spring replay site

Post by Jools » 21 Oct 2012, 12:32

No, it's one of the stupidest passwords that exist, qwerty followed by some numbers. I think the problem may lie with Python. I tried with Python 3.3.0 64-bit first, now I've tried with 2.7.3 x86. Both for windows and I put the install folder in %path%
0 x

Post Reply

Return to “Infrastructure Development”