# Setting up WorldPainter

* Open **WorldPainter**
* Click “**Edit**” and select “**Preferences**”

![](https://1629832642-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MgfZtkRND9VtsnbRax7%2Fuploads%2FVntzRdJfM69YCme8ta7r%2Fimage.png?alt=media\&token=47e8c55c-b3aa-4934-a507-c655364fece1)

* Switch to the “**Defaults**” tab and align your settings to the below screenshot:

<figure><img src="https://1629832642-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MgfZtkRND9VtsnbRax7%2Fuploads%2F28iYjKZXj86K2sNATCMF%2Fimage_2023-07-07_141120402.png?alt=media&#x26;token=43d873f4-4de7-47e8-b3ea-4a7122ce0901" alt=""><figcaption><p>TIles 'Defaults' settings for WorldPainter</p></figcaption></figure>

* Open "Configure default border, terrain, and layer settings"
* Align your settings exactly to the below screenshot:

<figure><img src="https://1629832642-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MgfZtkRND9VtsnbRax7%2Fuploads%2FyPPXdzUYVKYvDtiE4TPa%2Fimage_2023-07-07_141454088.png?alt=media&#x26;token=efaa9659-0b31-44d3-a89f-b0414c0bdb4f" alt=""><figcaption><p>General Page</p></figcaption></figure>

* Switch to the “**Caves, Caverns and Chasms**” tab and *<mark style="color:red;">deactivate</mark>*: “**Caves everywhere”, “Caverns everywhere” and “Chasms everywhere**”. This will fix cave generation for the map. Make sure your settings align with the screenshot

<figure><img src="https://1629832642-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MgfZtkRND9VtsnbRax7%2Fuploads%2F7TG6CdRTpxSDqT072Dbv%2Fimage.png?alt=media&#x26;token=7451a4bc-2dd5-4b37-8c3d-ab4b94d56023" alt=""><figcaption><p>Settings</p></figcaption></figure>

Lastly, switch to the "**Other Layers"** and disable all settings.

<figure><img src="https://1629832642-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MgfZtkRND9VtsnbRax7%2Fuploads%2FX3uH2eMzSHyVyAdFa2wG%2Fimage.png?alt=media&#x26;token=db276e0f-5db7-4744-a18e-09eb2bd40c35" alt=""><figcaption><p>Settings</p></figcaption></figure>

* Press “**OK**” to save the settings.

<figure><img src="https://1629832642-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MgfZtkRND9VtsnbRax7%2Fuploads%2FjhXVggSKHZFs4Jk64jw6%2Fimage.png?alt=media&#x26;token=de7e8a88-15e4-47ff-a079-362009d02dec" alt=""><figcaption></figcaption></figure>

#### Now you can create Tiles with the correct export settings. The reason why we have to do this manually is that the custom script cannot be programmed to do so.

## Assigning more RAM to WorldPainter

Sometimes WorldPainter does not allocate&#x20;

Go to the installation folder of WorldPainter (most likely C:\Program Files\WorldPainter) and open the file: "**wpscript.vmoptions**" with a text editor.

<figure><img src="https://1629832642-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MgfZtkRND9VtsnbRax7%2Fuploads%2FCO4oe89VX09aETalx5Zf%2Fimage_2023-07-07_142651410.png?alt=media&#x26;token=fc3dba07-8ee8-4565-bd0c-4dcae3c6704f" alt=""><figcaption></figcaption></figure>

Add the following line at the end of the file:

{% hint style="warning" %}
*Instead of 16, you should enter the amount of RAM you have installed in your computer (minus a little bit, for example, 14G, when you have 16GB installed). **Never** allocate too much memory—your system still needs some to function!*
{% endhint %}

```html
-Xmx16G
```
