spring replay site

spring replay site

For the discussion of infrastructure improvements and changes.

Moderator: Moderators

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

spring replay site

Post by dansan » 11 Apr 2012, 02:30

I will hopefully get an alpha version online {end of, next} week.
Attachments
srs.jpg
(98.96 KiB) Downloaded 9 times
0 x

User avatar
Jazcash
Posts: 5301
Joined: 08 Dec 2007, 17:39

Re: spring replay site

Post by Jazcash » 11 Apr 2012, 02:30

I love you.
0 x

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

Re: spring replay site

Post by smoth » 11 Apr 2012, 02:33

very cool dan!
0 x

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

Re: spring replay site

Post by knorke » 11 Apr 2012, 12:47

yay!
0 x

User avatar
AF
AI Developer
Posts: 20667
Joined: 14 Sep 2004, 11:32

Re: spring replay site

Post by AF » 11 Apr 2012, 18:26

What have you built this in?
0 x

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

Re: spring replay site

Post by smoth » 11 Apr 2012, 18:35

AF wrote:What have you built this in?
Image
he built it in a van down by the river
0 x

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

Re: spring replay site

Post by dansan » 11 Apr 2012, 21:39

AF wrote:What have you built this in?
Django (Python), the design is from oswd.org. Will soonish push all to github and inform here.
0 x

User avatar
SanadaUjiosan
Conflict Terra Developer
Posts: 907
Joined: 21 Jan 2010, 06:21

Re: spring replay site

Post by SanadaUjiosan » 14 Apr 2012, 09:03

smoth wrote:
AF wrote:What have you built this in?
Image
he built it in a van down by the river
lol, +1 for Smoth

+1 also for the topic of this thread :-)
0 x

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

Re: spring replay site

Post by dansan » 20 Apr 2012, 15:26

Oh well... took longer than I thought (it always does :).

Site: http://replays.admin-box.com/
GitHub: https://github.com/dansan/spring-replay-site/

Needs a lot of polishing, esp. the HTML. If anyone wants to do a nicer template I'll happily use it.

The data model is stable I think, so you can register and upload stuff. I will try to not delete anything, but I cannot guarantee that atm. But as far as I can see it. it's mostly "view" stuff that needs (a lots of) editing...

If this works out well, maybe the domain replays.springrts.com could be set to the servers IP?

Please report issues here or on github.
0 x

User avatar
marciolino
Posts: 268
Joined: 06 Sep 2010, 22:59

Re: spring replay site

Post by marciolino » 21 Apr 2012, 05:37

THANKS DANSAN! Nice work ;)
0 x

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

Re: spring replay site

Post by knorke » 25 Apr 2012, 15:31

i uploaded a replay:
http://replays.admin-box.com/replay/214 ... 01cdf4421/

when i first clicked "submit" i got an error:
Warning at /upload/
Out of range value adjusted for column 'accountid' at row 1
http://pastebin.com/en1Qv81y
(pastebin of the html)

then i clicked back, hit submit again and it worked..
Though notice that it does not list players and the title/description does not show eithe.

Also here:
http://replays.admin-box.com/players/
it lists [2up]knorke but when clicked it does not link the game.



random things:
-make it possible to login with lobby account
iirc that is somehow possible for websites and eg zerok does it.

-spoiler function. (do not show winner until clicking something)

-dl links for map+game
0 x

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

Re: spring replay site

Post by dansan » 30 Apr 2012, 17:05

oops... sorry... didnt notice your post.
knorke wrote:i uploaded a replay:
http://replays.admin-box.com/replay/214 ... 01cdf4421/

when i first clicked "submit" i got an error:
Warning at /upload/
Out of range value adjusted for column 'accountid' at row 1
http://pastebin.com/en1Qv81y
(pastebin of the html)
Thank you for reporting. It is a bug that is semi-fixed now. I was assigning 999999999 as accountID for players without account - that worked with sqlite, but is to big for mysql xD
Still players without an account is a problem, as I didnt plan for that, and now some links/queries brake...
then i clicked back, hit submit again and it worked..
Though notice that it does not list players and the title/description does not show eithe.
reuploading isnt supported atm, so data ends up incomplete... have to impl. a roll-back mechanism if things go bad.
I reuploaded, now its better: http://replays.admin-box.com/replay/214 ... 01cdf4421/ but the links on the players names are broken (account-thingy), in other replay-details its ok...
Also here:
http://replays.admin-box.com/players/
it lists [2up]knorke but when clicked it does not link the game.
Player-without-account-problem...
random things:
-make it possible to login with lobby account
iirc that is somehow possible for websites and eg zerok does it.
I'd love to... I guess it has to move to springrts-server for that. Once site is working properly I'd like to do that (if admins approve).
-spoiler function. (do not show winner until clicking something)
really? :D OK... uhm... someone knows JS and can code a little something?
-dl links for map+game
queued
0 x

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

Re: spring replay site

Post by knorke » 01 May 2012, 09:15

ah good. cool that there might soon be replay site again :)
0 x

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

Re: spring replay site

Post by koshi » 01 May 2012, 10:34

dansan wrote:OK... uhm... someone knows JS and can code a little something?
template --> http://ladder.springrts.com/help
0 x

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

Re: spring replay site

Post by dansan » 01 May 2012, 20:27

Oh that's beautiful - thank you.
I will use it also to show/hide stuff that's seldom of interest like {map,mod}options, host etc.
0 x

User avatar
AF
AI Developer
Posts: 20667
Joined: 14 Sep 2004, 11:32

Re: spring replay site

Post by AF » 01 May 2012, 23:48

This is what things like twitter bootstrap are for
0 x

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

Re: spring replay site

Post by dansan » 02 May 2012, 10:28

Thank you for the pointer. I'm really a web-noob, these infos help me :)

(When I started coding the site I was naively hoping to somehow get around html/css/js coding.... :roll: )
0 x

User avatar
Jazcash
Posts: 5301
Joined: 08 Dec 2007, 17:39

Re: spring replay site

Post by Jazcash » 02 May 2012, 16:18

Don't work too hard on the current design. Come the start of Summer I'll have tons of free time and might end up designing and coding a site for you :P
0 x

User avatar
albator
Posts: 866
Joined: 14 Jan 2009, 14:20

Re: spring replay site

Post by albator » 03 May 2012, 01:19

AWSOME, we can finally play the mar-contest again
0 x

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

Re: spring replay site

Post by dansan » 05 May 2012, 01:50

What's the "mar-contest"?

Good news everyone:
  • I implemented lobby account auth. You can now login with your lobby account. I'm waiting for a small protocol change by the ZeroK-team (https://code.google.com/p/zero-k/issues ... 1336036144) to make it resistant against renames. Existing accounts continue to work.
  • I added a XML-RPC interface that allows for automatic uploading (example client: https://github.com/dansan/spring-replay ... _client.py). I asked bibim if he can add a command to spads to use it, so that tourney admins can switch auto-upload on and off, and can later edit all uploaded replays :P
PS: api.springfiles.com is down, so atm you cannot upload replays that use unknown maps (known maps: http://replays.admin-box.com/maps/).
0 x

Post Reply

Return to “Infrastructure Development”