View Single Post
05-26-09, 12:40 PM   #11
Unbelievable
A Flamescale Wyrmkin
 
Unbelievable's Avatar
Join Date: Apr 2009
Posts: 127
Import/Export has been requested a few times. I think there maybe a way to do it with Carbonite Transfer but I'm not sure how.

Here's my current work around.

EXPORTING

First, you need to understand how the data is stored. It's pretty simple and goes like this:

Code:
	["NXFav"] = {
		{
			everything here is your first favourite
		}, -- [1]
		{
			everything here is your second favourite
		}, -- [2]
		{
			everything here is your third favourite
		}, -- [3]
	},
Open Account\{username}\SavedVariables\Carbonite.lua

Search for ["NXFav"] = { . There will be several matches. You need to look for the one that has ["Name"] = "Something" below a list of location names. "Something" will be the name of one of your favourites. In my Carbonite.lua it's the last occurance of ["NXFav"] = { .

Copy the appropriate favourite (complete with start { and end }, --[x] lines into a text file, preserving the tabbing for clarity. Email it to your friend.


IMPORTING

First of all we need to create a unique marker so
  • Start WoW.
  • Open Carbonite Favorites window (see original post above).
  • Right click "Root" and Add Favorite.
  • When asked for a name type in: Dummy Favourite To Be Deleted
  • Exit WoW.

Back up Account\{username}\SavedVariables\Carbonite.lua in case anything goes wrong.

Open Account\{username}\SavedVariables\Carbonite.lua

Search for ["Name"] = "Dummy Favourite To Be Deleted",

The place where we will paste the new favourite is usually a line or two below this, however, to ensure the correct insertion point please read on.

Scroll up until you find a line saying ["NXFav"] = {. Be aware that there are more than one ["NXFav"] lines in the file. You want the one above and nearest to the ["Name"] = "Dummy Favourite To Be Deleted", line. Make a mental note of how many tabs are used to indent it.

Scroll down from ["NXFav"] = { until your reach the first }, that is indented the same number of tabs as the line containing ["NXFav"] = { . Just above this there should be a line saying ["Version"] = x.xx,. Above that line will be one that reads }, --[x]. Move your cursor to the end of the }, --[x]

Press the Return key (see illustration below).

Code:
	["NXFav"] = {
		{
			first favourite
		}, -- [1]
		{
			second favourite
		}, -- [2]
		{
			["Name"] = "Dummy Favourite To Be Deleted",
		}, -- [3]<PRESS RETURN KEY HERE>
		["Version"] = x.xx,
	},
Paste the favourite text you're importing at this point.

Finally, change the trailing }, --[x] so that the comment contains the correct number in sequence (although this shouldn't really matter in theory).

So we end up with something like this:
Code:
	["NXFav"] = {
		{
			first favourite
		}, -- [1]
		{
			second favourite
		}, -- [2]
		{
			["Name"] = "Dummy Favourite To Be Deleted",
		}, -- [3]
		{
			Pasted favourite
		}, -- [4]
		["Version"] = x.xx,
	},
Start WoW. Open Carbonite Favorites. Right click the "Dummy Favourite To Be Deleted" entry and delete it.

You can then right click your imported favourite to copy and paste it to an existing folder or use the Move Up and Move Down buttons to organise it.

Disclaimer: You follow the above steps entirely at your own risk. If you break your Carbonite data then restore the backup you created.

Last edited by Unbelievable : 05-26-09 at 03:59 PM.