Watch
-
Add Favorite
-replaced all os and os.path functions with path
-fixed remove() bugs
( Previous Versions )
Description
Why
Let's say you have a folder with a lot of files in that you want to add to downloadables. Maybe this folder also has subfolders and everything. Now it can be very annoying to add them one by one. Thats what easydllib is for.
Interface
Usage
If you don't understand the example above:
import easydllib:
This imports the library to be used
downloads = easydllib.downloadables():
This creates a class that will be used by this addon
downloads.add('/sound/manysounds/',['ztmp','wav']):
This adds all files in the folder '/sound/manysounds/' including subfolders to the list, except files ending with 'ztmp' or 'wav'. The list of endings to ignore is optional!
downloads.apply():
This should be called on load() and es_map_start(event_var) as its the function that actually fills the stringtable.
downloads.remove('/sound/manysounds/somefolder/'):
This removes a folder/file from the downloadables list.
Many Thanks
To Roach^Flo: Without his huge mental support I wouldn't have been able to write this lib. He was a great help in a hard time :D
Let's say you have a folder with a lot of files in that you want to add to downloadables. Maybe this folder also has subfolders and everything. Now it can be very annoying to add them one by one. Thats what easydllib is for.
Interface
class downloadables: |
Usage
import easydllib |
If you don't understand the example above:
import easydllib:
This imports the library to be used
downloads = easydllib.downloadables():
This creates a class that will be used by this addon
downloads.add('/sound/manysounds/',['ztmp','wav']):
This adds all files in the folder '/sound/manysounds/' including subfolders to the list, except files ending with 'ztmp' or 'wav'. The list of endings to ignore is optional!
downloads.apply():
This should be called on load() and es_map_start(event_var) as its the function that actually fills the stringtable.
downloads.remove('/sound/manysounds/somefolder/'):
This removes a folder/file from the downloadables list.
Many Thanks
To Roach^Flo: Without his huge mental support I wouldn't have been able to write this lib. He was a great help in a hard time :D
Installation
Download the zip archive and unpack it into your games root folder (eg: cstrike). The file easydllib.py should be in the folder: /addons/eventscripts/_libs/python/Version Notes For 6 Final (Announce this update)
Updated on: 2008-05-19 12:03:49 EST-replaced all os and os.path functions with path
-fixed remove() bugs
( Previous Versions )
Addon Details
Upload Addon