# Increasing Item Space - Storages to 252 Hex Edit

### Server (gs)

<table id="bkmrk-storage-before-after"><thead><tr><th>Storage</th><th>Before</th><th>After</th></tr></thead><tbody><tr><td>Bag</td><td>192</td><td>252 slots</td></tr><tr><td>Stash</td><td>200</td><td>252 slots</td></tr><tr><td>Mystery Pouch</td><td>192</td><td>252 slots</td></tr><tr><td>Alliance stash</td><td>200</td><td>252 slots</td></tr></tbody></table>

### Client (elementclient.exe)

- Bag counter shows /252 and the bag **Expand** button goes to 252
- Stash counter shows /252

## Important

> **The offsets only fit the same builds we edited** (the original ESO `gs` and `elementclient.exe`). Before typing, check that the "Was" bytes are really there. If they aren't, **STOP**: your file is a different build.

- Offsets are **file** offsets (what a hex editor's "Go to" uses).
- Type over the bytes (overwrite). Never insert or delete bytes; the file size must stay the same.
- Stop the server and back up every file first.
- Work on a copy, test on a throwaway character.

**Tools:** HxD (Windows) or any hex editor. "Go to" = **Ctrl+G** in HxD.

## 1. gs (server)

12 bytes, 1 byte each.

<table id="bkmrk-storage-offset-was-n"><thead><tr><th>Storage</th><th>Offset</th><th>Was</th><th>Now</th></tr></thead><tbody><tr><td>Bag (192 → 252)</td><td><code>0x443D6</code></td><td><code>C0</code></td><td><code>FC</code></td></tr><tr><td>Bag (192 → 252)</td><td><code>0x443DF</code></td><td><code>C0</code></td><td><code>FC</code></td></tr><tr><td>Bag (192 → 252)</td><td><code>0xF8163</code></td><td><code>C0</code></td><td><code>FC</code></td></tr><tr><td>Bag (192 → 252)</td><td><code>0xF816F</code></td><td><code>C0</code></td><td><code>FC</code></td></tr><tr><td>Stash (200 → 252)</td><td><code>0xA54CE</code></td><td><code>C8</code></td><td><code>FC</code></td></tr><tr><td>Stash (200 → 252)</td><td><code>0xF8225</code></td><td><code>C8</code></td><td><code>FC</code></td></tr><tr><td>Stash (200 → 252)</td><td><code>0xF8231</code></td><td><code>C8</code></td><td><code>FC</code></td></tr><tr><td>Mystery Pouch (192 → 252)</td><td><code>0x4445D</code></td><td><code>C0</code></td><td><code>FC</code></td></tr><tr><td>Mystery Pouch (192 → 252)</td><td><code>0x44466</code></td><td><code>C0</code></td><td><code>FC</code></td></tr><tr><td>Alliance stash (200 → 252)</td><td><code>0xFAEA2</code></td><td><code>C8</code></td><td><code>FC</code></td></tr><tr><td>Alliance stash (200 → 252)</td><td><code>0xF8278</code></td><td><code>C8</code></td><td><code>FC</code></td></tr><tr><td>Alliance stash (200 → 252)</td><td><code>0xF8284</code></td><td><code>C8</code></td><td><code>FC</code></td></tr></tbody></table>

> **Warning:** Do ALL of them in the same file. After this, never go back to the original gs: it trims storage above the old limits when players log in, and items in those slots can be lost.

## 2. elementclient.exe (client: every player needs it)

### 2a. Bag counter /252 and Expand button

1 byte each.

<table id="bkmrk-offset-was-now-what-"><thead><tr><th>Offset</th><th>Was</th><th>Now</th><th>What</th></tr></thead><tbody><tr><td><code>0x128057</code></td><td><code>C0</code></td><td><code>FC</code></td><td>Bag counter shows /252</td></tr><tr><td><code>0x128117</code></td><td><code>C0</code></td><td><code>FC</code></td><td>Bag Expand button allows up to 252</td></tr></tbody></table>

### 2b. Stash counter /252

> **Warning:** Do ALL THREE together, or none of them. If you only do some of these three, the client can crash when the stash opens.

<table id="bkmrk-offset-was-now-what--1"><thead><tr><th>Offset</th><th>Was</th><th>Now</th><th>What</th></tr></thead><tbody><tr><td><code>0x18BD25</code></td><td><code>B4 82 A7 00</code></td><td><code>C0 FE A6 00</code></td><td>Points the stash label at the new text below</td></tr><tr><td><code>0x66FEC0</code></td><td><code>00 00 00 00 00 00 00 00 00 00 00 00 00 00</code> (14 zeros)</td><td><code>25 00 64 00 2F 00 32 00 35 00 32 00 00 00</code></td><td>The text <code>&#37;d&#47;252</code></td></tr><tr><td><code>0x290</code></td><td><code>B2 0E 09 00</code></td><td><code>E0 0E 09 00</code></td><td>Makes the <code>&#46;rdata</code> section a little bigger so the new text above is loaded</td></tr></tbody></table>

> **Note:** The Mystery Pouch and alliance stash need no client change.

## 3. Getting the extra slots in game

The patches raise the **limits**. Players still unlock slots the normal way, through the expansion items/quests. In our task files these are:

<table id="bkmrk-storage-quest-ids-no"><thead><tr><th>Storage</th><th>Quest IDs</th><th>Notes</th></tr></thead><tbody><tr><td>Bag "+6 slots"</td><td>20807, 20808, 21328, 243</td><td> </td></tr><tr><td>Stash I–XII</td><td>263–286</td><td> </td></tr><tr><td>Stash XIII–XVI</td><td>22748–22751</td><td> </td></tr><tr><td>Alliance stash</td><td>21267–21278</td><td> </td></tr><tr><td>Mystery Pouch</td><td>8395, 8417–8421</td><td>These stop at 96 slots; add more steps if you want the full 252</td></tr><tr><td>Pet bag I–XIII</td><td>21279–21292</td><td>Max 32, not changed</td></tr></tbody></table>

Your quest numbers can differ if your task files differ.

> **Warning:** These quests give free storage and are GM/test ones. Keep them away from players: 21309, 8730, 1506, 20792, 20804, 12190.

## 4. Install

### Server

1. Stop the server.
2. Back up `gs`.
3. Copy the edited `gs` over the old one.
4. Set permissions:
    
    ```bash
    chmod 755 gs
    
    ```
5. Start the server.

### Client

Replace `elementclient.exe` in every player's client folder.

## 5. Test checklist

- \[ \] Bag window shows x/252 and Expand keeps working past 192
- \[ \] Stash window shows x/252 and opens without crashing
- \[ \] Stash and alliance stash expansions work past 200
- \[ \] Mystery Pouch expansions work past 192
- \[ \] Log out and back in: items in the new slots are still there

## 6. Compare your files with the edited ones

Windows:

```
fc /b original_file edited_file

```

Linux:

```bash
cmp -l original_file edited_file

```

Each line of output is one changed byte. Bytes that stay the same, like the `00`s, are not listed.

<table id="bkmrk-file-expected-lines-"><thead><tr><th>File</th><th>Expected lines</th></tr></thead><tbody><tr><td><code>gs</code></td><td>12</td></tr><tr><td><code>elementclient&#46;exe</code></td><td>12 (2 for the bag, 10 for the stash label)</td></tr></tbody></table>