Raised This Month: $12 Target: $400
 3% 

Python script to generate maplist.txt and mapcycle.txt


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Sarrus
Member
Join Date: May 2020
Location: France
Old 02-22-2021 , 11:44   Python script to generate maplist.txt and mapcycle.txt
Reply With Quote #1

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
__________________
Discord Coding Server | Steam Profile | Community Website | Github Profile

Taking paid requests (add me on Discord)

Last edited by Sarrus; 02-22-2021 at 11:46. Reason: Changed the title
Sarrus is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 12:21.


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