Closed 32Red closed 4 years ago
Put your config into a yaml validator.
sorry, but how do i do that?
I am not even sure where you got that from, that's not the config, thats not even yaml.
lol it was in the support boi file
could you send the original file if possible?
Just delete it and run the bot again
alright
i re-installed it and
same issue 😭
I am very confused on what you are doing, just use the config the bot generates for you, stop putting code in it.
so i write it in myself?
I don't really know what you mean by that, you have to put in things like the bot token and command permissions yes
can i use the Defualt config as a template?
It is the thing you should edit, yes
Starting SupportBoi version 2.1.0-B... Loading config "C:\Users\32Red\Downloads\config.yml"
Unhandled Exception: System.FormatException: Input string was not in a correct format.
at System.Number.StringToNumber(ReadOnlySpan1 str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) at System.Number.ParseUInt64(ReadOnlySpan
1 value, NumberStyles options, NumberFormatInfo numfmt)
at System.String.System.IConvertible.ToUInt64(IFormatProvider provider)
at System.Convert.ChangeType(Object value, Type conversionType, IFormatProvider provider)
at Newtonsoft.Json.Linq.Extensions.Convert[T,U](T token)
at Newtonsoft.Json.Linq.Extensions.Convert[T,U](IEnumerable1 source)+MoveNext() at System.Collections.Generic.LargeArrayBuilder
1.AddRange(IEnumerable1 items) at System.Collections.Generic.EnumerableHelpers.ToArray[T](IEnumerable
1 source)
at SupportBoi.Config.LoadConfig()
at SupportBoi.SupportBoi.Reload()
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location where exception was thrown ---
at System.Threading.ThreadPoolWorkQueue.Dispatch()
hmm
Just start from the default config and add one thing at a time, then you know what the issue is.
i did that. i went threw it VERY carefully and i found nothing... and it gave me the same message error
Starting SupportBoi version 2.1.0-B... Loading config "C:\Users\32Red\Downloads\config.yml"
Unhandled Exception: System.InvalidCastException: Null object cannot be converted to a value type. at System.Convert.ChangeType(Object value, Type conversionType, IFormatProvider provider) at Newtonsoft.Json.Linq.Extensions.Convert[T,U](T token) at SupportBoi.Config.LoadConfig() at SupportBoi.SupportBoi.Reload() at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state) --- End of stack trace from previous location where exception was thrown --- at System.Threading.ThreadPoolWorkQueue.Dispatch()
and what did you add to the config to make this happen? I recommend you just keep the default config and add your bot token for now.
I'm not really sure how you are having so many issues with this, there are a lot of users of this bot and I don't think I have ever had anyone with this many issues before.
hmm do you have a default of just the emc supportboi? i can use that for now
I can't just give out our passwords and auth tokens...
oh
right
Just add one thing, start the bot and see if it complains, then you know there is something wrong with the thing you added and you can tell me what that one thing is.
ok
I recommend starting with your bot token and then do database credentials as those are checked first.
do i edit the log channel and stuff?
no, just start with the token
ok
then do one thing at a time until it breaks
ok good plan
Starting SupportBoi version 2.1.0-B... Loading config "C:\Users\32Red\Downloads\config.yml"
Unhandled Exception: System.ArgumentNullException: Value cannot be null. Parameter name: value at Newtonsoft.Json.Linq.Extensions.Value[T,U](IEnumerable`1 value) at SupportBoi.Config.LoadConfig() at SupportBoi.SupportBoi.Reload() at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state) --- End of stack trace from previous location where exception was thrown --- at System.Threading.ThreadPoolWorkQueue.Dispatch() is the error i got after just putting in my token
And what did you do?
ah token
ye
there was nothing else i edited
does it even work for you if you dont edit anything?
i just put the token in lol everything else is default but it didnt work
like just delete everything from the bot folder except the application and start it again twice
wait i didnt get it
I will have to go now so you will have to keep trying on your own, good luck
okay ill try cya
if you start it once it creates the config and if you start it again it would try to read that config is what I mean, might be some issue with reading the config at all maybe
but yeah cya and good luck
ty
ok i worked as hard as i could but i got greeted with this... Starting SupportBoi version 2.1.0-B... Loading config "C:\Users\32Red\Downloads\config.yml"
Unhandled Exception: System.ArgumentNullException: Value cannot be null. Parameter name: value at Newtonsoft.Json.Linq.Extensions.Value[T,U](IEnumerable`1 value) at SupportBoi.Config.LoadConfig() at SupportBoi.SupportBoi.Reload() at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state) --- End of stack trace from previous location where exception was thrown --- at System.Threading.ThreadPoolWorkQueue.Dispatch()
any help?
i have no experience in code but i wanted to try it and this is the error message it gives me everytime i open the Supportboi_windows.exe: Starting SupportBoi version 2.1.0-B... Loading config "C:\Users\m\Downloads\config.yml"
Unhandled Exception: YamlDotNet.Core.SyntaxErrorException: (Line: 12, Col: 5, Idx: 554) - (Line: 12, Col: 5, Idx: 554): While scanning a simple key, could not find expected ':'. at YamlDotNet.Core.Scanner.StaleSimpleKeys() at YamlDotNet.Core.Scanner.FetchMoreTokens() at YamlDotNet.Core.Scanner.MoveNextWithoutConsuming() at YamlDotNet.Core.Parser.GetCurrentToken() at YamlDotNet.Core.Parser.ParseBlockMappingKey(Boolean isFirst) at YamlDotNet.Core.Parser.MoveNext() at YamlDotNet.Core.ParserExtensions.TryConsume[T](IParser parser, T& event) at YamlDotNet.Serialization.NodeDeserializers.ScalarNodeDeserializer.YamlDotNet.Serialization.INodeDeserializer.Deserialize(IParser parser, Type expectedType, Func
3 nestedObjectDeserializer, Object& value) at YamlDotNet.Serialization.ValueDeserializers.NodeValueDeserializer.DeserializeValue(IParser parser, Type expectedType, SerializerState state, IValueDeserializer nestedObjectDeserializer) at YamlDotNet.Serialization.ValueDeserializers.AliasValueDeserializer.DeserializeValue(IParser parser, Type expectedType, SerializerState state, IValueDeserializer nestedObjectDeserializer) at YamlDotNet.Serialization.ValueDeserializers.NodeValueDeserializer.<>c__DisplayClass3_0.<DeserializeValue>b__0(IParser r, Type t) at YamlDotNet.Serialization.NodeDeserializers.DictionaryNodeDeserializer.DeserializeHelper(Type tKey, Type tValue, IParser parser, Func
3 nestedObjectDeserializer, IDictionary result) at YamlDotNet.Serialization.NodeDeserializers.DictionaryNodeDeserializer.YamlDotNet.Serialization.INodeDeserializer.Deserialize(IParser parser, Type expectedType, Func3 nestedObjectDeserializer, Object& value) at YamlDotNet.Serialization.ValueDeserializers.NodeValueDeserializer.DeserializeValue(IParser parser, Type expectedType, SerializerState state, IValueDeserializer nestedObjectDeserializer) at YamlDotNet.Serialization.ValueDeserializers.AliasValueDeserializer.DeserializeValue(IParser parser, Type expectedType, SerializerState state, IValueDeserializer nestedObjectDeserializer) at YamlDotNet.Serialization.ValueDeserializers.NodeValueDeserializer.<>c__DisplayClass3_0.<DeserializeValue>b__0(IParser r, Type t) at YamlDotNet.Serialization.NodeDeserializers.DictionaryNodeDeserializer.DeserializeHelper(Type tKey, Type tValue, IParser parser, Func
3 nestedObjectDeserializer, IDictionary result) at YamlDotNet.Serialization.NodeDeserializers.DictionaryNodeDeserializer.YamlDotNet.Serialization.INodeDeserializer.Deserialize(IParser parser, Type expectedType, Func`3 nestedObjectDeserializer, Object& value) at YamlDotNet.Serialization.ValueDeserializers.NodeValueDeserializer.DeserializeValue(IParser parser, Type expectedType, SerializerState state, IValueDeserializer nestedObjectDeserializer) at YamlDotNet.Serialization.ValueDeserializers.AliasValueDeserializer.DeserializeValue(IParser parser, Type expectedType, SerializerState state, IValueDeserializer nestedObjectDeserializer) at YamlDotNet.Serialization.Deserializer.Deserialize(IParser parser, Type type) at SupportBoi.Config.LoadConfig() at SupportBoi.SupportBoi.Reload() at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state) --- End of stack trace from previous location where exception was thrown --- at System.Threading.ThreadPoolWorkQueue.Dispatch()