DoctorVanGogh / Newton

Addon for the MMO Wildstar
http://www.curse.com/ws-addons/wildstar/220458-newton
0 stars 0 forks source link

Users report addon not persisting settings #1

Open DoctorVanGogh opened 10 years ago

DoctorVanGogh commented 10 years ago

To track down the cause of this error, please temporarily switch the 'Log Level' for Newton to 'Debug' (have to tick 'advanced' in options to see this and then scroll down).

Then check/uncheck the boxes and make sure you get the following lines in chat (there may be additional output - for the moment ignore that):

On checking the 'Auto-summon Scanbot' box:

[Timestamp] ... DEBUG - SetAutoSummonScanbot(true) - ...

On unchecking the 'Auto-summon Scanbot' box:

[Timestamp] ... DEBUG - SetAutoSummonScanbot(false) - ...

On checking the 'Remember Scanbot' box:

[Timestamp] ... DEBUG - SetPersistScanbot(true, ...

On unchecking the 'Remember Scanbot' box:

[Timestamp] ... DEBUG - SetPersistScanbot(false, ...

After having done this feel free to return the Log Level for Newton back to 'INFO'.

ragamer commented 10 years ago

Thanks for the wonderful addon. I wish to add some comments on this bug... After tracing all events all settings are correctly saved (and used on the session they are defined) on disk each time the game is closed (The data structure on addonsavedata at character level changes appropiately based on how options/profiles are left after closing the game). Whatever happens seems to affect "Onrestoresettings" call... Somehow the data saved is not loaded properly and all properties fallback to false or nil. Hope that helps.

ragamer commented 10 years ago

After more tinkering the problem seems to be on Geminiaddon library... The delayed Onrestoresettings is not triggered properly. I intercepted OnRestore event directly into your Newton.lua and everything is loaded properly. Hope that helps.

DoctorVanGogh commented 10 years ago

Oh well... I'm kinda disinclined to debug this now - pretty close to new version which will use different storage library ;)

ragamer commented 10 years ago

Makes sense, the dirty trick I used seems to hold for now, so I can survive until the next newton sees the light. Good luck with the new version.