Skip to content

Store Installation Instructions

Keith Warren edited this page Nov 25, 2016 · 1 revision

This page will teach you how to install the Sourcemod Store onto any Sourcemod server.

Requirements before starting:

  • Metamod/Sourcemod Installed with no errors. (1.8 or later preferred)
  • Database with the latest version of MySQL or a stable branch.

Install the required extensions & plugins

(None at the moment)

Setting up the database

Next, we will set up our MySQL database. If you rent your server from a Game Server Provider (GSP), they should provide a MySQL server and phpMyAdmin. If you are installing this on a dedicated server or a VPS, you'll need to configure the MySQL server by yourself. Google has thousands of tutorials on how to do it.

Let's start by creating a database. Note: Some GSPs already create a database for you. If you already have a database, you can skip this step. Open your phpMyAdmin and in the top bar navigate to Databases.

Creating Database

Type store in the database name and click Create. (any name will do as you'll just set the name in the database config below)

Once you've created the database, the plugin should be able to handle table creation.

Installing the Store plugin

Note: GAME_DIRECTORY = csgo, tf, cstrike, left4dead, left4dead2, dods (the games main directory)

Download the store package from the AlliedModders thread and extract it to GAME_DIRECTORY/addons/sourcemod/.

Open GAME_DIRECTORY/addons/sourcemod/configs/databases.cfg and before the last } paste this:

"store"
{
    "driver"        "mysql"
    "host"          "<your-database-host>"
    "database"		"<your-database-name>"
    "user"		    "<username>"
    "pass"		    "<password>"
}

Make sure to fill your database host, name, user and password, your database name is what you created above while in Phpmyadmin.

Restart your server and type !store in chat. If it doesn't work, navigate to GAME_DIRECTORY/addons/sourcemod/logs or GAME_DIRECTORY/addons/sourcemod/logs/store and open the latest store log and/or error logs. If you see an error like: Connection to SQL database has failed, it means that your entry in databases.cfg was wrong.

Installing Web Panel

The web panel is an optional asset for the Sourcemod Store that you can use to manage categories & items, import categories & items, manage users and find errors in the installation.

The installation tutorial is available here: https://github.com/SourceMod-Store/WebPanel-Core/wiki/Installing-and-Updating

Conclusion

Hope this tutorial was clear enough for a smooth installation. If you have any questions then post on the forum below: https://forums.alliedmods.net/forumdisplay.php?f=157