Understanding Templates
A template is a complete game server installation stored on a network server. When users create a new game server, GamePanelX copies files from the template, significantly reducing deployment time.Templates must be created on each network server where you want to deploy game servers of that type.
Template Listing
The Templates page displays all templates for a specific game:| Column | Description |
|---|---|
| Game | Game name for this template |
| Date Added | Template creation date (MM/DD/YYYY) |
| Default | Whether this is the default template for the game |
| Status | Current installation status |
| Description | User-provided description |
| Manage | Edit or delete the template |
Template Status
Complete
Template is ready for use
Installing
Template installation in progress
Steam Running
SteamCMD installation in progress
Failed
Template installation failed
The template status automatically updates every 5 seconds via AJAX polling while templates are being installed.
Creating Templates
There are three methods for creating templates:Method 1: Steam Installation (Automatic)
For games configured with Steam support:Configure Settings
- Description: Enter a descriptive name
- Set as Default: Check to make this the default template
- Installation Method: Steam installation is automatic
- hldsupdatetool: Legacy Steam installer (method 1)
- SteamCMD: Modern Steam installer (method 2, recommended)
Steam installations run in a background screen session labeled
gpxauto_[template_id]. You can attach to monitor progress:Method 2: Automatic Installation
For games with installation mirrors and commands configured:Automatic Process
GamePanelX executes the configured installation commands:
- Downloads game files from mirrors
- Extracts archives
- Runs setup commands
- Configures permissions
AutoInstall command:
Method 3: Manual Archive Upload
For games requiring manual installation:Create Template from Path
In the template creation form:
- Enter the full path to the uploaded files
- Add a description
- Set as default if desired
Template Installation Process
When a template is created, GamePanelX follows this workflow:- Database Entry: Creates a template record with status
runningorsteam_running - Remote Command: Sends installation command to the network server
- Installation Execution: Network server executes the installation in a screen session
- Callback: Upon completion, the remote server calls back to update status
- Status Update: Template status changes to
completeorfailed
Callback System
The remote server communicates installation status via HTTP callbacks to:The callback token is randomly generated for security and validated against the database before accepting status updates.
Managing Existing Templates
Click any template to access management options:Edit Template
- Update description
- Change default status
- View installation details
Delete Template
Deleting a template:- Removes the database entry
- Executes the
DeleteTemplatecommand on the remote server - Removes template files from the network server
Default Templates
Each game can have one default template per network server. When users create a new game server, the default template is automatically selected. To change the default template:- Edit the template you want to set as default
- Check “Set as Default”
- Save changes
Setting a new default automatically removes the default flag from the previous default template.
Template Storage
Templates are stored on network servers in the GamePanelX templates directory:Troubleshooting Templates
Template Stuck in “Installing” Status
- SSH to the network server
- Check for running screen sessions:
- Attach to the installation screen:
- Review installation output for errors
Template Installation Failed
Steam Installation Issues
For Steam-related problems:- Verify Steam credentials in System Settings
- Check Steam Guard authentication code
- Ensure SteamCMD is installed on the network server
- Review Steam installation logs
Steam installations may require interactive authentication the first time. You may need to SSH to the server and complete the Steam Guard challenge manually.
Template Best Practices
Use Descriptive Names
Include version numbers or configuration details in template descriptions (e.g., “CS:GO - Updated 2026-03”)
Test Before Defaulting
Create a test server from new templates before setting them as default
Keep Templates Updated
Regularly create new templates when games receive major updates
Multiple Templates
Maintain multiple templates with different configurations (vanilla, modded, competitive)