Raised This Month: $32 Target: $400
 8% 

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


Post New Thread Reply   
 
Thread Tools Display Modes
morpig
Member
Join Date: Apr 2017
Old 09-27-2018 , 18:30   Re: [DEV] WebSocket Server - Direct connection between webbrowser and gameserver
Reply With Quote #61

Hi, I used this plugin couple months ago for RCON on SM 1.8. Does this still work in 1.9?
morpig is offline
8guawong
AlliedModders Donor
Join Date: Dec 2013
Location: BlackMarke7
Old 09-28-2018 , 02:17   Re: [DEV] WebSocket Server - Direct connection between webbrowser and gameserver
Reply With Quote #62

Quote:
Originally Posted by morpig View Post
Hi, I used this plugin couple months ago for RCON on SM 1.8. Does this still work in 1.9?
try it?

i don't see why not
__________________
8guawong is offline
Papero
Veteran Member
Join Date: Aug 2016
Location: Italy
Old 10-06-2018 , 12:50   Re: [DEV] WebSocket Server - Direct connection between webbrowser and gameserver
Reply With Quote #63

On sourcemod 1.9 whenever the browser tries to connect to the websocket server I get this error:

Code:
L 10/06/2018 - 12:45:53: [SM] Exception reported: Invalid match index passed.

L 10/06/2018 - 12:45:53: [SM] Blaming: websocket.smx
L 10/06/2018 - 12:45:53: [SM] Call stack trace:
L 10/06/2018 - 12:45:53: [SM]   [0] GetRegexSubString
L 10/06/2018 - 12:45:53: [SM]   [1] Line 753, C:\Users\Jannik\Documents\GitHub\sm-websocket\scripting\websocket.sp::OnChildSocketReceive
Has anyone ever noticed this or knows a fix?
__________________
My Plugins
SPCode


Steam: hexer504
Telegram: Hexah
Discord: Hexah#6903

If you like my work you can donate here!

Last edited by Papero; 10-06-2018 at 12:50.
Papero is offline
mkvegas
Junior Member
Join Date: Apr 2019
Old 06-09-2019 , 19:02   Re: [DEV] WebSocket Server - Direct connection between webbrowser and gameserver
Reply With Quote #64

Quote:
Originally Posted by Papero View Post
On sourcemod 1.9 whenever the browser tries to connect to the websocket server I get this error:

Code:
L 10/06/2018 - 12:45:53: [SM] Exception reported: Invalid match index passed.

L 10/06/2018 - 12:45:53: [SM] Blaming: websocket.smx
L 10/06/2018 - 12:45:53: [SM] Call stack trace:
L 10/06/2018 - 12:45:53: [SM]   [0] GetRegexSubString
L 10/06/2018 - 12:45:53: [SM]   [1] Line 753, C:\Users\Jannik\Documents\GitHub\sm-websocket\scripting\websocket.sp::OnChildSocketReceive
Has anyone ever noticed this or knows a fix?
I have the same problem SM 1.9.0anyone knows any fixes??
mkvegas is offline
Peace-Maker
SourceMod Plugin Approver
Join Date: Aug 2008
Location: Germany
Old 06-20-2019 , 17:41   Re: [DEV] WebSocket Server - Direct connection between webbrowser and gameserver
Reply With Quote #65

That error should be fixed in the latest version in the repository on GitHub.
__________________
Peace-Maker is offline
hASVAN
New Member
Join Date: Nov 2019
Old 11-22-2019 , 22:06   Re: [DEV] WebSocket Server - Direct connection between webbrowser and gameserver
Reply With Quote #66

Hey Bro. I have a problem with your plugin every time the Websocket tries to connect I get this (Disconnected - status 3 Code: 1006. Reason: - wasClean: false) im using the WebSocket chat Example

Last edited by hASVAN; 11-22-2019 at 22:07.
hASVAN is offline
hASVAN
New Member
Join Date: Nov 2019
Old 11-22-2019 , 22:33   Re: [DEV] WebSocket Server - Direct connection between webbrowser and gameserver
Reply With Quote #67

and now I have this error

HTML Code:
L 11/23/2019 - 03:32:31: [SM] Blaming: websocket.smx
L 11/23/2019 - 03:32:31: [SM] Call stack trace:
L 11/23/2019 - 03:32:31: [SM]   [0] GetRegexSubString
L 11/23/2019 - 03:32:31: [SM]   [1] Line 753, C:\Users\Jannik\Documents\GitHub\sm-websocket\scripting\websocket.sp::OnChildSocketReceive
L 11/23/2019 - 03:32:38: [SM] Exception reported: Invalid data pack handle 2 (error 7).
hASVAN is offline
Peace-Maker
SourceMod Plugin Approver
Join Date: Aug 2008
Location: Germany
Old 11-23-2019 , 05:58   Re: [DEV] WebSocket Server - Direct connection between webbrowser and gameserver
Reply With Quote #68

Try the latest version from GitHub. You'll have to compile it yourself though.
__________________
Peace-Maker is offline
hASVAN
New Member
Join Date: Nov 2019
Old 11-24-2019 , 16:06   Re: [DEV] WebSocket Server - Direct connection between webbrowser and gameserver
Reply With Quote #69

when I try to compile it. I get this error

HTML Code:
//// websocket.sp
//
// G:\scripting\include\socket.inc(203) : fatal error 196: deprecated syntax; see https://wiki.alliedmods.net/SourcePawn_Transitional_Syntax#Typedefs
//
// Compilation aborted.
// 1 Error.
//
// Compilation Time: 0,98 sec
// ----------------------------------------
hASVAN is offline
AK978
Senior Member
Join Date: Jun 2018
Old 03-31-2020 , 11:41   Re: [DEV] WebSocket Server - Direct connection between webbrowser and gameserver
Reply With Quote #70

socket.inc and websocket.inc file.
Attached Files
File Type: inc socket.inc (16.5 KB, 170 views)
File Type: inc websocket.inc (6.5 KB, 161 views)
AK978 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:17.


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