Skip to content

Gkjsdll/DunDefNetManager

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 

Repository files navigation

What is this script

Dungeon Defenders has issues hosting multiplayer matches when more than one network adapter is enabled. 1

This script automatically disables all but one adapter while Dungeon Defenders is running, then re-enables them after the game closes. It also recovers if your computer crashes & still re-enables the adapters.

By default, this script installs itself to your system and runs automatically. To avoid the install, you can set the portableMode option to $true.

This script requires being run as administrator.

How to run this script

  1. Download the latest version
  2. Change any options in the downloaded script
  3. Run PowerShell as administrator (example)
  4. Run the script to install and run the script
    1. Open the folder you downloaded the script to
    2. Right click on the address bar, then click "Copy address as text" (example)
    3. Type cd "" then hit the left arrow key
    4. Hit enter

Options

Basic

portableMode

(default: $false)

Runs the script in-place without installing it.

If already installed, make sure you first end & disable the installed script (how to).

Advanced

autoDetectPrimaryInterface

(default: $true)

Detects primary network interface automatically when Dungeon Defenders is launched to determine which other interfaces should be disabled.

You must set overrideInterfaceName when setting this to $false.

overrideInterfaceName

Set this to the name of a specific network interface to choose which you'll use when playing Dungeon Defenders.

Ignored when autoDetectPrimaryInterface is $true.

Interface names can be found by:

  1. Press Win+R
  2. Enter powershell -Command Get-NetAdapter; Pause
  3. Click OK

scriptDirPath

(default: "C:\DunDefScripts")

The location where the script will be installed.

taskName

(default: "Dungeon Defenders Network Manager")

The name of the task created during install to run the script automatically.

waitSeconds

(default: 15)

Ignored if you do not have any Hyper V virtual network interfaces.

Determines how long to wait between re-enabling normal & HyperV virtual network interfaces.

An error will be shown when running portableMode if you have any HyperV interfaces which need more time, in which case you should increase this number.

Footnotes

  1. Steam discussion on issue hosting game