Important Message

You are browsing the archived Lancers Reactor forums. You cannot register or login.
The content may be outdated and links may not be functional.


To get the latest in Freelancer news, mods, modding and downloads, go to
The-Starport

How-To: Automatic Upload of FLstats...

Here SysOps can list their MultiPlayer server info and users can send feedback to their SysOps. Or just talk about the MultiPlayer servers they play on. This is not about MultiPlayer in general - please use the MultiPlayer Forum for that!

Post Thu Sep 25, 2003 11:27 am

How-To: Automatic Upload of FLstats...

Do you use FLstat , but don't/can't run a webserver on the same machine as FLserver? Do you have to manually upload the "flstat.html" file to your own webspace, but find it tedious? If so, then I just may have the solution for you:

The trick is to find a program that let you upload from the command line, and then you could make it do it from the "update.cmd" file... I do something very similar for uploading the Global Stats from my Linux box. Have a look at NcFTP - download and install the Windows client (you may be able to find other alteratives). Then, you want to be using the command "ncftpput" in your "update.cmd". For example:
<pre><font size=1 face=Courier> /path/to/NcFTP/ncftpput -a -f ftp.txt remote/path flstat.html </font></pre>
The line will upload the file "flstat.html" to your ftp server (in ASCII mode), into the directory "remote/path". The file "ftp.txt" contains the following lines:
<pre><font size=1 face=Courier> host ftp.myhost.com
user myusername
pass mypassword </font></pre>
IMPORTANT: Be very careful about your security - your password is stored on the computer here, so you must make sure that no one can get to it!

And that should be about it. Hope this is useful to someone...

Cryo.

Cryogenius - Author of FLstat - Freelancer Rankings for the Web.

Edited by - Cryogenius on 7/20/2004 2:08:46 AM

Post Sun Sep 28, 2003 5:33 pm

Alternatively, you could use the simple "copy" command to transfer the stats file to a shared or mapped drive on another machine. For example:
<pre><font size=1 face=Courier> copy c:\flstat\flstat.html \\webserver\freelancer\stats.html </font></pre>
This assumes that your webserver is on the same network as your game server.

Edited by - Cryogenius on 7/20/2004 2:10:51 AM

Post Mon Jul 19, 2004 2:08 pm

Another tip, sent to me by Jamesy of Alpha Proxima:

I will bring your attention to a smashing program that I've found that does the uploading in the background. Its a freebie (not a demo) called Tiny Up Loader v1.4. It's a nice Windows environment to upload the data and it's not dependant on any knowledge of altering the files at all, you simply put in the file that is to be auto uploaded and the destination and you're off.


See the Homepage for more information, including a screenshot: http://www.volny.cz/svopex/tinyuploader/tinyuploader.html.

Cheers, Cryo.

Edited by - Cryogenius on 7/20/2004 2:11:35 AM

Post Mon Jul 19, 2004 2:26 pm

This is just a tip to minimize the security issue of having an FTP username and password on the server in an unencrypted file.

I don't know how other's people's websites are accessed or configured but it seems there must be some similarities. On my website I can make a unique FTP account for a single directory. This account has access to this single directory and all subdirectories under it but not above, hence the rest of the site cannot be accessed through this account. Another thing to remember. Since this "limited" FTP account is directed to a specific directory, the McFTP program that uploads the FLStats data (ncftpput) needs the upload target to be the root directory (just a backward slash \). The "limited" FTP account links the specific directory as the root (\) directory.

---------------
Earendil
SysAdmin of Boston Freelancer server
See server rules and server news for more info.

Post Mon Jul 19, 2004 3:10 pm

*thonk*

Post Thu Dec 23, 2004 5:41 pm

Also a great little program called PYROBATCHFTP is available on the net.

It''ll quickly upload files onto your web site, set it to upload the flstat.html and your playersonline html file too, you can then set it to update as often as you like from once a month - to once a minute (dont do that though or you will lose all your players off your server!! )

Hmm - did I say server? That reminds me

SW-UK EVOLUTIONS 24/7 SERVER - you know it makes sense (get the patch and see the stats and join the forums at WWW.STRUGGLER.CO.UK/SWUK)

Blatant - really every time so blatant....

Toad Out!

SW-UK EVOLUTIONS SERVER - Home: WWW.STRUGGLER.CO.UK/SWUK

Return to Freelancer Server Forum