wi77ard 0 Posted December 5, 2005 i have this file in my server directory, but nothing is being written to it? anyone know why? i'm running a windows ofp server, remotely hosted for our clan cheers in advance Share this post Link to post Share on other sites
sicilian 0 Posted December 5, 2005 It sounds like you've copied the ofp server directories from a linux machine to your windows server... I don't believe your server has produced such a log. Only -netlog is generating a log file but its called "net.log" But tell us your starting parameters and your server version to avoid other possiblities. Share this post Link to post Share on other sites
wi77ard 0 Posted December 5, 2005 its just a basic windows setup, hosted by pulsegamging.com, also running ecp. i had them add -netlog to the exe peramiters but thats all are there any files i should copy for you to understand more? Share this post Link to post Share on other sites
sicilian 0 Posted December 5, 2005 its just a basic windows setup, hosted by pulsegamging.com, also running ecp.i had them add -netlog to the exe peramiters but thats all are there any files i should copy for you to understand more? No, it is definitively from a linux installation. I've checked that again. You can delete this file, it should never be created again on your windows server. Seems like your provider sets up the systems from a basic linux setup. You can watch for files without extensions in your root folder of ofp. If you find some you can delete them too, these are also linux files. Share this post Link to post Share on other sites
wi77ard 0 Posted December 5, 2005 sorry i didnt explain what i meant, i used to run a linux ofp server and had a 2302 file which recorded all the people who join and their player id's i'm wanting to do the same on the windows server, i created teh 2302 file on the windows server install Share this post Link to post Share on other sites
sicilian 0 Posted December 5, 2005 Ah, now I understand. You explained a totally other szenario You can only use -netlog for this or you copy the text from the window output or you use any packet logger to grep the id and names. But -netlog generates many useless info so be aware of the filesize! You have to observe this very often! Share this post Link to post Share on other sites
wi77ard 0 Posted December 5, 2005 ah ok, got a link to a program that does this mate? how often should i be checking it as we have 10-20 members on most nights Share this post Link to post Share on other sites
sicilian 0 Posted December 5, 2005 Check http://www.winpcap.org and ngrep for windows WinPcap is needed for ngrep to work... Start ngrep with following options: <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">ngrep.exe -pt -O "<path\to\log\file.txt>" -d 2 "\|.*\d+.*\?.*[X]" dst host <serverip> and udp dst port <ofpport> -d = device number of your network card (mostly 2) you can check the device listing by starting ngrep as follows -> <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">ngrep.exe -L This should log only the id and nick of the players. If you got any problems msg me. Hope this helps EDIT: I forgot to tell you the output isn't very easy to read. But there's another option to make it readable  <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">ngrep -It "<path\to\log\file\generated\before.txt>" -d 2 "" > "<path\to\new\readable\log\file.txt>" If you call this it will generate a more understandable log file for you. -------- To catch even the disconnects of players just use this command <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">ngrep.exe -pt -O "<path\to\log\file.txt>" -d 2 "\|.*\d+.*\?.*[X]|.*rP.." dst host <serverip> and udp dst port <ofpport> Note that you can only know who is disconnected by the ip adress and the "rP" in log entries. Here you got an example of logging connects and disconnects: <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">input: d:\tmp.log # U 2005/12/06 11:18:55.293187 10.0.0.70:2304 -> 10.0.0.120:2302  ......M..................}.......|000000000.Sicilian ALSR.Face3.None.Adam....?  http.://www.squadxml.de/squad/squad.xml.....X.......nl..         # U 2005/12/06 11:18:58.012121 10.0.0.70:2304 -> 10.0.0.120:2302  ............!...........rP..                        exit The first one is the connection entry. The zeros infront of the nick represent the player id. The second entry represents a disconnect. Best way could be to make 2 batch files. One which starts the logger and another one which you can call everytime you need to read the log. The logger hasn't to be stopped! Share this post Link to post Share on other sites
sicilian 0 Posted December 8, 2005 Did it help wi77ard? I only tested it with one player so it would be nice to know if it works properly... Share this post Link to post Share on other sites