Skip to content

noillt/maptier

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

maptier

Get surf map tier from database (chat/console)

Requirements

  • Sourcemod and Metamod
  • MySQL Database connected to the server (sourcemod/configs/databases.cfg)
  • morecolors.inc (For compiling only)

Setup

  1. Grab the latest release from the release page or
    git clone https://github.com/noillt/maptier.git

Prepare the database

  1. Create a new database or choose the one you're already using
  2. Import surf map tiers into the database:
    mysql -u username -p database < maplist.sql

Plugin installation

  1. Place plugins and translations into addons/sourcemod/
  2. Set maptier-db in addons/sourcemod/configs/databases.cfg
"maptier-db"
{
    "driver" "mysql"
    "host" "127.0.0.1"
    "database" ""
    "user" ""
    "pass" ""
}
  1. Restart the server or type sm plugins load maptier in the console to load the plugin.

Configuration

  • You can modify the phrases in addons/sourcemod/translations/maptier.phrases.txt
  • Change which database is used in addons/sourcemod/configs/databases.cfg (maptier-db)

Usage

# In chat:
!tier / !tier <mapname>

# In console
sm_tier / sm_tier <mapname>

Notice

maplist.sql is a direct replica of OuiSURF/Surf_Maps maintained spreadsheet of all the maps.
We will be updating maplist.sql regurarily to match it
Current map count: 819

Latest changes

[0.0.7] - 2023-12-10

Added

  • New maps to maplist.sql
    • Current map count: 819