# Create Mappacks

## mappacks table structure

![Map Pack capture in game](https://3430520752-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FcDN9n70KVji27yKpfd18%2Fuploads%2Fgit-blob-ca48d7b20fd52d376c0c0f487dfb0cf9a22acaea%2Fa-mappacks-img0.jpg?alt=media)

| Name       | Information                                                                         | Args                                                                                                                                                                                                                                                                                                                                                         |
| ---------- | ----------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| ID         | Add a unique number to the map pack                                                 | (optional, auto-generated)                                                                                                                                                                                                                                                                                                                                   |
| name       | name of the map pack that will be displayed in the game **\[1]**                    | (not optional)                                                                                                                                                                                                                                                                                                                                               |
| levels     | Map pack level IDs separated by commas, example: `15908,981172,39223`               | You need **at least** 3 level IDs                                                                                                                                                                                                                                                                                                                            |
| stars      | Number of stars that the player will get when completing the map pack **\[2]**      | Minimum: 2 star, Maximum: 10 stars                                                                                                                                                                                                                                                                                                                           |
| coins      | Number of star coins that the player will get when completing the map pack **\[3]** | <p>Either 1 or 2.<br>No more, no less.</p>                                                                                                                                                                                                                                                                                                                   |
| difficulty | Map pack difficulty number that will be displayed in the game **\[4]**              | <p><strong>Difficulty number list:</strong><br><code>0</code> = Auto, <code>1</code> = Easy, <code>2</code> = Normal, <code>3</code> = Normal, <code>4</code> = Harder, <code>5</code> = Insane, <code>6</code> = Hard Demon, <code>7</code> = Easy demon, <code>8</code> = Medium demon, <code>9</code> = Insane Demon, <code>10</code> = Extreme Demon</p> |
| rgbcolors  | Name color of the map pack name that will be displayed in the game **\[1]**         | <p>RGB Format (0-255)<br>Example: `0,255,0`<br>(0% Red, 100% Green, 0% Blue)</p>                                                                                                                                                                                                                                                                             |
| colors2    | Bar color of the map pack name that will be displayed in the game **\[5]**          | RGB Format like above                                                                                                                                                                                                                                                                                                                                        |

## Creating a map pack

Learn to access phpMyAdmin: 🔐 [Accessing to phpMyAdmin](https://gdpsfh.gitbook.io/community-guide/phpmyadmin/site-structure)

Learn phpMyAdmin structure: 🔐 [Site Structure](https://gdpsfh.gitbook.io/community-guide/phpmyadmin/site-structure)

1. Access to your phpMyAdmin database and Look for "mappacks".
2. Open the insert tab.
3. Fill out all fields correctly.
4. Click on "Go".
5. If nothing has gone wrong, you can restart the game to see the map pack being added to the game.

## Trivia

* Difficulty numbers 6 through 10 do not exist before GD 2.1 version.


---

# 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://gdpsfh.gitbook.io/community-guide/phpmyadmin/create-mappacks.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.
