DeathsHead Posted April 23, 2002 Share Posted April 23, 2002 Is there a way to stream log files with JK2? Is there a program for quake3 that lets you stream the logs to an ip address and port? is there a command line to add to server.cfg Link to comment Share on other sites More sharing options...
MatrixCPA Posted April 23, 2002 Share Posted April 23, 2002 Personally, I'm not aware of any way you can do that directly through the server itself. You'd need an external app to trail the log that is created and perform that task. Just out of curiousity, why do you want to do this? Link to comment Share on other sites More sharing options...
Cedrin Posted April 23, 2002 Share Posted April 23, 2002 The solution is simple. You must write a program that scans the log file, stores the data to a database or another server, then clears the log file. Clearing the log file will ensure that the log file remains very small to offload processer time and not effect the performance of the server(s). Link to comment Share on other sites More sharing options...
DeathsHead Posted April 23, 2002 Author Share Posted April 23, 2002 To have a constantly updated jk2 stats. I use this kind of system right now with CS and psychostats. I have a dedicated stats server that updates and web hosts the stats on a 30 min cycle with CS. I could use jk2parser and set it to autorun every half hour or so with jk2 stats and do the same thing. Ok so since I can't do that, is there a way for me to upload a .log file while the server has it in use? Like copy a file while it is being written to??? What I want to do is have the server auto-upload the log file every x amount of minutes to my webserver through an ftp .bat file My server and info is here: http://www.ClanAYBABTU.com to see what I am doing right now with the psychostats, just click on psychostats under cs Link to comment Share on other sites More sharing options...
MatrixCPA Posted April 23, 2002 Share Posted April 23, 2002 Cedrin's idea is pretty much what I thought. When you get the app written, don't forget to share it with the rest who might be interested. Link to comment Share on other sites More sharing options...
HellfireSK Posted April 23, 2002 Share Posted April 23, 2002 You could have a cron job move the logfile to a temp at some regular interval, that would automagically begin the generation of a new one. You'd likely want to code your script in such a way that it reads backwards from EOF until it has the end of a game and chops off the extra. That extra would then be prepended to the in-progress log on the next run. In theory that would make sure that you had a parse of every full game since the last run without losing stats between file breaks. -h Link to comment Share on other sites More sharing options...
DeathsHead Posted April 23, 2002 Author Share Posted April 23, 2002 hmm... although I am a really good networking guy I am not great at code... guess I'll look into this. There has to be someone out there that ran a quake 3 server that already made this script. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.