Skip to forum content

You are not logged in. Please login or register.


forums.pvpgn.pro → 3d Party Tools → HTML5 PvPGN Chat Client

Pages 1

You must login or register to post a reply

RSS topic feed

Posts: 11

1 (edited by USA-Archer 25.08.2017 21:27)

Topic: HTML5 PvPGN Chat Client

Hi
I wrote an HTML5 Chat Client for PvPGN servers:

You can login with abcde/abcde to server.war2.ru

war2.info/demo.html


If you would like to implement it for your PvPGN server let me know and I can help.

If you have some skills with HTML/CSS/Javascript and would like to help me improve the client also that would be appreciated!

Areas that need improvement:
Unicode support (doesnt exist currently)
Fix bug on iphone where msg text box for input gets pushed up
Return some commands in <pre></pre> like /games to fix formatting
Modify commands like "/games" to add "/games w2bn" automatically

How it works:
Websockify (python) server runs on a given port and takes input from regular HTML5 websockets. It opens a real TCP connection from the webserver to PvPGN telnet. It then acts as a bridge between the HTML5 user and PvPGN server.

I wrote the javascript that handles the interaction between HTML5 client and Websockify to the PvPGN server, wspvpgn.js

2

Re: HTML5 PvPGN Chat Client

Wow awesome!


You should post the source on Github so we can help contribute and test.  Great job.

Owner of SlashDiablo - One of the oldest and most well known Diablo II servers
Admin of Resurgence - Vanilla++ mod
Co-Founder of Hellforged - Diablo 09 built on 1.13 engine (current work in progress)
Founder of Diablo2.org - Dedicated Discord server for PvPGN/D2GS questions

3 (edited by USA-Archer 25.08.2017 21:56)

Re: HTML5 PvPGN Chat Client

Meanski wrote:

Wow awesome!


You should post the source on Github so we can help contribute and test.  Great job.


Here you go!

https://github.com/reillychase/pvpgn-html5-chat-client

4 (edited by vallcerealz 01.09.2017 05:56)

Re: HTML5 PvPGN Chat Client

thanks, great job!

can use for war3 pvpgn?

5

Re: HTML5 PvPGN Chat Client

vallcerealz wrote:

thanks, great job!

can use for war3 pvpgn?

Yes it should work for all PvPGN servers. If you have any problems let me know!

Added: 01.09.2017 12:37

Added unicode support today

6

Re: HTML5 PvPGN Chat Client

Please update :
- Right click for whisper, and added new tab with that username
- Right click for display profile ( my profile and target profile )
- Right click for show ladder

^^

7

Re: HTML5 PvPGN Chat Client

I could not make the installation work outside my server (on another host)

Example

Chat Client -> Host_X
PvPGN Server -> Host_Y



Error in Chorme Console - Debugging

WebSocket connection to 'ws://Host_Y:6112/' failed: Connection closed before receiving a handshake response

WrappedWebSocket          @VM300:164
open                      @websock.js:227
PVPGN.that.connect        @wspvpgn.js:433
connect                   @chat.html:167

it's possible?

Diablo 2 Online

Itens - Armory - Market - Clans - Builds - Chat

8 (edited by USA-Archer 10.03.2018 18:56)

Re: HTML5 PvPGN Chat Client

Actually I reread that and its not right

You have to set up the websockify server

It works like this

Javascript/web client -> websockify server:6112 -> pvpgn server:6112

Its like a proxy for the web client because it is not possible for a direct network connection from a web browser

To add a second pvpgn server itd look like this

Javascript/web client -> websockify:6113 -> pvpgn:6112

9

Re: HTML5 PvPGN Chat Client

Hello USA-Archer!
Your script on my server for some reason does not work, can tell me what is the problem? More precisely, authorization does not work at all ...

10

Re: HTML5 PvPGN Chat Client

Gh0ster wrote:

Hello USA-Archer!
Your script on my server for some reason does not work, can tell me what is the problem? More precisely, authorization does not work at all ...

Sorry, but how could I know why it isn't working on your server? Can you give me a link to it at least?

11

Re: HTML5 PvPGN Chat Client

Is posible this in 1 app of android?

Posts: 11

Pages 1

You must login or register to post a reply

Who now at forum

Currently view post: 0 guests, 0 registered users

forums.pvpgn.pro → 3d Party Tools → HTML5 PvPGN Chat Client