> For the complete documentation index, see [llms.txt](https://docs.gta.clothing/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.gta.clothing/basics/useful-to-know/import-and-export-formats.md). Agents can also search and read this documentation through its [MCP server](https://docs.gta.clothing/~gitbook/mcp).

# Import & Export Formats

Learn about our Import & Export Formats

## Introduction

Durty Cloth Tool offers flexible import and export functionalities to handle cloth projects and items. These features enable you to export entire projects or individual items in specific formats. The tool supports two primary formats for exporting and importing: `.dctexport` for entire projects and `.dctpackage` for individual items or selections. This guide explains both formats in detail and how to use them for your workflow.

<figure><img src="https://2130288373-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRsXe3tqSiAvM8iKYjngE%2Fuploads%2Fgit-blob-a4b49909c31a56a04e93e03ac533662d3482d030%2Fimport-export.webp?alt=media" alt="Two tops are selected in the item list and exported with Export as DCT package, then Add from DCT package brings them back from the package and, after Add as separate drawables instead, the two copies appear in the Top group as new items."><figcaption><p>Export items as a DCT package and add them to a project again.</p></figcaption></figure>

## Project Export Format: `*.dctexport`

The `.dctexport` format is used for exporting and importing entire Durty Cloth Tool projects. It packages everything related to a project, including all drawables, textures, settings, and configurations, making it easy to move, share, or back up full projects.

{% hint style="warning" %}
Only open or import `.dctexport`, `.dctpackage`, and `.dctproj` files from people you trust. After receiving a complete project, review its build output location before building.
{% endhint %}

### **How to Export a Cloth Project**

1. Once you have finished working on your cloth project, go to the **Project** menu in the toolbar.
2. In the top navigation menu click "**Project > Export project…"** (or press **Ctrl+K** and paste `>Export project`).
3. Choose a folder where you want to save the project export.
4. Click **Open Folder** to export your project.

### **How to Import a Cloth Project from a `.dctexport` File**

1. To import an existing project, go to the **Project** menu in the toolbar.
2. In the top navigation menu click "**Project > Open project export…"** (or press **Ctrl+K** and paste `>Open project export`). It opens the export as its own project in place of the open one; to add another project's clothes to the open project, use **Add > From another source > Add from DCT project or export...** instead. On Home, the same start is **More ways to start > Start from a project export**.
3. Navigate to the folder containing the `.dctexport` file and select it.
4. Navigate to the folder where the extracted / exported cloth project should be saved to.
5. Click "**Open Folder**" to import the selected project export to the given destination.

## Items Export Format: `*.dctpackage`

The `.dctpackage` format is used for exporting and importing individual items, like specific cloth drawables or textures. This is useful when you want to export only parts of a project, such as a single item, and import it into another project without transferring the entire project file.

### **How to Export Items as a `.dctpackage` File**

1. Select the specific items or drawables you wish to export in the **Appearance Items List** or **Cloth Drawable Textures List**.
2. Right-click the selected items and choose "**Export as DCT package"** (or press **Ctrl+K** and paste `>Export as DCT`).
3. Choose the destination folder and name the file with a `.dctpackage` extension.
4. Click **Save** to export the selected items as a package.

### **How to Import Items from a `.dctpackage` File**

1. To import items from a `.dctpackage` file, go to the bottom of the **Appearance Items List**.
2. Open **Add** and choose "**From another source > Add from DCT package**". **Add from file(s)** accepts packages too; under **Only male** or **Only female** it adds only that gender.
3. Navigate to the folder containing the `.dctpackage` file and select it.
4. Click **Open** to import the selected items into your current project.

## Adding clothing files and folders

Use **Add > Add from folder(s)** or drop folders into the editor to add clothing from their subfolders too. DCT matches related files and can use an exact `male` or `female` folder name when the filenames do not identify the gender. Overlapping folders do not add the same source file twice.

A folder that holds several built resources, picked or dropped, adds each resource with its settings, the same way as [a single built resource](#importing-from-a-built-resource), instead of reading their models as loose clothing. Resources without clothing, such as scripts, are left out.

If DCT needs help identifying a drawable, **Drawable Options** shows a clothing preview when one is available. A readable model can still appear without a diffuse texture, using a plain material so you can inspect its shape. **Add** confirms this item, and **Cancel current** skips it. **Just Add All** uses your choices for the remaining fields DCT cannot detect in this batch. **Cancel All** cancels the entire ordinary file or folder batch. Duplicate decisions show the incoming item beside the one already in the project when previews are available.

### When the item count is lower than the files you added

A model that is already in the project does not become a second item. With the default duplicate setting, its new texture variations go to the item that already holds it, an exact copy is skipped, and a model whose item has no free variation letters is added as a copy that carries only the new variations. Nothing is lost: every texture ends up on an item. When adding files or unpacking a `.dctpackage` merged, skipped or copied anything, a notice in the corner of the editor says so, for example "The package had 100 items. Added 60 items. 38 models matched existing items and added 412 texture variations to them. 2 exact duplicates skipped."

Click **Show details** in the notice to see every file or package item with what happened to it: added, merged into an item with the number of new texture variations, skipped as the same as an item, or added as a copy. Click an item name to select that item in the list. The link at the bottom opens **Project Settings** at **When an added model already exists in the project**; choose **Always add as a new drawable** there if the next add should keep every model as an item of its own. An add that merged or skipped nothing shows no notice.

#### Keeping the same model as two drawables

Sometimes the same model has to stay two drawables, for example one jumper per gang where each gang's copy gets its own server lock. Right after an add or a package unpack that merged or skipped such a model, click **Add as separate drawables instead** in the notice or in **Show details** (it is also in the command palette). DCT takes that add back and adds the same files again with every model as a drawable of its own; your duplicate setting stays as it is. The button is offered only until you make another change and while the files are still where you added them from. An add of file contents dragged from another program, rather than files on disk, cannot be added again this way.

When one drawable already holds both sets of variations, right-click it and choose **Split variations into a new drawable**. Tick the variations that move: they go to a copy of the drawable with the same model, settings and shop data, placed at the end of its list so other drawables keep their numbers, and the variations that stay are renumbered from a. Escrow protected drawables and drawables you received locked by their creator cannot be split.

Either way, the copies are marked as kept on purpose, so no duplicate warning appears for them, and **Undo** takes the step back.

The progress panel shows what DCT is doing while files are discovered, checked, copied and validated. Steps with enough completed work show a rough time remaining for that step; other steps show elapsed time. The panel moves out of the way while a decision needs your input. Cancelling waits for the current work and cleanup to finish. Built-resource and project-transfer imports keep items they have already completed.

### Zip archives

Drop a clothing `.zip` on the item list, or pick it with **Add from file(s)**. DCT unpacks it to a temporary folder, adds what it holds the way a dropped folder is added and removes the unpacked files afterwards, also when you cancel. A zip of one built resource opens the built resource review, a zip of several resources reviews each of them, FiveM Asset Escrow packs keep their key, and DCT packages, projects and exports in it are added as such. A project in a zip is added from the `clothproject_<name>` folder the zip holds beside it, never from the folder the project was saved in on a PC, so zip the project file together with that folder; without it, DCT refuses the project. Loose clothing is added as usual.

A zip that holds one other zip adds it without asking. When it holds several, such as one per platform, **Choose the zips to add** asks which of them to add, with none ticked, because adding all of them would often add the same clothing twice; **Cancel** adds nothing. Zips inside those zips, other kinds of archives and password protected zips are left out and named in the status log; unpack them with a zip program and add the folder.

You can also drop a zip on [Home](https://docs.gta.clothing/basics/useful-to-know/home-and-quick-look.md) to start from it.

{% hint style="info" %}
Unpacking shows its progress, can be cancelled and needs no license. It needs room for the unpacked files plus 1 GB to spare. DCT does not unpack a zip that holds a password protected file or unsafe file names, or more than it accepts (100,000 files and 32 GB in one Add, 2 GB per file), and says why. Unpack such a zip with a zip program and add the folder instead.

Adding from a built resource still needs a license, and DCT asks once per Add. Without one, the resources in a folder come in as loose clothing, without their settings.
{% endhint %}

## 3D model import (Experimental)

{% hint style="warning" %}
3D model import is experimental and needs **Ultimate**, a male or female MP Freemode project, a signed-in account and an internet connection. Preparation, placement, weights and pose checks work while you are signed in and online, and do not need GTA V installed. Previews from your own game and the final conversion of Sims clothing can still need your game files. Adding the result needs **Review on animated ped**, which uses your GTA V installation, and so does the **Exposed GTA skin** coverage. Adding existing YDD clothing stays available offline. Converted clothing may need manual fitting or source edits, so test the built clothing in your intended game or server before distributing it.
{% endhint %}

<figure><img src="https://2130288373-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRsXe3tqSiAvM8iKYjngE%2Fuploads%2Fgit-blob-3a86338443cf7e2f97305a21d3b87d0cff8f7497%2Fmodel-import-poster.webp?alt=media" alt="Add a bucket hat from a 3D model file, choose Estimate body placement and make the hat larger and move it into place, then review it on the animated ped and add it to the project."><figcaption></figcaption></figure>

{% embed url="<https://gta.clothing/assets/media/v4/model-import-mobile.mp4?v=21d7258d3fc8>" %}
Add a bucket hat from a 3D model file, choose Estimate body placement and make the hat larger and move it into place, then review it on the animated ped and add it to the project.
{% endembed %}

**Add from file(s)** also accepts these 3D formats:

| Format                                           | What you need                                                                                                              |
| ------------------------------------------------ | -------------------------------------------------------------------------------------------------------------------------- |
| `.glb`, `.gltf`                                  | Nothing else. Keep local glTF textures and buffers beside the model.                                                       |
| Sims 4 clothing `.package`                       | Nothing else. See [#sims-4-clothing](#sims-4-clothing "mention"). A Sims `.package` is different from a DCT `.dctpackage`. |
| `.fbx`, `.obj`, `.blend`, `.dae`, `.stl`, `.ply` | A local [Blender](https://www.blender.org/download/) 4.5 LTS or 5.x installation. **DAE needs Blender 4.5 LTS.**           |

DCT finds standard Blender installations automatically and does not change your original files. If DCT cannot find Blender, choose the matching `blender.exe` when prompted.

{% hint style="info" %}
Keep the clothing and its textures together in one folder. For a BLEND file, keep the clothing in the active scene and make linked objects local. If a material cannot be converted, bake procedural detail to image textures with UV coordinates and simplify glass, glowing or layered effects first.
{% endhint %}

### Review the source

The **3D model import (Experimental)** window suggests the clothing type and an initial placement, uses the available material images and shows a body overlay. Check the gender and drawable type. The **Source** tab explains the selected pieces, distance models (LODs) and **Texture Variations**. Keep the supplied LODs selected; remove only pieces or colours you do not want. A GLB or glTF file with switchable colours (glTF material variants), such as one saved with [Export variations as one GLB](https://docs.gta.clothing/basics/good-to-know/thumbnails-and-exports.md#one-glb-with-every-variation), brings each colour in as a texture variation.

### Fit the clothing

<figure><img src="https://2130288373-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRsXe3tqSiAvM8iKYjngE%2Fuploads%2Fgit-blob-df6d2804b78fe34af8cd7d90a20f1a1698cbb23d%2Fmodel-import-fitting.png?alt=media" alt="The 3D model import preview with an imported bucket hat on the head of the translucent freemode body and the move handles on the hat, beside the Move clothing tool and its hint, next to the Fitting tab: the hint about the 3D handles, Estimate body placement with its button, Correct the fit with points and Precise numeric adjustments."><figcaption><p>Fitting an imported bucket hat on the freemode body with the move handles, with Estimate body placement in the Fitting tab.</p></figcaption></figure>

In **Fitting**:

* Drag the clothing to move it, and scroll while dragging to resize it.
* Choose **Undo** (**Ctrl+Z** by default) to reverse the last completed edit, including a move, scale, local correction or area marking. Each drag is one undo step. Changed results need a fresh review before saving.
* Choose **Move clothing** (**M**), **Rotate** (**R**) or **Scale** (**S**) with the controls inside the preview. The shortcuts work while the preview or its toolbar has focus and can be changed in **Options > Keybindings** (or press **Ctrl+K** and paste `@Change a shortcut`).
* The 3D handles let you drag an arrow along one axis, a square within a plane, a ring to rotate, or a scale handle to resize. The centre scale handle keeps proportions, and the handles stay visible through the clothing while you zoom.
* **Local axes** turns the handles with the clothing. Leave it off to use the character's fixed directions.
* Left-drag empty space to turn the camera, right-drag to pan and scroll to zoom. Press **Esc** to cancel a clothing adjustment.
* Under the tools in the preview, a hint says what the chosen tool does, gives an example and lists its controls. While you correct the fit with points, it follows the chosen mode instead. Point at a tool, a mode in the list or a checkbox to see the same explanation, with the shortcut.
* **Estimate body placement** replaces the current placement with a starting size and position for the chosen body and slot. Refine it with the handles afterwards.
* For a local correction, enable point fitting, pick a cloth point and its matching body point, lock areas that should stay in place, then apply the correction. Point fitting moves existing cloth; it cannot create missing cloth.

The translucent reference uses the selected male or female freemode body. **Hide the related body part** hides the region underneath your clothing while fitting, without removing skin from the imported result; picking a body target shows that region again. Body targets stay fixed while you move the clothing, and changing the gender or clothing type keeps your placement adjustments.

Prefer to fit and fix the clothing in Blender? The [Blender add-on](https://docs.gta.clothing/plugins/creator-link/blender/garment-fitting.md) imports FBX, OBJ and glTF clothing onto the freemode body there, and adds the finished cloth to your project. Clothing you make in Marvelous Designer comes into this same review straight from its [plugin](https://docs.gta.clothing/plugins/creator-link/marvelous/add-to-a-project.md), already placed when you draped it on the GTA body there.

The same fitting controls also work on clothing already in your project, see [Fit or combine existing clothing](https://docs.gta.clothing/how-to-guides/optimize-clothing-models-and-textures.md#fit-or-combine-existing-clothing-experimental).

### Materials and UVs

**Advanced materials and UVs** contains optional image and coverage corrections:

* Keep **Surface coverage** on source settings unless the preview is wrong. For glass, holes or transparent cloth, choose the matching coverage; use exposed skin for body areas that must match the character. A material choice applies to all its texture variations.
* Keep existing UVs when the texture looks correct. A model without usable texture coordinates shows image-projection guidance; generating coordinates alone cannot recover its original texture placement. Regenerating UVs carries the existing images over to the new layout.
* STL and other models without usable UVs need an image-projection or solid-colour choice before preparation.

DCT also trims unused texture space where it is safe, keeps existing normal and specular maps and can generate missing ones from the colour image. Review the result, since generated surface detail may need adjustment.

### Prepare, review and add

1. Open **Finish** and choose **Prepare clothing**.
2. When it is ready, choose the **Clothing model** to preview and import. Other models are not imported. The **Texture preview** changes only what you see; all colour variations of that model are imported.
3. Choose **Review on animated ped**. Required body parts are included automatically and shown with the clothing. Check skin, textures, clipping and movement in the GTA preview before adding the set. Optionally choose **Check poses** to see whether the body comes through the clothing in game poses: it names the worst pose and changes nothing about the import, see [Check clipping in poses](https://docs.gta.clothing/how-to-guides/optimize-clothing-models-and-textures.md#check-clipping-in-poses).
4. Add the reviewed set. It creates new copies of its clothing, colours and required body parts, including any already present in your project. Large colour sets can occupy several drawables. After import, the clothing and colour you reviewed are selected.

### Sims 4 clothing

* Human Sims clothing for children through elders can be fitted to adult freemode bodies. Children's clothing gets an initial adult placement, but its proportions may need adjustment in **Fitting**. Baby, infant and toddler clothing is not supported.
* For a Sims recolour, select its original mesh package together with the recolour. When a Sims resource is missing, you can select dependency packages or a folder and retry. If selected packages contain conflicting resources, choose which package to use. DCT does not search an installed Sims game for missing files.
* Ordinary Sims pants keep their exposed skin in **Legs** without adding unrelated Torso or Shoes items. Tops may include a matching **Body** item for the Torso and arms, and full outfits may need both. Check exposed skin, cuffs, collars and underwear for clipping during review; placement and local corrections may still be needed.
* Packages from other Sims games are not supported; export their clothing through a supported model format first.

{% hint style="info" %}
Conversion does not generate cloth physics. See [Creating Cloth Physics (YLD)](https://docs.gta.clothing/cloth-modding/cloth-physics-yld.md) to add simulated movement in Blender.
{% endhint %}

## Sealed formats

Projects, exports and item packages use a sealed format: the files are smaller, damage is detected when they are opened, and work cannot be altered outside the tool. Plain files from older versions still import.

{% hint style="warning" %}
A build that does not understand the sealed format cannot read an export or package written by this one. See [Durty Cloth Projects](https://docs.gta.clothing/basics/useful-to-know/durty-cloth-projects.md).
{% endhint %}

## Importing from a built resource

You do not need a DCT project to start from an existing pack. For a step by step walkthrough, from the import to checking and building the pack again, see [Bring an Existing Add-on Pack into DCT](https://docs.gta.clothing/how-to-guides/bring-an-existing-add-on-pack-into-dct.md). **Add from built resource** reads:

* a **FiveM** resource;
* a legacy multiplayer resource;
* a Singleplayer `dlc.rpf`.

**Add from file(s)** and **Add from folder(s)** also take a built resource, and another **DCT project or export** is added through **Add from DCT project or export** or **Add from file(s)**. DCT shows you exactly what it found before anything is added, then:

* preserves the source ordering and the item metadata it supports;
* represents missing slots with reservation dummies, so IDs do not shift;
* handles split resources together;
* leaves the open project's names, settings and output paths alone.

The review lists each collection or group with its counts in words, and its main button says what it adds, for example **Add 15 drawables** or **Add 12 items**. When the file names do not say whether a collection is for Male or Female, the review asks you to choose; a ticked collection without a choice is left out of the add, and the review says so.

Packs often hold more files than their `.ymt` lists, and DCT adds those too. Both of these start ticked under **Options** in the review, so you can turn them off:

* texture variations that sit beside a model but are not listed in the `.ymt`, which packs made with older tools often leave out;
* models no `.ymt` lists, such as the files that replace game clothing in EUP packs. They are added through the regular file import afterwards, with the textures beside them.

A pack that copies one of the game's own `.ymt` files, as packs that replace game clothing do, gets no reservation dummies for the game items it does not include. The items it has files for come in as new addon clothing, not as replacements, so their numbers in game change like those of any addon clothing. Files the game never loads for the pack, such as another skin spelling of a model, are not added, and the log names them.

A resource DCT built remembers which project it came from. Importing it rebuilds clothing from the files, which loses what only the project holds, such as your own item names, tags, project settings and History, so the review offers the project instead:

* **Open project** appears when that project is in your recent projects. It closes the review without importing and opens the project, asking about unsaved changes first.
* **Locate project...** appears when the project was moved, renamed or never opened on this computer. Pick its `.dctproj` file; DCT opens it only when it is the project that built the resource, and otherwise says so and opens nothing.
* When the open project built the resource, the review says that importing adds a second copy of its clothing.

You can still import instead. DCT opens only a project from your recent projects or one you pick yourself, never one a resource names on its own.

After the import you are offered the duplicate scanner. See [Cloth Analysis Report](https://docs.gta.clothing/basics/essential-knowledge/cloth-analysis-report.md).

{% hint style="info" %}
Importing from a built resource requires a valid license. Escrow protected assets are reported as such rather than as corrupt. A FiveM clothing pack protected by FiveM Asset Escrow is added as a whole together with its `.fxap` key, even when you drop its `stream` folder or its model files. Its clothes are marked **Escrow protected**: you can move, rename, tag or remove them, but not preview, optimize or edit them. A protected file without its key is not added. See [Work with Asset Escrow Clothing](https://docs.gta.clothing/how-to-guides/use-asset-escrow-clothing.md).
{% endhint %}

{% embed url="<https://gta.clothing/assets/media/v4/resource-import-mobile.mp4?v=8c4983d3929b>" %}
Review the contents of a built resource before importing it.
{% endembed %}

## Visual exports

Clothing can also leave the project as pictures or as 3D models: still images, GLB models and thumbnail files. See [Thumbnails & Visual Exports](https://docs.gta.clothing/basics/good-to-know/thumbnails-and-exports.md).

## Blender and CodeWalker Authoring Files

The project/package formats above are used to move DCT data between projects. When authoring a model, DCT can also import the asset files produced by the Blender/Sollumz workflow:

* Drawable models as `.ydd` or CodeWalker `.ydd.xml`.
* Texture variations as `.ytd` or CodeWalker `.ytd.xml`.
* Common image files when you want DCT to create a YTD variation for you. Added or dropped PNG, JPEG, BMP and TGA images use DXT1 compression when opaque, or DXT5 when they contain transparency, with mipmaps generated automatically. DDS and YTD imports keep their supplied compression format.
* Optional component mesh physics as `.yld` or CodeWalker `.yld.xml`; see [Creating Cloth Physics (YLD)](https://docs.gta.clothing/cloth-modding/cloth-physics-yld.md).
* Drawables whose diffuse textures are **embedded in the model** can be added, previewed and built without an external texture file. Models that also reference external diffuse textures are checked as usual.

A DDS that an XML file references may list more mip levels than it holds, as some texture tools save it; DCT keeps the mip levels the file holds. A DDS that is cut short is refused, and the status log names the file: save that texture again from your image editor or texture tool and add the XML again.

This means a Sollumz XML export does not need a separate XML-to-binary conversion before it is added to a project. See [Exporting and Validation](https://docs.gta.clothing/cloth-modding/exporting-and-validation.md) for the complete authoring handoff.

You can also choose XML when replacing an existing drawable or texture variation. Keep referenced DDS textures at the paths recorded in the XML. DCT prepares and validates the replacement before making it active, with progress shown while it works. If preparation fails, the current asset stays in place; wait for cancellation to finish before starting another edit. Applied replacements retain their [Project History](https://docs.gta.clothing/basics/useful-to-know/project-history.md) recovery path.

## Summary

Durty Cloth Tool’s support for the `.dctexport` and `.dctpackage` formats provides flexibility in handling entire projects and individual items. This makes collaboration easier, as you can share specific parts of a project or entire setups with others. By following these steps, you can efficiently export or import your cloth projects and items to streamline your workflow.
