> 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/durty-cloth-projects.md). Agents can also search and read this documentation through its [MCP server](https://docs.gta.clothing/~gitbook/mcp).

# Durty Cloth Projects

Learn about Durty Cloth Projects

The **Durty Cloth Projects** system in Durty Cloth Tool is designed to manage your cloth modding work efficiently by organizing your files and data into a structured project folder. At the core of this system is the `.dctproj` file format and the project’s folder structure, which includes a critical **"data"** subfolder. This setup provides numerous benefits, especially when dealing with large or complex clothing packs, ensuring data consistency and smooth workflow.

<figure><img src="https://2130288373-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRsXe3tqSiAvM8iKYjngE%2Fuploads%2Fgit-blob-99bfd5b9d099738cf2540e926d1e297fa50643f3%2Fproject-management.webp?alt=media" alt="Animation: the Project menu opens with Build project, New, Open, Recent Projects, Save, Backups &#x26; History and the export and sync entries, then Project Settings opens on its General page with the project name and DLC name, switches to Editing and back, and closes."><figcaption><p>The Project menu and Project Settings of a cloth project</p></figcaption></figure>

## Structure of a Durty Cloth Project

Most cloth projects in Durty Cloth Tool will have about the following structure:

```
<project_name>.dctproj
/clothproject_<project_name>/
    /data/
    datacache.dat
    /previews/
    /backups/
    /recovery/
    lastautobackup.dctproj
    statuslog.txt
```

* **.dctproj File**\
  This is the main project file, with a `.dctproj` extension. It contains references to all the assets, settings, and metadata for your project. It works similarly to a project file in any IDE, managing all the links between assets and keeping track of modifications and settings.
* **ClothProject Folder**\
  The root folder that houses your entire clothing project. This folder contains all the files related to your project, and is where your projects associated data and files are stored.
* **Data Subfolder**\
  The **"data"** subfolder contains important metadata and configuration files related to the clothing models, textures, and other resources. This folder is integral to your project’s integrity and ensures that all relevant data is organized properly.
* **datacache.dat**\
  The datacache file contains various runtime information of models powering the clothes validations and quality checks inside of Durty Cloth Tool.
* **previews folder**\
  Holds the cached thumbnails shown in the drawable and texture lists. It is disposable and can be cleared and rebuilt at any time.
* **backups folder**\
  Holds the restore points behind [Project History](https://docs.gta.clothing/basics/useful-to-know/project-history.md) and the rotated automatic backups.
* **recovery folder**\
  Holds unsaved [Model Studio](https://docs.gta.clothing/basics/good-to-know/model-studio.md#recover-unsaved-work) and [Texture Studio](https://docs.gta.clothing/basics/good-to-know/texture-studio.md#recover-unsaved-work) work as drafts, so you can recover it after Durty Cloth Tool closed before you saved. Drafts stay on this PC: project sync and project exports leave this folder out.
* **lastautobackup.dctproj**\
  When enabled this file is generated every minute, whenever the project is in an unsaved state. It will be automatically prompted to be restored on application startup and helps in cases where a rollback is required.
* **statuslog.txt**\
  This file saves all logged information in your project.

## Project Format

Projects saved by the current Durty Cloth Tool 4 build use the sealed project format. It keeps your [Texture Studio](https://docs.gta.clothing/basics/good-to-know/texture-studio.md) layers, including those of tattoo designs and overlays, your [Model Studio](https://docs.gta.clothing/basics/good-to-know/model-studio.md) changes with the clothing that uses them, the [note](https://docs.gta.clothing/basics/essential-knowledge/user-interface.md#note-tab) on each item, the [shop labels](https://docs.gta.clothing/game-mechanics/shop-meta-file.md#shop-labels), your [saved outfits](https://docs.gta.clothing/basics/essential-knowledge/3d-preview-clothes.md#saved-outfits) and the [project default body presets](https://docs.gta.clothing/basics/good-to-know/custom-ped-preview.md#reuse-a-project-body-preset).

* Projects saved by Durty Cloth Tool 3 or by an earlier Durty Cloth Tool 4 build **upgrade automatically** when you open them. Before rewriting anything, DCT keeps a verified format upgrade backup in its own user data folder.
* Older legacy formats remain readable.
* Exports and item packages use the sealed format too, so a build that does not understand it cannot read them.
* [Project sync](https://docs.gta.clothing/share-and-sync/project-sync.md) exchanges changes only between builds that save the same project format, so update everyone who works on a synced project together.

{% hint style="warning" %}
**A project saved by the current build cannot be opened by an older Durty Cloth Tool build.** An older build leaves it closed and unchanged rather than damaging it. Keep this in mind before moving a project between the Experimental and Release channels. See [Updates & Channels](https://docs.gta.clothing/basics/good-to-know/updates-and-channels.md).
{% endhint %}

A project saved by a **newer** format than your build understands is rejected before migration, autosave or any rewrite can touch it.

## How Durty Cloth Projects Work

The **Durty Cloth Projects** structure is designed to give cloth maintainers and content creators an organized workspace where assets are linked rather than scattered, allowing for efficient management of clothing resources. When working with multiple clothing models and textures, the structured project format helps:

1. **Project Data Integrity**\
   By storing all project related data in the **"data"** subfolder, all required project files and references are kept in sync. This guarantees that when the project is loaded, all related data is restored properly, avoiding missing references or broken models and textures.
2. **Flexibility for Large Projects**\
   For larger projects, such as those involving multiple cloth models, textures, or configurations, this structured approach reduces the risk of errors and improves performance by keeping everything organized in one place.

## Project Folder Relocation

<figure><img src="https://2130288373-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRsXe3tqSiAvM8iKYjngE%2Fuploads%2Fgit-blob-11c4589e412de8f6d753a07acde8bcefb4c76c75%2Fimage.png?alt=media" alt="Project data folder in Project Settings, with the folder path blurred and the note that the folder holds the clothproject folder with its data, previews and caches."><figcaption><p>Durty Cloth Tool Project data folder setting</p></figcaption></figure>

To move an existing project's data folder, save the project first, then choose the new parent folder under **Project Settings > Project data folder** (or press **Ctrl+K** and paste `@Project data folder`). Confirm the move when prompted. The destination must not already contain a folder with the same project name.

* **Why Relocation Needs to be Managed by the Tool**\
  The **.dctproj** file records where the project data lives. DCT copies and checks the data, including backups and history, and saves the new location before removing the original files. If copying or saving fails, the original project stays in place. If the move succeeds but the old folder cannot be fully removed, DCT keeps using the new location and reports the leftover folder in the status log. Renaming an existing project or enabling shared-project paths uses the same process.

## Missing Files

Every item uses files in the project's **data** folder. When one of them is gone, for example because the folder was copied only in part or a file was deleted outside Durty Cloth Tool, the item gets a finding in the [Error List](https://docs.gta.clothing/basics/essential-knowledge/cloth-analysis-report.md) and cannot be shown or built until the file is back.

If none of a project's files can be found when it opens, for example because the `.dctproj` was moved without its folder, DCT asks you to choose the project's `clothproject_<name>` folder with its **data** folder inside. For everything else, use the two actions below. Both are free and work with every license.

### Find missing files in a folder

When some files are missing, or you keep copies of them in your own folders, choose **Tools > Find missing files in a folder** (or press **Ctrl+K** and paste `>Find missing`). While the Error List shows missing files, its toolbar has a **Missing files** dropdown with their number, which offers the same action.

1. Choose the folder that holds the missing files. DCT looks through it and its subfolders. **Cancel** stops the search.
2. **Find missing files** lists every missing file with its item and the kind of file, such as **Model**, **Texture**, **First person model** or **Texture Studio document**, and what the folder holds for it:
   * A file that was found is ticked and shows where it is in the folder. **Same content as the missing file** means DCT recognised its content. **Same name only** means DCT does not know what the missing file contained, so check that it is the right one.
   * When the folder holds different files with the name, choose one or **Skip**.
   * **Different content** means the file has the name of the missing file, but not the content DCT last saw. It may be your original from before DCT changed the file, for example with a repair or an optimizer, or another file with the same name. It starts unticked, and when several such files are found, the choice starts on **Skip**. Tick or choose one only if it is the right file: the preview and the build then use it in place of the missing one.
   * **Not found** says when files with the right name were left out because their content is different.
3. Choose **Copy**, which names how many files you keep, for example **Copy 3 files**. Nothing changes before that.

<figure><img src="https://2130288373-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRsXe3tqSiAvM8iKYjngE%2Fuploads%2Fgit-blob-3b424779e13a967f816362099c3de53990af2b3b%2Ffind-missing-files.png?alt=media" alt="Find missing files after a search of the folder Forge Studio backup. The summary reads Found: 1. Choose one: 1. Not found: 1. Texture a of Female 6 top has two different files with its name, so its choice starts on Skip, with the note Same name only. The model of Male 9 hat is found in 2026-10 export\props, ticked and marked Same content as the missing file. Texture a of Male 2 shoes is Not found. The Copy 1 file and Cancel buttons are at the bottom."><figcaption><p>Find missing files after a search: one file to copy, one choice to make and one file the folder does not have.</p></figcaption></figure>

DCT recognises a file by the name it has in the data folder or by the name of the file you added it from, in any letter case. When DCT still knows what the missing file contained, also after the project was saved and opened again, it ticks only a file with exactly that content and offers a file with the right name but other content unticked. The files you keep are copied into the data folder under the names the project already uses: your own files stay where they are, and nothing in the project is overwritten. The items show their thumbnails and findings again. If you picked the wrong file, change it with **Replace** in the item's context menu.

Copying changes no item, so a file with the content DCT knows adds no entry to [Project History](https://docs.gta.clothing/basics/useful-to-know/project-history.md). When you keep a file with other content, **Backups & History** notes it, for example **Linked a missing file of Top 002 to a file with other content.**, so you can see when it took the missing file's place. That entry has **Nothing to restore**; to use another file, use **Replace** in the item's context menu. Older restore points that needed the missing files can be restored again once the files are back. Such a restore point uses the file you chose here, also when you kept a file with different content or one found by its name only.

{% hint style="info" %}

* Clothing from a resource protected by FiveM Asset Escrow only takes a file with the content DCT knows. If DCT does not know it, add the resource again instead. See [Work with Asset Escrow Clothing](https://docs.gta.clothing/how-to-guides/use-asset-escrow-clothing.md).
* Files larger than 2 GB and folders or links that point to another place are skipped, and the window says so. In a very large folder DCT may stop before it has looked at every file; choose a smaller folder if a file is not found.
* Files that only the project settings use, such as those of a body preset or a custom ped's own model, are not part of the search.
* Both actions are unavailable while a build runs, and while a cloud project is still downloading its files.
  {% endhint %}

### Remove drawables with missing files

When files cannot be found anymore, choose **Tools > Remove drawables with missing files** (or press **Ctrl+K** and paste `>Remove drawables`), or the same entry in the **Missing files** dropdown of the Error List toolbar. The window lists the drawables that lost their model file. Tick **Also remove** to take out the texture variations whose file is missing as well, from drawables that keep their model.

* **Remove from project** takes the drawables out. The drawables after them in the same list move up one place, and later variations move up one letter.
* When the project replaces removed items with dummies (**Automatically replace with dummies on remove** in Project Settings, or press **Ctrl+K** and paste `@Automatically replace`), the button reads **Replace with dummies**: the drawables and variations become reserved slots, so every drawable keeps its number and every variation its letter. See [Placeholders/Dummy Ids](https://docs.gta.clothing/basics/good-to-know/placeholders-dummy-ids.md).

The whole removal is one step that **Undo** (**CTRL + Z**) puts back. Reserved slots have no file by design and are never listed, and no file is deleted. When removed drawables become reserved slots, a drawable from a resource protected by FiveM Asset Escrow stays unchanged, because it cannot become one, and the window says so. Tattoo designs and overlays whose picture is missing are not listed; use their own **Replace** or **Remove**.

## Tools Menu

The **Tools** menu holds the project actions that help maintain clean and efficient projects. These actions allow users to analyze and optimize their projects with ease. Each one below is followed by its command palette search: press **Ctrl+K**, paste it and press **Enter**.

<figure><img src="https://2130288373-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRsXe3tqSiAvM8iKYjngE%2Fuploads%2Fgit-blob-8a313e32804b7b7830c05bb9c2109d73c3ce022d%2Ftools-menu.png?alt=media" alt="The open Tools menu with Find &#x26; Remove duplicates, Find missing files in a folder, Remove drawables with missing files, Optimize &#x26; cleanup project data, Clear build cache, Texture Optimizer, Model Optimizer, Convert Enhanced assets to Legacy, Bulk edit metadata, Find and replace names, Shuffle drawable order, Mark all project items as seen, Thumbnail Generator, Export all clothes as GLB and Connect an app."><figcaption><p>The Tools menu holds the project tools.</p></figcaption></figure>

* **Optimize & cleanup project data** (`>Optimize & cleanup`): Scans the project for unused files, calculates their total size, and prompts whether to delete them. Files that a Project History restore point or a project backup can still bring back are kept, so the cleanup never breaks a restore point or an optimizer undo. To free those files as well, choose **Remove History too** and confirm: the History entries that use them are removed first and cannot be restored. Files a backup uses always stay. Deleting files is irreversible. See [Project History](https://docs.gta.clothing/basics/useful-to-know/project-history.md).
* **Clear build cache** (`>Clear build`): Removes the files that earlier builds of this project converted or generated and kept on this PC to make the next build faster. Your project files and the build output stay as they are. See [Build cache](https://docs.gta.clothing/basics/essential-knowledge/build-options.md#build-cache).
* **Thumbnail Generator** (`>Thumbnail Generator`): Writes thumbnail files for the project into a folder and keeps it in sync. See [Thumbnails & Visual Exports](https://docs.gta.clothing/basics/good-to-know/thumbnails-and-exports.md).
* **Find & Remove duplicates...** (`>Find & Remove`): Scans the project for drawables and texture variations with identical file content and lists every group it finds, with thumbnails and a **3D preview** button to compare copies. Duplicates are ticked for removal by default; untick what you want to keep, use **Keep this instead** to keep another copy, and confirm to remove the rest. Unique texture variations of a removed drawable move to the kept one, unless you choose to delete the copy with its variations, see [Project-Wide Duplicate Analysis](https://docs.gta.clothing/basics/essential-knowledge/cloth-analysis-report.md#project-wide-duplicate-analysis). **Undo** takes a removal back while the project stays open. The same drawable in the other gender and the same texture on another drawable only count when you turn on the matching option. The same model saved in different files is listed in its own groups, where nothing is ticked for you.
* **Find missing files in a folder** (`>Find missing`) and **Remove drawables with missing files** (`>Remove drawables`): Bring back files the project lost from a folder you choose, or take out the drawables whose files are gone. See [#missing-files](#missing-files "mention").

These actions ensure your project stays organized and optimized, making it easier to manage and reducing unnecessary clutter.

## Automatic Backup Save System

<figure><img src="https://2130288373-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRsXe3tqSiAvM8iKYjngE%2Fuploads%2Fgit-blob-e7252944c97d06d69d1e9132c3324291a63adbfc%2Fimage.png?alt=media" alt="Project Settings on its Editing page with Automatically save an up-to-date project backup ticked under Behaviour."><figcaption><p>Durty Cloth Tool Automatic Project Backup Setting</p></figcaption></figure>

To help safeguard your progress, Durty Cloth Tool includes an **automatic up-to-date backup save system** that monitors changes in your project. It can recover the last successfully written backup after a crash, so keep saving regularly as you work.

* **How it Works**\
  Whenever there is an unsaved change in the project, a backup copy of the project is automatically created every minute. This backup system can be **enabled via the project settings** (or press **Ctrl+K** and paste `@Automatic Save`) and works in the background to continuously protect your work.
* **Restoring from Backup**\
  If there is an existing backup that is newer than the last manually saved state, the tool will prompt you to restore the backup when you load the project. This ensures you have the option to retrieve the most recent version of your work, even if you didn’t manually save the project before closing it.\
  ![The question Found newer project backup: It seems like there is a newer project save backed up, do you want to restore it?, with the dates of the automatic backup and of the last save, Restore last backup and Continue loading without restoring.](https://2130288373-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRsXe3tqSiAvM8iKYjngE%2Fuploads%2Fgit-blob-09a04f2993eaf77230024d5c8c2d4ba52acf9297%2Fimage.png?alt=media)
* **Backup Save Flow:**
  1. **Turn on backups**: In **Project Settings**, turn on **Automatically save an up-to-date project backup**.
  2. **Backup Creation**: The tool creates a backup every minute whenever there are unsaved changes.
  3. **Auto-Restore**: Upon reopening a project, if a more recent backup exists than the last saved version, the tool will ask if you want to restore the backup.

DCT keeps **five** rotated automatic backups. A backup that cannot be read is preserved rather than deleted, and opening an unreadable project offers its newest readable backup while keeping the damaged file as a copy.

Backups are written and checked in the background without holding up your editing.

If saving fails when you close DCT or start an update, the dialog explains why. **Keep DCT open** is selected by default. **Save a copy elsewhere...** lets you choose another project-file location. For a shared project, DCT also copies its data beside the new file and keeps the original intact; History and older backups remain with the original. For a previously saved project, **Close and keep recovery copy** is available only after DCT has successfully written a recovery copy; reopen the project to restore it. If a recovery copy cannot be written, the close option explicitly says **Close without saving**. Save a new project before closing to retain its data.

{% hint style="info" %}
Automatic backups protect you from losing unsaved work. To take back a change you made deliberately, use [Project History](https://docs.gta.clothing/basics/useful-to-know/project-history.md) instead.
{% endhint %}

## Benefits of the Durty Cloth Projects System

* **Consistency Across Projects**\
  The project system ensures that all related assets are neatly organized, making it easier to manage multiple projects without confusion or missing files.
* **Optimized Workflow**\
  By keeping metadata in the **"data"** folder and linking assets through the `.dctproj` file, modders can quickly switch between projects, knowing that everything is consistently organized.
* **Scalability**\
  For larger projects involving dozens or even hundreds of clothing models and textures, the project system scales easily, keeping everything manageable without losing performance.

## Summary

The **Durty Cloth Projects** system is a powerful core component of DCT to manage your clothing modding workflow. With a structured folder format and the ability to keep metadata organized, it optimizes the process of working with clothing resources. By ensuring consistency, performance, and ease of management, Durty Cloth Tool’s project system is designed for both small and large modding projects alike.
