Installation
Jump to navigation
Jump to search
This article will lead you through the installation process of GExtension.
Contents
Web
First, you have to install GMOD Web.
- Download the installation files from ScriptFodder
- Edit config.php
- Protocol: 'http' or 'https'. Only use 'https' if you have a valid SSL certificate.
- SteamAPI: Key: Get your API Key from Steam
- Timezone: Select the correct timezone from this site
- MySQL: Insert IP, port, user, password and database
- SMTP (optional): Insert mailserver, port, username, password, alias, security and method. You can use outlook.com if you do not have your own mailserver.
- Upload the files to your webserver
- Set directory permissions (Linux)
- Open the directory on your webserver using a browser
- Press "Retrieve" to get your license key
- Press "Start"
Linux Only
- Set Permissions:
cd path/to/gextension sudo chown www-data:www-data * sudo chmod -r 777
Troubleshooting
"Could not update" + permission error
- Permissions are not set up correctly. Repeat step 4.
"Access denied for user 'mysqluser'@'123.12.31.123' (using password: YES)"
- You are using a MySQL user that doesn't has access. This is caused by wrong password, not whitelisted IP or insufficient permissions to the database.
Lua
After installing the web part, you can now install the Lua addon.
- Open GMOD Web with your webbrowser
- Click on the bullhorn (further named "Admin") -> Settings -> Update
- Click on the "Lua" button and save the ZIP file
- Extract the files to a folder and navigate to "gextension/lua/config/gextension"
- Edit sh_config.lua to your needs. Required: WebURL
- Edit sv_config.lua and insert your MySQL data (same that you used for GMOD Web)
- Upload the folder into your server's addon folder
- Restart your server
The Lua installation is now finished and you should see that GExtension has connected to the database in the console. But to work correctly, you now need to assign your server to a serverbundle.
- Open GMOD Web with your webbrowser
- Navigate to Admin -> Settings -> Servers
- Create a new serverbundle with a fitting name (for example "TTT") and select your server
- After five seconds, you can see in the console, that the server found the bundle
Import users/bans from ULX or ServerGuard
Make these steps before players connect to your server.
- Connect to your server
- Press F10 to open the console and run the command:
- gex_import_ulib for ULX
- gex_import_serverguard for ServerGuard
Troubleshooting
"Access denied for user 'mysqluser'@'123.12.31.123' (using password: YES)"
- You are using a MySQL user that doesn't has access. This is caused by wrong password, not whitelisted IP or insufficient permissions to the database.
GExtension is not initialized/Could not initialize
- Take a look in the SERVER-console for errors. You may forgot to follow the last 4 steps.
I lost my rank on the server
- You most likely forgot to also set you a rank for the serverbundle. Navigate to Search -> Your Pofile and click on the pencil.