Avorion

PlatformSupportNotes
Linux✅ NativeRecommended
Windows✅ Native
02

System Requirements

  • RAM: 4 GB minimum (scales with galaxy size and active sectors)
  • CPU: 2 vCPU minimum
  • Storage: 30 GB available space
  • Network: Stable 15+ Mbps for 16+ players
  • Note: Larger galaxies and more active players = exponential resource usage
03

Installation (Linux)

1. Install via SteamCMD

bash
# Install SteamCMD
mkdir -p ~/steamcmd && cd ~/steamcmd
curl -sqL "https://steamcdn-a.akamaihd.net/client/installer/steamcmd_linux.tar.gz" | tar zxvf -

# Create server directory
mkdir -p /opt/avorion

# Download dedicated server
./steamcmd.sh +login anonymous \
  +app_update 565060 validate \
  +force_install_dir /opt/avorion \
  +quit

AppIDs:

2. Server Configuration

Edit /opt/avorion/server.ini:

ini
[Server]
name = DeluxHost Avorion
description = Community Space Server
port = 27000
seed = 12345
password =
adminPassword = admin123secure
maxPlayers = 16
maxConnections = 32

[Galaxy]
# Seed determines universe generation
seed = 12345
size = 8              # 4-12 (larger = more resource intensive)
sectors = 1000        # Affected by size
galaxyCenter = 512,512

[Game]
difficulty = 1.0      # 0.5-2.0 (higher = harder)
enablePvP = true
enableShopNpcs = true
enableMercenaries = true

[Performance]
updateRate = 30
tickRate = 30
maxActiveSectors = 10

3. Launch Script

Create /opt/avorion/start.sh:

bash
#!/bin/bash
cd /opt/avorion
./server.sh
bash
chmod +x /opt/avorion/start.sh
  • Game: 445220
  • Dedicated Server: 565060
04

Systemd Service

Create /etc/systemd/system/avorion.service:

ini
[Unit]
Description=Avorion Dedicated Server
After=network.target

[Service]
Type=simple
User=avorion
WorkingDirectory=/opt/avorion
ExecStart=/opt/avorion/start.sh
Restart=on-failure
RestartSec=10
StandardOutput=journal
StandardError=journal

[Install]
WantedBy=multi-user.target
bash
sudo systemctl daemon-reload
sudo systemctl enable avorion
sudo systemctl start avorion
05

Firewall Configuration

bash
# UFW
sudo ufw allow 27000/tcp
sudo ufw allow 27000/udp

# iptables
sudo iptables -A INPUT -p tcp --dport 27000 -j ACCEPT
sudo iptables -A INPUT -p udp --dport 27000 -j ACCEPT

# Verify
sudo ss -tlunp | grep 27000
06

Galaxy Save Management

Backup Galaxy Data

Critical files location: ~/.avorion/galaxies/

bash
# Backup active galaxy
GALAXY_PATH="/root/.avorion/galaxies"
BACKUP_DIR="/backups/avorion"

mkdir -p $BACKUP_DIR

# Backup entire galaxy database
tar -czf $BACKUP_DIR/galaxy-$(date +%Y%m%d_%H%M%S).tar.gz \
  $GALAXY_PATH/

# Keep last 7 days of backups
find $BACKUP_DIR -name "galaxy-*.tar.gz" -mtime +7 -delete

Create automated backup script /opt/avorion/backup.sh:

bash
#!/bin/bash
GALAXY_PATH="/root/.avorion/galaxies"
BACKUP_DIR="/backups/avorion"
mkdir -p $BACKUP_DIR

tar -czf $BACKUP_DIR/galaxy-$(date +%Y%m%d_%H%M%S).tar.gz $GALAXY_PATH/

# Keep backups for 7 days
find $BACKUP_DIR -type f -mtime +7 -delete

echo "Galaxy backup completed: $(date)" >> $BACKUP_DIR/backup.log
bash
chmod +x /opt/avorion/backup.sh

Add to crontab:

bash
# Backup daily at 3 AM
0 3 * * * /opt/avorion/backup.sh
07

Mods & Workshop Integration

Avorion supports Steam Workshop mods:

Install Workshop Mods

ini
# In server.ini, add workshop IDs
[Steam]
workshopIds = 123456789,987654321,555666777

Get Workshop ID:

bash
# Restart to load mods
sudo systemctl restart avorion
  • Find mod in Steam Workshop
  • URL format: steamcommunity.com/sharedfiles/filedetails/?id=XXXXX
  • Add ID to workshopIds list
08

Windows Installation

1. Download & Extract

2. Configuration

Edit C:\Avorion\server.ini:

ini
[Server]
name = DeluxHost Avorion
description = Community Space Server
port = 27000
seed = 12345
password =
adminPassword = admin123secure
maxPlayers = 16

