Protip for fastdl (no need for complicated apache config):
Code:
# mkdir /path/to/your/webroot/svendl
# mount --bind /path/to/svencoop_adddon /path/to/your/webroot/svendl
In server.cfg:
Code:
sv_downloadurl "http://your/webroot/svendl"
To make the mount permanent:
Code:
# echo "/path/to/svencoop_adddon /path/to/your/webroot/svendl none bind 0 0" >> /etc/fstab
Fastdl pitfalls on Linux:
Make sure the case in the mapfilenames and maps/*.res files match the actual files on disk, otherwise the file is not served as Linux uses case sensitive filesystems. A resource specified as "sound/example/Hello.ogg" can't be downloaded if the actual file on disk is named "sound/example/hello.ogg". This can be a bit of a pain to correct as some maps released are a wild mix of upper and lowercase letters and often the bundled .res files don't match the actual files. This needs to be corrected manually. In the best case everything is lowercase and does not use special chars (besides - or _) or spaces in filenames. Files with spaces in their names or folders won't get served either.
Protip for soundcache fastdl:
Code:
$ mkdir /path/to/svencoop_adddon/maps/soundcache
# mount --bind /path/to/svencoop/maps/soundcache /path/to/svencoop_adddon/maps/soundcache
To make the mount permanent:
Code:
# echo "/path/to/svencoop/maps/soundcache /path/to/svencoop_adddon/maps/soundcache none bind 0 0" >> /etc/fstab
Protip for generating .res files:
Use resguy
Protip to fix permissions and remove empty files (empty files cause a never ending "validating/precaching resources" on connect):
Code:
$ find /path/to/svencoop_adddon -type d -exec chmod 755 {} +
$ find /path/to/svencoop_adddon -type f -exec chmod 644 {} +
$ find /path/to/svencoop_adddon -type f -size 0 -exec rm '{}' \;