Weblobby
Moderators: Moderators, Lobby Developers
- CarRepairer
- Cursed Zero-K Developer
- Posts: 3359
- Joined: 07 Nov 2007, 21:48
Weblobby
Lobby client in a webpage.
FAQ
What?
Lobby client in your browser.
Where?
http://weblobby.springrts.com/
How?
Javascript, Dojo, Java.
Why?
So that Windows, Linux and Mac can live as one.
Huh?
I was bored.
Please help by testing it out.
Thanks to Licho, det, sheep, MidKnight and his colors, hoijui, cheesecan, abma.
FAQ
What?
Lobby client in your browser.
Where?
http://weblobby.springrts.com/
How?
Javascript, Dojo, Java.
Why?
So that Windows, Linux and Mac can live as one.
Huh?
I was bored.
Please help by testing it out.
Thanks to Licho, det, sheep, MidKnight and his colors, hoijui, cheesecan, abma.
Last edited by CarRepairer on 15 May 2012, 07:17, edited 7 times in total.
Re: New lobby client 'nounce
you forgot something!
- CarRepairer
- Cursed Zero-K Developer
- Posts: 3359
- Joined: 07 Nov 2007, 21:48
Re: New lobby client 'nounce
When?
Soon Now.
Last edited by CarRepairer on 27 Feb 2012, 17:35, edited 1 time in total.
Re: New lobby client 'nounce
woohoo
Re: New lobby client 'nounce
Lobby client in your browser
but you need to host a php server to launch spring
Re: New lobby client 'nounce
Good idea :)
I'm a little worried about ppl following links that lead to mock-ups of this site and they enter their password there. Ofc every site has this problem... actually it's a user problem :)
Anyway... I think if this lobby should become real, a paid (not self-signed) SSL certificate "lobby.springrts.com" (or similar) should be used, to not make it to cheap to imitate the site.
@CarRepairer: PM me if you need a dedi (web)server (spring[1,2].admin-box.com) for testing purpose, I'd be happy to help.
Nope - just produce the script.txt with a dedicated mime-type (to be sure also use a dedicated file extension) and let the browser start a "helper-app" --> "spring[.exe]" (like spring-installer does now) - that's all.but you need to host a php server to launch spring
I'm a little worried about ppl following links that lead to mock-ups of this site and they enter their password there. Ofc every site has this problem... actually it's a user problem :)
Anyway... I think if this lobby should become real, a paid (not self-signed) SSL certificate "lobby.springrts.com" (or similar) should be used, to not make it to cheap to imitate the site.
@CarRepairer: PM me if you need a dedi (web)server (spring[1,2].admin-box.com) for testing purpose, I'd be happy to help.
Re: New lobby client 'nounce
you should not use the same password for spring and your online banking or similar. and even though of course, there are people doing that, it is not springs duty to care for that. we'd end up with shit like in the US, where they have to label coffe caps with text explaining that it is hot and dangerous and might kill you if you do not use it correctly.
Re: New lobby client 'nounce
the problem is not stealing of online banking password but stealing lobby accounts for trolling or whatever.
though i think/hope that will not be a problem.
though i think/hope that will not be a problem.
Re: New lobby client 'nounce
Ofc it's not the duty to protect from themselves, and nobody expects it. But IMO it's the duty of every site owner to protect its users from the simplest attacks that can be done technically, and that is something that can be expected.hoijui wrote:you should not use the same password for spring and your online banking or similar. and even though of course, there are people doing that, it is not springs duty to care for that.
That has nothing to do with this. They have strong consumer rights combined with a law where the height of financial punishment depends on "how much it hurts". Much better against corp. than for ex. in Germany where it depends solely on the "damage done to someone/thing", which is often to low to really punish a corp. So - what does this have to do with trying to protect your users from the simplest fraud?hoijui wrote:we'd end up with shit like in the US, where they have to label coffe caps with text explaining that it is hot and dangerous and might kill you if you do not use it correctly.
Re: New lobby client 'nounce
this is just stoopid !
either you make a java lobby to make a multiplatform lobby, but SL is already multiplatform, so it's useless, either you're trying to make a proxy lobby, which is just stoopid, just make a web:80 -> springrts.com:8200 redirector and people will be able to use the lobby they want ...
either you make a java lobby to make a multiplatform lobby, but SL is already multiplatform, so it's useless, either you're trying to make a proxy lobby, which is just stoopid, just make a web:80 -> springrts.com:8200 redirector and people will be able to use the lobby they want ...
Re: New lobby client 'nounce
Could the script.txt be kept (or compressed) into under 2000 characters?
In that case, the Spring installer could set Spring up as an URL handler. So your lobby would do the launch by offering the user a link of the form
<a href="spring:myreallylongscript.txtcontents">Start Game</a>
Windows provides the means for an installer to provide a new URL handler, although on Linux it's handled by the desktop environment and I've only ever seen it done on Gnome-based desktops.
See this article:
http://kb.mozillazine.org/Register_protocol
Now, I don't know if you can do a Javascript redirect to a non-HTTP url, so you might require manual intervention there...
but if Spring registered an URL handler, you'd be in awesome shape for a weblobby.
Edit: Dansan's idea of a script.txt with a dedicated mim-type is better.
Registering a mime-type file association to launch an app is much easier than registering an URL handler.
In that case, the Spring installer could set Spring up as an URL handler. So your lobby would do the launch by offering the user a link of the form
<a href="spring:myreallylongscript.txtcontents">Start Game</a>
Windows provides the means for an installer to provide a new URL handler, although on Linux it's handled by the desktop environment and I've only ever seen it done on Gnome-based desktops.
See this article:
http://kb.mozillazine.org/Register_protocol
Now, I don't know if you can do a Javascript redirect to a non-HTTP url, so you might require manual intervention there...
but if Spring registered an URL handler, you'd be in awesome shape for a weblobby.
Edit: Dansan's idea of a script.txt with a dedicated mim-type is better.
Registering a mime-type file association to launch an app is much easier than registering an URL handler.
- CarRepairer
- Cursed Zero-K Developer
- Posts: 3359
- Joined: 07 Nov 2007, 21:48
Re: New lobby client 'nounce
I don't think SL works on a mac. It only took me a few days. Satirik please stay out of this thread, and subforum.
Whether I ajaxphp it or try another way (great suggestions so far) to run spring I am happy even with just chat which I can use on a smartphone. I had fun in the process.
Whether I ajaxphp it or try another way (great suggestions so far) to run spring I am happy even with just chat which I can use on a smartphone. I had fun in the process.
Re: New lobby client 'nounce
Hey car. Can I help you wif the colors? I want to make pretty colors!
-
- Posts: 1398
- Joined: 17 Sep 2008, 04:36
Re: New lobby client 'nounce
Brilliant work imho.
I am no expert but given recent trends, moving as much as possible to web is a great move. So much easier for cross-platform, no worries about dependency changes breaking things (with my wxwidgets version SL is barely usable, qtlobby stopped compiling after qt update), and no worries about finding testers or packagers for all those flavors of unix.
Not to mention, website updates mean instant updates for all users with no downloading or installing required, users can get help in chat without having to install anything, and people will have a chance to see that there are games happening, that there is an active community rather larger than pretty much any other free RTS out there.
I hope you stay motivated enough to make a full-featured web lobby a reality. :D
I am no expert but given recent trends, moving as much as possible to web is a great move. So much easier for cross-platform, no worries about dependency changes breaking things (with my wxwidgets version SL is barely usable, qtlobby stopped compiling after qt update), and no worries about finding testers or packagers for all those flavors of unix.
Not to mention, website updates mean instant updates for all users with no downloading or installing required, users can get help in chat without having to install anything, and people will have a chance to see that there are games happening, that there is an active community rather larger than pretty much any other free RTS out there.
I hope you stay motivated enough to make a full-featured web lobby a reality. :D
Re: New lobby client 'nounce
Well technically you could bundle it together with a portable web stack and Mozilla Prism browserMasure wrote:Lobby client in your browser
but you need to host a php server to launch spring
http://www.google.com/search?q=portable+php+server
http://prism.mozillalabs.com/
- Forboding Angel
- Evolution RTS Developer
- Posts: 14673
- Joined: 17 Nov 2005, 02:43
Re: New lobby client 'nounce
Yeah I was thinking the exact same thing as petah. Portable web stack should do just fine, and prism can put on the nice final touches.
Re: New lobby client 'nounce
A simple java-applet for socket connections and local file access will do just fine.
Re: New lobby client 'nounce
If that's possible, then Java's security is nightmarishly bad.dansan wrote:A simple java-applet for socket connections and local file access will do just fine.
Re: New lobby client 'nounce
Sorry - forgot to write "a signed java-applet"...Pxtl wrote:If that's possible, then Java's security is nightmarishly bad.dansan wrote:A simple java-applet for socket connections and local file access will do just fine.
You can sign them yourself, then the user needs to accept it. Like with self-signed SSL certificates.
And yes - very good to know this: when you allow a signed java app to run in your browser, you allow it to do everything outside the sandbox!
(there are sec-profiles to reduce permissions, but noone uses them)
- marciolino
- Posts: 268
- Joined: 06 Sep 2010, 22:59
Re: New lobby client 'nounce
This is a very nice idea! I am a mac user and a web-hosted lobby would be really awesome!!!