SmartlyDressedGames / Legally-Distinct-Missile

Fork of Rocket for Unturned maintained by the game developers.
MIT License
79 stars 29 forks source link

[Feature Request] Time printout on the console. #41

Closed Lion4K closed 3 years ago

Lion4K commented 3 years ago

Show Time before the console printout.

so instead of: Disconnecting: PlayerID: 7656119888xxxxxxx Name: xxxx Character: xxx BattlEye Server: Player #109 xxx disconnected Player finished session: 76561198973xxxxxx Broadcast: xxxxxxxx saiu do servidor. We get:

[18:05:35]Disconnecting: PlayerID: 7656119888xxxxxxx Name: xxxx Character: xxx [18:05:36]BattlEye Server: Player #109 xxx disconnected [18:05:37]Player finished session: 76561198973xxxxxx [18:05:38]Broadcast: xxxxxxxx saiu do servidor.

And so on.

Sl4vP0weR commented 3 years ago

Add an empty space before text and add caller, rocketmod will look like openmod

SDGNelson commented 3 years ago

Would not add this to Rocket, but it might make sense in the base game. In vanilla the timestamp is visible in the log file. If you would like to customize, one option would be to subclass ICommandInputOutput or ThreadedConsoleInputOutput and prepend the timestamp.

Lion4K commented 3 years ago

Would not add this to Rocket, but it might make sense in the base game. In vanilla the timestamp is visible in the log file. If you would like to customize, one option would be to subclass ICommandInputOutput or ThreadedConsoleInputOutput and prepend the timestamp.

Yeah I couldn't find the base game repo about server hosting so I posted it here. Thanks!