September 8, 20178 yr Author So yeah, another problem. The CurrentSetting.PushToLua(); Overwrites the settings and sets everything to what default is, because it loads the settings before it does FetchFromLua. I tried doing try { if (File.Exists(AdviserFilePathAndName("CustomClass-HunterBeastmaster", ObjectManager.Me.Name + "." + Usefuls.RealmName))) { CurrentSetting = Load<HunterBeastmasterSettings>(AdviserFilePathAndName("CustomClass-HunterBeastmaster", ObjectManager.Me.Name + "." + Usefuls.RealmName)); if (Updateloaded) { CurrentSetting.PushToLua(); } return true; } CurrentSetting = new HunterBeastmasterSettings(); } catch (Exception e) { Logging.WriteError("HunterBeastmasterSettings > Load(): " + e); } return false; So it would first push the lua after it had loaded the settings, but that did not work. apparently i can't make an if there. Any help would be appreciated.
Create an account or sign in to comment