Merge pull request #46 from GameServerPanel/copilot/fix-documentation-login-button

Fix session handling in docs and cart pages; add comprehensive game server documentation
This commit is contained in:
Frank Harris 2025-11-08 16:41:04 -05:00 committed by GitHub
commit 994e641d7c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 1996 additions and 152 deletions

View file

@ -3,7 +3,11 @@
* Shopping Cart - Display unpaid invoices and PayPal checkout
* Standalone billing module - uses only standard PHP mysqli
*/
session_start();
// Start session using the website session name to match the rest of the site
if (session_status() === PHP_SESSION_NONE) {
session_name("gameservers_website");
session_start();
}
require_once(__DIR__ . '/includes/config.inc.php');
require_once(__DIR__ . '/includes/login_required.php');

View file

@ -4,8 +4,11 @@
* Displays a list of documentation categories and allows viewing individual docs
*/
// Start session for navigation state
session_start();
// Start session using the website session name to match the rest of the site
if (session_status() === PHP_SESSION_NONE) {
session_name("gameservers_website");
session_start();
}
// Include config
require_once(__DIR__ . '/includes/config.inc.php');

View file

@ -0,0 +1,249 @@
# Documentation Enhancement Summary
## Overview
This document summarizes the comprehensive enhancements made to the billing module's documentation system and session handling.
## Issues Resolved
### 1. Documentation Page Login Button Issue ✅
**Problem:** Documentation page showed "Login" button even when user was logged in.
**Root Cause:** docs.php used basic `session_start()` instead of the website's session name.
**Solution:** Changed to use `gameservers_website` session name to match rest of website.
### 2. Cart Page Display Issue ✅
**Problem:** Cart page didn't display when clicking menu link.
**Root Cause:** cart.php also used basic `session_start()` causing session inconsistency.
**Solution:** Changed to use `gameservers_website` session name for consistency.
### 3. Documentation Content Enhancement ✅
**Problem:** Documentation was basic, system-specific, and not comprehensive enough for SEO.
**Solution:** Created detailed, XML-independent, general hosting guides for major games.
## Changes Made
### Session Fixes
**Files Modified:**
- `modules/billing/docs.php`
- `modules/billing/cart.php`
**Change:**
```php
// OLD
session_start();
// NEW
if (session_status() === PHP_SESSION_NONE) {
session_name("gameservers_website");
session_start();
}
```
This ensures the documentation and cart pages use the same session as the rest of the website (login.php, menu.php, etc.), so login state is properly detected.
### Documentation Enhancements
#### Games Enhanced (3 of 151 total)
1. **Minecraft Java Edition** (549 lines)
2. **CS:GO & CS2** (584 lines)
3. **Rust** (455 lines)
#### Documentation Structure (Template for All Games)
Each comprehensive guide includes:
1. **Navigation Bar** - Quick links to all sections
2. **Quick Info Section** - Essential details at a glance:
- Default ports (game, RCON, query)
- RAM requirements (min/recommended)
- Storage requirements
- Log file locations
- Default configurations
- Protocol information
3. **Installation & Setup** - Complete instructions:
- System requirements (CPU, RAM, storage, bandwidth)
- Linux installation steps
- Windows installation steps
- SteamCMD usage (where applicable)
- First-time setup procedures
4. **Server Configuration** - Detailed config guides:
- All configuration files explained
- Every parameter documented
- Example configurations
- Best practices
5. **Startup Parameters** - Complete reference:
- All command-line parameters
- Parameter breakdown and explanations
- Startup script examples (Linux & Windows)
- Advanced optimization flags
6. **Plugins & Mods** - Enhancement guides:
- Plugin/mod platform installation
- Popular plugins/mods list with descriptions
- Installation procedures
- Configuration examples
7. **Troubleshooting** - Common issues & solutions:
- Server won't start
- Connection issues
- Performance problems
- Error messages and fixes
- Diagnostic commands
8. **Performance Optimization** - Tuning guides:
- Configuration optimization
- Resource management
- Automation scripts
- Monitoring tips
- Scheduled maintenance
9. **Additional Resources** - External links:
- Official documentation
- Community resources
- Tools and utilities
- Support forums
## Documentation Principles
### ✅ XML-Independent
- Does NOT pull information from panel XML files
- Does NOT reference `modules/config_games/server_configs/`
- Stands alone as general game server hosting information
### ✅ General Hosting Focus
- Written from VPS/dedicated server perspective
- Not specific to our panel system
- Applicable to any hosting environment
- User could follow these guides on any server
### ✅ SEO-Optimized
- Comprehensive content (400-600 lines per game)
- Covers all aspects of server hosting
- Natural keyword integration
- Designed to rank in Google search results
- Goal: Become go-to resource for game server hosting
### ✅ Professional Quality
- Clean, modern formatting
- Code examples with syntax highlighting
- Internal navigation between sections
- Consistent structure across all games
- Production-ready commands and configs
## Benefits
### For Users
- Complete guides for setting up game servers
- Troubleshooting help for common issues
- Performance optimization tips
- All info in one place
### For Business
- SEO boost - comprehensive guides rank well
- Authority building - comprehensive content
- Traffic generation - users find guides via Google
- Reduced support load - self-service documentation
### For Future Development
- Template established for remaining 148 games
- Consistent structure makes expansion easy
- Can be enhanced incrementally
- Scalable approach
## Remaining Games (148)
The same comprehensive template can be applied to all remaining games:
- ARK: Survival Evolved
- Valheim
- 7 Days to Die
- Team Fortress 2
- Garry's Mod
- Terraria
- Don't Starve Together
- Project Zomboid
- Satisfactory
- V Rising
- Palworld
- And 138 more...
## Testing Completed
✅ PHP syntax validation - No errors
✅ CodeQL security scan - No issues
✅ Session handling verified
✅ Documentation structure validated
✅ No XML references confirmed
✅ File permissions correct
## Implementation Notes
### Session Name Consistency
The entire billing module now uses `gameservers_website` session name:
- login.php ✅
- register.php ✅
- logout.php ✅
- menu.php ✅
- docs.php ✅ (FIXED)
- cart.php ✅ (FIXED)
- my_account.php ✅
- All other pages ✅
### Documentation File Structure
```
docs/
├── minecraft/
│ ├── index.php (549 lines - comprehensive)
│ ├── index_old.php (backup)
│ ├── metadata.json
│ └── icon.png
├── csgo/
│ ├── index.php (584 lines - comprehensive)
│ ├── index_old.php (backup)
│ ├── metadata.json
│ └── icon.jpg
├── rust/
│ ├── index.php (455 lines - comprehensive)
│ ├── index_old.php (backup)
│ ├── metadata.json
│ └── icon.png
└── [148 other games with basic docs to be enhanced]
```
## Future Enhancement Ideas
1. **Add More Games** - Apply template to remaining 148 games
2. **Video Tutorials** - Link to video guides where available
3. **Interactive Commands** - Copy-to-clipboard for commands
4. **Version History** - Track game version updates
5. **Community Contributions** - Allow user-submitted tips
6. **Search Functionality** - Cross-game documentation search
7. **Translations** - Multi-language support
## Maintenance
### Keeping Documentation Current
- Monitor game updates and patches
- Update documentation quarterly
- Track breaking changes in games
- Community feedback integration
### Backup Strategy
All original documentation files are preserved as `index_old.php` in each game folder for reference and potential rollback if needed.
## Conclusion
The documentation system is now:
- ✅ Fully functional with correct session handling
- ✅ Comprehensive for 3 major games (Minecraft, CS:GO/CS2, Rust)
- ✅ Template-based for easy expansion to remaining games
- ✅ SEO-optimized for Google search ranking
- ✅ XML-independent and general hosting focused
- ✅ Production-ready and tested
**Status:** Ready for review and deployment
---
*Created: November 8, 2024*
*Last Updated: November 8, 2024*

View file

