If you are like me and use IFSO to do your FLStats, then you need to only make a couple of changes to add the FLStat-Kills.exe to be run, composed and uploaded to your website.
- First download and place the flstat-kills.exe file in your FLStat directory (wherever flstat.exe is).
- I modified header.htt file (in the FLStat directory) between the h1 commands (not the title commands) to say
Freelancer Rankings by Level instead of just
Freelancer Rankings .
- I created another file (a copy of header.htt) renamed to header-kills.htt and modified that between the h1 commands to say
Freelancer Rankings by Kills .
- Where it states in IFSO, under Web Output tab, ensure there is a cmd file under
Post -generation script file to run: . I renamed the one that came with FLStat from
FLStat.cmd to
Update.cmd so I wasn't messing with the original.
- I was not sure the Update.cmd file ran in the FLStat directory so I ensure it does with a cd command before all executable commands.
- In Update.cmd file I had the
flstat.exe and
copy lines REM'd out because IFSO is doing that. I removed both REMs but used
flstat-kill.exe instead of
flstat.exe . In the copy command line I substituted
flstat-kills.html for
flstat.html and
header-kills.htt for
header.htt .
- You should have already had a line for the NcFTP ncftpput.exe file. All you need to do is copy that line and replace
flstat-kills.html for
flstat.html . This will upload both html files, flstat and flstat-kills, to your web location.
Here is what my Update.cmd, run last by IFSO during FLStat generation, looks like:<pre><font size=1 face=Courier>@echo off
REM Available Options:
REM -top <N> - Show only top N characters
REM -rank <N> - Show only characters at rank N or higher
REM -days <N> - Show only characters which have played within the last N days
REM -pos - Show position of each character (e.g. 1, 2, 3, etc)
REM -path <dir> - Override the default location of the Multiplayer Accounts
REM -active <N> - Highlight characters that have logged in within the last N hours
REM -cheats <N> - Highlight cheaters, where N is the sensitivity (e.g. 30)
REM -nice <N> - Run with lower CPU usage, for example: -nice 50
cd c:\games\freelancer\flstat
FLstat-Kills.exe -days 2 -pos -active 4 -cheats 40 -nice 50 > middle.txt
copy /B header-kills.htt+middle.txt+footer.htt flstat-kills.html
c:\Internet\NcFTP\ncftpput -a -f c:\games\freelancer\flstat\ftp.txt \ c:\games\freelancer\flstat\flstat.html
c:\Internet\NcFTP\ncftpput -a -f c:\games\freelancer\flstat\ftp.txt \ c:\games\freelancer\flstat\flstat-kills.html </font></pre>I install files in logical places on the hard drive
, the default location for FL is under \Program Files\Microsoft Games\Freelancer\. I installed FLStat under the Freelancer directory.
To ensure everything is working right put a
pause in the last line because when this cmd file is run, the DOS window closes as soon as all the commands are executed. The pause will leave the window up so you can read everything before closing it yourself. Take the
pause out when you are done troubleshooting. Good luck!
EDIT: A line feed was missing in the code. Also forget to say
great work Cryogenius!!
_____________
Earendil
SysAdmin of Boston Freelancer server
Server community website & forum:
EarendilsPlace.net (
server rules)
Edited by - Earendil on 8/5/2004 11:43:35 AM