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

[ANY] ASteambot - Chat


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Arkarr
Veteran Member
Join Date: Sep 2012
Location: Just behind my PC screen
Plugin ID:
5799
Plugin Version:
1.0
Plugin Category:
General Purpose
Plugin Game:
Any
Plugin Dependencies:
Servers with this Plugin:
 
Plugin Description:
A module wich contains everything that is chat related.
Old 09-02-2017 , 12:10   [ANY] ASteambot - Chat
Reply With Quote #1

ASteambot Chat




Before anything, read this :
You will need ASteambot to run this plugin.
You need at least the version V 2.8.3.
You need to open at least 1 port.



This module contains everything that is chat-related to ASteambot. Right now, it only relay chat messages from a server to a steam chat and vice versa. Take a look at the media !


  • Everything is fully automatic
  • Easy configuration
  • Support multiples servers



Download and run ASteambot, it can be downloaded [here]

Install ASteambot_Core :

If you already have installed ASteambot_Core, update it.

0) Install socket extension
1) Grab ASteambot_Core from [here]
2) Put in your plugins folder : addons/sourcemod/plugins
3) DOWNLOAD AND EDIT THE CONFIGURATION FILE AND PUT IT IN [SERVER PATH]/cfg/asteambot/asteambot_core.cfg !!!
4) Restart your server

Install ASteambot_Chat :

1) Grab the smx file (ASteambot_Chat) on github, [here]
2) Put the smx file in your plugins folder : addons/sourcemod/plugins
3) Restart your server.
4) Done !



In a STEAM CHAT write "HOOKCHAT [SERVERID]" without the comas to listent to a server's chat.
In a STEAM CHAT write "STOPHOOK" without the comas to stop hooking a server's chat.

Writing something while in HOOKCHAT mode will send it to the server!



None



Nothing right now, make a request !



None found yet







All files are on Github : https://github.com/Arkarr/SourcemodASteambot/

Enjoy !

Logs :
Spoiler
__________________
Want to check my plugins ?

Last edited by Arkarr; 05-02-2019 at 11:13.
Arkarr is offline
Obyboby
Veteran Member
Join Date: Sep 2013
Old 11-22-2017 , 07:09   Re: [ANY] ASteambot - Chat
Reply With Quote #2



Damn, after all this trouble I managed to make the bot connect to the server but it still says invalid game server ID when I try to HOOKCHAT. :C
__________________
Obyboby is offline
Arkarr
Veteran Member
Join Date: Sep 2012
Location: Just behind my PC screen
Old 11-22-2017 , 07:24   Re: [ANY] ASteambot - Chat
Reply With Quote #3

Quote:
Originally Posted by Obyboby View Post


Damn, after all this trouble I managed to make the bot connect to the server but it still says invalid game server ID when I try to HOOKCHAT. :C
Have you tried this :
HOOKCHAT 1
I think I need to rework the steam chat part...
__________________
Want to check my plugins ?
Arkarr is offline
Obyboby
Veteran Member
Join Date: Sep 2013
Old 11-22-2017 , 08:08   Re: [ANY] ASteambot - Chat
Reply With Quote #4

Quote:
Originally Posted by Arkarr View Post
Have you tried this :
HOOKCHAT 1
I think I need to rework the steam chat part...
It said "Connecting to server...."
Then nothing.

And I saw it crashed on rpi.


PHP Code:
*************************
11/22/2017 2:07:03 PM (Version 2.8.1 - PUBLIC)
*************************
-
2146233033mscorlib
System
.Text.StringBuilder AppendFormatHelper(System.IFormatProviderSystem.StringSystem.ParamsArray)


