Hello!
First, wanna says - that progect is very good! You doing a great works guys! Thanks!
Can you pliz add some things for loging?
1. Ill add in start_server.bat file parameter -logFile "log.txt" But when server restarting, that file auto rewriting and delete all old data. Can you make saving that file after restart or rename that file after every restart... or something like that. Main goal - dont losting old data
2. Can you add in that file log.txt, correct loging connection information about every players who connecting to the server? Atm in log.txt ill having lines:
Slow Packet: 10.1.149.65:51575/0/1/326 -> 0.21 seconds
76561197961395335: Manifest file differs (possibly out of date)
Redwolf joined
Can you change it in more common and easy undestanding looks, something like that:
New connection: 10.1.149.65:51575 - 76561197961395335 "Redwolf"
Redwolf joined
And if already someone making plugin for that, let me know.
Hope you undestanding what i want and sry for my english guys
Thanks.
Solved IP address logging
Discussion in 'Plugin Requests' started by Crytex, Jan 15, 2015.
-
Wulf Community Admin
For the log rotation, use this .bat file:
Code:@echo off set IDENTITY="yourserver" RustDedicated.exe -batchmode -server.hostname "Oxide Server" -server.port 28015 +server.identity %IDENTITY% +server.maxplayers 100 -cfg "server/%IDENTITY%/cfg/server.cfg" -load "server/%IDENTITY%/save/0.sav" -logFile "server/%IDENTITY%/logs/rust_%DATE:~-7,2%-%DATE:~-10,2%-%DATE:~-4,4%.txt"
-
Thank you for log rotation. Better have something like that, than having nothing...
What about my second question? About a connection information of players. Its hard to realize? -
Wulf Community Admin
-
Wulf Community Admin
Here's something basic to tide you over.
Code:PLUGIN.Title = "IP Logger" PLUGIN.Version = V(0, 1, 0) PLUGIN.Description = "Logs player name and IP address on join." PLUGIN.Author = "Wulf"function PLUGIN:OnPlayerConnected(packet) if not packet then return end if not packet.connection then return end local ip = packet.connection.ipaddress:match("([^:]*):") print(packet.connection.username .. " connected (" .. ip .. ")") end
Attached Files:
-
-
it seem useful for me too, could you make for experimental?
-
Wulf Community Admin