# ZEP Script Deployment Guide

## STEP 1

Select all of the files to be used, including the **main.js** file developed with ZEP Script, image files, and widget files, and compress them.

{% hint style="danger" %}
Note:

* The app’s file name and type must be set as “**main.js**”.
* **Select the individual files together** to compress. Do not compress a folder.
* The supported filename extension is \***.zip**.
  {% endhint %}

![](https://3059601135-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MkvEvcz_LX5eDyvl13E%2Fuploads%2F6dIMiLM3N1X38EMcgomf%2F%EC%8A%A4%ED%81%AC%EB%A6%B0%EC%83%B7_2022-05-04_%EC%98%A4%ED%9B%84_7.00.57.png?alt=media\&token=205fe34e-0fd5-4321-b572-d6bbed1b2bd6)

{% file src="<https://3059601135-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MkvEvcz_LX5eDyvl13E%2Fuploads%2Fc8QCQCDgtf3YsciigT0X%2FZombie_Sample.zip?alt=media&token=6bb2fcc5-88c1-4bb3-964f-58ca13799515>" %}

## STEP 2

Create an account on ZEP and sign in, on the [**My Spaces**](https://zep.us/spaces/me) page click **Your Profile Name** > [**My apps (Beta)**](https://zep.us/me/apps).

<div align="left"><figure><img src="https://3059601135-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MkvEvcz_LX5eDyvl13E%2Fuploads%2FHdzLPoWaCjQrzEtkZXeJ%2F1.png?alt=media&#x26;token=ccada80c-465b-4889-90bd-40a504e902f4" alt=""><figcaption></figcaption></figure></div>

## STEP 3

3\) Click **Upload app** on the [**My apps (Beta)**](https://zep.us/me/apps) page.

<div align="left"><figure><img src="https://3059601135-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MkvEvcz_LX5eDyvl13E%2Fuploads%2FT9mDqEg6mKP5CI65VGup%2F2.png?alt=media&#x26;token=a9c9af6c-74ac-4091-8122-803e60158c61" alt=""><figcaption></figcaption></figure></div>

## STEP 4

Click the **Upload** button after filling out the **App name**, **Description**, selecting the app **Type**, and uploading the **Icon**, and compressed **ZEP script file**.

<div align="left"><figure><img src="https://3059601135-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MkvEvcz_LX5eDyvl13E%2Fuploads%2F6LzgZ4nrnMER4zFzWFC3%2F3.png?alt=media&#x26;token=9b193bf7-b7e5-4751-b002-d934c49629a5" alt=""><figcaption></figcaption></figure></div>

<div align="center"><figure><img src="https://3059601135-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MkvEvcz_LX5eDyvl13E%2Fuploads%2FXaL27eTxAbn2MuP7kzDc%2Fapp_icon.png?alt=media&#x26;token=8ccacd02-618c-4160-892e-2078c0f53bfc" alt=""><figcaption><p>This is how the app name and icon appear. (Mini-Game)</p></figcaption></figure></div>

## STEP 5

You can install apps to your desired maps according to their App Type.

* **Normal App:**

  Enter **Map Editor** on a map for which you have an Editor role or higher and in the **Map manager** in the bottom left corner click ⚙️ > **Edit** to bring up the **Map Setting** pop-up and select your App from the Application drop-down menu.

<div align="left"><figure><img src="https://3059601135-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MkvEvcz_LX5eDyvl13E%2Fuploads%2FrJwuZgJNotOYV2vg2ISa%2F4.png?alt=media&#x26;token=31d6470e-567e-4d79-ab07-ba7ce81df1f0" alt=""><figcaption></figcaption></figure> <figure><img src="https://3059601135-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MkvEvcz_LX5eDyvl13E%2Fuploads%2F5PWT8TtQE07gb8jNFrDR%2F5.png?alt=media&#x26;token=b7c77340-92d1-45d1-b86c-61ec749d1ff9" alt=""><figcaption></figcaption></figure></div>

* **Mini-Game:**

  Enter the play screen > Select the **Mini-Game** button on the side bar.

<div align="left"><figure><img src="https://3059601135-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MkvEvcz_LX5eDyvl13E%2Fuploads%2FV5IKQRd6HwSo86RJsl8g%2Fimage.png?alt=media&#x26;token=e02ea856-f62d-4e68-861b-1a6a437d049f" alt=""><figcaption></figcaption></figure></div>

## 🚧 Debugging and Error Messages

When the app is executed, error messages will be displayed in <mark style="color:red;">red text</mark> in the chat message box for all who have permission settings of Staff or higher.

<div align="left"><figure><img src="https://3059601135-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MkvEvcz_LX5eDyvl13E%2Fuploads%2FSxbIAbxXaKwWh66O1Vo3%2Ferror.png?alt=media&#x26;token=5954f165-804f-4f09-8dba-23cb786ad4fe" alt=""><figcaption></figcaption></figure></div>
