Page 1 of 1

Headless Server logs

Posted: Fri Nov 27, 2020 3:05 pm
by its-row
Hello,

Im hosting a server for a while now but I would love to have some specific logs so I can automate server resets and create a leaderboard etc.
Is there a way to make the server log when the "Victory" (first rocket) appears and how long the players needed to get to that point?

Many Thanks!

Re: Headless Server logs

Posted: Fri Nov 27, 2020 3:35 pm
by eradicator
You could add a logging line to the freeplay scenarios control.lua's on_rocket_launched event.

Code: Select all

log(('Rocket launched in %s seconds!'):format(game.tick/60))