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

[ANY] ASteambot - Arkarr's Steam bot


Post New Thread Reply   
 
Thread Tools Display Modes
mdmanl
AlliedModders Donor
Join Date: Nov 2017
Location: Netherlands
Old 11-02-2017 , 17:06   Re: [ANY] ASteambot - Arkarr's Steambot
Reply With Quote #551

You are fast man, respect
mdmanl is offline
Arkarr
Veteran Member
Join Date: Sep 2012
Location: Just behind my PC screen
Old 11-02-2017 , 17:09   Re: [ANY] ASteambot - Arkarr's Steambot
Reply With Quote #552

Quote:
Originally Posted by mdmanl View Post
You are fast man, respect
Thank you ?
__________________
Want to check my plugins ?
Arkarr is offline
mdmanl
AlliedModders Donor
Join Date: Nov 2017
Location: Netherlands
Old 11-02-2017 , 17:12   Re: [ANY] ASteambot - Arkarr's Steambot
Reply With Quote #553

-bash-4.2$ mono ASteambot.exe
Cannot open assembly 'ASteambot.exe': File does not contain a valid CIL image.

Also on windows it wont start

UPDATE: This error is on my side i think, happens with older version now aswell. Ignore it

Last edited by mdmanl; 11-02-2017 at 17:27.
mdmanl is offline
Arkarr
Veteran Member
Join Date: Sep 2012
Location: Just behind my PC screen
Old 11-02-2017 , 17:42   Re: [ANY] ASteambot - Arkarr's Steambot
Reply With Quote #554

Just tested to be sure, it runs fine on Raspbian :


I have no idea yet why you have that error.
__________________
Want to check my plugins ?
Arkarr is offline
mdmanl
AlliedModders Donor
Join Date: Nov 2017
Location: Netherlands
Old 11-02-2017 , 18:43   Re: [ANY] ASteambot - Arkarr's Steambot
Reply With Quote #555

Seems that the files were somehow corrupted.
Fixed by downloading it again

Last edited by mdmanl; 11-02-2017 at 18:44.
mdmanl is offline
Arkarr
Veteran Member
Join Date: Sep 2012
Location: Just behind my PC screen
Old 11-21-2017 , 11:44   Re: [ANY] ASteambot - Arkarr's Steambot
Reply With Quote #556

