AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Source Servers (SRCDS) (https://forums.alliedmods.net/forumdisplay.php?f=130)
-   -   Python script to generate maplist.txt and mapcycle.txt (https://forums.alliedmods.net/showthread.php?t=330814)

Sarrus 02-22-2021 11:44

Python script to generate maplist.txt and mapcycle.txt
 
maplistGenerator.py


Simple python script to update and maintain the mapcycle and maplist files for games such as CS:GO.


What it can do:
  1. Fetch the maps in the maps folder (including the workshop folder) and generate mapcycle.txt and maplist.txt accordingly.
  2. It supports a blacklist of the maps to avoid adding non needed game default maps.
  3. It will show you how many maps were added, and how many maps were removed.


Requirements:
  1. python 3 (Was tested only on python 3.6.9 but other versions should work as well).


Usage:
  1. Edit the gameRootFolder variable in maplistGenerator.py to point directly into the game root folder, relative to the maplistGenerator.py script (Only / as a separator!).
  2. You can also edit the blackListPath parameter to blacklist default files you don't want to add to the fastdl.
  3. Then you can run the maplistGenerator.py script, and it should update your mapcyclte.txt and maplist.txt files.
  4. You can also run the script with the workshopparameter, like so: python3 maplistGenerator.py workshop, which will make the script look through the workshop folder as well.

DOWNLOAD/GITHUB REPO


All times are GMT -4. The time now is 23:41.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.