I decided to autosync my Interface and my WTF folders between my desktop pc and my notebook. Works like a charme so far if both PCs are active and in the same LAN, and also works if one is offline or they are at different locations using a free internetstorage. So, thats not the problem, but i discovered an anoying thing if data is synced over the internet:
The structure inside a savedvariables file is often changed uppon logout, even if settings aren't changed ingame. Here is an example from DBM Savedvars:
Thus, leading to a different filechecksum. An because the checksum is changed, the file is automatically uploaded to the onlinestorage. (And downloaded again on my other mashine when it is turned on.)
Would be nice if there is a way to sort variables before logout in an deterministic way, so these files would not have to be transmitted - thus speeding the syncing-process up.
Though, i think i found a statment over at Auctioneer FAQ wich applies to my case:
"Please note that we also have no control over the actual layout or sorting in the saved variables file; this, too, is controlled entirely by the WoW client."
Is this entirely true, or does someone have suggestions?
You could work around the issue by setting files to read-only for addons whose settings you don't plan on changing, though you'd have to remember that you'd done this if you later decided you needed to change a setting.
Some people have previously written small scripts to sort the tables in the SVs, and then store them in a version control system. I do however not remember who, but maybe they'll show up here eventually.
Note that those scripts run outside of WoW, after the game was closed.
Would be nice if there is a way to sort variables before logout in an deterministic way
To expand on what the other responses have already said: no, the ordering of fields is not predictable. It's a hash table, and traversing it is not predictable in a way you want.
Some people have previously written small scripts to sort the tables in the SVs, and then store them in a version control system. I do however not remember who, but maybe they'll show up here eventually.
Note that those scripts run outside of WoW, after the game was closed.
I just shove my WTF in git. The only issue there is you need to be sure you pull before you launch the game, and push afterwards, or you'll run into conflicts.
Some people have previously written small scripts to sort the tables in the SVs, and then store them in a version control system. I do however not remember who, but maybe they'll show up here eventually.
Note that those scripts run outside of WoW, after the game was closed.
Hi!
My setup using git and git filters to automatically sort savedvariablies so diffs where only created for real changes in the data are on my old computer though so next time I attach it to the network and start it up I'll try to remember to copy them off it.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
I decided to autosync my Interface and my WTF folders between my desktop pc and my notebook. Works like a charme so far if both PCs are active and in the same LAN, and also works if one is offline or they are at different locations using a free internetstorage. So, thats not the problem, but i discovered an anoying thing if data is synced over the internet:
The structure inside a savedvariables file is often changed uppon logout, even if settings aren't changed ingame. Here is an example from DBM Savedvars:
Before logout:
And after logout: Thus, leading to a different filechecksum. An because the checksum is changed, the file is automatically uploaded to the onlinestorage. (And downloaded again on my other mashine when it is turned on.)
Would be nice if there is a way to sort variables before logout in an deterministic way, so these files would not have to be transmitted - thus speeding the syncing-process up.
Though, i think i found a statment over at Auctioneer FAQ wich applies to my case:
- Twister
You could work around the issue by setting files to read-only for addons whose settings you don't plan on changing, though you'd have to remember that you'd done this if you later decided you needed to change a setting.
Note that those scripts run outside of WoW, after the game was closed.
To expand on what the other responses have already said: no, the ordering of fields is not predictable. It's a hash table, and traversing it is not predictable in a way you want.
That sounds pretty slick.
Hi!
My setup using git and git filters to automatically sort savedvariablies so diffs where only created for real changes in the data are on my old computer though so next time I attach it to the network and start it up I'll try to remember to copy them off it.