I want to add a tracking feature to ASteambot. It would save the IP of the machine executing it and you would be able to see where in the world is ASteambot running through the website (The IP information won't be public). Althrough, this make looks like a bit too intrusive. Maybe make it optional and disable/enable it through config ?

So...

YES / NO / DON'T CARE ?

Please, someone tell me who to do polls on AM, I don't feel like scripting something like that now.
__________________
Want to check my plugins ?
Arkarr is offline
Obyboby
Veteran Member
Join Date: Sep 2013
Old 11-21-2017 , 12:54   Re: [ANY] ASteambot - Arkarr's Steambot
Reply With Quote #557

Can confirm it works on Raspbian 8, I've just installed it in like 5 minutes
I got the basic bot working, now trying to install the steam Chat addon.

Regarding that last question, I say add it with an option to disable it.


EDIT: installed Chat addon and command execution addon, I need to find why the bot replies with "no servers connected to me" when I type SERVER to get the game server ID.
I have probably skipped one important step but I can't figure out which one... Uhm
__________________

Last edited by Obyboby; 11-21-2017 at 13:28.
Obyboby is offline
Obyboby
Veteran Member
Join Date: Sep 2013
Old 11-21-2017 , 18:09   Re: [ANY] ASteambot - Arkarr's Steambot
Reply With Quote #558

PHP Code:
*************************
11/22/2017 12:03:54 AM (Version 2.8.0 - PUBLIC)
*************************
-
2146233033mscorlib
Void StringToNumber
(System.StringSystem.Globalization.NumberStylesNumberBuffer ByRefSystem.Globalization.NumberFormatInfoBoolean)


Input string was not in a correct format.
  
at System.Number.StringToNumber (System.String strSystem.Globalization.NumberStyles optionsSystem.Number+NumberBuffernumberSystem.Globalization.NumberFormatInfo infoSystem.Boolean parseDecimal) [0x00057in <6e241547b2184f08b8370f11a198586d>:
  at System
.Number.ParseInt32 (System.String sSystem.Globalization.NumberStyles styleSystem.Globalization.NumberFormatInfo info) [0x00015in <6e241547b2184f08b8370f11a198586d>:
  at System
.Int32.Parse (System.String s) [0x00007in <6e241547b2184f08b8370f11a198586d>:
  at ASteambot
.HandleSteamChat.ExecuteServerCommand (SteamKit2.SteamID partenarSystem.String message) [0x00011in <b866fefa5331476181a47ed06996d9b9>:
  at ASteambot
.HandleSteamChat.HandleMessage (SteamKit2.SteamID partenarSystem.String message) [0x000bain <b866fefa5331476181a47ed06996d9b9>:
  at ASteambot
.Bot.OnSteamFriendMessage (SteamKit2.SteamFriends+FriendMsgCallback callback) [0x00038in <b866fefa5331476181a47ed06996d9b9>:
  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 <b866fefa5331476181a47ed06996d9b9>:0 
  at ASteambot.Manager.Start () [0x00046] in <b866fefa5331476181a47ed06996d9b9>: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 

Bot crashed
It crashes if I send an "EXEC" command.


Also could you help me troubleshoot this error where the bot is not connected to my server? I don't get it.. :C
The whole CFG thing was done correctly :C

EDIT:
If I check

PHP Code:
sm_asteambot_server_ip 
In the console it always returns XXX.XXX. etc. I added my details in csgo/cfg/sourcemod/Steambot_CmdModule.cfg AND server/csgo/cfg/asteambot/asteambot_core.cfg, but NO LUCK.

Also, since my raspberry is under DynDNS domain, should I add that one? Or should I put a numeric IP?

EDIT2: OK I fixed it by typing the numeric IP. But what if my IP changes? I'm using dynDNS for this, so that I user a domain instead of an IP...


And I'm still unable to connect it to my server... damn...



__________________

Last edited by Obyboby; 11-21-2017 at 19:18.
Obyboby is offline
Arkarr
Veteran Member
Join Date: Sep 2012
Location: Just behind my PC screen
Old 11-22-2017 , 04:16   Re: [ANY] ASteambot - Arkarr's Steambot
Reply With Quote #559

DDNS shouldn't be a problem :



Also, for your connection problem :

0) Make sure you have opened the correct port (asteambot_core.cfg) in your machine that host ASteambot !
1) Start the bot, make sure he is sucessfully logged (wait until you can make an input)
2) Edit the IP in the config file /cfg/asteambot/asteambot_core.cfg :
Code:
// The ip of the server where the steambot is hosted.
// -
// Default: "XXX.XXX.XXX.XXX"
sm_asteambot_server_ip "raspberrypimaison.ddns.net"
3) (Re)start the game server. Once it's started, write :
sm plugins reload ASteambot_Core

Give me the output. It's either a connection sucess or a error code wich will help me to tell you what to do next.

Oh and I fixed the bug you mentionned above, thanks.
__________________
Want to check my plugins ?

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

Quote:
Originally Posted by Arkarr View Post
DDNS shouldn't be a problem :



Also, for your connection problem :

0) Make sure you have opened the correct port (asteambot_core.cfg) in your machine that host ASteambot !
1) Start the bot, make sure he is sucessfully logged (wait until you can make an input)
2) Edit the IP in the config file /cfg/asteambot/asteambot_core.cfg :
Code:
// The ip of the server where the steambot is hosted.
// -
// Default: "XXX.XXX.XXX.XXX"
sm_asteambot_server_ip "raspberrypimaison.ddns.net"
3) (Re)start the game server. Once it's started, write :
sm plugins reload ASteambot_Core

Give me the output. It's either a connection sucess or a error code wich will help me to tell you what to do next.

