Menu
 

Commands.dat Configuration - Unturned Wiki

Unturned Commands.dat Complete Configuration

The Commands.dat file is the heart of your Unturned server configuration. This comprehensive guide covers all available commands, best practices, and optimization techniques.

Understanding Commands.dat

Commands.dat controls:

  • Server basic settings (name, map, players)
  • Gameplay mechanics (difficulty, mode)
  • Performance settings (tick rate, timeout)
  • Network configuration (ports, binding)
  • Security options (password, whitelist)

Basic Settings

Essential server configuration commands

Performance

Server optimization and resource management

Security

Access control and protection settings

Solution 1: Essential Configuration

Basic Server Setup

Fundamental commands for server operation:

// Server Identity
Name MyUnturnedServer
Map PEI
Password ""
MaxPlayers 24

// Network Configuration
Port 27015
Bind 0.0.0.0
Query_Port 27016

// Game Mode
Perspective Both
GameMode Normal
Difficulty Normal

Location of Commands.dat

Find the file in this directory structure:

Servers/
├── YourServerName/
│   ├── Server/
│   │   ├── Commands.dat
│   │   ├── ServerConfig.json
│   │   └── Level.sav
│   └── Workshop/
└── ...

Solution 2: Performance Commands

Server Optimization

Performance-tuned configuration:

// Performance Settings
FrameRate 60
Tick_Delay 0.01
Timeout 60
Log 3

// Network Performance
Max_Ping 400
Max_Packets_Per_Second 2000
Chatrate 0.5
Sync_Reset_Items False

// Resource Management
Max_Zombies 100
Max_Animals 50
Max_Vehicles 10

Advanced Performance Options

Command Recommended Impact
FrameRate30-60Affects server tick rate
Tick_Delay0.01-0.03Game update frequency
Max_Ping200-500Connection quality control
Max_Packets_Per_Second2000Network bandwidth usage

Solution 3: Gameplay Configuration

Game Mode Settings

Configure gameplay mechanics:

// Difficulty Settings
Difficulty Normal/Easy/Hardcore
Cheats Disabled
PVE Enabled/Disabled
Decay Enabled

// Durability Settings
Durability_Vehicles Enabled
Durability_Weapons Disabled
Durability_Clothing Enabled

// Economy Settings
Gold Disabled
Allow_Workshop Enabled

Map and Environment

World-specific configuration:

Map Option Value Description
MapPEI/Russia/WashingtonSelects game map
Cycle3600Day/night cycle length
Time12:00Starting time of day
WeatherTrue/FalseEnable weather system

Solution 4: Security and Access

Access Control

Server security configuration:

// Basic Security
Password "YourPassword"
Whitelist Enabled
Whelist Admin steamID1,steamID2

// Anti-Cheat
BattlEye Enabled
VAC Enabled
Secure Enabled

// Connection Security
Check_Licenses True
Secured True

Admin and Permissions

Administrative access setup:

  • Owner: Automatic admin with all permissions
  • Admins: Full server control权限
  • Moderators: Limited administrative powers
  • VIP: Special player privileges

Solution 5: Complete Command Reference

Core Commands

Command Example Description
BindBind 192.168.1.100Server IP address binding
PortPort 27015Game server port
Query_PortQuery_Port 27016Server query port
NameName "My Server"Server display name
PasswordPassword "Secret123"Server access password
MaxPlayersMaxPlayers 24Maximum player capacity

Gameplay Commands

Command Example Description
PerspectivePerspective BothFirst/Third/Both person view
GameModeGameMode NormalNormal/Hardcore/Battle Royale
DifficultyDifficulty NormalEasy/Normal/Hard
CheatsCheatsEnable cheat commands
PVEPVE TruePlayer vs Environment only

Performance Commands

Command Example Description
FrameRateFrameRate 60Server frames per second
Tick_DelayTick_Delay 0.01Server tick delay
TimeoutTimeout 120Connection timeout
Max_PingMax_Ping 400Maximum allowed ping
LogLog 3Log verbosity level

Advanced Configuration

Mod Integration

Common mod-related commands:

// RocketMod Integration
Rocket Enabled
Rocket_Plugins RocketMod.Plugins.*

// Workshop Support
Allow_Workshop True
Workshop_Download_Auto True

// Custom Configuration
Loadout_Civilian True
Loadout_Military False

Customization Options

Personalize your server:

  • Custom loadouts and starting gear
  • Vehicle spawn rates and types
  • Weapon and item availability
  • Building rules and restrictions

Troubleshooting Commands.dat

Common Configuration Issues

Problem Cause Solution
Server not visibleMissing or incorrect portsVerify Port and Query_Port
Players can't joinIncorrect Bind or firewallCheck Bind IP and firewall settings
High server loadLow FrameRate or many entitiesAdjust FrameRate and spawn limits
Password not workingSpecial characters or quotesUse simple passwords with quotes

Pro Tip: Always backup your Commands.dat before making changes. Test new configurations with a few players first to ensure stability before opening to the public.

Best Practices

Configuration Management

  • Keep a clean, commented Commands.dat
  • Document your configuration changes
  • Test new settings in a controlled environment
  • Use version control for configuration files

Security Recommendations

  • Always use strong passwords
  • Enable BattlEye for anti-cheat protection
  • Regularly update your server software
  • Monitor server logs for suspicious activity

Master your Unturned server configuration with this comprehensive Commands.dat guide for optimal performance and security.

Top