@ -1,67 +1,584 @@
<?php
/**
* Counter Strike Global Offensive 128tick Server Documentation
* Counter-Strike: Global Offensive / CS2 Server Documentation
* Comprehensive game server hosting guide
*/
?>
<h1>Counter Strike Global Offensive 128tick Server Guide</h1>
<div style="background: #1e3a5f; padding: 20px; border-left: 4px solid #3b82f6; margin: 20px 0; border-radius: 4px;">
<h3 style="color: #ffffff; margin-top: 0;">Navigation</h3>
<div style="display: flex; flex-wrap: wrap; gap: 10px;">
<a href="#quick-info" style="background: #0f172a; padding: 8px 16px; border-radius: 4px; color: #a5b4fc; text-decoration: none;">Quick Info</a>
<a href="#installation" style="background: #0f172a; padding: 8px 16px; border-radius: 4px; color: #a5b4fc; text-decoration: none;">Installation</a>
<a href="#configuration" style="background: #0f172a; padding: 8px 16px; border-radius: 4px; color: #a5b4fc; text-decoration: none;">Configuration</a>
<a href="#parameters" style="background: #0f172a; padding: 8px 16px; border-radius: 4px; color: #a5b4fc; text-decoration: none;">Parameters</a>
<a href="#plugins-mods" style="background: #0f172a; padding: 8px 16px; border-radius: 4px; color: #a5b4fc; text-decoration: none;">Plugins & Mods</a>
<a href="#troubleshooting" style="background: #0f172a; padding: 8px 16px; border-radius: 4px; color: #a5b4fc; text-decoration: none;">Troubleshooting</a>
<a href="#gamemodes" style="background: #0f172a; padding: 8px 16px; border-radius: 4px; color: #a5b4fc; text-decoration: none;">Game Modes</a>
</div>
</div>
<h1>Counter-Strike: Global Offensive & CS2 Server Hosting Guide</h1>
<h2>Overview</h2>
<p><strong>Counter Strike Global Offensive 128tick</strong> is available for hosting on our platform. This guide covers the basics of setting up and managing your Counter Strike Global Offensive 128tick server.</p>
<p>Counter-Strike: Global Offensive (CS:GO) and Counter-Strike 2 (CS2) are competitive tactical first-person shooters. This guide covers everything needed to host a dedicated CS:GO or CS2 server on Linux or Windows.</p>
<p><strong>Note:</strong> CS2 replaced CS:GO in September 2023. Most concepts apply to both, but CS2 uses Source 2 engine with some differences. This guide covers both versions.</p>
<h2 id="quick-info">Quick Info</h2>
<div style="background: #1e3a5f; padding: 20px; border-left: 4px solid #3b82f6; margin: 20px 0; border-radius: 4px;">
<h3 style="color: #ffffff; margin-top: 0;">Quick Info</h3>
<ul style="color: #e5e7eb; line-height: 1.8;">
<li><strong style="color: #ffffff;">Game Key:</strong> </li>
<li><strong style="color: #ffffff;">Startup Command:</strong> <code style="background: #0f172a; padding: 2px 6px; border-radius: 3px; color: #a5b4fc;">Not specified</code></li>
<li><strong style="color: #ffffff;">Log File:</strong> <code style="background: #0f172a; padding: 2px 6px; border-radius: 3px; color: #a5b4fc;">Not specified</code></li>
<li><strong style="color: #ffffff;">Default Port:</strong> Not specified</li>
<li><strong style="color: #ffffff;">Max Players:</strong> Not specified</li>
<ul style="color: #e5e7eb; line-height: 1.8; margin: 0;">
<li><strong style="color: #ffffff;">Default Port:</strong> <code style="background: #0f172a; padding: 2px 6px; border-radius: 3px; color: #a5b4fc;">27015</code> (UDP)</li>
<li><strong style="color: #ffffff;">Additional Ports:</strong> 27015 (TCP), 27020 (UDP), 27005 (UDP) for SourceTV</li>
<li><strong style="color: #ffffff;">Protocol:</strong> UDP (primary), TCP (RCON)</li>
<li><strong style="color: #ffffff;">Minimum RAM:</strong> 2GB (CS:GO), 4GB (CS2)</li>
<li><strong style="color: #ffffff;">Recommended RAM:</strong> 4GB+ (CS:GO), 8GB+ (CS2)</li>
<li><strong style="color: #ffffff;">CPU:</strong> High single-thread performance critical</li>
<li><strong style="color: #ffffff;">App ID:</strong> 740 (CS:GO), 730 (CS2)</li>
<li><strong style="color: #ffffff;">SteamCMD App:</strong> 740 (dedicated server)</li>
<li><strong style="color: #ffffff;">Log Files:</strong> <code style="background: #0f172a; padding: 2px 6px; border-radius: 3px; color: #a5b4fc;">csgo/logs/</code> or <code style="background: #0f172a; padding: 2px 6px; border-radius: 3px; color: #a5b4fc;">cs2/logs/</code></li>
<li><strong style="color: #ffffff;">Main Config:</strong> <code style="background: #0f172a; padding: 2px 6px; border-radius: 3px; color: #a5b4fc;">server.cfg</code></li>
<li><strong style="color: #ffffff;">Server Launcher:</strong> <code style="background: #0f172a; padding: 2px 6px; border-radius: 3px; color: #a5b4fc;">srcds_run</code> (Linux) or <code style="background: #0f172a; padding: 2px 6px; border-radius: 3px; color: #a5b4fc;">srcds.exe</code> (Windows)</li>
</ul>
</div>
<h2>Getting Started</h2>
<p>To create a Counter Strike Global Offensive 128tick server:</p>
<ol>
<li>Navigate to the <a href="/serverlist.php">Game Servers</a> page</li>
<li>Find <strong>Counter Strike Global Offensive 128tick</strong> in the list</li>
<li>Select your preferred configuration (slots, duration, etc.)</li>
<li>Add to cart and complete checkout</li>
<li>Your server will be automatically provisioned within minutes</li>
</ol>
<h2 id="installation">Installation & Setup</h2>
<h2>Server Configuration</h2>
<p>After your server is created, you can configure it through the control panel:</p>
<h3>System Requirements</h3>
<h4>CS:GO</h4>
<ul>
<li>Server settings and parameters</li>
<li>Player slots and limits</li>
<li>RCON/remote control access</li>
<li>FTP file access</li>
<li><strong>OS:</strong> Linux (Ubuntu 18.04+, Debian 9+) or Windows Server 2012+</li>
<li><strong>CPU:</strong> Dual-core 3GHz+ (quad-core recommended)</li>
<li><strong>RAM:</strong> 2GB minimum, 4GB+ recommended</li>
<li><strong>Storage:</strong> 30GB+</li>
<li><strong>Bandwidth:</strong> 100Mbps+ for competitive play</li>
</ul>
<h2>Common Tasks</h2>
<h3>Starting Your Server</h3>
<p>Servers are automatically started after creation. You can stop/start your server from the control panel.</p>
<h3>Connecting to Your Server</h3>
<p>Use your server's IP address and port to connect from the game client.</p>
<h3>Managing Files</h3>
<p>Access your server files via FTP using the credentials provided in your control panel.</p>
<h2>Support</h2>
<p>If you need assistance with your Counter Strike Global Offensive 128tick server:</p>
<h4>CS2</h4>
<ul>
<li>Check our <a href="/docs.php?action=view&doc=common-issues">Common Issues</a> guide</li>
<li>Contact support through your account dashboard</li>
<li>Visit the official Counter Strike Global Offensive 128tick community for game-specific help</li>
<li><strong>OS:</strong> Linux (Ubuntu 20.04+) or Windows Server 2019+</li>
<li><strong>CPU:</strong> Quad-core 3.5GHz+ recommended</li>
<li><strong>RAM:</strong> 4GB minimum, 8GB+ recommended</li>
<li><strong>Storage:</strong> 40GB+</li>
<li><strong>Network:</strong> 1Gbps connection recommended</li>
</ul>
<h3>Installing SteamCMD</h3>
<h4>Linux Installation</h4>
<pre><code># Install dependencies (Ubuntu/Debian)
sudo apt update
sudo apt install lib32gcc-s1 lib32stdc++6 steamcmd
# Or manual install
mkdir ~/steamcmd
cd ~/steamcmd
wget https://steamcdn-a.akamaihd.net/client/installer/steamcmd_linux.tar.gz
tar -xvzf steamcmd_linux.tar.gz
</code></pre>
<h4>Windows Installation</h4>
<p>Download SteamCMD from: <a href="https://steamcdn-a.akamaihd.net/client/installer/steamcmd.zip" target="_blank">SteamCMD for Windows</a></p>
<h3>Installing CS:GO/CS2 Server</h3>
<h4>CS:GO Server</h4>
<pre><code># Run SteamCMD
./steamcmd.sh
# Login anonymously
login anonymous
# Set install directory
force_install_dir ./csgo-server
# Install CS:GO dedicated server
app_update 740 validate
# Exit
quit
</code></pre>
<h4>CS2 Server</h4>
<pre><code># Run SteamCMD
./steamcmd.sh
# Login (may require Steam account with CS2)
login anonymous
# Set install directory
force_install_dir ./cs2-server
# Install CS2 dedicated server
app_update 730 validate
# Exit
quit
</code></pre>
<h2 id="configuration">Server Configuration</h2>
<h3>server.cfg - Essential Settings</h3>
<p>Create <code>csgo/cfg/server.cfg</code> or <code>cs2/cfg/server.cfg</code>:</p>
<pre><code>// Server Information
hostname "My CS:GO/CS2 Server"
sv_password "" // Server password (leave blank for public)
sv_region "1" // 0=US East, 1=US West, 2=South America, 3=Europe, etc.
// RCON Configuration
rcon_password "YourSecurePassword"
sv_rcon_banpenalty 0
sv_rcon_maxfailures 5
// Server Settings
sv_cheats 0
sv_lan 0
sv_pure 1 // File consistency checking (0=off, 1=on, 2=strict)
sv_pure_kick_clients 1
sv_minrate 128000
sv_maxrate 0 // 0=unlimited
// Game Settings
mp_autoteambalance 1
mp_limitteams 1
mp_teamcashawards 1
mp_playercashawards 1
mp_maxmoney 16000
mp_startmoney 800
mp_buytime 90
mp_buy_anywhere 0
mp_freezetime 15
mp_friendlyfire 0
mp_c4timer 40
mp_roundtime 5
mp_roundtime_defuse 1.92
mp_maxrounds 30
mp_overtime_enable 1
mp_overtime_maxrounds 6
mp_overtime_startmoney 10000
// Competitive Settings (5v5)
mp_match_end_restart 1
mp_halftime 1
mp_warmuptime 30
mp_do_warmup_period 1
mp_warmup_pausetimer 1
// Communication
sv_alltalk 0
sv_deadtalk 0
sv_full_alltalk 0
sv_talk_enemy_dead 1
sv_talk_enemy_living 0
// Voting
sv_vote_issue_kick_allowed 0
sv_vote_issue_changelevel_allowed 0
sv_vote_issue_nextlevel_allowed 0
// SourceTV (GOTV)
tv_enable 1
tv_delay 90
tv_advertise_watchable 1
tv_name "GOTV"
tv_title "Source TV"
tv_autorecord 1
tv_allow_camera_man 1
// Logging
log on
sv_logbans 1
sv_logecho 1
sv_logfile 1
sv_log_onefile 0
// Execute additional configs
exec banned_user.cfg
exec banned_ip.cfg
</code></pre>
<h3>Game Mode Configuration Files</h3>
<h4>gamemode_competitive.cfg (5v5 Competitive)</h4>
<pre><code>mp_maxrounds 30
mp_roundtime 1.92
mp_roundtime_defuse 1.92
mp_freezetime 15
mp_buytime 90
mp_startmoney 800
mp_maxmoney 16000
mp_timelimit 0
sv_alltalk 0
sv_talk_enemy_dead 1
sv_deadtalk 0
</code></pre>
<h4>gamemode_casual.cfg (10v10 Casual)</h4>
<pre><code>mp_maxrounds 15
mp_roundtime 3
mp_roundtime_defuse 3
mp_freezetime 15
mp_buytime 90
mp_startmoney 1000
mp_maxmoney 16000
sv_alltalk 0
mp_autoteambalance 1
mp_limitteams 2
</code></pre>
<h3>mapcycle.txt</h3>
<p>List maps to rotate through:</p>
<pre><code>de_dust2
de_mirage
de_inferno
de_nuke
de_overpass
de_vertigo
de_ancient
de_anubis
</code></pre>
<h2 id="parameters">Startup Parameters</h2>
<h3>Basic Linux Startup (CS:GO)</h3>
<pre><code>#!/bin/bash
cd /path/to/csgo-server
./srcds_run -game csgo \
-console \
-usercon \
+ip 0.0.0.0 \
+game_type 0 \
+game_mode 1 \
+mapgroup mg_active \
+map de_dust2 \
-port 27015 \
+tv_port 27020 \
-tickrate 128 \
+maxplayers 10 \
+sv_setsteamaccount YOUR_GSLT_TOKEN
</code></pre>
<h3>Basic Linux Startup (CS2)</h3>
<pre><code>#!/bin/bash
cd /path/to/cs2-server
./game/bin/linuxsteamrt64/cs2 \
-dedicated \
-console \
+ip 0.0.0.0 \
+map de_dust2 \
-port 27015 \
+maxplayers 10 \
+sv_setsteamaccount YOUR_GSLT_TOKEN \
+game_type 0 \
+game_mode 1
</code></pre>
<h3>Windows Startup (CS:GO)</h3>
<pre><code>@echo off
cd C:\csgo-server
srcds.exe -game csgo -console -usercon +ip 0.0.0.0 +game_type 0 +game_mode 1 +mapgroup mg_active +map de_dust2 -port 27015 -tickrate 128 +maxplayers 10 +sv_setsteamaccount YOUR_GSLT_TOKEN
pause
</code></pre>
<h3>Parameter Breakdown</h3>
<ul>
<li><code>-game csgo</code> - Specify game (CS:GO only, not needed for CS2)</li>
<li><code>-console</code> - Enable server console</li>
<li><code>-usercon</code> - Enable user console input</li>
<li><code>+ip 0.0.0.0</code> - Bind to all network interfaces</li>
<li><code>+game_type 0</code> - Classic game type</li>
<li><code>+game_mode 1</code> - Competitive mode (0=casual, 1=competitive, 2=wingman)</li>
<li><code>+mapgroup mg_active</code> - Map group (active duty maps)</li>
<li><code>+map de_dust2</code> - Starting map</li>
<li><code>-port 27015</code> - Server port</li>
<li><code>-tickrate 128</code> - Server tickrate (64 or 128, CS:GO only)</li>
<li><code>+maxplayers 10</code> - Maximum players</li>
<li><code>+sv_setsteamaccount TOKEN</code> - Game Server Login Token (GSLT)</li>
</ul>
<h3>Game Server Login Token (GSLT)</h3>
<p><strong>Required for public servers to appear in server browser!</strong></p>
<ol>
<li>Go to <a href="https://steamcommunity.com/dev/managegameservers" target="_blank">Steam Game Server Account Management</a></li>
<li>Login with your Steam account</li>
<li>Click "Create New Game Server Account"</li>
<li>App ID: 730 (CS:GO) or 730 (CS2)</li>
<li>Memo: Your server name/description</li>
<li>Copy the generated token</li>
<li>Use in +sv_setsteamaccount parameter</li>
</ol>
<h2 id="plugins-mods">Plugins & Mods</h2>
<h3>SourceMod & MetaMod:Source</h3>
<p>The standard plugin framework for Source engine servers.</p>
<h4>Installation</h4>
<ol>
<li><strong>Download MetaMod:Source:</strong> <a href="https://www.sourcemm.net/downloads.php?branch=stable" target="_blank">SourceMM.net</a></li>
<li><strong>Download SourceMod:</strong> <a href="https://www.sourcemod.net/downloads.php?branch=stable" target="_blank">SourceMod.net</a></li>
<li><strong>Extract to server directory:</strong>
<pre><code># Both extract to csgo/ or cs2/ folder
cd /path/to/csgo-server/csgo
wget https://mms.alliedmods.net/mmsdrop/...
tar -xzf mmsource-...tar.gz
wget https://sm.alliedmods.net/smdrop/...
tar -xzf sourcemod-...tar.gz
</code></pre>
</li>
<li><strong>Restart server</strong></li>
<li><strong>Add yourself as admin:</strong>
<pre><code># Edit addons/sourcemod/configs/admins_simple.ini
"STEAM_0:1:12345678" "99:z" // Your Steam ID
</code></pre>
</li>
</ol>
<h3>Essential Plugins</h3>
<h4>Practice Mode</h4>
<p>For practicing smokes, flashes, and aim.</p>
<ul>
<li>Download: <a href="https://github.com/splewis/csgo-practice-mode" target="_blank">CS:GO Practice Mode</a></li>
<li>Features: Noclip, infinite ammo, grenade trajectory, bot spawning</li>
</ul>
<h4>Get5</h4>
<p>Competitive match plugin with knife rounds, veto, and more.</p>
<ul>
<li>Download: <a href="https://github.com/splewis/get5" target="_blank">Get5 on GitHub</a></li>
<li>Features: Automated match setup, team management, stats</li>
</ul>
<h4>RetakesPlugin</h4>
<p>Retake game mode - defenders defend bombsite, attackers retake.</p>
<ul>
<li>Download: <a href="https://github.com/b3none/retakes-plugin" target="_blank">Retakes Plugin</a></li>
</ul>
<h4>RankMe</h4>
<p>Player ranking and statistics system.</p>
<ul>
<li>Download: <a href="https://forums.alliedmods.net/showthread.php?t=290063" target="_blank">RankMe</a></li>
</ul>
<h4>In-Game Admin Menu</h4>
<p>Built into SourceMod. Access with <code>!admin</code> or <code>sm_admin</code> in chat.</p>
<h3>Workshop Maps & Collections</h3>
<pre><code># In server.cfg or startup parameters
host_workshop_collection 123456789 // Workshop collection ID
workshop_start_map 123456789 // Workshop map ID
</code></pre>
<h2 id="troubleshooting">Troubleshooting</h2>
<h3>Server Won't Start</h3>
<h4>Missing Libraries (Linux)</h4>
<pre><code># Install 32-bit libraries
sudo dpkg --add-architecture i386
sudo apt update
sudo apt install lib32gcc-s1 lib32stdc++6
# CS:GO specific
sudo apt install libsdl2-2.0-0:i386
# CS2 specific
sudo apt install libtinfo5:i386
</code></pre>
<h4>Port Already in Use</h4>
<pre><code># Check what's using port 27015
sudo netstat -tulpn | grep 27015
sudo lsof -i :27015
# Kill existing process or change port
./srcds_run -game csgo -port 27016 ...
</code></pre>
<h3>Server Not in Browser</h3>
<ol>
<li><strong>Check GSLT is set:</strong> <code>+sv_setsteamaccount YOUR_TOKEN</code></li>
<li><strong>Verify sv_lan is 0:</strong> <code>sv_lan 0</code> in server.cfg</li>
<li><strong>Check firewall allows UDP 27015:</strong>
<pre><code>sudo ufw allow 27015/udp
sudo ufw allow 27015/tcp
sudo ufw allow 27020/udp # SourceTV
</code></pre>
</li>
<li><strong>Wait 5-10 minutes:</strong> Can take time to appear in browser</li>
<li><strong>Direct connect test:</strong> In CS:GO/CS2 console: <code>connect your.server.ip:27015</code></li>
</ol>
<h3>High Ping / Lag</h3>
<h4>Server-Side</h4>
<ol>
<li><strong>Check server load:</strong> <code>top</code> or <code>htop</code></li>
<li><strong>Increase rates:</strong>
<pre><code>sv_minrate 128000
sv_maxrate 0 // unlimited
</code></pre>
</li>
<li><strong>Enable multi-core (CS:GO):</strong>
<pre><code>host_thread_mode 2
</code></pre>
</li>
<li><strong>Reduce bots if present</strong></li>
<li><strong>Check network saturation</strong></li>
</ol>
<h4>Client-Side</h4>
<pre><code>// Player client commands
rate 786432
cl_interp 0
cl_interp_ratio 1
cl_updaterate 128
cl_cmdrate 128
</code></pre>
<h3>VAC Authentication Error</h3>
<ol>
<li><strong>Ensure sv_lan 0</strong></li>
<li><strong>Verify GSLT is valid and not banned</strong></li>
<li><strong>Check server files integrity:</strong>
<pre><code>./steamcmd.sh
login anonymous
force_install_dir /path/to/csgo-server
app_update 740 validate
quit
</code></pre>
</li>
<li><strong>Restart server after updates</strong></li>
</ol>
<h3>Can't Hear Voice Chat</h3>
<ol>
<li><strong>Check voice settings in server.cfg:</strong>
<pre><code>sv_use_steam_voice 1
sv_voiceenable 1
</code></pre>
</li>
<li><strong>Verify UDP ports open:</strong> 27015, 27020</li>
<li><strong>Test with different voice_loopback values:</strong>
<pre><code>voice_loopback 1 // Hear yourself (testing)
</code></pre>
</li>
</ol>
<h2 id="gamemodes">Game Modes Configuration</h2>
<h3>Competitive 5v5 (128 tick)</h3>
<pre><code>+game_type 0 +game_mode 1 -tickrate 128 +maxplayers 10
exec gamemode_competitive.cfg
</code></pre>
<h3>Casual 10v10</h3>
<pre><code>+game_type 0 +game_mode 0 +maxplayers 20
exec gamemode_casual.cfg
</code></pre>
<h3>Deathmatch</h3>
<pre><code>+game_type 1 +game_mode 2 +maxplayers 20
mp_respawn_on_death_t 1
mp_respawn_on_death_ct 1
mp_respawnwavetime 3
mp_timelimit 10
mp_dm_bonus_length_max 30
</code></pre>
<h3>Arms Race</h3>
<pre><code>+game_type 1 +game_mode 0 +maxplayers 12
mp_ggprogressive_round_restart_delay 3
mp_timelimit 20
mp_maxrounds 3
</code></pre>
<h3>Wingman 2v2</h3>
<pre><code>+game_type 0 +game_mode 2 +maxplayers 4
exec gamemode_competitive.cfg
mp_maxrounds 16
mp_overtime_maxrounds 4
</code></pre>
<h3>Custom Modes</h3>
<h4>Surf</h4>
<p>Download surf maps and configure:</p>
<pre><code>sv_airaccelerate 150
sv_staminajumpcost 0
sv_staminalandcost 0
sv_accelerate 10
sv_friction 4
</code></pre>
<h4>Bunny Hop</h4>
<pre><code>sv_enablebunnyhopping 1
sv_autobunnyhopping 1
sv_airaccelerate 1000
sv_staminajumpcost 0
sv_staminalandcost 0
</code></pre>
<h4>1v1 Arena</h4>
<p>Use arena plugin and configure multiple arenas on one map.</p>
<h2>Performance Optimization</h2>
<h3>CPU Affinity (Linux)</h3>
<pre><code># Bind server to specific CPU cores
taskset -c 0,1,2,3 ./srcds_run -game csgo ...
</code></pre>
<h3>Process Priority</h3>
<pre><code># Run with higher priority
nice -n -10 ./srcds_run -game csgo ...
</code></pre>
<h3>Network Optimization</h3>
<pre><code># Increase network buffers (Linux)
sudo sysctl -w net.core.rmem_max=16777216
sudo sysctl -w net.core.wmem_max=16777216
sudo sysctl -w net.ipv4.tcp_rmem="4096 87380 16777216"
sudo sysctl -w net.ipv4.tcp_wmem="4096 65536 16777216"
</code></pre>
<h3>Automate Updates</h3>
<pre><code>#!/bin/bash
# update_csgo.sh
cd /home/steam/steamcmd
./steamcmd.sh +login anonymous +force_install_dir /path/to/csgo-server +app_update 740 validate +quit
# Kill and restart server
killall -9 srcds_linux
sleep 5
cd /path/to/csgo-server
./srcds_run -game csgo +map de_dust2 ...
</code></pre>
<h2>Additional Resources</h2>
<ul>
<li><a href="https://developer.valvesoftware.com/wiki/Counter-Strike:_Global_Offensive_Dedicated_Servers" target="_blank">Valve Developer Wiki - CS:GO Dedicated Servers</a></li>
<li><a href="https://developer.valvesoftware.com/wiki/Counter-Strike_2/Dedicated_Servers" target="_blank">Valve Developer Wiki - CS2 Dedicated Servers</a></li>
<li><a href="https://www.sourcemod.net/" target="_blank">SourceMod Official Site</a></li>
<li><a href="https://forums.alliedmods.net/" target="_blank">AlliedModders Forums</a></li>
<li><a href="https://steamcommunity.com/dev/managegameservers" target="_blank">Steam GSLT Management</a></li>
<li><a href="https://github.com/GameServerManagers/LinuxGSM" target="_blank">LinuxGSM - Game Server Management</a></li>
</ul>
<div style="background: #78350f; padding: 20px; border-left: 4px solid #f59e0b; margin: 20px 0; border-radius: 4px;">
<h3 style="color: #ffffff; margin-top: 0;"><i class="fas fa-exclamation-triangle" style="color: #fbbf24; margin-right: 8px;"></i>Important Notes</h3>
<ul style="color: #fef3c7; line-height: 1.8;">
<li>Always keep your server updated to the latest version</li>
<li>Make regular backups of your server configuration</li>
<li>Review and follow the game's End User License Agreement (EULA)</li>
<ul style="color: #fef3c7; line-height: 1.8; margin: 0;">
<li>Always obtain and use a valid Game Server Login Token (GSLT)</li>
<li>Keep server files updated via SteamCMD</li>
<li>Monitor server resources (CPU, RAM, network)</li>
<li>Use strong RCON password</li>
<li>Configure firewall properly for security</li>
<li>Join CS:GO/CS2 server admin communities for support</li>
</ul>
</div>
</div>
<p style="text-align: center; margin-top: 30px; color: #666;">
<em>Last updated: November 2024 | Covers CS:GO & CS2</em>
</p>

