# How to Configure Your Vein Server (game.ini + Engine.ini) (/docs/vein/server-config)









import { Step, Steps } from 'fumadocs-ui/components/steps';
import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
import { Files, Folder, File } from 'fumadocs-ui/components/files';

Vein uses two config files: `game.ini` for server identity and admin setup, and `Engine.ini` for 100+ gameplay settings.

Config File Locations [#config-file-locations]

<Files>
  <Folder name="Vein" defaultOpen>
    <Folder name="Saved" defaultOpen>
      <Folder name="Config" defaultOpen>
        <Folder name="LinuxServer" defaultOpen>
          <File name="game.ini" />

          <File name="Engine.ini" />
        </Folder>
      </Folder>

      <Folder name="SaveGames">
        <File name="manifest.save" />

        <File name="server.save" />
      </Folder>
    </Folder>
  </Folder>
</Files>

Quick Settings via Startup Tab [#quick-settings-via-startup-tab]

The most common settings (server name, password, max players, public toggle) can be changed directly in the **Startup** tab without editing config files:

<img alt="Startup tab showing Vein server variables" src={__img0} placeholder="blur" />

Edit Config Files [#edit-config-files]

For advanced settings (gameplay, zombies, PvP, loot), edit the config files directly:

<Steps>
  <Step>
    Stop the server [#stop-the-server]

    In the [XGamingServer Panel](https://panel.xgamingserver.com), go to **Console** and stop the server.
  </Step>

  <Step>
    Open the config file [#open-the-config-file]

    Click **Files** in the sidebar and navigate to `Vein/Saved/Config/LinuxServer/`. Open `Game.ini` or `Engine.ini`.

        <img alt="File Manager showing the server root" src={__img1} placeholder="blur" />

        <img alt="Game.ini open in the editor" src={__img2} placeholder="blur" />
  </Step>

  <Step>
    Save and start [#save-and-start]

    Click **Save Content** and start from **Console**.
  </Step>
</Steps>

Game.ini Reference [#gameini-reference]

```ini
[/Script/Engine.GameSession]
MaxPlayers=16

[/Script/Vein.VeinGameSession]
bPublic=True
bAntiCheatProtected=False
ServerName=My Vein Server
BindAddr=0.0.0.0
AdminSteamIDs=76561198012345678
HeartbeatInterval=30.0
Password=

[OnlineSubsystemSteam]
GameServerQueryPort=27015
bVACEnabled=0
```

| Setting               | Section                | Default | Description                                          |
| --------------------- | ---------------------- | ------- | ---------------------------------------------------- |
| `MaxPlayers`          | `Engine.GameSession`   | `16`    | Max concurrent players (up to 64 via startup params) |
| `bPublic`             | `VeinGameSession`      | `True`  | Show in server browser (`False` = unlisted)          |
| `bAntiCheatProtected` | `VeinGameSession`      | `False` | Enable anti-cheat                                    |
| `ServerName`          | `VeinGameSession`      | —       | Display name in server browser                       |
| `Password`            | `VeinGameSession`      | (empty) | Join password — leave empty for public               |
| `AdminSteamIDs`       | `VeinGameSession`      | —       | SteamID64 for admins (one per line)                  |
| `HeartbeatInterval`   | `VeinGameSession`      | `30.0`  | How often the server pings the master server         |
| `GameServerQueryPort` | `OnlineSubsystemSteam` | `27015` | Steam query port (UDP)                               |
| `bVACEnabled`         | `OnlineSubsystemSteam` | `0`     | Valve Anti-Cheat (0 = off, 1 = on)                   |

Engine.ini — Gameplay Settings [#engineini--gameplay-settings]

All gameplay settings go under `[ConsoleVariables]` in `Engine.ini`, using the format `vein.SettingName=value`:

<Tabs items={['Combat & PvP', 'Zombies & AI', 'World & Time', 'Loot & Resources']}>
  <Tab value="Combat & PvP">
    | Setting                 | Default | Description                               |
    | ----------------------- | ------- | ----------------------------------------- |
    | `vein.PvP`              | `1.0`   | Enable PvP (0 = off, 1 = on)              |
    | `vein.BaseDamage`       | `1.0`   | Enable base/structure damage              |
    | `vein.BuildObjectDecay` | `1.0`   | Require utility cabinets to prevent decay |
  </Tab>

  <Tab value="Zombies & AI">
    | Setting                                 | Default | Description              |
    | --------------------------------------- | ------- | ------------------------ |
    | `vein.AISpawner.Hordes.Enabled`         | `1.0`   | Enable horde events      |
    | `vein.AISpawner.Hordes.ChancePerMinute` | `0.05`  | Horde spawn frequency    |
    | `vein.Zombies.Health`                   | `40.0`  | Zombie HP                |
    | `vein.Zombies.DamageMultiplier`         | `1.0`   | Zombie damage multiplier |
  </Tab>

  <Tab value="World & Time">
    | Setting                    | Default | Description                             |
    | -------------------------- | ------- | --------------------------------------- |
    | `vein.Time.TimeMultiplier` | `16.0`  | Day/night cycle speed (higher = faster) |
  </Tab>

  <Tab value="Loot & Resources">
    | Setting                    | Default | Description                                   |
    | -------------------------- | ------- | --------------------------------------------- |
    | `vein.Scarcity.Difficulty` | `2.0`   | Loot scarcity (0 = abundant, 4 = very scarce) |
  </Tab>
</Tabs>

> Many more settings are available in Engine.ini. Settings can also be changed live via the in-game admin **Config** menu (press `\` to open the admin panel).

Ports [#ports]

| Port      | Protocol | Purpose                                         |
| --------- | -------- | ----------------------------------------------- |
| **7777**  | UDP      | Game traffic                                    |
| **27015** | UDP      | Steam query (`GameServerQueryPort` in game.ini) |

Startup Parameters [#startup-parameters]

Set in the **Startup** tab on the panel:

| Parameter          | Description                                |
| ------------------ | ------------------------------------------ |
| `-port=7777`       | Game port                                  |
| `-QueryPort=27015` | Query port                                 |
| `-MaxPlayers=64`   | Override max players beyond config default |
| `-log`             | Enable logging                             |

Related Guides [#related-guides]

* [How to Join](/docs/vein/join-server)
* [Admin Setup](/docs/vein/admin-setup)
* [Wipe & Reinstall](/docs/vein/wipe-reinstall)
