spring replay site

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

spring replay site

Post by dansan »

I will hopefully get an alpha version online {end of, next} week.
Attachments
srs.jpg
(98.96 KiB) Downloaded 9 times
User avatar
Jazcash
Posts: 5309
Joined: 08 Dec 2007, 17:39

Re: spring replay site

Post by Jazcash »

I love you.
User avatar
smoth
Posts: 22309
Joined: 13 Jan 2005, 00:46

Re: spring replay site

Post by smoth »

very cool dan!
User avatar
knorke
Posts: 7971
Joined: 22 Feb 2006, 01:02

Re: spring replay site

Post by knorke »

yay!
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Re: spring replay site

Post by AF »

What have you built this in?
User avatar
smoth
Posts: 22309
Joined: 13 Jan 2005, 00:46

Re: spring replay site

Post by smoth »

AF wrote:What have you built this in?
Image
he built it in a van down by the river
dansan
Server Owner & Developer
Posts: 1203
Joined: 29 May 2010, 23:40

Re: spring replay site

Post by dansan »

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.
User avatar
SanadaUjiosan
Conflict Terra Developer
Posts: 907
Joined: 21 Jan 2010, 06:21

Re: spring replay site

Post by SanadaUjiosan »

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

Re: spring replay site

Post by dansan »

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.
User avatar
marciolino
Posts: 268
Joined: 06 Sep 2010, 22:59

Re: spring replay site

Post by marciolino »

THANKS DANSAN! Nice work ;)
User avatar
knorke
Posts: 7971
Joined: 22 Feb 2006, 01:02

Re: spring replay site

Post by knorke »

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

Re: spring replay site

Post by dansan »

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
User avatar
knorke
Posts: 7971
Joined: 22 Feb 2006, 01:02

Re: spring replay site

Post by knorke »

ah good. cool that there might soon be replay site again :)
User avatar
koshi
Lobby Developer
Posts: 1059
Joined: 14 Aug 2007, 16:15

Re: spring replay site

Post by koshi »

dansan wrote:OK... uhm... someone knows JS and can code a little something?
template --> http://ladder.springrts.com/help
dansan
Server Owner & Developer
Posts: 1203
Joined: 29 May 2010, 23:40

Re: spring replay site

Post by dansan »

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.
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Re: spring replay site

Post by AF »

This is what things like twitter bootstrap are for
dansan
Server Owner & Developer
Posts: 1203
Joined: 29 May 2010, 23:40

Re: spring replay site

Post by dansan »

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: )
User avatar
Jazcash
Posts: 5309
Joined: 08 Dec 2007, 17:39

Re: spring replay site

Post by Jazcash »

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
User avatar
albator
Posts: 866
Joined: 14 Jan 2009, 14:20

Re: spring replay site

Post by albator »

AWSOME, we can finally play the mar-contest again
dansan
Server Owner & Developer
Posts: 1203
Joined: 29 May 2010, 23:40

Re: spring replay site

Post by dansan »

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/).
Post Reply

Return to “Infrastructure Development”