Skip to content

DevilutionX diablo.ini configuration guide

pionere edited this page Jul 8, 2025 · 7 revisions

The config folder path may differ depending on OS version and security settings, but will normally be as follows:

  • macOS ~/Library/Application Support/diasurgical/devilx
  • Linux ~/.local/share/diasurgical/devilx/
  • Windows %AppData%\diasurgical\devilx

You can specify the location by setting the --config-dir argument when starting the program.

By changing diablo.ini, you can configure the game to your liking. The options are divided into sections, where each adjustment comes with an individual description. Setting a value outside the allowed parameters will cause the game to ignore the setting and use the built-in defaults. The values next to the configuration entry are the defaults as the game generates the file.

[Diablo] [Graphics] [Audio] [Network] [GameUI] [NetMsg] [Controller] [Controls] [Gamepad]

[Diablo]

Intro=1

0=disabled, 1=enabled; Enable/disable Intro cinematic.

Direct FileAccess=0

0=disabled, 1=enabled; When enabled game assets can be loaded from the game folder instead of the mpq file.

Game Speed=25

25=Min, 25=Default, 50=Max; Adjust the rate at which game events take place. Besides the max, this will also be caped by your fps. Beware! It affects not only the player but also the monsters.

Grab Input=0

0=disabled, 1=enabled; When enabled mouse is locked to the game window.

[Graphics]

Generic

Fullscreen=1

0=Windowed, 1=Fullscreen; This sets the game to run in Windowed or Fullscreen.

Frame Rate Control=1

0=disabled, 1=vsync, 2=fps limiter; When enabled the CPU load is reduced by either using VSync (requires SDL2) or an built-in FPS limiter.

Gamma Correction=100

Min=100, Max=30; Adjust game brightness setting the lower the number the brighter the screen.

Color Cycling=1

0=disabled, 1=enabled; Enable color cycling effect used for water, lava, and acid animation.

SDL2 only

Upscale=1

0=disabled, 1=enabled; Enable image scaling from the game's internal resolution to your monitor resolution, this also allowing for window resizing. If disabled the game will instead change your monitor resolution to match the internal Width and Height.

Scaling Quality=2

0=nearest neighbor, 1=bilinear, 2=anisotropic; Enables optional filters to the output image when upscaling.

[Audio]

Sound Volume=0

0=Max Volume, -1600=No Sound; Adjust sound volume.

Music Volume=0

0=Max Volume, -1600=No Music; Adjust music volume.

[Network]

Bind Address=127.0.0.1

Sets the network address of hosted games.

Port=6112

Default port of hosted games.

Latency=80

Expected average latency of hosted games. Only used if game was not compiled with ADAPTIVE_NETUPDATE.

[GameUI]

BeltX=0 and BeltY=343

Set top left corner of the belt.

InvX=346 and InvY=0

Set top left corner of the inventory.

CharX=0 and CharY=0

Set top left corner of the character sheet.

BookX=346 and BookY=0

Set top left corner of the skill book.

TeamX=0 and TeamY=343

Set top left corner of the teams list.

QuestX=0 and QuestY=0

Set top left corner of the quests list.

[NetMsg]

QuickMsg00=I need help! Come Here!

Sets the message sent when the quick-message button (F5 by default) is pressed.

QuickMsg01=Follow me.

Sets the message sent when the quick-message button (F6 by default) is pressed.

QuickMsg02=Here's something for you.

Sets the message sent when the quick-message button (F7 by default) is pressed.

QuickMsg03=Now you DIE!

Sets the message sent when the quick-message button (F8 by default) is pressed.

[Controller]

sdl2_controller_mapping=

If you have a specific SDL_CONTROLLERCONFIG mapping, you can set it here.

dpad_hotkeys=0

Enable Dpad hotkeys.

switch_potions_and_clicks=0

Swap shoulder button mode.

enable_second_touchscreen=1

Enable rear touchpad.

[Controls]

Button01=1

Map left-mouse click to the primary action (attack, move, etc...).

Button02=2

Map right-mouse click to the secondary action (attack, move, etc...).

...

ButtonFF=

[Gamepad]

Sample configurations for buttons in the menu and in the game:

menu.00.size=67
menu.00.x=0
menu.00.y=137
menu.00.key=37
menu.00.frame=2
menu.00.label=76

game.00.size=67
game.00.x=0
game.00.y=137
game.00.key=30
game.00.frame=10
game.00.label=76

Prefix is either menu or game.
The index is a number which is always two characters long (must be 00..15)
Suffixes:
size: must be 67 unless a special TouchBtn.CEL is provided. If it is zero the remaining entries (buttons with higher indices) are ignored.
x, y: the (lower left) screen-coordinates of the button.
key: the virtual keycode of the button (see https://docs.microsoft.com/en-us/windows/win32/inputdev/virtual-key-codes)
frame: frame index in TouchBtn.CEL . It must be 1..10 unless a special TouchBtn.CEL is provided.
label: character overlay for the button (optional)

See details in diablo.ini