# PAD Pack AAB Helper

**Automatically includes pak files generated from your existing chunk setup into the AAB and handles asset pack management without manual .ini setup or hardcoded pack lists.**

{% embed url="<https://www.youtube.com/watch?v=46xcja-u38Y>" %}

***

### 🧩 What does this plugin do?

This plugin does **not** generate or manage your chunk system.\
You are still required to create and organize chunks using **Primary Asset Labels** or your preferred method.

The plugin’s purpose is to:

* Automatically collect pak files generated from your existing chunk setup
* Add them into the appropriate `.ini` configuration during the build process
* Ensure these asset packs are correctly included in the final AAB

It also provides the **GetGeneratedPADAssetPacks** node, which retrieves the up-to-date list of generated asset packs.\
This allows you to directly use them with **RequestDownload** without manually defining or maintaining pack names.

***

### 🛠️ Installation & Setup

This guide focuses on generating chunks and verifying that the pak files created from them are correctly included in the AAB.\
The full Google Play Store build process is outside the scope of this documentation.

***

#### 1. Enable Required Plugins

Go to:

**Edit → Plugins**

<figure><img src="/files/7rTtmTf6ZAy87Ax5JnQ2" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/7nwkD46QOagdFtf4g5xP" alt=""><figcaption></figcaption></figure>

***

#### 2. Configure Packaging Settings

Go to:

**Project Settings → Packaging**

Set the following options:

* **Use Pak File** → Enabled
* **Generate Chunks** → Enabled
* **Use Io Store** → Disabled
* **Share Material Shader Code** → Disabled

<figure><img src="/files/rlnER5V0BoCjLU8jcjaZ" alt=""><figcaption></figcaption></figure>

***

#### 3. Configure Android Settings

Go to:

**Project Settings → Platforms → Android**

Configure your settings according to the required PAD setup.

<figure><img src="/files/aXtw67G6MmbJQgIkbpNU" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/zYDlmWY7py42ta9H260k" alt=""><figcaption></figcaption></figure>

***

#### 4. Asset Manager Setup

Go to:

**Project Settings → Game → Asset Manager**

Add the following:

* **Primary Asset Type** → PrimaryAssetLabel
* **Asset Base Class** → PrimaryAssetLabel
* **Directories** → /Game

👉 Asset Manager is empty by default.\
You must define this for chunking to work.

<figure><img src="/files/YYUIfJ87J9Lqyvr9ZA0p" alt=""><figcaption></figcaption></figure>

***

#### 5. Chunking Setup

Create chunks using **Primary Asset Labels**.

**Primary Asset Label Settings (Quick Overview)**

* **Cook Rule** → Use **Always Cook**
* **Chunk ID** → Unique ID per chunk

**Chunk ID Convention:**

* **0** → Base (install-time)
* **1** → Fast-follow
* **2+** → On-demand

👉 Recommended: Use **101+ for on-demand chunks**

* **Priority** → Default is fine
* **Apply Recursively** → Includes all assets in folders
* **Explicit Assets** → Add specific assets manually
* **Directories** → Add full folders
* **Is Editor Only** → Keep disabled

<figure><img src="/files/CeuCtQRZuO3EQwFl76Vm" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/mEBPIJZbrHZU7xqG54f0" alt=""><figcaption></figcaption></figure>

<div><figure><img src="/files/XWwEX68TOfwiWGTUsRUN" alt=""><figcaption></figcaption></figure> <figure><img src="/files/nQMFgZ7CoM1u7GtFOyRn" alt=""><figcaption></figcaption></figure></div>

***

#### 6. Build Log Verification

If you see logs like this during build, it means your chunk-based pak files are successfully processed and included in the AAB as asset packs.

👉 These logs confirm that your chunk system and PAD setup are working correctly.

<figure><img src="/files/mADTwByBTgmmTledn5bz" alt=""><figcaption></figcaption></figure>

***

#### 🎮 Usage Example (Runtime)

Use **GetGeneratedPADAssetPacks** to retrieve all generated asset packs,\
then pass the result to **RequestDownload** to download them.

👉 No manual pack name handling required.

<figure><img src="/files/W45SYkTI2kDMwEvSBnGb" alt=""><figcaption></figcaption></figure>

***

### 📌 Summary

The plugin simplifies the Android PAD workflow by automating `.ini` configuration and asset pack handling, while keeping full control of chunk creation in the user’s hands.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://mek-game-studios.gitbook.io/pad-pack-aab-helper/pad-pack-aab-helper.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
