View Single Post
Darkimmortal
Senior Member
Join Date: Aug 2008
Old 05-26-2010 , 16:55   Re: Spray 'n Display (incl. Web Panel)
Reply With Quote #10

Quote:
Originally Posted by Inflikted View Post
question, I dont really code for sourcemod or anything. Only for php. So this may be entirely wrong. But wouldn't it be more efficient for the gameservers to send the sprays to a centralized location using sockets extension rather than having the web server do it and entering in all the ftp info's/folders/etc. and then have the cron only convert the files from vtf to gif, rather than trying to mass connect to so many different ftp servers. I only say this because we run 16 servers across 4 different dedicated hosts, I'm not sure how well cron would do in completing the task quickly and reliably.
Just modify it to load a different config based on the command line args sent to the script and have 4 cron jobs set up - better to take as much load off the gameserver as possible

Quote:
Originally Posted by Inflikted View Post
i get this error when attempting to compile for linux

Code:
vtfconv.c:47: error: âILuintâ undeclared (first use in this function)
vtfconv.c:47: error: (Each undeclared identifier is reported only once
vtfconv.c:47: error: for each function it appears in.)
vtfconv.c:47: error: expected â;â before âImgIdâ
vtfconv.c:48: error: âILenumâ undeclared (first use in this function)
vtfconv.c:48: error: expected â;â before âErrorâ
vtfconv.c:58: error: âIL_VERSION_NUMâ undeclared (first use in this  function)
vtfconv.c:58: error: âIL_VERSIONâ undeclared (first use in this  function)
vtfconv.c:70: error: âImgIdâ undeclared (first use in this function)
vtfconv.c:89: error: âIL_FILE_OVERWRITEâ undeclared (first use in this  function)
vtfconv.c:90: error: âIL_RGBAâ undeclared (first use in this function)
vtfconv.c:90: error: âIL_UNSIGNED_BYTEâ undeclared (first use in this  function)
vtfconv.c:99: error: âIL_NUM_IMAGESâ undeclared (first use in this  function)
vtfconv.c:110: error: âIL_FALSEâ undeclared (first use in this function)
vtfconv.c:118: error: âErrorâ undeclared (first use in this function)
Do you have DevIL installed?

On Fedora simply 'yum install DevIL DevIL-devel' and on other distros you will probably need to build it yourself (Debian particularly has too old a version in its repos).
__________________

Last edited by Darkimmortal; 05-28-2010 at 07:53.
Darkimmortal is offline