Addendum to my post regarding the texture downloads:
Been working on making it work a bit better.
So far I have it working.
It uses some external programs and scripts that may not be installed on your system. Being unbuffer script from the expect package, awk, curl, and tee.
First run toribash from inside it folder and log the stderr
./toribash 2>&1 | tee stderr.log
Then run this mess in a separate terminal to actually download the textures as the player starts the round. Also inside the toribash folder
./unbuffer tail -f stderr.log | sed -un 's/.*http/http/p' | grep --line-buffered -v "'" | awk '{ system("curl -s --create-dirs " $1 " -o " $2) }'
It takes the stderr log and strips out what need then feeds it to curl to download.
The hard part I had was learning something about default buffering.
Note: the textures will not show up the first time you see a person, most of the time.
Ideally I would want to make a script for everyone, a lua script would be nice if it could work in multiplayer, and do downloads. I also see how to reduce the downloads by using the md5 hash that is sent with the texture line. Just save the hash with reference to the file it associated with, then compare and download when it changes. like head.tga and head.md5, hash stored in head.md5.
Last edited by Gulain; Feb 4, 2010 at 11:29 PM.