View file

@ -0,0 +1,67 @@
<?php
/**
* Counter Strike Global Offensive 128tick Server Documentation
*/
?>
<h1>Counter Strike Global Offensive 128tick Server Guide</h1>
<h2>Overview</h2>
<p><strong>Counter Strike Global Offensive 128tick</strong> is available for hosting on our platform. This guide covers the basics of setting up and managing your Counter Strike Global Offensive 128tick server.</p>
<div style="background: #1e3a5f; padding: 20px; border-left: 4px solid #3b82f6; margin: 20px 0; border-radius: 4px;">
<h3 style="color: #ffffff; margin-top: 0;">Quick Info</h3>
<ul style="color: #e5e7eb; line-height: 1.8;">
<li><strong style="color: #ffffff;">Game Key:</strong> </li>
<li><strong style="color: #ffffff;">Startup Command:</strong> <code style="background: #0f172a; padding: 2px 6px; border-radius: 3px; color: #a5b4fc;">Not specified</code></li>
<li><strong style="color: #ffffff;">Log File:</strong> <code style="background: #0f172a; padding: 2px 6px; border-radius: 3px; color: #a5b4fc;">Not specified</code></li>
<li><strong style="color: #ffffff;">Default Port:</strong> Not specified</li>
<li><strong style="color: #ffffff;">Max Players:</strong> Not specified</li>
</ul>
</div>
<h2>Getting Started</h2>
<p>To create a Counter Strike Global Offensive 128tick server:</p>
<ol>
<li>Navigate to the <a href="/serverlist.php">Game Servers</a> page</li>
<li>Find <strong>Counter Strike Global Offensive 128tick</strong> in the list</li>
<li>Select your preferred configuration (slots, duration, etc.)</li>
<li>Add to cart and complete checkout</li>
<li>Your server will be automatically provisioned within minutes</li>
</ol>
<h2>Server Configuration</h2>
<p>After your server is created, you can configure it through the control panel:</p>
<ul>
<li>Server settings and parameters</li>
<li>Player slots and limits</li>
<li>RCON/remote control access</li>
<li>FTP file access</li>
</ul>
<h2>Common Tasks</h2>
<h3>Starting Your Server</h3>
<p>Servers are automatically started after creation. You can stop/start your server from the control panel.</p>
<h3>Connecting to Your Server</h3>
<p>Use your server's IP address and port to connect from the game client.</p>
<h3>Managing Files</h3>
<p>Access your server files via FTP using the credentials provided in your control panel.</p>
<h2>Support</h2>
<p>If you need assistance with your Counter Strike Global Offensive 128tick server:</p>
<ul>
<li>Check our <a href="/docs.php?action=view&doc=common-issues">Common Issues</a> guide</li>
<li>Contact support through your account dashboard</li>
<li>Visit the official Counter Strike Global Offensive 128tick community for game-specific help</li>
</ul>
<div style="background: #78350f; padding: 20px; border-left: 4px solid #f59e0b; margin: 20px 0; border-radius: 4px;">
<h3 style="color: #ffffff; margin-top: 0;"><i class="fas fa-exclamation-triangle" style="color: #fbbf24; margin-right: 8px;"></i>Important Notes</h3>
<ul style="color: #fef3c7; line-height: 1.8;">
<li>Always keep your server updated to the latest version</li>
<li>Make regular backups of your server configuration</li>
<li>Review and follow the game's End User License Agreement (EULA)</li>
</ul>
</div>

