Spring javascript web irc
Moderators: Moderators, Lobby Developers
Spring javascript web irc
I'm sure a lot of people, devs especially, connect to Spring Lobby servers only for the chat, and it's quite nice to have it available on every machine, even those without desktop lobbies.
Currently the only way to do this is to use the Java Weblobby: weblobby.springrts.com, which while great, still depends on Java in browsers (that has issues of its own, best discussed elsewhere) since it's meant to be used to actually initiate Spring games.
I'd ideally want to use something simple and elegant, much like the stuff that can be seen on popular irc networks: http://webchat.freenode.net/ and http://webchat.quakenet.org/. And it turns out that qwebirc is an open source project, and bibim(? he's the github owner at least) created an IRCBridge: http://springrts.com/wiki/IrcBridge.
So what I did was put qwebirc into one of my dev machines and after a bit of configuring and some changes to the source code I've made it connect to springrts. You can try it out here: http://ec2-54-213-69-69.us-west-2.compu ... onaws.com/.
Could we perhaps have it added in webchat.springrts.com, springrts.com/irc or something similar?
Example picture:
Currently the only way to do this is to use the Java Weblobby: weblobby.springrts.com, which while great, still depends on Java in browsers (that has issues of its own, best discussed elsewhere) since it's meant to be used to actually initiate Spring games.
I'd ideally want to use something simple and elegant, much like the stuff that can be seen on popular irc networks: http://webchat.freenode.net/ and http://webchat.quakenet.org/. And it turns out that qwebirc is an open source project, and bibim(? he's the github owner at least) created an IRCBridge: http://springrts.com/wiki/IrcBridge.
So what I did was put qwebirc into one of my dev machines and after a bit of configuring and some changes to the source code I've made it connect to springrts. You can try it out here: http://ec2-54-213-69-69.us-west-2.compu ... onaws.com/.
Could we perhaps have it added in webchat.springrts.com, springrts.com/irc or something similar?
Example picture:
- CarRepairer
- Cursed Zero-K Developer
- Posts: 3359
- Joined: 07 Nov 2007, 21:48
Re: Spring javascript web irc
Some people still have problems getting Java to use weblobby, so this chat alternative is a good thing. So long as common folks don't think they can play the game with it.
As a game dev however, I use weblobby's single player tab to run test games if I want to test bots or modoptions, for example. So ultimately a game dev would need a single player client to test certain things.
As a game dev however, I use weblobby's single player tab to run test games if I want to test bots or modoptions, for example. So ultimately a game dev would need a single player client to test certain things.
Re: Spring javascript web irc
Of course, this is not meant to replace WebLobby (or any other lobby for that matter). It's not meant to be used to play games with, and it never will be.
It's just an alternative (simpler, Java-free) chat-only system for work ( ) and similar places.
It's just an alternative (simpler, Java-free) chat-only system for work ( ) and similar places.
Re: Spring javascript web irc
OK, for those interested, the repo is here: https://bitbucket.org/gajop/qwebirc-springrts.
Mercurial is used because the original project is also using it so it will make updates easier.
config.py will need to be modified if configured on a different server.
Mercurial is used because the original project is also using it so it will make updates easier.
config.py will need to be modified if configured on a different server.
Re: Spring javascript web irc
why is a patch for qwebirc needed?
will you or did you try to get your patch merged upstream?
will you or did you try to get your patch merged upstream?
Re: Spring javascript web irc
A copy with slight modifications of things I answered in the lobby:
I think it's needed so users can specify the server password (only) as it's used instead of the original NICKSERV IDENTIFY thingy.
The 2nd part of the patch was the change to have PASS be supplied before USER, which the IRC bridge seems to need.
And the 3rd part of the patch is just some configs which will need to be slightly changed (e.g. address would need to be changed to webchat.springrts.com).
Note that most IRC servers don't use a server password. I will check with the qwebirc team to see if these changes are correct and whether they will be merged upstream.
I think it's needed so users can specify the server password (only) as it's used instead of the original NICKSERV IDENTIFY thingy.
The 2nd part of the patch was the change to have PASS be supplied before USER, which the IRC bridge seems to need.
And the 3rd part of the patch is just some configs which will need to be slightly changed (e.g. address would need to be changed to webchat.springrts.com).
Note that most IRC servers don't use a server password. I will check with the qwebirc team to see if these changes are correct and whether they will be merged upstream.
- Forboding Angel
- Evolution RTS Developer
- Posts: 14673
- Joined: 17 Nov 2005, 02:43
Re: Spring javascript web irc
Very Cool! Great work!
Re: Spring javascript web irc
Thanks. I still need to configure connection settings so timeouts don't happen as often.
Re: Spring javascript web irc
atm iframe only:
http://webchat.springrts.com/
sorry, no idea when i've the time to set it up on springrts.com, but its a beginning :)
i've set #sy/#main as default channels to join, hope that is ok...
(and fuu, we need https!!)
http://webchat.springrts.com/
sorry, no idea when i've the time to set it up on springrts.com, but its a beginning :)
i've set #sy/#main as default channels to join, hope that is ok...
(and fuu, we need https!!)
Re: Spring javascript web irc
https is great but i can't provide a certificate :)
Re: Spring javascript web irc
This is not a requirement of the IRC bridge specifically, but a requirement of IRC protocol as specified in the IRC RFC:gajop wrote:The 2nd part of the patch was the change to have PASS be supplied before USER, which the IRC bridge seems to need.
RFC 1459 wrote:A "PASS" command is not required for either client or server connection to be registered, but it must precede the server message or the latter of the NICK/USER combination. The recommended order for a client to register is as follows:
1. Pass message
2. Nick message
3. User message
RDC 1459 wrote:The PASS command is used to set a 'connection password'. The password can and must be set before any attempt to register the connection is made. Currently this requires that clients send a PASS command before sending the NICK/USER combination
Re: Spring javascript web irc
TurBoss "updated" the webchat, it uses now "the lounge" and runs on the springrts.com server.
https://springrts.com/webchat/
https://springrts.com/webchat/
- Forboding Angel
- Evolution RTS Developer
- Posts: 14673
- Joined: 17 Nov 2005, 02:43
Re: Spring javascript web irc
Abma, this is awesome! Thank you!
Re: Spring javascript web irc
Well done.abma wrote:TurBoss "updated" the webchat, it uses now "the lounge" and runs on the springrts.com server.
https://springrts.com/webchat/
I think next steps should be to add it to the wiki and make it easily discoverable.
Maybe https://springrts.com/wiki/IRC would be a good page?
Also, we should add the navigation bar there if possible.
Re: Spring javascript web irc
kudos go to TurBoss, he did the hard work! (i just posted this info)Abma, this is awesome! Thank you!
Re: Spring javascript web irc
Hi
Ive updated the webchat to the stable version 2.0 from 1.5.0 of "The Lounge"
https://github.com/thelounge/lounge
plz post any issue here thx!
Ive updated the webchat to the stable version 2.0 from 1.5.0 of "The Lounge"
https://github.com/thelounge/lounge
plz post any issue here thx!