Jessecar96 / SteamBot

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

Can't Compile Correctly #120

Closed unreal1 closed 11 years ago

unreal1 commented 11 years ago

Anybody know what this error means?

Newtonsoft.Json.JsonReaderException: Error parsing comment. Expected: *, got /. Path '', line 2, position 2. ---> System.Exception: 
  --- End of inner exception stack trace ---

  at Newtonsoft.Json.JsonTextReader.ParseComment() in c:\Users\Unreal1\Desktop\SteamBot-master\Lib\Newtonsoft.Json\Src\Newtonsoft.Json\JsonTextReader.cs:line 1371

  at Newtonsoft.Json.JsonTextReader.ParseObject() in c:\Users\Unreal1\Desktop\SteamBot-master\Lib\Newtonsoft.Json\Src\Newtonsoft.Json\JsonTextReader.cs:line 881

  at Newtonsoft.Json.JsonTextReader.ReadInternal() in c:\Users\Unreal1\Desktop\SteamBot-master\Lib\Newtonsoft.Json\Src\Newtonsoft.Json\JsonTextReader.cs:line 481

  at Newtonsoft.Json.JsonTextReader.Read() in c:\Users\Unreal1\Desktop\SteamBot-master\Lib\Newtonsoft.Json\Src\Newtonsoft.Json\JsonTextReader.cs:line 397

  at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CheckedRead(JsonReader reader) in c:\Users\Unreal1\Desktop\SteamBot-master\Lib\Newtonsoft.Json\Src\Newtonsoft.Json\Serialization\JsonSerializerInternalReader.cs:line 532

  at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateObject(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue) in c:\Users\Unreal1\Desktop\SteamBot-master\Lib\Newtonsoft.Json\Src\Newtonsoft.Json\Serialization\JsonSerializerInternalReader.cs:line 332

  at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInternal(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue) in c:\Users\Unreal1\Desktop\SteamBot-master\Lib\Newtonsoft.Json\Src\Newtonsoft.Json\Serialization\JsonSerializerInternalReader.cs:line 230

  at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(JsonReader reader, Type objectType, Boolean checkAdditionalContent) in c:\Users\Unreal1\Desktop\SteamBot-master\Lib\Newtonsoft.Json\Src\Newtonsoft.Json\Serialization\JsonSerializerInternalReader.cs:line 153

  at Newtonsoft.Json.JsonSerializer.DeserializeInternal(JsonReader reader, Type objectType) in c:\Users\Unreal1\Desktop\SteamBot-master\Lib\Newtonsoft.Json\Src\Newtonsoft.Json\JsonSerializer.cs:line 546

  at Newtonsoft.Json.JsonSerializer.Deserialize(JsonReader reader, Type objectType) in c:\Users\Unreal1\Desktop\SteamBot-master\Lib\Newtonsoft.Json\Src\Newtonsoft.Json\JsonSerializer.cs:line 512

  at Newtonsoft.Json.JsonConvert.DeserializeObject(String value, Type type, JsonSerializerSettings settings) in c:\Users\Unreal1\Desktop\SteamBot-master\Lib\Newtonsoft.Json\Src\Newtonsoft.Json\JsonConvert.cs:line 928

  at Newtonsoft.Json.JsonConvert.DeserializeObject[T](String value, JsonSerializerSettings settings) in c:\Users\Unreal1\Desktop\SteamBot-master\Lib\Newtonsoft.Json\Src\Newtonsoft.Json\JsonConvert.cs:line 888

  at Newtonsoft.Json.JsonConvert.DeserializeObject[T](String value) in c:\Users\Unreal1\Desktop\SteamBot-master\Lib\Newtonsoft.Json\Src\Newtonsoft.Json\JsonConvert.cs:line 845

  at SteamBot.Configuration.LoadConfiguration(String filename) in c:\Users\Unreal1\Desktop\SteamBot-master\SteamBot\Configuration.cs:line 16

  at SteamBot.Program.Main(String[] args) in c:\Users\Unreal1\Desktop\SteamBot-master\SteamBot\Program.cs:line 14
cwhelchel commented 11 years ago

Your settings.json configuration file is either not present or is messed up.. See the README for installation and configuration instructions. Make sure it's in the same location as the executable.

teliosdev commented 11 years ago

Could you post your settings.json file? I have a theory, but I'd need to see the file first.

unreal1 commented 11 years ago
{
//"Admins":["234567"],
"ApiKey":"3EC38BC0C728DB02",
"mainLog": "syslog.log",
"Bots": [
        {
            "Username":"testung123",
            "Password":"password",
            "DisplayName":"=USE= Gaming",
            "ChatResponse":"Welcome to =USE= Gaming Donation Bot",
            "logFile": "TestBot.log",
            "BotControlClass": "SteamBot.SimpleUserHandler",
            "MaximumTradeTime":180,
            "MaximumActionGap":30,
            "DisplayNamePrefix":"[=USE= Gaming] ",
            "TradePollingInterval":800,
            "LogLevel":"Success"
        }
    ]
}
94m3k1n9 commented 11 years ago

You might want to remove your API key in the comment...

unreal1 commented 11 years ago

That's not my API key, just a bunch of random stuff

94m3k1n9 commented 11 years ago

nvm then

cwhelchel commented 11 years ago

Uncomment the Admin section. Just give it an empty array setting and it may work.

teliosdev commented 11 years ago

yeah, what @cwhelchel said; or, if you need to, try /* this kind of comment */

unreal1 commented 11 years ago

I just removed the admin line at it worked fine :) the /* */ commenting also works.

Also, tried giving it my real steam Id and it worked. Thanks for the help!