Index (zero basedmust be greater than or equal to zero and less than the size of the argument list.
  
at System.Text.StringBuilder.AppendFormatHelper (System.IFormatProvider providerSystem.String formatSystem.ParamsArray args) [0x000ffin <6e241547b2184f08b8370f11a198586d>:
  at System
.String.FormatHelper (System.IFormatProvider providerSystem.String formatSystem.ParamsArray args) [0x00023in <6e241547b2184f08b8370f11a198586d>:
  at System
.String.Format (System.String formatSystem.Object arg0System.Object arg1) [0x00009in <6e241547b2184f08b8370f11a198586d>:
  at ASteambot
.HandleSteamChat.SendMessageToGameServer (System.Int32 moduleIDSteamKit2.SteamID partenarSystem.String message) [0x00036in <fe6c8533bb2b4aea8599cfe98b4afe98>:
  at ASteambot
.HandleSteamChat.HandleMessage (SteamKit2.SteamID partenarSystem.String message) [0x00047in <fe6c8533bb2b4aea8599cfe98b4afe98>:
  at ASteambot
.Bot.OnSteamFriendMessage (SteamKit2.SteamFriends+FriendMsgCallback callback) [0x00038in <fe6c8533bb2b4aea8599cfe98b4afe98>:
  at SteamKit2
.Callback`1[TCall].Run (System.Object callback) [0x0004c] in <9c7649488e094f368568005a612cd0ee>:0 
  at SteamKit2.CallbackManager+<>c__DisplayClass11_0.<Handle>b__1 (SteamKit2.Internal.CallbackBase callback) [0x00000] in <9c7649488e094f368568005a612cd0ee>:0 
  at System.Collections.Generic.List
`1[T].ForEach (System.Action`1[T] action) [0x00024] in <6e241547b2184f08b8370f11a198586d>:0 
  at SteamKit2.CallbackManager.Handle (SteamKit2.ICallbackMsg call) [0x00024] in <9c7649488e094f368568005a612cd0ee>:0 
  at SteamKit2.CallbackManager.RunWaitAllCallbacks (System.TimeSpan timeout) [0x0001c] in <9c7649488e094f368568005a612cd0ee>:0 
  at ASteambot.Bot.Run () [0x0001c] in <fe6c8533bb2b4aea8599cfe98b4afe98>:0 
  at ASteambot.Manager.Start () [0x00046] in <fe6c8533bb2b4aea8599cfe98b4afe98>:0 
  at System.Threading.ThreadHelper.ThreadStart_Context (System.Object state) [0x00014] in <6e241547b2184f08b8370f11a198586d>:0 
  at System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00071] in <6e241547b2184f08b8370f11a198586d>:0 
  at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00000] in <6e241547b2184f08b8370f11a198586d>:0 
  at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state) [0x0002b] in <6e241547b2184f08b8370f11a198586d>:0 
  at System.Threading.ThreadHelper.ThreadStart () [0x00008] in <6e241547b2184f08b8370f11a198586d>:0 

One question in the meantime: so this addon allows you to read the whole server chat in a conversation with your bot, right?
One awesome feature, if you're already preparing to implement telegram, woulbe to start streaming the server chat to a telegram conversation, with an option to enable/disable it.
Like:
/startlog
send the server log, including the chat, to the conversation
/stoplog
Stop sending the server log

That, together with a listener for rcon commands, would be dope. But maybe I'm going Off topic...


Well, so, my bot cannot start listening to the chat. It can read the server but it cannot HOOK. It says connecting to server then nothing.
And on the rpi it says "connection reset by peer"
then the steambot stops replying on the steam chat.
__________________

Last edited by Obyboby; 11-22-2017 at 08:31.
Obyboby is offline
Arkarr
Veteran Member
Join Date: Sep 2012
Location: Just behind my PC screen
Old 11-22-2017 , 08:47   Re: [ANY] ASteambot - Chat
Reply With Quote #5

@Obyboby
It looks like you didn't waited for ASteambot to fully initialise. Have you reloaded the ASteambot_Core once Asteambot was SUCESSFULLY logged in (and that you are able to type commands) ?
__________________
Want to check my plugins ?
Arkarr is offline
Obyboby
Veteran Member
Join Date: Sep 2013
Old 11-22-2017 , 08:51   Re: [ANY] ASteambot - Chat
Reply With Quote #6

Quote:
Originally Posted by Arkarr View Post
@Obyboby
It looks like you didn't waited for ASteambot to fully initialise. Have you reloaded the ASteambot_Core once Asteambot was SUCESSFULLY logged in (and that you are able to type commands) ?
I'll try again, but is this really needed every time? I mean..it should be able to start, connect, and even restart and reconnect by itself, in case something goes wrong..right?

edit:

Here we go:

PHP Code:
CS.MONEY SKINSJAR.COMSERVER
BOT nudonudo
: ---------------------------
BOT nudonudo: [1] [ITANudonudo Community Competitive RankME FastDL 128 tick xxxxxxxxxx:xxxxx
BOT nudonudo
Number of registred servers 1
BOT nudonudo
: ---------------------------
CS.MONEY SKINSJAR.COMHOOKCHAT 1
BOT nudonudo
Connecting to server... 
No response after that. On the rpi I get "Sent 16 bytes to client"
No more "conection reset by peer" but yeah I'm not getting anything on the chat with the bot. Is it supposed to report a successful connection to the server?
Or should it start showing me the chat right away^?
__________________

Last edited by Obyboby; 11-22-2017 at 09:06.
Obyboby is offline
Arkarr
Veteran Member
Join Date: Sep 2012
Location: Just behind my PC screen
Old 11-22-2017 , 09:30   Re: [ANY] ASteambot - Chat
Reply With Quote #7

Quote:
Originally Posted by Obyboby View Post
I'll try again, but is this really needed every time? I mean..it should be able to start, connect, and even restart and reconnect by itself, in case something goes wrong..right?
Normally, yes. But for now, for some reasons, if the bot isn't fully started, the connection are still allowed. A bug know and I need to fix it. Probably in 2.9.X or 3.X.Y

For now, just make sure to FULLY start ASteambot and THEN the server.
Quote:
Originally Posted by Obyboby View Post
edit:

Here we go:

PHP Code:
CS.MONEY SKINSJAR.COMSERVER
BOT nudonudo
: ---------------------------
BOT nudonudo: [1] [ITANudonudo Community Competitive RankME FastDL 128 tick xxxxxxxxxx:xxxxx
BOT nudonudo
Number of registred servers 1
BOT nudonudo
: ---------------------------
CS.MONEY SKINSJAR.COMHOOKCHAT 1
BOT nudonudo
Connecting to server... 
No response after that. On the rpi I get "Sent 16 bytes to client"
No more "conection reset by peer" but yeah I'm not getting anything on the chat with the bot. Is it supposed to report a successful connection to the server?
Or should it start showing me the chat right away^?
I made a fix for that, download 2.8.2 please.
__________________
Want to check my plugins ?

Last edited by Arkarr; 11-22-2017 at 09:32.
Arkarr is offline
Obyboby
Veteran Member
Join Date: Sep 2013
Old 11-23-2017 , 12:42   Re: [ANY] ASteambot - Chat
Reply With Quote #8

Quote:
Originally Posted by Arkarr View Post
Normally, yes. But for now, for some reasons, if the bot isn't fully started, the connection are still allowed. A bug know and I need to fix it. Probably in 2.9.X or 3.X.Y

For now, just make sure to FULLY start ASteambot and THEN the server.

I made a fix for that, download 2.8.2 please.
Question, why is chat-processor.smx needed?
There's a bug in it that allows players to see the opposing team's teamchat so I had to remove it.
Is there any chance to remove the dependancy from it?
Honestly I can't even figure out the use of that plugin..
__________________
Obyboby is offline
Arkarr
Veteran Member
Join Date: Sep 2012
Location: Just behind my PC screen
Old 11-23-2017 , 14:28   Re: [ANY] ASteambot - Chat
Reply With Quote #9

Quote:
Originally Posted by Obyboby View Post
Question, why is chat-processor.smx needed?
There's a bug in it that allows players to see the opposing team's teamchat so I had to remove it.
Is there any chance to remove the dependancy from it?
Honestly I can't even figure out the use of that plugin..
Because it's the only plugin (that I know) wich allow me to detect whenever there a user who write something in the chat, and then send it to ASteambot.
__________________
Want to check my plugins ?
Arkarr is offline
Obyboby
Veteran Member
Join Date: Sep 2013
Old 11-23-2017 , 14:54   Re: [ANY] ASteambot - Chat
Reply With Quote #10

Quote:
Originally Posted by Arkarr View Post
Because it's the only plugin (that I know) wich allow me to detect whenever there a user who write something in the chat, and then send it to ASteambot.
Fak

Yeah then I need to remove it until I find a fix for the team chat that is visible to the other team...
__________________
Obyboby 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 04:48.


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