Raised This Month: $51 Target: $400
 12% 

[DEV] WebSocket Server - Direct connection between webbrowser and gameserver


Post New Thread Reply   
 
Thread Tools Display Modes
nomy
Senior Member
Join Date: Dec 2009
Location: United Kingdom
Old 06-09-2012 , 03:01   Re: [DEV] WebSocket Server - Direct connection between webbrowser and gameserver
Reply With Quote #21

Are we allowed to use SourceTV2D?
nomy is offline
Thrawn2
Veteran Member
Join Date: Apr 2009
Old 06-09-2012 , 03:23   Re: [DEV] WebSocket Server - Direct connection between webbrowser and gameserver
Reply With Quote #22

Quote:
Originally Posted by Peace-Maker View Post
Good ideas, but not as easy and quick to implement as i first thought. Once a childsocket connects to a master socket, a private forward is created and each call to HookChild just adds the plugin's callbacks to the forwards, so it's currently not possible to have different parameters pushed to each plugin.
I guess i can work around that.
What about the two others things?

Also: sometimes (even short) messages get distorted and are not being received fully by the server or sth.
__________________
einmal mit profis arbeiten. einmal.
Thrawn2 is offline
Peace-Maker
SourceMod Plugin Approver
Join Date: Aug 2008
Location: Germany
Old 07-22-2012 , 12:30   Re: [DEV] WebSocket Server - Direct connection between webbrowser and gameserver
Reply With Quote #23

Quote:
Originally Posted by nomy View Post
Are we allowed to use SourceTV2D?
Due to the continuous asking, the sourcecode is attached to the 2nd post.
WARNING:
this is only an unfinished POC and i'm not going to really support it in any way. Feel free to expand and play with it.
__________________
Peace-Maker is offline
Mitchell
~lick~
Join Date: Mar 2010
Old 08-10-2012 , 11:53   Re: [DEV] WebSocket Server - Direct connection between webbrowser and gameserver
Reply With Quote #24

The sockets keep going up one by one. is there a way to reuse a socket that isnt being used, to limit the connections?
Mitchell is offline
cybersquare420
Veteran Member
Join Date: Nov 2008
Old 08-11-2012 , 11:47   Re: [DEV] WebSocket Server - Direct connection between webbrowser and gameserver
Reply With Quote #25

this is made right out of WIN!!
__________________
cybersquare420 is offline
iDragon
Member
Join Date: Aug 2010
Old 09-06-2012 , 05:06   Re: [DEV] WebSocket Server - Direct connection between webbrowser and gameserver
Reply With Quote #26

Really nice.
The sourcetv2d is a nice idea.
But is there a way to see the game in the web through the server's Source TV?
Like entering the source TV in game but through the browser instead?
__________________
Sorry for my bad english.
iDragon is offline
weeb1e
SourceMod Donor
Join Date: Sep 2011
Old 09-06-2012 , 14:07   Re: [DEV] WebSocket Server - Direct connection between webbrowser and gameserver
Reply With Quote #27

Quote:
Originally Posted by iDragon View Post
Really nice.
The sourcetv2d is a nice idea.
But is there a way to see the game in the web through the server's Source TV?
Like entering the source TV in game but through the browser instead?
No.
weeb1e is offline
GoD-Tony
Veteran Member
Join Date: Jul 2005
Old 09-11-2012 , 02:47   Re: [DEV] WebSocket Server - Direct connection between webbrowser and gameserver
Reply With Quote #28

Quote:
Originally Posted by iDragon View Post
But is there a way to see the game in the web through the server's Source TV?
Like entering the source TV in game but through the browser instead?
The answer is still no, but this proof of concept is kinda fun: http://youtu.be/isGf63qiisM
__________________
GoD-Tony is offline
DrDaxxy
New Member
Join Date: Sep 2012
Old 09-12-2012 , 17:10   Re: [DEV] WebSocket Server - Direct connection between webbrowser and gameserver
Reply With Quote #29

Doesn't seem to work anymore (SM 1.4.6, MM:S 1.9.0, Sockets 3.0.1, current tf2 srcds linux)

Code:
L 09/12/2012 - 21:06:18: [SM] Native "SocketSetOption" reported: Invalid handle: 0
L 09/12/2012 - 21:06:18: [SM] Displaying call stack trace for plugin "websocket.smx":
L 09/12/2012 - 21:06:18: [SM]   [0]  Line 213, C:\Users\Jannik\Desktop\Plugins2\websocket.so:Native_Websocket_Open()
Quote:
Originally Posted by GoD-Tony View Post
The answer is still no, but this proof of concept is kinda fun: http://youtu.be/isGf63qiisM
I was wondering when someone would do that.

Last edited by DrDaxxy; 09-12-2012 at 17:12.
DrDaxxy is offline
Thrawn2
Veteran Member
Join Date: Apr 2009
Old 10-03-2012 , 09:11   Re: [DEV] WebSocket Server - Direct connection between webbrowser and gameserver
Reply With Quote #30

Thanks for the 1.1 update, makes things prettier in the Wamp framework.

A rather critical bug:
Sometimes i receive truncated/erroneous messages.

When sending the same message repeatedly
[x,"sm:chat",["WAMP","hello"]]
(with x increasing by one every call)
this is what happens on the gameserver:

Code:
WAMP: hello
WAMP: hello
L 10/03/2012 - 14:54:25: [SMJSON] Error in line 1, col 2: invalid token near 'h'
L 10/03/2012 - 14:54:25: [tWAMP.smx] Received data is no JSON.
L 10/03/2012 - 14:54:25: [tWAMP.smx] Response was:
[h?¦[h?¦[h?¦[h?¦[h?¦[h?¦[h?¦[h
WAMP: hello
WAMP: hello
WAMP: hello
L 10/03/2012 - 14:54:57: [SMJSON] Error in line 1, col 6: unable to decode byte 0xb7 near '"sg
L 10/03/2012 - 14:54:57: [tWAMP.smx] Received data is no JSON.
L 10/03/2012 - 14:54:57: [tWAMP.smx] Response was:
[7,"sgÀýsgÀýsgÀýsgÀýsgÀýsgÀýsg
WAMP: hello
WAMP: hello
WAMP: hello
[..]
WAMP: hello
WAMP: hello
WAMP: hello
L 10/03/2012 - 14:55:13: [SMJSON] Error in line 1, col 22: unable to decode byte 0xf0 near '"'
L 10/03/2012 - 14:55:13: [tWAMP.smx] Received data is no JSON.
L 10/03/2012 - 14:55:13: [tWAMP.smx] Response was:
[7,"sm:chat",["WAMP","*äÞ"*äÞ"
WAMP: hello
__________________
einmal mit profis arbeiten. einmal.
Thrawn2 is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 17:03.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode