Jessecar96 / SteamBot

Automated bot software for interacting with Steam Trade
http://scrap.tf
MIT License
1.33k stars 910 forks source link

Why It Errored? #160

Closed Tetrahedrite closed 11 years ago

Tetrahedrite commented 11 years ago

The Bot Run Successful. But I just trade to bot, But program is errored.

I used "master" Branch.


Exception: System.ArgumentNullException: Can't be null Parameter Name : type Path: System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Bi nder binder, Object[] args, CultureInfo culture, Object[] activationAttributes) Path: System.Activator.CreateInstance(Type type, Object[] args) Path: SteamBot.Program.<>cDisplayClass5.

b1(Bot bot, SteamID sid) File C:\Users\Develop7\Desktop\New Folder (3)\usegitSOURCE\SteamBot\SteamBot\Program. cs:Line 28 Path: SteamBot.Bot.GetUserHandler(SteamID sid) File C:\Users\Develop7\Desktop \New Folder (3)\usegitSOURCE\SteamBot\SteamBot\Bot.cs:Line 440 Path: SteamBot.Bot.ba(TradeProposedCallback callback) File C:\Users\Develop7\Desktop\New Folder (3)\usegitSOURCE\SteamBot\SteamBot\Bot.cs :Line 373 Path: SteamKit2.CallbackMsg.Handle[T](Action`1 handler) File C:\Users\Develop 7\Desktop\New Folder (3)\usegitSOURCE\SteamBot\Lib\SteamKit2\SteamKit2\Steam3\Steam Client\CallbackMgr\CallbackMsg.cs:Line 72 Path: SteamBot.Bot.HandleSteamMessage(CallbackMsg msg) File C:\Users\Develop7 \Desktop\New Folder (3)\usegitSOURCE\SteamBot\SteamBot\Bot.cs:Line 347 Path: SteamBot.Bot.<.ctor>b1() File C:\Users\Develop7\Desktop\New Folder (3)\u segitSOURCE\SteamBot\SteamBot\Bot.cs:Line 121 Path: System.Threading.ThreadHelper.ThreadStart_Context(Object state) Path: System.Threading.ExecutionContext.Run(ExecutionContext executionContext , ContextCallback callback, Object state, Boolean ignoreSyncCtx) Path: System.Threading.ExecutionContext.Run(ExecutionContext executionContext , ContextCallback callback, Object state) Path: System.Threading.ThreadHelper.ThreadStart()

Philipp15b commented 11 years ago

Looking at the code of Program.cs, line 28, you most likely got the BotControlClass wrong in some way.

Tetrahedrite commented 11 years ago

@Philipp15b I pasted your Program.cs But Equal Error Again.. null error at parameter type.

Philipp15b commented 11 years ago

There's (most likely) nothing wrong with the Program.cs file, the BotControlClass in the config json is wrong. Make sure to check that.

Tetrahedrite commented 11 years ago

@Philipp15b Oh, Thanks. My Settings.json is wrong