Warcraft II Forum

Warcraft II => Mods & Development => Topic started by: AHB on August 03, 2017, 03:44:15 PM

Title: PvPGN HTML5 Chatroom
Post by: AHB on August 03, 2017, 03:44:15 PM
Hi
I found a way to make an HTML5 PvPGN chatroom login possible using websockets.

I used a library called websockify which runs on your webserver and acts as a proxy between the web user and server.war2.ru:6112, sending and receiving between the HTTP user and TCP socket

 If anyone with some Javascript and CSS skills has some time to contribute to make it prettier I think it would be a nice addition to the server to be able to log in and chat from mobile devices, especially iPhone which doesnt have a PvPGN chat app like Android does.

I have a TODO list on github with features that we can work on if anyone is interested

https://github.com/reillychase/pvpgn_html5_chatroom (https://github.com/reillychase/pvpgn_html5_chatroom)

example http://war2.info/static/chat.html (http://war2.info/static/chat.html)

You can use my throwaway account to test it -- abcdef // abcdef
Title: Re: PvPGN HTML5 Chatroom
Post by: shesycompany on August 03, 2017, 08:57:32 PM
 :blank: very cool man!
Title: Re: PvPGN HTML5 Chatroom
Post by: Delete mine too on August 04, 2017, 04:15:05 PM
You should have it create an account for us randomly. Pretty cool reminds me of the webbot days in bnet.
Title: Re: PvPGN HTML5 Chatroom
Post by: AHB on August 23, 2017, 02:39:32 PM
added some updates, its more mobile friendly now:

https://war2.info/chat

Lots of work to do including

unicode support
more coloring of different messages
lots of fixing commands like making '/stats player1' send as '/stats player1 w2bn' etc to get around telnet behaviors and make it more wc2 natural
bug on iphone which puts padding above keyboard when input is focused

if anyone with html/css/javascript skills wants to help out let me know :)
(AKA @mousEtopher !)