> ## Documentation Index
> Fetch the complete documentation index at: https://docs.czautoz.co.uk/llms.txt
> Use this file to discover all available pages before exploring further.

# Script Memory Explained

> Why every DayZ mod uses script memory, why a smaller pack would not fix it, and how to balance your server's mod list.

> [!NOTE]
>
> **The short version:** every mod on your server shares the same script memory, and DayZ gives each script module a fixed limit. Every feature in any mod uses some of it. If your mods don't fit, the answer is to balance your mod list. Removing a few vehicles from a pack won't help.

## What script memory is

A DayZ mod's code is split into three script modules:

| Module | What goes in it |
| - | - |
| **Game** | Shared basics: settings, network messages, helpers |
| **World** | Vehicles, items, actions and everything that happens in the world |
| **Mission** | Menus, HUDs and admin panels |

DayZ gives **each module a limit of 32 MB**. That limit is for the whole server, not for each mod: the code of **every** mod you run goes into the same three modules. Your server and every player's game load them all.

If one module goes over its limit, the scripts don't fit and the mods can't load properly.

## Every feature uses memory

Every feature is code, and code uses script memory. This is true for every mod made for DayZ, not only ours.

A mod with its own flight model, autopilot, HUDs, admin panel, sling loading, seat switching, tracking, parts and fluids will use more script memory than a mod that adds a model and nothing else. You can't have the features without the memory they need.

## Why a smaller pack wouldn't help

Almost all of a CZ Autoz mod's code is **shared**. Every helicopter uses the same flight model, autopilot, HUD, panels and seats, and every car uses the same Vehicles Core features.

Each extra helicopter or car only adds a small amount on top. A helicopter mod with three aircraft would use **nearly the same memory** as the full fleet. That's why we don't make cut-down versions.

## Big frameworks use a large share

Large frameworks, such as Expansion, are big mods with many systems of their own. They use a large share of the same three modules before any other mod is loaded.

Every server is different. What fits depends on **everything** you run together, so balancing your mod list is up to you.

## How to check the memory

> [card] [Setup Planner](https://czautoz.co.uk/planner)
>
> Tick the CZ Autoz mods you run (or plan to) and see the Game, World and Mission memory they take together, as bars against the 32 MB limit.

* **Helicopter admin panel, STATS tab:** the **Mod memory** rows show how much of each module the helicopter mod uses. See [Admin Panel](https://docs.czautoz.co.uk/server-config/admin-panel.md).
* **Vehicles Core admin panel:** the About area and the STATS tab show the script memory of the CZ Autoz vehicle mods you have loaded. See [Admin Panel](https://docs.czautoz.co.uk/vehicles/core/admin-panel.md#about).

These figures are for **our** mods only. For your other mods, ask their authors or check their pages.

## If your mods don't fit

**1. Check what each mod uses**

Use the [Setup Planner](https://czautoz.co.uk/planner) and the admin panels above for our mods, and the other mods' own pages for theirs.

**2. Find the full module**

It's usually one module, most often **World**, that runs out first.

**3. Balance your mod list**

Remove mods you don't really use, or pick lighter alternatives, until everything fits.

> [!TIP]
>
> We keep making our scripts smaller where we can, without removing features. Each update shows its own figures in the Setup Planner and the admin panels.

Still stuck? Ask in the [CZ Autoz Discord](https://discord.gg/kAm8KyH58d) with your full mod list.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.