Citrinate / FreePackages

An ASF plugin for finding and redeeming free Steam games
Apache License 2.0
87 stars 2 forks source link

Have error when use config #13

Closed LordRubiS closed 8 months ago

LordRubiS commented 8 months ago

What format config? "IgnoredTypes": [],

I need exclude demos. I add "IgnoredTypes": Demo, or "IgnoredTypes": [Demo],

And have eror: ct, JsonProperty containerMember, Object existingValue) at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(JsonReader reader, Type objectType, Boolean checkAdditionalContent) at Newtonsoft.Json.JsonSerializer.DeserializeInternal(JsonReader reader, Type objectType) at Newtonsoft.Json.JsonSerializer.Deserialize(JsonReader reader, Type objectType) at Newtonsoft.Json.JsonConvert.DeserializeObject(String value, Type type, JsonSerializerSettings settings) at Newtonsoft.Json.JsonConvert.DeserializeObject[T](String value, JsonSerializerSettings settings) at Newtonsoft.Json.JsonConvert.DeserializeObject[T](String value) at ArchiSteamFarm.Steam.Storage.BotConfig.Load(String filePath, String botName) 2023-10-22 16:40:58|dotnet-5292|ERROR|ASF|RegisterBot() Your bot config is invalid. Please verify content of config/main_acc.json and try again!

Citrinate commented 8 months ago

It should be "IgnoredTypes": ["Demo"]. I'll add an example to the readme so this is more clear.

LordRubiS commented 8 months ago

Thaknks. Now it Works!

woctezuma commented 8 months ago

Maybe edit this paragraph to include quotes ": https://github.com/Citrinate/FreePackages#types

Before

The available TypeNames for filtering are: Game, Application, Tool, Demo, DLC, Music, Video

After:

The available TypeNames for filtering are: "Game", "Application", "Tool", "Demo", "DLC", "Music", "Video"