1. Hi All, have a small question. How to disable custom ordering of properties in config file ?
    I want to save properties in same way as i create it (Firstly SettingsB, then SettingsA):

    Code:
    protected override void LoadDefaultConfig()
    {
        var config = new ConfigData
        {
            SettingsB = new Dictionary<string, string>
            {
                {"param1", "true"},
                {"param2", "true"},
                {"param3", "true"}                              
            },
          
            SettingsA = new Dictionary<string, string>
            {
                {"param1", "true"},
                {"param2", "true"}
            }
        }
      
        SaveConfig(config);
    }  void SaveConfig(ConfigData config) => Config.WriteObject(config, true);
    In config file i have:
    SettingsA
    SettingsB
     
  2. Wulf

    Wulf Community Admin

  3. Yes, i used it, but it didn't help.
    As i see, config file was rewritten twice. Firstly with expected values and then with wrong ordered values. So i make this trick and have result i need (even without JsonProperty(Order = xxx) ):

    Code:
    void SaveConfig(ConfigData config)
    {
          timer.Once(0.1f, ()=>Config.WriteObject(config, true));
    }