Spray 'n Display (incl. Web Panel)
2 Attachment(s)
Spray 'n Display allows you to see all the sprays that have been used on your server in a simple web panel, along with admin tools to block inappropriate sprays
Updating 1.0 to 1.1
Links: Spray Tracker in action. (XenForo) DevIL ImageMagick Requirements:
Some sprays may sometimes fail to convert, the cause is unknown. Credits: Original idea and reference: Ubercow and the rest at nom-nom-nom.us etc Original code: Darkimmortal, Geit - Gamingmasters.co.uk vBulletin intergrate to Barebones conversion of web script: Reag - Reager.org, LasPlagas (CrudeOil) - rrerr.me Installation: 1l. For linux, you are first required to compile vtfconv with the DevIL library, to do this just run the compile file which is included within the package. 1w. For Windows, simply extract vtfconv.exe and DevIL.dll to your windows\system32 folder or any other folder in your system PATH. 2. You now need to setup the webpanel, see below for installation instructions for Barebones and vBulletin installation 3. Setup the following cron (windows users can use cronw or equivalent) job: */5 * * * * php server/path/to/sprays/sprays/cron/sprays.php &> /dev/null
5. Setup your sourcemod databases.cfg to set it so the plugin can connect to the mysql database. 6. Upload plugin once done and change map to get player details, if no errors player info should now be presented inside the mysql database. If all went right your system should now be running. Barebones Webpanel Setup 1. First you need to edit the settings file (webpanel/barebones/settings.php), this holds the INdir, OUTdir, FTP and MySQL details.
3. Please now import sprays.sql into your created database, if you haven't created one, Do it now, otherwise step 2 was a waste of a time. 4. Remember to edit index.php's line 31, this is used for the simple login system to allow admins to block sprays from view on the server. vBulletin Webpanel Setup 1. First you need to edit the settings file (webpanel/vbulletin/settings.php), this holds the INdir, OUTdir, FTP and MySQL details and the GID's of the admin groups.
2. Proceed to upload the following folders to your webspace under the dir {VBULLETINROOT}/sprays/: cron, css, images, inc, js and (If on Linux) CHMOD cron/log to 777, this will enable the cron job to print out a simple log of every time it downloads a file to see if it failed or not. 3. Please now import sprays.sql into your created database, if you haven't created one, Do it now, otherwise step 2 was a waste of a time. ChangeLog: 1.1:
|
Re: Spray Tracker
Hope you all enjoy.
|
Re: [ANY] Spray Tracker
Nice! :)
|
Re: [ANY] Spray Tracker
Enjoy :)
|
Re: Spray 'n Display (incl. Web Panel)
Added support for Windows Servers, changed the thread title, and fixed the public CVar not actually being in the plugin.
|
Re: Spray 'n Display (incl. Web Panel)
Should add that Windows users will need to set up an equivalent scheduled task or use cronw.
|
Re: Spray 'n Display (incl. Web Panel)
i get this error when attempting to compile for linux
Code:
vtfconv.c:47: error: âILuintâ undeclared (first use in this function) |
Re: Spray 'n Display (incl. Web Panel)
Looks epic ;)
|
Re: Spray 'n Display (incl. Web Panel)
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.
Thanks for the plugin though, its an awesome concept that a lot of server admins will love!! |
Re: Spray 'n Display (incl. Web Panel)
Quote:
Quote:
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). |
All times are GMT -4. The time now is 19:38. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.