12-21-2009, 01:05 PM
Just wanted to help people out who have problems with their redirect, because i finally solved it after 2 hours of testing...
my problem:
every custommap returned a "map ... not found. disconnecting" error.
my config:
sv_download 1
sv_upload 1
sv_downloadurl "http://someurl/tf2"
running on a linux debian server btw
what i did wrong and how to solve it:
- i used the tar command (tar cfvj ...) to create .tar.bz2 files. i didn't see that the files had to be "file.bsp.bz2" at first. Renaming doesn't help out, the tar command and the bzip2 have different compressions!
-> if you haven't installed, install with "apt-get install bzip2" or similar commands. usage: "bzip2 filename.bsp" creates: filename.bsp.bz2 <-- this is the correct redirect file!
- i uploaded all the maps into the "http://someurl/tf2" directory.
-> in the serverlogs i discovered, that the game was looking in the maps/ subdirectory which didn't exist. So if your DL url looks like this: "http://someurl/tf2" create a folder and store your maps here: "http://someurl/tf2/maps"
Also, as mentioned in the thread somewhere:
- Check file permissions! if you create the bz2 files as root, your webuser probably can't read them. test it in your browser!
- Check if the sv_maxfilesize is large enough. insert a value which represents the biggest file in your directory!
my problem:
every custommap returned a "map ... not found. disconnecting" error.
my config:
sv_download 1
sv_upload 1
sv_downloadurl "http://someurl/tf2"
running on a linux debian server btw
what i did wrong and how to solve it:
- i used the tar command (tar cfvj ...) to create .tar.bz2 files. i didn't see that the files had to be "file.bsp.bz2" at first. Renaming doesn't help out, the tar command and the bzip2 have different compressions!
-> if you haven't installed, install with "apt-get install bzip2" or similar commands. usage: "bzip2 filename.bsp" creates: filename.bsp.bz2 <-- this is the correct redirect file!
- i uploaded all the maps into the "http://someurl/tf2" directory.
-> in the serverlogs i discovered, that the game was looking in the maps/ subdirectory which didn't exist. So if your DL url looks like this: "http://someurl/tf2" create a folder and store your maps here: "http://someurl/tf2/maps"
Also, as mentioned in the thread somewhere:
- Check file permissions! if you create the bz2 files as root, your webuser probably can't read them. test it in your browser!
- Check if the sv_maxfilesize is large enough. insert a value which represents the biggest file in your directory!