Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
[Server Options]

# Server setup
Server Name=nwn.wiki server config example
ModuleUrl=https://your-module-website.com
Game Port=5121
Max Players=42
Game Type=9
#   0: Action
#   1: Scenario
#   2: Combats
#   3: Role play
#   4: In team
#   5: Duels
#   6: Arena
#   7: Social
#   8: Alternative
#   9: Persistent Action
#   10: Persistent RP
#   11: Solo
#   12: Tech support
PVP Setting=2
#   0: None
#   1: Party
#   2: Full
Game Region=0
GameSpy Enabled=1
Disable AutoSave=0
Auto Save Interval=0
CD Banned Behavior=0
Validate Character Ownership=1
BackupSavedChars=0
Reload Module When Empty=0
ServerDownTimer=180
MPEnabled=1
PlayerPassword=
DMPassword=5up3r53cr37

# Performance tuning / debugging
2DA Cache Size=100
2DA Engine Cache Size=100
Scripts Print To Log=1
Scripts Print To Screen=0
EnableClientModuleCleanup=1
EnableClientCampaignCleanup=1

# Server behaviour
Pause Loading During Cutscenes=0
HideChallengeRatingInExamine=0
HideEffectListInExamine=0
ShowSearchSpam=0
ShowDMJoinedMessage=0

# Player settings
AllowLocalChars=0
Suppress Base Servervault=1
Enforce Legal Characters=0
ItemLevelRestrictions=1
MinCharLevel=1
MaxCharLevel=30
Disable log in heal=1
Restore Spell Uses On Login=0
One Party Only=0
Disallow Shouting=0
PauseAndPlay=0

# Auto DownLoader
ClientSyncRequired=1
DisableClientCustomUI=1
DisableClientOverride=1
ClientCachePassphrase=ReplaceMeWithSomethingVeryRandom
ClientCacheStrategy=2
InfoURL=http://your-module-website.com/info/info.html
NewsURL=http://your-module-website.com/info/news.html
RulesURL=http://your-module-website.com/info/rules.html
AdminEmail=YourEmail@doge.com

...

NWN2Server command-line arguments

The NWN2Server process can receive multiple command-line arguments:

  • -home <home_path>: Path to a folder that replaces the default Documents\Neverwinter Nights 2
  • -du <1|0>: Disable Client UI
  • -do <1|0>: Disable Client Override
  • -cs <1|0>: Require client to use the AutoDownloader
  • -difficulty <diff>: Game rules difficulty. 1=Easy, 2=Normal, 3=Hardcore D&D, 4=Very difficult
  • -oneparty <1|0>: Group all players in one single party
  • -ilr <1|0>: Item level restriction
  • -elc <1|0>: Enforce legal characters
  • -adminpassword <pass>: Admin console access password
  • -dmpassword <pass>: DM password
  • -playerpassword <pass>: Player password
  • -autosaveinterval <minutes>: Auto-save served game every X minutes
  • -gametype <type>:
  • -servername <name>:
  • -pauseandplay <1|0>: Allow players to pause/unpause
  • -cpu <id>: Assign server process to a specific core ID
  • -reloadwhenempty <1|0>:
  • -maxlevel <level>: Server max level
  • -minlevel <level>: Server required minimum level
  • -pvp <1|0>: PVP settings. 0=None, 1=Party, 2=Full
  • -load <save_name>: Load saved game
  • -moduledir <module_name>: Load module in directory mode
  • -module <module_name>: Load module .mod file
  • -publicserver: ?
  • -servervault <path>: Servervault path ?
  • -port <port>: NWN2Server port (defaults to 5121)
  • -maxclients <number>: Max number of players connected
  • -crashinfo: ?

You can set these arguments by editing the parameters line in nwnx.ini.