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

[ANY] ASteambot - Arkarr's Steam bot


Post New Thread Reply   
 
Thread Tools Display Modes
Arkarr
Veteran Member
Join Date: Sep 2012
Location: Just behind my PC screen
Old 11-22-2017 , 09:53   Re: [ANY] ASteambot - Arkarr's Steambot
Reply With Quote #571

Quote:
Originally Posted by Obyboby View Post
That should be enough. I'll try asap and report back.
Oh and there is an option in the config file to disable market scan, and this will prevent out-of-memory exception on raspberry PI.
__________________
Want to check my plugins ?
Arkarr is offline
Obyboby
Veteran Member
Join Date: Sep 2013
Old 11-22-2017 , 10:01   Re: [ANY] ASteambot - Arkarr's Steambot
Reply With Quote #572

Quote:
Originally Posted by Arkarr View Post
Oh and there is an option in the config file to disable market scan, and this will prevent out-of-memory exception on raspberry PI.
Yes I remember you mentioned the market scan so I disabled it since then.
But if I start taking offers from the bot, I will need it to be active I guess...I will have to find a solution by then.
I don't have much stuff on my rpi... :C
__________________
Obyboby is offline
Arkarr
Veteran Member
Join Date: Sep 2012
Location: Just behind my PC screen
Old 11-22-2017 , 10:29   Re: [ANY] ASteambot - Arkarr's Steambot
Reply With Quote #573

Quote:
Originally Posted by Obyboby View Post
Yes I remember you mentioned the market scan so I disabled it since then.
But if I start taking offers from the bot, I will need it to be active I guess...I will have to find a solution by then.
I don't have much stuff on my rpi... :C
What's the version of your Raspi ? Because I'm running ASteambot on my raspberry PI 3 B without problems.
__________________
Want to check my plugins ?
Arkarr is offline
Obyboby
Veteran Member
Join Date: Sep 2013
Old 11-22-2017 , 10:51   Re: [ANY] ASteambot - Arkarr's Steambot
Reply With Quote #574

Quote:
Originally Posted by Arkarr View Post
What's the version of your Raspi ? Because I'm running ASteambot on my raspberry PI 3 B without problems.
Same, PI 3 B.
I have another 2 bots with separate functions running, that might fill the memory, but I'm not sure..the small indicator on the taskbar never shows more than 50% RAM used. I should look into that.

Btw I managed to get the Steamguard thing to work.

Here's how I structured the file:

