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: 1203
Joined: 29 May 2010, 23:40

Re: spring replay site

Post by dansan »

just perfect <3
dansan
Server Owner & Developer
Posts: 1203
Joined: 29 May 2010, 23:40

Re: spring replay site

Post by dansan »

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
dansan
Server Owner & Developer
Posts: 1203
Joined: 29 May 2010, 23:40

Re: spring replay site

Post by dansan »

* 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...
User avatar
danil_kalina
Posts: 505
Joined: 08 Feb 2010, 22:21

Re: spring replay site

Post by danil_kalina »

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
User avatar
FLOZi
MC: Legacy & Spring 1944 Developer
Posts: 6240
Joined: 29 Apr 2005, 01:14

Re: spring replay site

Post by FLOZi »

Godde is too powerful for a webserver to handle :mrgreen:
dansan
Server Owner & Developer
Posts: 1203
Joined: 29 May 2010, 23:40

Re: spring replay site

Post by dansan »

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.
User avatar
danil_kalina
Posts: 505
Joined: 08 Feb 2010, 22:21

Re: spring replay site

Post by danil_kalina »

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
dansan
Server Owner & Developer
Posts: 1203
Joined: 29 May 2010, 23:40

Re: spring replay site

Post by dansan »

Reasoning was: "all searches are technically advanced searches" - but your ui reasoning is sound :) So I fixed that with some conditional JS show/hide.
User avatar
danil_kalina
Posts: 505
Joined: 08 Feb 2010, 22:21

Re: spring replay site

Post by danil_kalina »

When replays are ready in notalobby we can cooperate to make user friendly UI for replays web site.
dansan
Server Owner & Developer
Posts: 1203
Joined: 29 May 2010, 23:40

Re: spring replay site

Post by dansan »

Looking forward to it - I'm happy for all input :)
User avatar
danil_kalina
Posts: 505
Joined: 08 Feb 2010, 22:21

Re: spring replay site

Post by danil_kalina »

dansan, you are dealing with replays.
How to find out what team won ?
User avatar
koshi
Lobby Developer
Posts: 1059
Joined: 14 Aug 2007, 16:15

Re: spring replay site

Post by koshi »

parse the command stream to find the last team still alive
dansan
Server Owner & Developer
Posts: 1203
Joined: 29 May 2010, 23:40

Re: spring replay site

Post by dansan »

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 :)
User avatar
danil_kalina
Posts: 505
Joined: 08 Feb 2010, 22:21

Re: spring replay site

Post by danil_kalina »

koshi wrote:parse the command stream to find the last team still alive
Is it for complete replays too ?
User avatar
danil_kalina
Posts: 505
Joined: 08 Feb 2010, 22:21

Re: spring replay site

Post by danil_kalina »

@dansan
Thank you for detailed answer.
We think we should consider complete replays only for determining the winner
User avatar
danil_kalina
Posts: 505
Joined: 08 Feb 2010, 22:21

Re: spring replay site

Post by danil_kalina »

Who knows how to Host a replay ? what script should we use ?
User avatar
Jools
XTA Developer
Posts: 2816
Joined: 23 Feb 2009, 16:29

Re: spring replay site

Post by Jools »

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?
dansan
Server Owner & Developer
Posts: 1203
Joined: 29 May 2010, 23:40

Re: spring replay site

Post by dansan »

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.
User avatar
bibim
Lobby Developer
Posts: 952
Joined: 06 Dec 2007, 11:12

Re: spring replay site

Post by bibim »

Jools, you can set spadsLogLevel to 5 (debug) to see the end game command in the log as it is executed by SPADS.
User avatar
Jools
XTA Developer
Posts: 2816
Joined: 23 Feb 2009, 16:29

Re: spring replay site

Post by Jools »

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%
Post Reply

Return to “Infrastructure Development”