Learn about the virtual depot and how to use different types of files.
What is the Virtual Depot made up of? How Source Control works in REDkit and what are the allowed operations on files? Find out below.
Virtual depot
The virtual depot is merged from three physical directories which you see in the Editor as one directory.
The three physical directories are:
Workspace - files modified/created by the user.
Uncooked data - files from the game (meshes, textures) which the user will need to uncook the user will need to uncook some data from the game itself.
r4data: - assets provided alongside REDkit.
The status of files changes based on the physical directories which contains them. More about that in the Source Control section.
Files can exist in multiple directories, but only one will be visible for you via the virtual depot:
Every directory in the Asset Browser is a virtual directory which has a corresponding physical directory (workspace, uncook, r4data).
Panel |
---|
panelIconId | atlassian-info |
---|
panelIcon | :info: |
---|
bgColor | #FFF0B3 |
---|
|
An example of that would be: r4data root: Z:\Main.Lava.Redkit\r4data uncook root: Z:\uncookdata workspace root: Z:\myModProject\workspace
So if the virtual directory in the Asset Browser is virtualdepot\gameplay\abilities\witch\, then the corresponding physical directories areL r4data root: Z:\Main.Lava.Redkit\r4data\gameplay\abilities\witch\ uncook root: Z:\uncookdata\gameplay\abilities\witch\ workspace root: Z:\myModProject\workspace\gameplay\abilities\witch\
|
During first time setup, you need to set the uncooked and the workspace directories.
It’s not needed for the r4data is known, because it’s connected to the REDkit directory.
Source control
There are three defined states for files - depending on which physical directories contain them.
The status also defines what operations are allowed for that file.