Saved Variabels data is written on loading screens
Hello everybody,
I have just noticed a problem with the SavedVariables in my ESODB addon that has been reported to me by many users, but that I was never able to reproduce the problem until now. It doesn't always happen. Now it happened quite often that the SavedVariables data were written in a loading screen. E.g. from the teleport from Daggerfall to Wayrest. What's interesting about this is that I was playing ESO with my girlfriend and the problem happened to both of us at the same time. In my Addon Manifest I set DisableSavedVariablesAutoSaving 1. The problem is that the ESODB export is working with the timestamps of the session. If a game session starts the timestamp are written to the SavedVariables and all stats of the session are assigned to this timestamp. If the data with this timestamp has processed by the ESODB API only data with newer timestamps are allowed for uploading to prevent the upload of old data. But when the SavedVariables data are written to the file without logging out or do a /reloadui all data collected form this point is lost. Is this a bug or is this a deliberate behaviour? When it is not a bug, is there any way to notice the write out of the data to create a new timestamp? Regards Keldor |
You forgot to put a colon (: ) after the name of the directive. It should look like this:
Code:
## DisableSavedVariablesAutoSaving: 1 |
Quote:
I have checked everything several times and missed such a small thing, thank you very much! But this means auto saving is enabled by default? Keldor |
Yes, it is.
But afaik the directive ## DisableSavedVariablesAutoSaving: in the manifest of your addon only applies to the "small data written without a reloadui/loading screen due to zone change/logout". With small data I mean the "important SavedVariable" changes which were introduced later on (with Murkmire I think) so that very important data can be written directly to the SV without having to wait for the logout or reloadui or zone change. Normal SV will always update on logout and reloadui. I'm not quire sure if the zone change is the same as reloadui in this case but I think the SV are always written at this time as well. From the wiki (https://wiki.esoui.com/Addon_manifes...esAutoSaving): Code:
DisableSavedVariablesAutoSaving |
Thanks for the clarification! I have deactivated the Auto Saving now correctly deactivated. Since the addon usually writes much larger amounts of data. There were probably cases in which only few data were available to write. The most of the time the addon collecting much more data than the 50kb.
Keldor |
All times are GMT -6. The time now is 02:57 PM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2014 - 2022 MMOUI