Oh and I fixed the bug you mentionned above, thanks.
I'll try that right now.
Meanwhile, I logged into my rpi and noticed the bot has crashed:

PHP Code:
*************************
11/22/2017 12:03:54 AM (Version 2.8.0 - PUBLIC)
*************************
-
2146233033mscorlib
Void StringToNumber
(System.StringSystem.Globalization.NumberStylesNumberBuffer ByRefSystem.Globalization.NumberFormatInfoBoolean)


Input string was not in a correct format.
  
at System.Number.StringToNumber (System.String strSystem.Globalization.NumberStyles optionsSystem.Number+NumberBuffernumberSystem.Globalization.NumberFormatInfo infoSystem.Boolean parseDecimal) [0x00057in <6e241547b2184f08b8370f11a198586d>:
  at System
.Number.ParseInt32 (System.String sSystem.Globalization.NumberStyles styleSystem.Globalization.NumberFormatInfo info) [0x00015in <6e241547b2184f08b8370f11a198586d>:
  at System
.Int32.Parse (System.String s) [0x00007in <6e241547b2184f08b8370f11a198586d>:
  at ASteambot
.HandleSteamChat.ExecuteServerCommand (SteamKit2.SteamID partenarSystem.String message) [0x00011in <b866fefa5331476181a47ed06996d9b9>:
  at ASteambot
.HandleSteamChat.HandleMessage (SteamKit2.SteamID partenarSystem.String message) [0x000bain <b866fefa5331476181a47ed06996d9b9>:
  at ASteambot
.Bot.OnSteamFriendMessage (SteamKit2.SteamFriends+FriendMsgCallback callback) [0x00038in <b866fefa5331476181a47ed06996d9b9>:
  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 <b866fefa5331476181a47ed06996d9b9>:0 
  at ASteambot.Manager.Start () [0x00046] in <b866fefa5331476181a47ed06996d9b9>: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 


*************************
11/22/2017 12:32:41 AM (Version 2.8.0 - PUBLIC)
*************************
-2146233033mscorlib
Void StringToNumber(System.String, System.Globalization.NumberStyles, NumberBuffer ByRef, System.Globalization.NumberFormatInfo, Boolean)


Input string was not in a correct format.
  at System.Number.StringToNumber (System.String str, System.Globalization.NumberStyles options, System.Number+NumberBuffer& number, System.Globalization.NumberFormatInfo info, System.Boolean parseDecimal) [0x00057] in <6e241547b2184f08b8370f11a198586d>:0 
  at System.Number.ParseInt32 (System.String s, System.Globalization.NumberStyles style, System.Globalization.NumberFormatInfo info) [0x00015] in <6e241547b2184f08b8370f11a198586d>:0 
  at System.Int32.Parse (System.String s) [0x00007] in <6e241547b2184f08b8370f11a198586d>:0 
  at ASteambot.HandleSteamChat.ExecuteServerCommand (SteamKit2.SteamID partenar, System.String message) [0x00011] in <b866fefa5331476181a47ed06996d9b9>:0 
  at ASteambot.HandleSteamChat.HandleMessage (SteamKit2.SteamID partenar, System.String message) [0x000ba] in <b866fefa5331476181a47ed06996d9b9>:0 
  at ASteambot.Bot.OnSteamFriendMessage (SteamKit2.SteamFriends+FriendMsgCallback callback) [0x00038] in <b866fefa5331476181a47ed06996d9b9>:0 
  at SteamKit2.Callback
`1[TCall].Run (System.Object callback) [0x0004cin <9c7649488e094f368568005a612cd0ee>:
  at SteamKit2
.CallbackManager+<>c__DisplayClass11_0.<Handle>b__1 (SteamKit2.Internal.CallbackBase callback) [0x00000in <9c7649488e094f368568005a612cd0ee>:
  at System
.Collections.Generic.List`1[T].ForEach (System.Action`1[Taction) [0x00024in <6e241547b2184f08b8370f11a198586d>:
  at SteamKit2
.CallbackManager.Handle (SteamKit2.ICallbackMsg call) [0x00024in <9c7649488e094f368568005a612cd0ee>:
  at SteamKit2
.CallbackManager.RunWaitAllCallbacks (System.TimeSpan timeout) [0x0001cin <9c7649488e094f368568005a612cd0ee>:
  at ASteambot
.Bot.Run () [0x0001cin <b866fefa5331476181a47ed06996d9b9>:
  at ASteambot
.Manager.Start () [0x00046in <b866fefa5331476181a47ed06996d9b9>:
  at System
.Threading.ThreadHelper.ThreadStart_Context (System.Object state) [0x00014in <6e241547b2184f08b8370f11a198586d>:
  at System
.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext executionContextSystem.Threading.ContextCallback callbackSystem.Object stateSystem.Boolean preserveSyncCtx) [0x00071in <6e241547b2184f08b8370f11a198586d>:
  at System
.Threading.ExecutionContext.Run (System.Threading.ExecutionContext executionContextSystem.Threading.ContextCallback callbackSystem.Object stateSystem.Boolean preserveSyncCtx) [0x00000in <6e241547b2184f08b8370f11a198586d>:
  at System
.Threading.ExecutionContext.Run (System.Threading.ExecutionContext executionContextSystem.Threading.ContextCallback callbackSystem.Object state) [0x0002bin <6e241547b2184f08b8370f11a198586d>:
  at System
.Threading.ThreadHelper.ThreadStart () [0x00008in <6e241547b2184f08b8370f11a198586d>:


*************************
11/22/2017 10:58:24 AM (Version 2.8.0 - PUBLIC)
*************************
-
2147024882



Out of memory
  at 
(wrapper allocSystem.Object:AllocVector (intptr,intptr)
  
at System.Collections.Generic.List`1[T].set_Capacity (System.Int32 value) [0x00021] in <6e241547b2184f08b8370f11a198586d>:0 
  at System.Collections.Generic.List
`1[T].EnsureCapacity (System.Int32 min) [0x00036in <6e241547b2184f08b8370f11a198586d>:
  at System
.Collections.Generic.List`1[T].Add (T item) [0x00010] in <6e241547b2184f08b8370f11a198586d>:0 
  at ASteambot.Manager.Start () [0x0005a] in <b866fefa5331476181a47ed06996d9b9>: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 

But I'll update to 2.8.1 first and see if that error happens again.
How do I download the 2.8.1 folder ONLY from GitHub? I can only download each of the files contained in it, one by one :/ and I don't really want to DL all the versions every time xD

Also, when you release these updates, should I just download the new .exe or everything (DLLs etc)?


EDIT: ok so I've followed the steps and noticed that I had

sm_steambot_server_ip

Instead of that

sm_asteambot_server_ip

that you wrote.
Same for the other commands, ports, password, etc. Should they all be "steambot"?

Anyway, I've reloaded the plugin and all the CSGO server console said is:

PHP Code:
L 11/22/2017 11:59:09rcon from "87.13.91.183:60282"command "echo Welcome user!"
[SMPlugin [ANYASteambot Core reloaded successfully
If I run testtcp on the steambot on my rpi, it still says 0 connected servers.

P.S.: having two similar commands like these is quite confusing.. do we need both?

PHP Code:

sm_asteambot_server_ip
"sm_asteambot_server_ip" "xxx.ddns.net" def"XXX.XXX.XXX.XXX" )            - The ip of the server where the steambot is hosted.
L 11/22/2017 12:00:36rcon from "87.13.xxxxxxx"command "sm_asteambot_server_ip"

sm_steambot_server_ip
"sm_steambot_server_ip" "87.13.91.xxx" def"XXX.XXX.XXX.XXX" )              - The ip of the server where the steambot is hosted.
L 11/22/2017 12:00:40rcon from "87.13.xxxxxx"command "sm_steambot_server_ip" 
__________________

Last edited by Obyboby; 11-22-2017 at 06:02.
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 08:11.


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