PHP Code:
{"shared_secret":"mysharedsecretfromsteamguardfile",
"serial_number":"",
"revocation_code":"",
"SteamID":""
I actually only inserted my shared secret and it works. No need for any other details it seems.
I'm talking login and 2FA codes obviously. Might need more data in order to handle trade offers.


EDIT: Updated to 2.8.2 and here are my steps to launch the bot.

- CSGO Server is ALREADY running (lets say we're in the middle of the day and we have people playing, no chance to restart the whole server now!)
- Plugins are all loaded, including the ASteamBot_core plugin
- I head over to my rpi, and launch the bot.
- Bot logs into steam, connects to the databases, etc
- Once the bot is connected and ready, I make sure it's ready by trying a command ("help")
- Now, I head over to the server's console and reload the Steambot core plugin, which sometimes reports back that it's trying to connect to my rpi, sometimes doesn't...I don't understand why honestly, but yeah, that's what I see
- Wait around 30 seconds, then try to ping the bot via steam chat by saying "SERVER"
- Well, it's not working again... it says no servers connected to me :C

Ok so it connected but it took quite a while. A few minutes I think.. still stuck at "Connecting to server" though
__________________

Last edited by Obyboby; 11-22-2017 at 11:55.
Obyboby is offline
Obyboby
Veteran Member
Join Date: Sep 2013
Old 11-22-2017 , 16:22   Re: [ANY] ASteambot - Arkarr's Steambot
Reply With Quote #575

Sorry for double posting.
So tonight I went home and restarted the bot, without touching anything on the server. While the bot was restarting, I went to do other stuff. Say 5 to 10 minutes.
Now I sit at my computer, send SERVER to the bot, then HOOKCHAT 1, and poof! It magically works. I am seeing the chat finally
Time to test more and see if it can keep working 24/7 now!
__________________
Obyboby is offline
Arkarr
Veteran Member
Join Date: Sep 2012
Location: Just behind my PC screen
Old 11-22-2017 , 16:45   Re: [ANY] ASteambot - Arkarr's Steambot
Reply With Quote #576

Quote:
Originally Posted by Obyboby View Post
Sorry for double posting.
So tonight I went home and restarted the bot, without touching anything on the server. While the bot was restarting, I went to do other stuff. Say 5 to 10 minutes.
Now I sit at my computer, send SERVER to the bot, then HOOKCHAT 1, and poof! It magically works. I am seeing the chat finally
Time to test more and see if it can keep working 24/7 now!
Well, it should happen like this, actually. It should reconnect whenever there is an error detected.
__________________
Want to check my plugins ?
Arkarr is offline
Obyboby
Veteran Member
Join Date: Sep 2013
Old 11-22-2017 , 17:47   Re: [ANY] ASteambot - Arkarr's Steambot
Reply With Quote #577

Quote:
Originally Posted by Arkarr View Post
Well, it should happen like this, actually. It should reconnect whenever there is an error detected.
Now everything seems fine but I stopped receiving the chat log since quite a while.. I joined the server to test and yeah, it's not working anymore. But the bot seems fine on the rpi.. :C
This is related to the chat addon, but a STATUS command would be great to check the connection.
__________________

Last edited by Obyboby; 11-22-2017 at 17:49.
Obyboby is offline
Arkarr
Veteran Member
Join Date: Sep 2012
Location: Just behind my PC screen
Old 11-23-2017 , 03:32   Re: [ANY] ASteambot - Arkarr's Steambot
Reply With Quote #578

Quote:
Originally Posted by Obyboby View Post
Now everything seems fine but I stopped receiving the chat log since quite a while.. I joined the server to test and yeah, it's not working anymore. But the bot seems fine on the rpi.. :C
This is related to the chat addon, but a STATUS command would be great to check the connection.
Well, yeah, it's a problem related to the plugin, not the bot. On map change, the connection close and reconnect. That's why it break the hook chat function. It has not been meant to monitor the chat H24/7 haha.¨

EDIT:
Made a small fix to disconnect yourself from the game server's chat when the connection was lost. Before you was stuck unable to reconnect. Update to V 2.8.3 please.
__________________
Want to check my plugins ?

Last edited by Arkarr; 11-23-2017 at 06:17.
Arkarr is offline
Obyboby
Veteran Member
Join Date: Sep 2013
Old 11-23-2017 , 07:55   Re: [ANY] ASteambot - Arkarr's Steambot
Reply With Quote #579

Quote:
Originally Posted by Arkarr View Post
Well, yeah, it's a problem related to the plugin, not the bot. On map change, the connection close and reconnect. That's why it break the hook chat function. It has not been meant to monitor the chat H24/7 haha.¨

EDIT:
Made a small fix to disconnect yourself from the game server's chat when the connection was lost. Before you was stuck unable to reconnect. Update to V 2.8.3 please.
Great, thanks!

Ok so, when I restart the bot, after a good 5-10 minutes, it will connect to the server without touching anything. Let's test the chat now

EDIT:

idk, it detects the server but then it doesn't start logging the chat :C



(It just doesnt respond anymore after that)


EDIT2:

Another crash..
Steps I did to get to this crash:

- Launch bot
- Wait for a while for it to get ready
- testtcp
- bot reports "Sent 24 bytes to client"
- "Connection reset by peer"

...why? I don't get it. What's the exact meaning of that?
Anyway, after I got that, I decided to try again with testtcp, but the bot crashed.

And here's the log it generated:

PHP Code:
*************************
11/23/2017 3:52:01 PM (Version 2.8.3 - PUBLIC)
*************************
-
2147467259System
System
.IAsyncResult BeginSend(Byte[], Int32Int32System.Net.Sockets.SocketFlagsSystem.AsyncCallbackSystem.Object)


The socket is not connected
  at System
.Net.Sockets.Socket.BeginSend (System.Byte[] bufferSystem.Int32 offsetSystem.Int32 sizeSystem.Net.Sockets.SocketFlags socketFlagsSystem.AsyncCallback callbackSystem.Object state) [0x00022in <50d80b08c1a5449282b22aedf03ce925>:
  at ASteambot
.GameServer.Send (System.Int32 moduleIDASteambot.Networking.NetworkCode+ASteambotCode netcodeSystem.String data) [0x00052in <ae0863f4f44242e9bc9ef899b693fddc>:
  at ASteambot
.Manager.testTCP (System.String[] args) [0x0005bin <ae0863f4f44242e9bc9ef899b693fddc>:
  at ASteambot
.Manager.Command (System.String command) [0x0026ain <ae0863f4f44242e9bc9ef899b693fddc>:
  at ASteambot
.Program.Main (System.String[] args) [0x000ebin <ae0863f4f44242e9bc9ef899b693fddc>:
__________________

Last edited by Obyboby; 11-23-2017 at 10:08.
Obyboby is offline
Arkarr
Veteran Member
Join Date: Sep 2012
Location: Just behind my PC screen
Old 11-24-2017 , 03:17   Re: [ANY] ASteambot - Arkarr's Steambot
Reply With Quote #580

@Obyboby

Hey,

So, firstly, if you enter in hook chat mode (HOOKCHAT [X]) you will receive AND send message to the server.
So, if you write something in the steamchat, it will send it to the server (That's why EXEC didn't do anything).

Are you sure that NOTHING appeared in the game server's chat ?

For your second described problem, it looks like the end of message are termined correctly. That's kinda strange and might depend from your socket settings where your server is hosted to.

Put ASteambot_Core in debug mode (check the cvar, "sm_asteambot_debug" -> "true"), and try to do the following :

1) Restart ASteambot. (wait for him to be fully loaded)
2) Reload ASteambot_Core (sm plugins reload ASteambot_Core)
3) Reload ASteambot_Chat (sm plugins reload ASteambot_Chat)
4) Write in steam chat with the bot : SERVER
5) Write in steam chat with the bot : HOOKCHAT [SRV ID, should be 1]
6) Write in steam chat with the bot : Hello World !
7) Check game server's chat, should be something like : {green}Hello world !
Write something in game server's chat : Hello World 2 !
9) Check steamchat with the bot.
10) Write STOPHOOK in the chat with in the bot's steam chat.
11) Write : EXEC [SRV ID] sm_map [MAP NAME] in the steamchat with the bot.

Observe the game server's each step. It should give you more infos.
All received message should end with <EOF> !
__________________
Want to check my plugins ?
Arkarr is offline
Reply


Thread Tools
Display Modes

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 11:50.


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