View file

@ -1,91 +1,549 @@
<?php
/**
* Minecraft Server Documentation
* Minecraft Server Documentation - Comprehensive Guide
* General game server hosting information (not platform-specific)
*/
?>
<h1>Minecraft Server Guide</h1>
<div style="background: #1e3a5f; padding: 20px; border-left: 4px solid #3b82f6; margin: 20px 0; border-radius: 4px;">
<h3 style="color: #ffffff; margin-top: 0;">Navigation</h3>
<div style="display: flex; flex-wrap: wrap; gap: 10px;">
<a href="#quick-info" style="background: #0f172a; padding: 8px 16px; border-radius: 4px; color: #a5b4fc; text-decoration: none;">Quick Info</a>
<a href="#installation" style="background: #0f172a; padding: 8px 16px; border-radius: 4px; color: #a5b4fc; text-decoration: none;">Installation</a>
<a href="#configuration" style="background: #0f172a; padding: 8px 16px; border-radius: 4px; color: #a5b4fc; text-decoration: none;">Configuration</a>
<a href="#parameters" style="background: #0f172a; padding: 8px 16px; border-radius: 4px; color: #a5b4fc; text-decoration: none;">Parameters</a>
<a href="#plugins-mods" style="background: #0f172a; padding: 8px 16px; border-radius: 4px; color: #a5b4fc; text-decoration: none;">Plugins & Mods</a>
<a href="#troubleshooting" style="background: #0f172a; padding: 8px 16px; border-radius: 4px; color: #a5b4fc; text-decoration: none;">Troubleshooting</a>
<a href="#performance" style="background: #0f172a; padding: 8px 16px; border-radius: 4px; color: #a5b4fc; text-decoration: none;">Performance</a>
<a href="#security" style="background: #0f172a; padding: 8px 16px; border-radius: 4px; color: #a5b4fc; text-decoration: none;">Security</a>
</div>
</div>
<h1>Minecraft Java Edition Server Hosting Guide</h1>
<h2>Overview</h2>
<p>Minecraft is one of the most popular sandbox games in the world. This guide will help you set up and manage your Minecraft Java Edition server.</p>
<p>Minecraft Java Edition is one of the most popular sandbox games worldwide, supporting extensive multiplayer capabilities. This comprehensive guide covers everything you need to know about hosting a Minecraft server on a VPS or dedicated server.</p>
<h2>Getting Started</h2>
<p>Once your Minecraft server is provisioned, you can connect to it using the server IP and port provided in your account dashboard.</p>
<h2 id="quick-info">Quick Info</h2>
<div style="background: #1e3a5f; padding: 20px; border-left: 4px solid #3b82f6; margin: 20px 0; border-radius: 4px;">
<ul style="color: #e5e7eb; line-height: 1.8; margin: 0;">
<li><strong style="color: #ffffff;">Default Port:</strong> <code style="background: #0f172a; padding: 2px 6px; border-radius: 3px; color: #a5b4fc;">25565</code> (TCP)</li>
<li><strong style="color: #ffffff;">Protocol:</strong> TCP (Query on UDP 25565 if enabled)</li>
<li><strong style="color: #ffffff;">Minimum RAM:</strong> 2GB (Vanilla), 4GB+ (Modded)</li>
<li><strong style="color: #ffffff;">Recommended RAM:</strong> 1GB per 5-10 players + 2GB base</li>
<li><strong style="color: #ffffff;">Java Version:</strong> Java 17+ (Minecraft 1.17+), Java 8+ (older versions)</li>
<li><strong style="color: #ffffff;">Server Software:</strong> Vanilla, Spigot, Paper, Forge, Fabric</li>
<li><strong style="color: #ffffff;">Log File:</strong> <code style="background: #0f172a; padding: 2px 6px; border-radius: 3px; color: #a5b4fc;">logs/latest.log</code></li>
<li><strong style="color: #ffffff;">Main Config:</strong> <code style="background: #0f172a; padding: 2px 6px; border-radius: 3px; color: #a5b4fc;">server.properties</code></li>
<li><strong style="color: #ffffff;">EULA:</strong> <code style="background: #0f172a; padding: 2px 6px; border-radius: 3px; color: #a5b4fc;">eula.txt</code> (must set eula=true)</li>
</ul>
</div>
<h3>Server Details</h3>
<h2 id="installation">Installation & Setup</h2>
<h3>System Requirements</h3>
<ul>
<li><strong>Default Port:</strong> 25565</li>
<li><strong>Protocol:</strong> TCP/UDP</li>
<li><strong>Supported Versions:</strong> 1.8 - Latest</li>
<li><strong>OS:</strong> Linux (Ubuntu/Debian recommended), Windows Server, or any Java-compatible OS</li>
<li><strong>CPU:</strong> 2+ cores (single-threaded performance is critical)</li>
<li><strong>RAM:</strong> Minimum 2GB, 4GB+ recommended for 10+ players</li>
<li><strong>Storage:</strong> 1GB+ for server files, additional for worlds (can grow to 10GB+)</li>
<li><strong>Bandwidth:</strong> ~1Mbps per player</li>
</ul>
<h2>Configuration</h2>
<p>You can customize your server using the <code>server.properties</code> file. Common settings include:</p>
<h3>Installing Java</h3>
<p>Minecraft requires Java to run. Install the appropriate version:</p>
<pre><code># Ubuntu/Debian - Java 17 (for MC 1.17+)
sudo apt update
sudo apt install openjdk-17-jre-headless
<h3>Server Properties</h3>
<pre><code># Server name
motd=Welcome to My Minecraft Server
# Check Java version
java -version
# Game mode (survival, creative, adventure, spectator)
gamemode=survival
# Difficulty (peaceful, easy, normal, hard)
difficulty=normal
# Maximum players
max-players=20
# Enable PvP
pvp=true
# View distance (in chunks)
view-distance=10
# Set Java 17 as default if multiple versions installed
sudo update-alternatives --config java
</code></pre>
<h2>Installing Plugins</h2>
<p>To add plugins to your server, you'll need to use a modified server like Spigot or Paper:</p>
<h3>Downloading Server Files</h3>
<p>Download the official Minecraft server from <a href="https://www.minecraft.net/en-us/download/server" target="_blank">Minecraft.net</a>:</p>
<pre><code># Create server directory
mkdir minecraft-server
cd minecraft-server
# Download server jar (replace version number with desired version)
wget https://piston-data.mojang.com/v1/objects/[hash]/server.jar -O minecraft_server.jar
# Or use curl
curl -o minecraft_server.jar https://piston-data.mojang.com/v1/objects/[hash]/server.jar
</code></pre>
<h3>First-Time Setup</h3>
<pre><code># Run server once to generate files
java -Xmx1024M -Xms1024M -jar minecraft_server.jar nogui
# Accept EULA
echo "eula=true" > eula.txt
# Start server
java -Xmx2048M -Xms2048M -jar minecraft_server.jar nogui
</code></pre>
<h2 id="configuration">Server Configuration</h2>
<h3>server.properties - Essential Settings</h3>
<p>The <code>server.properties</code> file controls all server behavior:</p>
<pre><code># Server identification
server-name=My Minecraft Server
motd=Welcome to My Server!
server-port=25565
server-ip=0.0.0.0
# Gameplay settings
gamemode=survival
difficulty=normal
hardcore=false
pvp=true
enable-command-block=false
# World settings
level-name=world
level-seed=
level-type=default
generate-structures=true
spawn-protection=16
max-build-height=256
view-distance=10
simulation-distance=10
# Player limits
max-players=20
white-list=false
online-mode=true
# Performance & resource settings
max-tick-time=60000
max-world-size=29999984
network-compression-threshold=256
spawn-npcs=true
spawn-animals=true
spawn-monsters=true
# Query & RCON
enable-query=true
query.port=25565
enable-rcon=false
rcon.port=25575
rcon.password=changeme
# Misc
allow-flight=false
enforce-whitelist=false
resource-pack=
resource-pack-sha1=
</code></pre>
<h3>ops.json - Server Operators</h3>
<p>Grant admin privileges to players:</p>
<pre><code>[
{
"uuid": "player-uuid-here",
"name": "PlayerName",
"level": 4,
"bypassesPlayerLimit": true
}
]
</code></pre>
<p>Permission levels: 1 (bypass spawn protection), 2 (use cheat commands), 3 (kick/ban), 4 (full control)</p>
<h3>whitelist.json - Whitelist</h3>
<p>When <code>white-list=true</code> in server.properties:</p>
<pre><code>[
{
"uuid": "player-uuid-here",
"name": "PlayerName"
}
]
</code></pre>
<h2 id="parameters">Startup Parameters & JVM Arguments</h2>
<h3>Basic Startup Command</h3>
<pre><code>java -Xmx4G -Xms4G -jar minecraft_server.jar nogui
</code></pre>
<h3>Recommended JVM Arguments (Aikar's Flags)</h3>
<p>Optimized for Minecraft server performance:</p>
<pre><code>java -Xms4G -Xmx4G -XX:+UseG1GC -XX:+ParallelRefProcEnabled \
-XX:MaxGCPauseMillis=200 -XX:+UnlockExperimentalVMOptions \
-XX:+DisableExplicitGC -XX:+AlwaysPreTouch \
-XX:G1NewSizePercent=30 -XX:G1MaxNewSizePercent=40 \
-XX:G1HeapRegionSize=8M -XX:G1ReservePercent=20 \
-XX:G1HeapWastePercent=5 -XX:G1MixedGCCountTarget=4 \
-XX:InitiatingHeapOccupancyPercent=15 \
-XX:G1MixedGCLiveThresholdPercent=90 \
-XX:G1RSetUpdatingPauseTimePercent=5 \
-XX:SurvivorRatio=32 -XX:+PerfDisableSharedMem \
-XX:MaxTenuringThreshold=1 \
-Dusing.aikars.flags=https://mcflags.emc.gs \
-Daikars.new.flags=true \
-jar minecraft_server.jar nogui
</code></pre>
<h3>Parameter Breakdown</h3>
<ul>
<li><code>-Xms4G</code> - Initial heap size (4GB)</li>
<li><code>-Xmx4G</code> - Maximum heap size (4GB) - should match Xms</li>
<li><code>-XX:+UseG1GC</code> - Use G1 Garbage Collector (best for MC)</li>
<li><code>-XX:+ParallelRefProcEnabled</code> - Parallel reference processing</li>
<li><code>-XX:MaxGCPauseMillis=200</code> - Target max GC pause time</li>
<li><code>-XX:+UnlockExperimentalVMOptions</code> - Enable experimental JVM options</li>
<li><code>-XX:+AlwaysPreTouch</code> - Pre-touch memory pages on startup</li>
<li><code>nogui</code> - Disable graphical interface (better performance)</li>
</ul>
<h3>Creating a Start Script</h3>
<p><strong>Linux (start.sh):</strong></p>
<pre><code>#!/bin/bash
java -Xms4G -Xmx4G -XX:+UseG1GC -jar minecraft_server.jar nogui
</code></pre>
<pre><code>chmod +x start.sh
./start.sh
</code></pre>
<p><strong>Windows (start.bat):</strong></p>
<pre><code>@echo off
java -Xms4G -Xmx4G -XX:+UseG1GC -jar minecraft_server.jar nogui
pause
</code></pre>
<h2 id="plugins-mods">Plugins, Mods & Server Software</h2>
<h3>Server Software Options</h3>
<h4>1. Vanilla</h4>
<ul>
<li>Official Mojang server</li>
<li>No plugin/mod support</li>
<li>Best for pure vanilla experience</li>
<li>Download: <a href="https://www.minecraft.net/en-us/download/server" target="_blank">Minecraft.net</a></li>
</ul>
<h4>2. Spigot</h4>
<ul>
<li>Popular plugin platform</li>
<li>Better performance than vanilla</li>
<li>Large plugin ecosystem</li>
<li>Download: <a href="https://www.spigotmc.org/" target="_blank">SpigotMC.org</a></li>
<li>Build with BuildTools or download pre-built</li>
</ul>
<h4>3. Paper (Recommended)</h4>
<ul>
<li>Fork of Spigot with major performance improvements</li>
<li>Compatible with most Spigot plugins</li>
<li>Additional bug fixes and features</li>
<li>Download: <a href="https://papermc.io/" target="_blank">PaperMC.io</a></li>
</ul>
<h4>4. Forge</h4>
<ul>
<li>Mod platform (not plugins)</li>
<li>Required for most mods</li>
<li>Download: <a href="https://files.minecraftforge.net/" target="_blank">MinecraftForge.net</a></li>
</ul>
<h4>5. Fabric</h4>
<ul>
<li>Lightweight mod platform</li>
<li>Faster updates than Forge</li>
<li>Download: <a href="https://fabricmc.net/" target="_blank">FabricMC.net</a></li>
</ul>
<h3>Essential Plugins (Spigot/Paper)</h3>
<h4>EssentialsX</h4>
<p>Core commands and utilities for server management.</p>
<ul>
<li>Download: <a href="https://essentialsx.net/" target="_blank">EssentialsX.net</a></li>
<li>Features: /home, /spawn, /tpa, kits, warps, economy</li>
</ul>
<h4>LuckPerms</h4>
<p>Advanced permission management system.</p>
<ul>
<li>Download: <a href="https://luckperms.net/" target="_blank">LuckPerms.net</a></li>
<li>Features: Groups, permissions, prefixes, web editor</li>
</ul>
<h4>WorldEdit & WorldGuard</h4>
<p>In-game world editing and region protection.</p>
<ul>
<li>Download: <a href="https://enginehub.org/" target="_blank">EngineHub.org</a></li>
<li>WorldEdit: Bulk editing, schematics</li>
<li>WorldGuard: Region protection, flags</li>
</ul>
<h4>Vault</h4>
<p>Economy and permission API bridge.</p>
<ul>
<li>Required by many plugins for economy/permissions</li>
<li>Download: <a href="https://www.spigotmc.org/resources/vault.34315/" target="_blank">SpigotMC</a></li>
</ul>
<h3>Installing Plugins</h3>
<pre><code># 1. Stop server
# 2. Download plugin .jar file
# 3. Place in plugins/ directory
cd plugins/
wget https://example.com/plugin.jar
# 4. Start server
# 5. Configure in plugins/PluginName/config.yml
</code></pre>
<h3>Popular Mods (Forge/Fabric)</h3>
<ul>
<li><strong>OptiFine:</strong> Graphics and performance optimization</li>
<li><strong>JourneyMap:</strong> In-game mapping</li>
<li><strong>Biomes O' Plenty:</strong> New biomes</li>
<li><strong>Applied Energistics 2:</strong> Storage and automation</li>
<li><strong>Tinkers' Construct:</strong> Tool customization</li>
</ul>
<h2 id="troubleshooting">Troubleshooting</h2>
<h3>Server Won't Start</h3>
<h4>Java Not Found</h4>
<pre><code># Check if Java is installed
java -version
# If not installed, install Java (Ubuntu/Debian)
sudo apt update
sudo apt install openjdk-17-jre-headless
</code></pre>
<h4>EULA Not Accepted</h4>
<pre><code># You must agree to Minecraft EULA
echo "eula=true" > eula.txt
</code></pre>
<h4>Port Already in Use</h4>
<pre><code># Check what's using port 25565
sudo lsof -i :25565
sudo netstat -tulpn | grep 25565
# Kill process or change server-port in server.properties
</code></pre>
<h4>Out of Memory</h4>
<pre><code># Increase allocated RAM
java -Xms4G -Xmx4G -jar minecraft_server.jar nogui
# Or reduce if system has limited RAM
java -Xms2G -Xmx2G -jar minecraft_server.jar nogui
</code></pre>
<h3>Connection Issues</h3>
<h4>Can't Connect to Server</h4>
<ol>
<li>Download plugins from <a href="https://www.spigotmc.org/resources/" target="_blank">SpigotMC</a> or <a href="https://hangar.papermc.io/" target="_blank">Hangar</a></li>
<li>Upload the <code>.jar</code> files to your server's <code>plugins</code> folder via FTP</li>
<li>Restart your server</li>
<li>Configure plugins in their respective config files in <code>plugins/[PluginName]/</code></li>
<li><strong>Check server is running:</strong> <code>ps aux | grep java</code></li>
<li><strong>Verify port is listening:</strong> <code>netstat -an | grep 25565</code></li>
<li><strong>Check firewall:</strong>
<pre><code># Ubuntu/Debian (UFW)
sudo ufw allow 25565/tcp
sudo ufw reload
# CentOS/RHEL (firewalld)
sudo firewall-cmd --permanent --add-port=25565/tcp
sudo firewall-cmd --reload
</code></pre>
</li>
<li><strong>Verify server IP:</strong> Use external IP, not 127.0.0.1</li>
<li><strong>Check online-mode:</strong> If cracked clients, set <code>online-mode=false</code></li>
</ol>
<h2>Common Issues</h2>
<h3>Players Can't Connect</h3>
<h4>Connection Timed Out</h4>
<ul>
<li>Verify the server is running in your control panel</li>
<li>Check that you're using the correct IP address and port</li>
<li>Ensure your firewall allows Minecraft traffic on port 25565</li>
<li>Router/NAT: Forward port 25565 to server</li>
<li>Cloud provider: Add inbound rule for port 25565</li>
<li>Server IP: Ensure <code>server-ip=</code> is blank or <code>0.0.0.0</code></li>
</ul>
<h3>Server Lag</h3>
<ul>
<li>Reduce view distance in <code>server.properties</code></li>
<li>Limit entity spawning with plugins like ClearLagg</li>
<li>Upgrade to a server with more RAM if needed</li>
<li>Use performance-optimized server software like Paper</li>
</ul>
<h3>Performance Issues</h3>
<h4>Server Lag/TPS Drop</h4>
<ol>
<li><strong>Check TPS:</strong> <code>/tps</code> or use Spark profiler</li>
<li><strong>Reduce view distance:</strong> Set <code>view-distance=6-8</code></li>
<li><strong>Reduce simulation distance:</strong> <code>simulation-distance=4-6</code></li>
<li><strong>Limit entities:</strong>
<pre><code># spigot.yml or paper.yml
entity-activation-range:
animals: 16
monsters: 24
misc: 8
</code></pre>
</li>
<li><strong>Use Paper:</strong> Better performance than Spigot/Vanilla</li>
<li><strong>Pregenerate world:</strong> Use Chunky plugin to pre-generate chunks</li>
</ol>
<h4>Memory Leaks</h4>
<pre><code># Monitor memory usage
free -h
top -p $(pgrep -f minecraft_server)
# Restart server regularly (daily/weekly) via cron
0 4 * * * /path/to/restart-script.sh
</code></pre>
<h3>World Corruption</h3>
<ol>
<li><strong>Stop server immediately</strong></li>
<li><strong>Backup world folder:</strong> <code>cp -r world/ world_backup/</code></li>
<li><strong>Use MCEdit or Amulet to repair:</strong> <a href="https://www.amuletmc.com/" target="_blank">AmuletMC.com</a></li>
<li><strong>Restore from backup if needed</strong></li>
<li><strong>Prevention:</strong> Always stop server properly, use backup plugins</li>
</ol>
<h3>Plugin Conflicts</h3>
<ol>
<li><strong>Check console for errors</strong></li>
<li><strong>Disable plugins one-by-one to isolate issue</strong></li>
<li><strong>Update all plugins to latest versions</strong></li>
<li><strong>Check plugin compatibility with server version</strong></li>
</ol>
<h2 id="performance">Performance Optimization</h2>
<h3>Server Configuration</h3>
<pre><code># server.properties
view-distance=8
simulation-distance=6
network-compression-threshold=256
entity-broadcast-range-percentage=100
</code></pre>
<h3>Paper Configuration</h3>
<p>Create/edit <code>paper.yml</code> or <code>config/paper-global.yml</code>:</p>
<pre><code>chunk-loading:
target-chunk-send-rate: 100.0
max-concurrent-sends: 2
async-chunks:
enable: true
threads: -1
entity-activation-range:
animals: 16
monsters: 24
raiders: 48
misc: 8
water: 8
villagers: 16
flying-monsters: 48
tick-rates:
sensor:
villager:
secondarypoisensor: 80
behavior:
villager:
validatenearbypoi: 60
</code></pre>
<h3>Pregenerate World</h3>
<p>Use Chunky plugin to pre-generate chunks:</p>
<pre><code># Install Chunky plugin
# In-game or console:
/chunky radius 5000
/chunky world world
/chunky start
# Let it complete before opening server to players
</code></pre>
<h3>Backup Strategy</h3>
<pre><code>#!/bin/bash
# backup.sh - Run via cron
DATE=$(date +%Y%m%d_%H%M%S)
BACKUP_DIR="/backups/minecraft"
SERVER_DIR="/home/minecraft/server"
# Create backup
tar -czf $BACKUP_DIR/world_$DATE.tar.gz -C $SERVER_DIR world/
# Keep only last 7 days
find $BACKUP_DIR -name "world_*.tar.gz" -mtime +7 -delete
</code></pre>
<h2 id="security">Security Best Practices</h2>
<h3>Firewall Configuration</h3>
<pre><code># Only allow Minecraft port
sudo ufw default deny incoming
sudo ufw default allow outgoing
sudo ufw allow 25565/tcp
sudo ufw allow 22/tcp # SSH
sudo ufw enable
</code></pre>
<h3>Whitelist</h3>
<pre><code># Enable whitelist in server.properties
white-list=true
# Add players in-game or console
/whitelist add PlayerName
/whitelist on
</code></pre>
<h3>RCON Security</h3>
<pre><code># If using RCON, use strong password
enable-rcon=true
rcon.password=Use_A_Very_Strong_Random_Password_Here
rcon.port=25575
# Bind to localhost only if possible
rcon.ip=127.0.0.1
</code></pre>
<h3>Regular Updates</h3>
<ul>
<li>Always make regular backups of your world folder</li>
<li>Stop the server properly before making changes</li>
<li>Use world management plugins to prevent corruption</li>
<li>Keep server software updated</li>
<li>Update plugins regularly</li>
<li>Monitor security advisories</li>
<li>Test updates on staging server first</li>
</ul>
<h2>Recommended Plugins</h2>
<h3>DDoS Protection</h3>
<ul>
<li><strong>EssentialsX</strong> - Core commands and features</li>
<li><strong>WorldEdit</strong> - In-game world editing</li>
<li><strong>LuckPerms</strong> - Advanced permission management</li>
<li><strong>Vault</strong> - Economy and permissions API</li>
<li><strong>WorldGuard</strong> - Region protection</li>
<li>Use TCP SYN cookies: <code>echo 1 > /proc/sys/net/ipv4/tcp_syncookies</code></li>
<li>Consider DDoS protection service (Cloudflare Spectrum, OVH Game, etc.)</li>
<li>Use BungeeCord/Velocity proxy for multiple servers</li>
<li>Implement rate limiting with iptables/fail2ban</li>
</ul>
<h2>Further Resources</h2>
<h2>Additional Resources</h2>
<ul>
<li><a href="https://minecraft.fandom.com/wiki/Server.properties" target="_blank">Minecraft Wiki - Server Properties</a></li>
<li><a href="https://www.spigotmc.org/" target="_blank">SpigotMC Community</a></li>
<li><a href="https://papermc.io/" target="_blank">PaperMC Official Site</a></li>
<li><a href="https://minecraft.fandom.com/wiki/Server.properties" target="_blank">Minecraft Wiki - Server.properties</a></li>
<li><a href="https://www.spigotmc.org/" target="_blank">SpigotMC Forums & Resources</a></li>
<li><a href="https://papermc.io/downloads" target="_blank">Paper Downloads & Documentation</a></li>
<li><a href="https://aikar.co/mcflags.html" target="_blank">Aikar's JVM Flags</a></li>
<li><a href="https://docs.papermc.io/" target="_blank">Paper Documentation</a></li>
<li><a href="https://github.com/YouHaveTrouble/minecraft-optimization" target="_blank">Minecraft Server Optimization Guide</a></li>
</ul>
<div style="background: #78350f; padding: 20px; border-left: 4px solid #f59e0b; margin: 20px 0; border-radius: 4px;">
<h3 style="color: #ffffff; margin-top: 0;"><i class="fas fa-exclamation-triangle" style="color: #fbbf24; margin-right: 8px;"></i>Important Notes</h3>
<ul style="color: #fef3c7; line-height: 1.8; margin: 0;">
<li>Always accept Mojang's EULA before running a server</li>
<li>Make regular backups of your world data</li>
<li>Keep server software and plugins updated</li>
<li>Monitor server resources (CPU, RAM, disk)</li>
<li>Join Minecraft server admin communities for support</li>
</ul>
</div>
<p style="text-align: center; margin-top: 30px; color: #666;">
<em>Last updated: November 2024 | For Minecraft Java Edition 1.20+</em>
</p>

View file

@ -0,0 +1,91 @@
<?php
/**
* Minecraft Server Documentation
*/
?>
<h1>Minecraft Server Guide</h1>
<h2>Overview</h2>
<p>Minecraft is one of the most popular sandbox games in the world. This guide will help you set up and manage your Minecraft Java Edition server.</p>
<h2>Getting Started</h2>
<p>Once your Minecraft server is provisioned, you can connect to it using the server IP and port provided in your account dashboard.</p>
<h3>Server Details</h3>
<ul>
<li><strong>Default Port:</strong> 25565</li>
<li><strong>Protocol:</strong> TCP/UDP</li>
<li><strong>Supported Versions:</strong> 1.8 - Latest</li>
</ul>
<h2>Configuration</h2>
<p>You can customize your server using the <code>server.properties</code> file. Common settings include:</p>
<h3>Server Properties</h3>
<pre><code># Server name
motd=Welcome to My Minecraft Server
# Game mode (survival, creative, adventure, spectator)
gamemode=survival
# Difficulty (peaceful, easy, normal, hard)
difficulty=normal
# Maximum players
max-players=20
# Enable PvP
pvp=true
# View distance (in chunks)
view-distance=10
</code></pre>
<h2>Installing Plugins</h2>
<p>To add plugins to your server, you'll need to use a modified server like Spigot or Paper:</p>
<ol>
<li>Download plugins from <a href="https://www.spigotmc.org/resources/" target="_blank">SpigotMC</a> or <a href="https://hangar.papermc.io/" target="_blank">Hangar</a></li>
<li>Upload the <code>.jar</code> files to your server's <code>plugins</code> folder via FTP</li>
<li>Restart your server</li>
<li>Configure plugins in their respective config files in <code>plugins/[PluginName]/</code></li>
</ol>
<h2>Common Issues</h2>
<h3>Players Can't Connect</h3>
<ul>
<li>Verify the server is running in your control panel</li>
<li>Check that you're using the correct IP address and port</li>
<li>Ensure your firewall allows Minecraft traffic on port 25565</li>
</ul>
<h3>Server Lag</h3>
<ul>
<li>Reduce view distance in <code>server.properties</code></li>
<li>Limit entity spawning with plugins like ClearLagg</li>
<li>Upgrade to a server with more RAM if needed</li>
<li>Use performance-optimized server software like Paper</li>
</ul>
<h3>World Corruption</h3>
<ul>
<li>Always make regular backups of your world folder</li>
<li>Stop the server properly before making changes</li>
<li>Use world management plugins to prevent corruption</li>
</ul>
<h2>Recommended Plugins</h2>
<ul>
<li><strong>EssentialsX</strong> - Core commands and features</li>
<li><strong>WorldEdit</strong> - In-game world editing</li>
<li><strong>LuckPerms</strong> - Advanced permission management</li>
<li><strong>Vault</strong> - Economy and permissions API</li>
<li><strong>WorldGuard</strong> - Region protection</li>
</ul>
<h2>Further Resources</h2>
<ul>
<li><a href="https://minecraft.fandom.com/wiki/Server.properties" target="_blank">Minecraft Wiki - Server Properties</a></li>
<li><a href="https://www.spigotmc.org/" target="_blank">SpigotMC Community</a></li>
<li><a href="https://papermc.io/" target="_blank">PaperMC Official Site</a></li>
</ul>

View file

@ -1,67 +1,455 @@
<?php
/**
* Rust Server Documentation
* Rust Server Documentation - Comprehensive Hosting Guide
*/
?>
<h1>Rust Server Guide</h1>
<div style="background: #1e3a5f; padding: 20px; border-left: 4px solid #3b82f6; margin: 20px 0; border-radius: 4px;">
<h3 style="color: #ffffff; margin-top: 0;">Navigation</h3>
<div style="display: flex; flex-wrap: wrap; gap: 10px;">
<a href="#quick-info" style="background: #0f172a; padding: 8px 16px; border-radius: 4px; color: #a5b4fc; text-decoration: none;">Quick Info</a>
<a href="#installation" style="background: #0f172a; padding: 8px 16px; border-radius: 4px; color: #a5b4fc; text-decoration: none;">Installation</a>
<a href="#configuration" style="background: #0f172a; padding: 8px 16px; border-radius: 4px; color: #a5b4fc; text-decoration: none;">Configuration</a>
<a href="#parameters" style="background: #0f172a; padding: 8px 16px; border-radius: 4px; color: #a5b4fc; text-decoration: none;">Parameters</a>
<a href="#plugins-mods" style="background: #0f172a; padding: 8px 16px; border-radius: 4px; color: #a5b4fc; text-decoration: none;">Plugins & Mods</a>
<a href="#troubleshooting" style="background: #0f172a; padding: 8px 16px; border-radius: 4px; color: #a5b4fc; text-decoration: none;">Troubleshooting</a>
<a href="#performance" style="background: #0f172a; padding: 8px 16px; border-radius: 4px; color: #a5b4fc; text-decoration: none;">Performance</a>
</div>
</div>
<h1>Rust Server Hosting Guide</h1>
<h2>Overview</h2>
<p><strong>Rust</strong> is available for hosting on our platform. This guide covers the basics of setting up and managing your Rust server.</p>
<p>Rust is a popular multiplayer survival game where players gather resources, build bases, and compete for survival. This comprehensive guide covers hosting a dedicated Rust server on Linux or Windows.</p>
<h2 id="quick-info">Quick Info</h2>
<div style="background: #1e3a5f; padding: 20px; border-left: 4px solid #3b82f6; margin: 20px 0; border-radius: 4px;">
<h3 style="color: #ffffff; margin-top: 0;">Quick Info</h3>
<ul style="color: #e5e7eb; line-height: 1.8;">
<li><strong style="color: #ffffff;">Game Key:</strong> rust_linux64</li>
<li><strong style="color: #ffffff;">Startup Command:</strong> <code style="background: #0f172a; padding: 2px 6px; border-radius: 3px; color: #a5b4fc;">-batchmode +server.ip %IP% %PORT% %PLAYERS% %HOSTNAME% %IDENTITY% %WORLDSIZE% %SEED% %SALT% %TICKRATE% %MAP% %BCK% %SAVEINTERNAL% %SECURE% +rcon.ip %IP% %RCON_PORT% %RCONWEB% %CONTROL_PASSWORD% -swnet %QUERY_PORT% -logfile output.txt</code></li>
<li><strong style="color: #ffffff;">Log File:</strong> <code style="background: #0f172a; padding: 2px 6px; border-radius: 3px; color: #a5b4fc;">output.txt</code></li>
<li><strong style="color: #ffffff;">Default Port:</strong> Not specified</li>
<li><strong style="color: #ffffff;">Max Players:</strong> 500</li>
<ul style="color: #e5e7eb; line-height: 1.8; margin: 0;">
<li><strong style="color: #ffffff;">Default Port:</strong> <code style="background: #0f172a; padding: 2px 6px; border-radius: 3px; color: #a5b4fc;">28015</code> (UDP)</li>
<li><strong style="color: #ffffff;">RCON Port:</strong> <code style="background: #0f172a; padding: 2px 6px; border-radius: 3px; color: #a5b4fc;">28016</code> (TCP)</li>
<li><strong style="color: #ffffff;">Query Port:</strong> <code style="background: #0f172a; padding: 2px 6px; border-radius: 3px; color: #a5b4fc;">28017</code> (UDP/TCP - Rust+ app)</li>
<li><strong style="color: #ffffff;">Minimum RAM:</strong> 8GB (small server)</li>
<li><strong style="color: #ffffff;">Recommended RAM:</strong> 16GB+ (medium/large servers)</li>
<li><strong style="color: #ffffff;">Storage:</strong> 20GB+ (can grow to 50GB+)</li>
<li><strong style="color: #ffffff;">App ID:</strong> 258550 (dedicated server)</li>
<li><strong style="color: #ffffff;">Max Players:</strong> Configurable (50-500+)</li>
<li><strong style="color: #ffffff;">Map Size:</strong> 3000-6000 (default 4000)</li>
<li><strong style="color: #ffffff;">Log Files:</strong> <code style="background: #0f172a; padding: 2px 6px; border-radius: 3px; color: #a5b4fc;">RustDedicated_Data/output_log.txt</code></li>
</ul>
</div>
<h2>Getting Started</h2>
<p>To create a Rust server:</p>
<ol>
<li>Navigate to the <a href="/serverlist.php">Game Servers</a> page</li>
<li>Find <strong>Rust</strong> in the list</li>
<li>Select your preferred configuration (slots, duration, etc.)</li>
<li>Add to cart and complete checkout</li>
<li>Your server will be automatically provisioned within minutes</li>
</ol>
<h2 id="installation">Installation & Setup</h2>
<h2>Server Configuration</h2>
<p>After your server is created, you can configure it through the control panel:</p>
<h3>System Requirements</h3>
<ul>
<li>Server settings and parameters</li>
<li>Player slots and limits</li>
<li>RCON/remote control access</li>
<li>FTP file access</li>
<li><strong>OS:</strong> Linux (Ubuntu 20.04+, Debian 10+) or Windows Server 2016+</li>
<li><strong>CPU:</strong> Quad-core 3.2GHz+ (high single-thread performance)</li>
<li><strong>RAM:</strong> 8GB minimum, 16GB+ recommended</li>
<li><strong>Storage:</strong> 20GB+ SSD (HDD not recommended)</li>
<li><strong>Bandwidth:</strong> 1Gbps+ recommended for 100+ players</li>
</ul>
<h2>Common Tasks</h2>
<h3>Installing via SteamCMD</h3>
<p>Download: <a href="https://developer.valvesoftware.com/wiki/SteamCMD" target="_blank">SteamCMD Guide</a></p>
<h3>Starting Your Server</h3>
<p>Servers are automatically started after creation. You can stop/start your server from the control panel.</p>
<h4>Linux Installation</h4>
<pre><code># Install SteamCMD
mkdir ~/steamcmd && cd ~/steamcmd
wget https://steamcdn-a.akamaihd.net/client/installer/steamcmd_linux.tar.gz
tar -xvzf steamcmd_linux.tar.gz
<h3>Connecting to Your Server</h3>
<p>Use your server's IP address and port to connect from the game client.</p>
# Run SteamCMD and install Rust
./steamcmd.sh
login anonymous
force_install_dir /home/rust/server
app_update 258550 validate
quit
</code></pre>
<h3>Managing Files</h3>
<p>Access your server files via FTP using the credentials provided in your control panel.</p>
<h4>Windows Installation</h4>
<pre><code>1. Download SteamCMD for Windows
2. Extract to C:\steamcmd
3. Run steamcmd.exe
4. login anonymous
5. force_install_dir C:\RustServer
6. app_update 258550 validate
7. quit
</code></pre>
<h2>Support</h2>
<p>If you need assistance with your Rust server:</p>
<h2 id="configuration">Server Configuration</h2>
<h3>Basic Startup Script (Linux)</h3>
<pre><code>#!/bin/bash
# start.sh
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/rust/server/RustDedicated_Data/Plugins/x86_64
cd /home/rust/server
./RustDedicated -batchmode \
+server.ip 0.0.0.0 \
+server.port 28015 \
+server.tickrate 30 \
+server.hostname "My Rust Server" \
+server.identity "myserver" \
+server.maxplayers 100 \
+server.worldsize 4000 \
+server.seed 12345 \
+server.saveinterval 300 \
+server.globalchat true \
+server.description "Welcome to my server" \
+server.headerimage "https://i.imgur.com/yourimage.png" \
+server.url "https://yourwebsite.com" \
+rcon.ip 0.0.0.0 \
+rcon.port 28016 \
+rcon.password "YourSecurePassword" \
+rcon.web true \
-logfile "logs/$(date +%Y%m%d_%H%M%S).txt"
</code></pre>
<h3>Windows Startup (start.bat)</h3>
<pre><code>@echo off
cls
:start
echo Starting Rust server...
RustDedicated.exe -batchmode ^
+server.ip 0.0.0.0 ^
+server.port 28015 ^
+server.hostname "My Rust Server" ^
+server.identity "myserver" ^
+server.maxplayers 100 ^
+server.worldsize 4000 ^
+server.saveinterval 300 ^
+rcon.port 28016 ^
+rcon.password "YourSecurePassword"
goto start
</code></pre>
<h3>Server Identity</h3>
<p>Server data is stored in: <code>server/[identity]/</code></p>
<ul>
<li>Check our <a href="/docs.php?action=view&doc=common-issues">Common Issues</a> guide</li>
<li>Contact support through your account dashboard</li>
<li>Visit the official Rust community for game-specific help</li>
<li><code>server/myserver/cfg/</code> - Config files</li>
<li><code>server/myserver/UserPersistence/</code> - Player data</li>
<li><code>server/myserver/proceduralmap.[seed].[size].map</code> - World file</li>
</ul>
<h3>server.cfg</h3>
<p>Create <code>server/myserver/cfg/server.cfg</code>:</p>
<pre><code>server.hostname "My Rust Server"
server.description "Welcome to my Rust server!"
server.url "https://yourwebsite.com"
server.headerimage "https://i.imgur.com/yourimage.png"
server.identity "myserver"
server.seed 12345
server.worldsize 4000
server.maxplayers 100
server.saveinterval 300
server.tickrate 30
# Gameplay
server.pve false
server.radiation true
server.stability true
decay.scale 1.0
# Performance
server.entityrate 16
server.planttick 60
server.planttickscale 1
# Global chat
server.globalchat true
server.chathistory 500
# Voice chat
voice.decay true
# RCON
rcon.password "YourSecurePassword"
rcon.web true
</code></pre>
<h2 id="parameters">Startup Parameters Reference</h2>
<h3>Essential Parameters</h3>
<pre><code>+server.ip "0.0.0.0" # Server IP (0.0.0.0 = all interfaces)
+server.port 28015 # Game port (UDP)
+server.hostname "Name" # Server name (appears in browser)
+server.identity "folder_name" # Server data folder name
+server.maxplayers 100 # Maximum players
+server.worldsize 4000 # Map size (1000-6000)
+server.seed 12345 # World seed (random if not set)
+server.saveinterval 300 # Autosave interval (seconds)
+server.tickrate 30 # Server tick rate (10-30)
+server.description "Text" # Server description
+server.url "https://url" # Server website
+server.headerimage "URL" # Server banner image
+rcon.ip "0.0.0.0" # RCON bind IP
+rcon.port 28016 # RCON port (TCP)
+rcon.password "password" # RCON password
+rcon.web true # Enable web/Rust+ RCON
</code></pre>
<h3>Gameplay Parameters</h3>
<pre><code>+server.pve false # PvE mode (true/false)
+server.radiation true # Radiation enabled
+server.stability true # Building stability
+server.secure true # Require VAC
decay.scale 1.0 # Decay rate multiplier
server.itemdespawn 180 # Item despawn time (minutes)
</code></pre>
<h3>Performance Parameters</h3>
<pre><code>+server.entityrate 16 # Entity network update rate
+fps.limit 60 # Server FPS limit
+gc.buffer 4096 # Garbage collection buffer
server.planttick 60 # Plant growth tick rate
server.planttickscale 1 # Plant growth speed
</code></pre>
<h2 id="plugins-mods">Plugins & Mods (Oxide/uMod)</h2>
<h3>Installing Oxide/uMod</h3>
<ol>
<li>Download uMod: <a href="https://umod.org/games/rust" target="_blank">uMod.org</a></li>
<li>Extract to server root directory</li>
<li>Files go directly into <code>/server/</code> directory</li>
<li>Restart server</li>
<li>Plugins folder created at <code>oxide/plugins/</code></li>
</ol>
<h3>Essential Plugins</h3>
<h4>Admin Tools</h4>
<ul>
<li><strong>Admin Radar:</strong> ESP-style admin radar</li>
<li><strong>Vanish:</strong> Invisible admin mode</li>
<li><strong>Better Chat:</strong> Chat formatting and moderation</li>
<li><strong>Admin Hammer:</strong> Building modification tool</li>
</ul>
<h4>Gameplay Enhancements</h4>
<ul>
<li><strong>Kits:</strong> Item kit system</li>
<li><strong>Teleportation:</strong> /home, /tp commands</li>
<li><strong>Clans:</strong> Clan/team system</li>
<li><strong>Economics:</strong> Server currency system</li>
<li><strong>Skip Night Vote:</strong> Vote to skip night</li>
</ul>
<h4>Protection</h4>
<ul>
<li><strong>Anti Cheat Enhanced:</strong> Cheat detection</li>
<li><strong>Raid Block:</strong> Prevent offline raiding</li>
<li><strong>No Give:</strong> Prevent admin abuse</li>
</ul>
<h4>Performance</h4>
<ul>
<li><strong>Auto Purge:</strong> Remove abandoned buildings</li>
<li><strong>Entity Cleanup:</strong> Remove excess entities</li>
</ul>
<h3>Installing Plugins</h3>
<pre><code># 1. Download .cs plugin file
# 2. Place in oxide/plugins/
cd /home/rust/server/oxide/plugins/
wget https://umod.org/plugins/Plugin.cs
# 3. Plugin auto-loads (or use oxide.reload PluginName)
# 4. Configure in oxide/config/PluginName.json
</code></pre>
<h3>Plugin Configuration</h3>
<p>Configs auto-generate in <code>oxide/config/</code> on first load.</p>
<pre><code># Edit config
nano oxide/config/Kits.json
# In-game or RCON
oxide.reload Kits
</code></pre>
<h2 id="troubleshooting">Troubleshooting</h2>
<h3>Server Won't Start</h3>
<h4>Missing Libraries (Linux)</h4>
<pre><code># Install required libraries
sudo apt update
sudo apt install lib32gcc-s1 libcurl4-gnutls-dev:i386
# If still issues
sudo apt install lib32stdc++6 libc6-i386
</code></pre>
<h4>Port Already in Use</h4>
<pre><code># Check ports
sudo netstat -tulpn | grep 28015
sudo lsof -i :28015
# Kill process or change port
+server.port 28016 +rcon.port 28017
</code></pre>
<h4>Permission Denied (Linux)</h4>
<pre><code>chmod +x RustDedicated
chmod +x start.sh
</code></pre>
<h3>Server Not in Browser</h3>
<ol>
<li><strong>Check firewall:</strong>
<pre><code>sudo ufw allow 28015/udp
sudo ufw allow 28016/tcp
sudo ufw allow 28017/tcp
</code></pre>
</li>
<li><strong>Verify ports open:</strong> <code>netstat -tulpn | grep Rust</code></li>
<li><strong>Wait 5-10 minutes:</strong> Can take time to appear</li>
<li><strong>Direct connect:</strong> Press F1, type <code>client.connect your.ip:28015</code></li>
</ol>
<h3>High RAM Usage</h3>
<ol>
<li><strong>Reduce worldsize:</strong> <code>+server.worldsize 3000</code></li>
<li><strong>Lower max players:</strong> <code>+server.maxplayers 50</code></li>
<li><strong>Increase saveinterval:</strong> <code>+server.saveinterval 600</code></li>
<li><strong>Use Auto Purge plugin</strong></li>
<li><strong>Regular wipes:</strong> Restart with fresh map weekly/monthly</li>
</ol>
<h3>Lag/Low FPS</h3>
<ol>
<li><strong>Reduce entity count:</strong> Use Entity Cleanup plugin</li>
<li><strong>Lower tickrate:</strong> <code>+server.tickrate 20</code> (default 30)</li>
<li><strong>Increase planttick:</strong> <code>server.planttick 120</code></li>
<li><strong>Monitor with:</strong> <code>perf 1</code> in console</li>
<li><strong>Upgrade hardware:</strong> Rust is resource-intensive</li>
</ol>
<h3>Map Wipe</h3>
<pre><code># Stop server
# Delete map file
rm server/myserver/proceduralmap.*
# Change seed (optional)
+server.seed 54321
# Start server (generates new map)
./start.sh
</code></pre>
<h3>Blueprint Wipe</h3>
<pre><code># Stop server
# Delete blueprint data
rm -rf server/myserver/UserPersistence/
# Start server
./start.sh
</code></pre>
<h2 id="performance">Performance Optimization</h2>
<h3>Server Configuration</h3>
<pre><code>server.tickrate 25 # Lower = better performance
server.entityrate 12 # Lower = less bandwidth
server.planttick 90 # Higher = less CPU usage
fps.limit 60 # Limit server FPS
gc.buffer 4096 # Garbage collection
</code></pre>
<h3>Map Size vs Performance</h3>
<ul>
<li><strong>3000:</strong> Small, 50-75 players, 8GB RAM</li>
<li><strong>4000:</strong> Medium, 100-150 players, 12GB RAM</li>
<li><strong>5000:</strong> Large, 200+ players, 16GB+ RAM</li>
<li><strong>6000:</strong> Huge, 300+ players, 24GB+ RAM</li>
</ul>
<h3>Scheduled Tasks</h3>
<pre><code>#!/bin/bash
# Auto-restart script with backup
# Backup
tar -czf backup_$(date +%Y%m%d).tar.gz server/myserver/
# Stop server
killall RustDedicated
sleep 10
# Update server
cd ~/steamcmd
./steamcmd.sh +login anonymous +force_install_dir /home/rust/server +app_update 258550 +quit
# Start server
cd /home/rust/server
./start.sh
</code></pre>
<h3>Crontab Auto-Restart</h3>
<pre><code># Edit crontab
crontab -e
# Restart daily at 6 AM
0 6 * * * /home/rust/restart.sh
# Save weekly at Sunday 5 AM
0 5 * * 0 tar -czf /backups/rust_$(date +\%Y\%m\%d).tar.gz /home/rust/server/myserver/
</code></pre>
<h2>RCON Management</h2>
<h3>RCON Tools</h3>
<ul>
<li><strong>RustAdmin:</strong> <a href="https://www.rustadmin.com/" target="_blank">RustAdmin.com</a></li>
<li><strong>RCONc:</strong> Web-based RCON</li>
<li><strong>Rust+:</strong> Official mobile app (requires +rcon.web true)</li>
</ul>
<h3>Common RCON Commands</h3>
<pre><code># Player management
kick "PlayerName" "Reason"
ban "PlayerName" "Reason"
banid "SteamID64"
unban "SteamID64"
listid # List banned IDs
status # Show connected players
# Server management
save # Manual save
server.writecfg # Save config
server.stop # Stop server
server.restart # Restart server
oxide.reload PluginName # Reload plugin
# Game settings
env.time 12 # Set time (0-24)
weather.rain 0 # Stop rain
airdrop.min_players 0 # Always allow airdrops
</code></pre>
<h2>Additional Resources</h2>
<ul>
<li><a href="https://wiki.facepunch.com/rust/" target="_blank">Official Rust Wiki</a></li>
<li><a href="https://umod.org/documentation" target="_blank">uMod Documentation</a></li>
<li><a href="https://www.corrosionhour.com/" target="_blank">Corrosion Hour (Community & Guides)</a></li>
<li><a href="https://www.rustafied.com/" target="_blank">Rustafied (News & Updates)</a></li>
<li><a href="https://discord.gg/rust-server-admins" target="_blank">Rust Server Admin Discord</a></li>
</ul>
<div style="background: #78350f; padding: 20px; border-left: 4px solid #f59e0b; margin: 20px 0; border-radius: 4px;">
<h3 style="color: #ffffff; margin-top: 0;"><i class="fas fa-exclamation-triangle" style="color: #fbbf24; margin-right: 8px;"></i>Important Notes</h3>
<ul style="color: #fef3c7; line-height: 1.8;">
<li>Always keep your server updated to the latest version</li>
<li>Make regular backups of your server configuration</li>
<li>Review and follow the game's End User License Agreement (EULA)</li>
<h3 style="color: #ffffff; margin-top: 0;">⚠️ Important Notes</h3>
<ul style="color: #fef3c7; line-height: 1.8; margin: 0;">
<li>Rust servers require significant resources (8GB+ RAM minimum)</li>
<li>Regular map wipes recommended (weekly/monthly)</li>
<li>Keep server updated via SteamCMD</li>
<li>Use strong RCON password</li>
<li>Monitor server performance regularly</li>
<li>Backup server data before updates</li>
</ul>
</div>
</div>
<p style="text-align: center; margin-top: 30px; color: #666;">
<em>Last updated: November 2024</em>
</p>

View file

@ -0,0 +1,67 @@
<?php
/**
* Rust Server Documentation
*/
?>
<h1>Rust Server Guide</h1>
<h2>Overview</h2>
<p><strong>Rust</strong> is available for hosting on our platform. This guide covers the basics of setting up and managing your Rust server.</p>
<div style="background: #1e3a5f; padding: 20px; border-left: 4px solid #3b82f6; margin: 20px 0; border-radius: 4px;">
<h3 style="color: #ffffff; margin-top: 0;">Quick Info</h3>
<ul style="color: #e5e7eb; line-height: 1.8;">
<li><strong style="color: #ffffff;">Game Key:</strong> rust_linux64</li>
<li><strong style="color: #ffffff;">Startup Command:</strong> <code style="background: #0f172a; padding: 2px 6px; border-radius: 3px; color: #a5b4fc;">-batchmode +server.ip %IP% %PORT% %PLAYERS% %HOSTNAME% %IDENTITY% %WORLDSIZE% %SEED% %SALT% %TICKRATE% %MAP% %BCK% %SAVEINTERNAL% %SECURE% +rcon.ip %IP% %RCON_PORT% %RCONWEB% %CONTROL_PASSWORD% -swnet %QUERY_PORT% -logfile output.txt</code></li>
<li><strong style="color: #ffffff;">Log File:</strong> <code style="background: #0f172a; padding: 2px 6px; border-radius: 3px; color: #a5b4fc;">output.txt</code></li>
<li><strong style="color: #ffffff;">Default Port:</strong> Not specified</li>
<li><strong style="color: #ffffff;">Max Players:</strong> 500</li>
</ul>
</div>
<h2>Getting Started</h2>
<p>To create a Rust server:</p>
<ol>
<li>Navigate to the <a href="/serverlist.php">Game Servers</a> page</li>
<li>Find <strong>Rust</strong> in the list</li>
<li>Select your preferred configuration (slots, duration, etc.)</li>
<li>Add to cart and complete checkout</li>
<li>Your server will be automatically provisioned within minutes</li>
</ol>
<h2>Server Configuration</h2>
<p>After your server is created, you can configure it through the control panel:</p>
<ul>
<li>Server settings and parameters</li>
<li>Player slots and limits</li>
<li>RCON/remote control access</li>
<li>FTP file access</li>
</ul>
<h2>Common Tasks</h2>
<h3>Starting Your Server</h3>
<p>Servers are automatically started after creation. You can stop/start your server from the control panel.</p>
<h3>Connecting to Your Server</h3>
<p>Use your server's IP address and port to connect from the game client.</p>
<h3>Managing Files</h3>
<p>Access your server files via FTP using the credentials provided in your control panel.</p>
<h2>Support</h2>
<p>If you need assistance with your Rust server:</p>
<ul>
<li>Check our <a href="/docs.php?action=view&doc=common-issues">Common Issues</a> guide</li>
<li>Contact support through your account dashboard</li>
<li>Visit the official Rust community for game-specific help</li>
</ul>
<div style="background: #78350f; padding: 20px; border-left: 4px solid #f59e0b; margin: 20px 0; border-radius: 4px;">
<h3 style="color: #ffffff; margin-top: 0;"><i class="fas fa-exclamation-triangle" style="color: #fbbf24; margin-right: 8px;"></i>Important Notes</h3>
<ul style="color: #fef3c7; line-height: 1.8;">
<li>Always keep your server updated to the latest version</li>
<li>Make regular backups of your server configuration</li>
<li>Review and follow the game's End User License Agreement (EULA)</li>
</ul>
</div>