Skip to content

Generates umc_mapcycle.txt with mapnames and their surf tiers with only those maps that have been zoned in influx timer

Notifications You must be signed in to change notification settings

noillt/umc-mapcycle-gen

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

umc-mapcycle-gen

Generates umc_mapcycle.txt with mapnames and their surf tiers with only those maps that have been zoned in influx timer

Requirements:

  • MySQL Database
  • noillt/maptier database of maps
  • influx timer database being in MySQL
  • python3 -m pip install PyMySQL

Configuration:

touch mysql-config.ini & chmod 0600 mysql-config.ini
vim mysql-config.ini

mysql-config.ini

[mysql]
host = 127.0.0.1
user = user
password = pass
database = db

Example

python3 umc_mapcycle.py

Output:

umc_mapcycle
{
    "Tier 1"
    {
        "surf_year3000" { display "surf_year3000 - Tier 1" }
        "surf_zoomathon" { display "surf_zoomathon - Tier 1" }
        "surf_zor" { display "surf_zor - Tier 1" }
    }
    "Tier 2"
    {
        "surf_squirrelsonvacation" { display "surf_squirrelsonvacation - Tier 2" }
        "surf_stonks" { display "surf_stonks - Tier 2" }
        "surf_the_gloaming" { display "surf_the_gloaming - Tier 2" }
    }
    "Tier 3"
    {
        "surf_kitsune2" { display "surf_kitsune2 - Tier 3" }
        "surf_slob2_fix" { display "surf_slob2_fix - Tier 3" }
    }
}

Automating

Create a cron:

0 0 * * * /path/to/umc_mapcycle.py > /path/to/cstrike/umc_mapcycle.txt

About

Generates umc_mapcycle.txt with mapnames and their surf tiers with only those maps that have been zoned in influx timer

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages