Recover accidentally deleted macro; deleted macro instead of version
Drx3 opened this issue · 2 comments
Yes I did that, I accidentally clicked new instead of the last version tab, then in a nano second executed delete instead of delete version.
Now I still see my macro in the .bak file, but syntactically it is obviously different from what seems to be required for import, and ofc it won't import, is there a list of elements I need to change for successful import? Or any tips for recovering an accidentally deleted macro?
Apologies if I am the only one to have done this... I had heavily customized a macro with a number of versions and don't want to go through all of that again right now.
I have considered just closing wow and trying to do surgery on the lua file but I don't want to do that if I can avoid it.
There are a couple of options here.
The simplest to try is to
Close WoW, in the WTF folder, rename GSE.lua to GSE.lua.save rename GSE.lua.bak to GSE.lua and restart WoW
The second is a little more complicated.
Syntactically what you see in the bak file is identical to what is in the import box. It is however visually different as WoW dumps its memory direct to the file and doesn't order the object the way we do to make it easy to read. It also stores macros per class so that when you load a class it only loads the macros that can be used for that class.
The order of elements in the sequence doesn't matter to WoW only that the elements are there. It won't import straight up but it will with some minor tweaking.
In the file will be
GSELibrary = {
{
["macroname"] = {
.....
},
}, --[2]
}
If you copy from ["macroname"] = { to the matching } you will have
["macroname"] = {
.....
},
This will look like a normal sequence but will be out of order. Then to import prefix the word Sequences
Sequences["macroname"] = {
.....
},
TimothyLuke
… On 27 Jun 2017, at 12:15 am, Drx3 ***@***.***> wrote:
Yes I did that, I accidentally clicked new instead of the last version tab, then in a nano second executed delete instead of delete version.
Now I still see my macro in the .bak file, but syntactically it is obviously different from what seems to be required for import, and ofc it won't import, is there a list of elements I need to change for successful import? Or any tips for recovering an accidentally deleted macro?
Apologies if I am the only one to have done this... I had heavily customized a macro with a number of versions and don't want to go through all of that again right now.
I have considered just closing wow and trying to do surgery on the lua file but I don't want to do that if I can avoid it.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.
Hey there, thank you for the prompt reply! I just tried the first one, well similar, as I was afraid. I copied the .bak prior to exiting wow. Pasted it off elsewhere safely, renamed the .lua out of the way, exited wow, copied the old .bak in as the .lua and I was back to where I was this am. Just had to redo some tweaking I had done since early am but I got my macro back.
Thank you! Sorry to be one of those users who clicks delete before thinking to look for the delete version button ;(
I did also try importing having added Sequences in there prior to posting, but I took out the final comma maybe that was the whole issue there?
V/r,
Duane
________________________________
From: Timothy Minahan <[email protected]>
Sent: Monday, June 26, 2017 6:11 PM
To: TimothyLuke/GnomeSequencer-Enhanced
Cc: Drx3; Author
Subject: Re: [TimothyLuke/GnomeSequencer-Enhanced] Recover accidentally deleted macro; deleted macro instead of version (#324)
There are a couple of options here.
The simplest to try is to
Close WoW, in the WTF folder, rename GSE.lua to GSE.lua.save rename GSE.lua.bak to GSE.lua and restart WoW
The second is a little more complicated.
Syntactically what you see in the bak file is identical to what is in the import box. It is however visually different as WoW dumps its memory direct to the file and doesn't order the object the way we do to make it easy to read. It also stores macros per class so that when you load a class it only loads the macros that can be used for that class.
The order of elements in the sequence doesn't matter to WoW only that the elements are there. It won't import straight up but it will with some minor tweaking.
In the file will be
GSELibrary = {
{
["macroname"] = {
.....
},
}, --[2]
}
If you copy from ["macroname"] = { to the matching } you will have
["macroname"] = {
.....
},
This will look like a normal sequence but will be out of order. Then to import prefix the word Sequences
Sequences["macroname"] = {
.....
},
TimothyLuke
On 27 Jun 2017, at 12:15 am, Drx3 ***@***.***> wrote:
Yes I did that, I accidentally clicked new instead of the last version tab, then in a nano second executed delete instead of delete version.
Now I still see my macro in the .bak file, but syntactically it is obviously different from what seems to be required for import, and ofc it won't import, is there a list of elements I need to change for successful import? Or any tips for recovering an accidentally deleted macro?
Apologies if I am the only one to have done this... I had heavily customized a macro with a number of versions and don't want to go through all of that again right now.
I have considered just closing wow and trying to do surgery on the lua file but I don't want to do that if I can avoid it.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub<#324 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/AcVVWHZIdY6jDzV1sTWClon8OCaAnSj1ks5sICyqgaJpZM4OFacf>.