3. Batch File

Create start.bat:

batch
@echo off
cd /d C:\Avorion
server.bat
pause

4. Firewall Rules

powershell
New-NetFirewallRule -DisplayName "Avorion-27000" -Direction Inbound -Action Allow -Protocol TCP -LocalPort 27000
New-NetFirewallRule -DisplayName "Avorion-27000-UDP" -Direction Inbound -Action Allow -Protocol UDP -LocalPort 27000

5. Windows Service

powershell
nssm install Avorion "C:\Avorion\server.bat"
nssm start Avorion
  • Open Steam
  • Search: "Avorion Dedicated Server" (AppID 565060)
  • Install to C:\Avorion
09

Tips & Tweaks

Admin Commands

CommandSyntaxPurpose
/admin add/admin add [player_name]Grant admin rights
/admin remove/admin remove [player_name]Revoke admin rights
/kick/kick [player_name]Remove player
/ban/ban [player_name] [duration]Ban player (seconds)
/save/saveForce save galaxy
/seed/seed [value]Get/set galaxy seed
/announce/announce [message]Server broadcast

Seed & Galaxy Customization

Galaxy seed determines universe generation. Use specific seeds for consistency:

ini
# Well-known seeds in community
seed = 12345          # Default seed
seed = 0              # Procedural (random)
seed = 1              # Another procedural option

Change seed for new server only (changing existing breaks world):

bash
# Backup old galaxy
tar -czf /backups/avorion-seed-12345.tar.gz ~/.avorion/galaxies/

# Edit server.ini with new seed
nano /opt/avorion/server.ini

# Delete old galaxy data to regenerate
rm -rf ~/.avorion/galaxies/*

# Restart server
sudo systemctl restart avorion

Sector Settings & Performance

ini
[Performance]
maxActiveSectors = 10        # Fewer = less CPU, less interactive
maxActiveSectors = 30        # More = more CPU, better gameplay
tickRate = 30                # 30 = balanced, 60 = high CPU
updateRate = 30

Important: Reducing active sectors significantly improves CPU:

bash
# Monitor active sectors and CPU
watch -n 1 'ps aux | grep server.sh'

Admin Console Commands

Directly in server console:

admin add playername ban playername 3600 save

Performance Optimization Checklist

SettingImpactValue
maxActiveSectorsCPU heavyStart at 10, increase if needed
tickRateNetwork + CPULower (15-20) for better performance
size (galaxy)StabilitySmaller (4-6) for better performance
difficultyGameplay0.5-1.0 for stable economy

Example performance config:

ini
[Performance]
updateRate = 20
tickRate = 20
maxActiveSectors = 8
asyncLoadDistance = 2

[Galaxy]
size = 6              # Smaller galaxy
sectors = 400         # Fewer sectors

Enable PvP vs PvE

ini
# Peaceful server
[Game]
enablePvP = false
enableFactionalWars = false
enablePirates = false

# Hostile environment
[Game]
enablePvP = true
enableFactionalWars = true
enablePirates = true
difficulty = 1.5

Sector Activity Monitoring

Check which sectors are being actively used:

bash
# Monitor logs for sector activity
tail -f /opt/avorion/logs/server.log | grep "Sector"

# Check resource usage per sector
ps aux | grep avorion

Password Protection

ini
# Public server
[Server]
password =

# Private server (for friends)
[Server]
password = friendlypassword123

Database Optimization

Avorion stores universe data in SQLite. Periodically optimize:

bash
# Optimize database (reduces file size, improves speed)
sqlite3 ~/.avorion/galaxies/database.db "VACUUM;"

# Check database integrity
sqlite3 ~/.avorion/galaxies/database.db "PRAGMA integrity_check;"

Save Management

Force save galaxy to prevent data loss:

bash
# In-game console
/save

# Or via scripts
echo "/save" | timeout 30 nc localhost 27000

Restart Safety

Graceful restart to avoid player disconnections:

bash
#!/bin/bash
# Announce restart
echo "/announce Server restarting in 5 minutes for maintenance" | nc localhost 27000
sleep 300

# Save galaxy
echo "/save" | nc localhost 27000
sleep 5

# Stop server
sudo systemctl stop avorion
sleep 10

# Backup
/opt/avorion/backup.sh

# Start
sudo systemctl start avorion

Create as /opt/avorion/restart.sh and make executable:

bash
chmod +x /opt/avorion/restart.sh

Schedule in crontab:

bash
# Weekly restart Sunday at 3 AM
0 3 * * 0 /opt/avorion/restart.sh

DeluxHost, founded in 2023, offers high-quality hosting solutions for various digital needs. We provide shared hosting, VPS, and dedicated servers with advanced security and global data centers.

© DeluxHost, All rights reserved. | VAT Number : IT17734661006
All Systems Operational