Open lonelyicer opened 3 years ago
Confirmed to be occurring. I believe it's related to having the CustomAbility configs in the role configs, something isn't parsing correctly.
@joker-119 fix when... I can't use all your custom roles and the same amount of mine own due to this annoying bug
The first and easier problem is that you, for some reason, omitted the .WithNamingConvention(UnderscoredNamingConvention.Instance)
while building the deserializer.
The second and harder problem is that CustomRole
class has List<CustomAbility> CustomAbilities
property. While deserializing YamlDotNet tries to instantiate abstract CustomAbilities instead of derived classes and fails because, well, CustomAbility
is abstract
While searching for some info, i found this page that can help implementing the fix
Cannot change the global configuration file, restarting the server will reset it Just a small change will cause it to be reset