Skip to content

Instantly share code, notes, and snippets.

@BillBarnhill
Created May 24, 2014 16:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save BillBarnhill/755dfe4308cc46fec677 to your computer and use it in GitHub Desktop.
Save BillBarnhill/755dfe4308cc46fec677 to your computer and use it in GitHub Desktop.
Saving and Loading WhiteCore Inventory Archives

= Using Inventory Archives

== Saving an inventory Archive

On one user create the outfit in a new folder underneath Clothing.

Log into your grid as your test user, the one that will create the outfit. In my case this is "Test User".

We'll start with the Donarl avatar from OSAvatars.org, and add some minor tweaks, but you can start with anything you have in your inventory. It's important to make sure you keep any notecards with attributions, and respect any permissions or copyrights. I like to add a notecard titled 'Attributions', which lists the sources for the various Creative Commons items I use.

Let's create a new folder under clothing to hold our outfit and call it "Donnie [BillBarnhill]". The brackets indicate attribution.

Now switch to your WhiteCore console and type save iar Test User "Clothing/Donnie [BillBarnhill]" donnie-complete2.iar

Note that using a path in iar file argument does not currently work, and WhiteCore currently prepends a space at the beginning of the iar file.

== Loading an Inventory Archive

Now go to a shell prompt in another window, change your current directory to your WhiteCore installation directory, and move the air file somewhere else:

cd ~/code/WhiteCore-Install
mv "bin/ donnie-complete2.iar" iars/donnie-complete.iar

Now figure out which user you want to copy the inventory archive to (e.g., Bill Barnhill), and load the archive into their Clothing folder using the load command, while the user is not logged in: load iar Bill Barnhill Clothing/ ../iars/donnie-complete.iar

== Using the New Outfit

Now log the user in, locate the folder in your Clothing folder, right click, and click on Replace Current Outfit. After a short wait everything will be replaced and you'll see the changes.

@BillBarnhill
Copy link
Author

To be cleaned up and possible contributed to WhiteCoreSim as a new doc, eventually

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment