Installation Guide
This page provides a comprehensive guide for installing the Lilia framework on your Garry's Mod server using Steam Workshop.
Overview
The installation system provides a comprehensive framework for deploying and configuring the Lilia roleplay framework on Garry's Mod servers, serving as the essential setup infrastructure that enables seamless integration with Steam Workshop content and server management systems. This system handles sophisticated dependency management with automatic detection and resolution of required addons, ensuring all framework components load in the correct order and maintain compatibility across different server configurations. The installation process features advanced validation mechanisms with prerequisite checking, version compatibility verification, and conflict detection that prevent common setup issues and ensure stable server operation from the initial deployment. It includes comprehensive configuration management with automatic file generation, permission setup, and database initialization that streamlines the server setup process and reduces manual configuration requirements. The system provides robust error handling with detailed logging, troubleshooting guidance, and rollback capabilities that enable administrators to quickly identify and resolve installation issues. Additional features include integration with Steam Workshop's subscription system, automatic update management, and compatibility checking with popular server management tools, making it essential for maintaining a stable and up-to-date Lilia server environment that provides optimal performance and reliability for roleplay communities.
Important Note
Lilia runs beneath a roleplay schema. After installing Lilia, you must also install a schema and start your server using that schema's gamemode (for example,
+gamemode skeleton
).
Prerequisites
Before proceeding with the installation, ensure you have the following requirements met:
System Requirements
-
A Working Garry's Mod Server: Ensure your server is properly configured and running without issues.
-
Basic Server Administration Knowledge: Familiarity with managing a Garry's Mod server is recommended.
-
Command Line Proficiency: Basic understanding of command-line operations is helpful for troubleshooting.
Administration Tools
- Admin Menu: Lilia includes a built-in admin menu for logging, tickets, and teleport tools. SAM is also compatible. ULX is not supported because its CAMI library is outdated.
Development Tools (Optional)
-
Code Editor: For customization and development work, consider using one of these editors:
-
Visual Studio Code - Free, highly extensible with excellent Lua support
- Notepad++ - Lightweight and fast for quick edits
- Sublime Text - Fast and customizable editor
- ZeroBrane Studio - Specialized Lua IDE with debugging support
Installation Steps
Step 1: Server Preparation
Purpose
Prepare your Garry's Mod server environment for Lilia framework installation.
Requirements
- Ensure your Garry's Mod server is properly installed and operational
- Verify server connectivity and basic functionality
- Confirm you have administrative access to server configuration
Setting Up a Local Server
For a comprehensive guide on setting up a local Garry's Mod server, refer to this excellent tutorial:
- How to host a Garry's Mod Server - Complete guide covering SteamCMD installation, configuration, and workshop addons
Creating a Startup Script
Create a start.bat
file in your server directory with the following content for easy server launching:
@echo off
:srcds
echo [%time%] srcds started.
start /wait srcds.exe -console -game garrysmod +map gm_flatgrass +gamemode skeleton +maxplayers 16
echo [%time%] WARNING: srcds closed or crashed.
timeout /t 1 /nobreak >nul
goto srcds
Note: Replace
gm_flatgrass
with your preferred map and adjust+maxplayers 16
as needed. The script will automatically restart the server if it crashes.
Step 2: Installing Lilia Framework via Steam Workshop
Purpose
Install the Lilia framework using Steam Workshop for automatic updates and dependency management.
Procedure
-
Access Lilia Framework on Steam Workshop:
Visit the official Lilia Framework Workshop page: https://steamcommunity.com/sharedfiles/filedetails/?id=3527535922
-
Subscribe to Lilia:
- Click the "Subscribe" button on the Workshop page
- The addon will automatically download to your Garry's Mod installation
- Workshop ID:
3527535922
Step 3: Configuring Server Workshop Integration
Purpose
Configure your server to download and use the Lilia framework from Steam Workshop.
Configuration Steps
-
Server Workshop Setup:
Since Lilia is installed via Workshop on your local Garry's Mod client, you need to configure your server to download and use Workshop addons.
-
Configure Server Workshop Collection:
Create or use a Steam Workshop collection that includes the Lilia Framework. Note the Workshop Collection ID.
-
Update Server Startup Options:
You need to modify your server's startup parameters (also called command-line arguments or launch options). These are typically set in your server hosting control panel or startup script.
Option 1: Using a Workshop Collection (Recommended)
Option 2: Using Individual Workshop Items
Important: These are command-line parameters that must be added to your server's startup options, not to
server.cfg
. For Option 1, replace<YourCollectionID>
with your Workshop collection ID. For Option 2, the Lilia Framework Workshop ID is3527535922
. -
Verify Installation:
The server will automatically download and extract the Lilia framework when it starts, placing it in the correct
garrysmod/gamemodes/lilia
directory.
Step 4: Installing a Roleplay Schema
Purpose
Install and configure a roleplay schema to provide gameplay content and mechanics for your Lilia-powered server.
Schema Selection
Select a schema that fits your server theme:
- Skeleton Schema
- GitHub Repository
- Direct Download
Installation Procedure
-
Download the Schema:
Visit the schema's GitHub repository or use the direct download link, and download the ZIP file or clone the repository.
-
Extract and Upload:
Extract the schema files locally, then upload the extracted folder to your server:
-
Configure the Schema:
Customize the following directories as needed for your server's gameplay:
Step 5: Launching Your Server
Purpose
Configure and launch your server with the installed Lilia framework and schema.
Launch Configuration
-
Set the Startup Gamemode:
Edit your server's startup parameters so the server boots directly into your chosen schema:
Example:
-
Start the Server:
Launch or restart your Garry's Mod server. Lilia will load as the framework beneath the schema.
-
Verify the Installation:
Watch the console for a line such as:
If no errors appear and the schema loads, you're ready to play.
Troubleshooting
This section provides solutions for common installation and configuration issues.
Common Issues and Solutions
Issue: "Gamemode 'skeleton' is missing"
- Solution: Ensure your schema is properly installed in
garrysmod/gamemodes/
. Check that the folder name matches exactly (case-sensitive).
Issue: Workshop items not downloading on server
- Solution: Verify that your server has internet access and that the Workshop parameters are correctly set in your startup options, not in
server.cfg
.
Issue: "Lilia framework not found"
- Solution: Make sure you've subscribed to the Lilia Workshop addon on your Steam account and that the server has downloaded it. Check server console for Workshop download messages.
Issue: Server won't start with new gamemode
- Solution: Ensure the
+gamemode <SchemaName>
parameter is correctly set in your server startup options.
Issue: Missing dependencies or Lua errors
- Solution: Check that all required addons are installed and that you're using compatible versions of Garry's Mod and any required dependencies.
Getting Help
If you encounter issues not covered here:
- Check Server Console: Review detailed error messages in your server console
- Community Support: Visit the Lilia Discord for community assistance
- GitHub Issues: Review the GitHub Issues for known problems and solutions