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!
Headless Server logs
- eradicator
- Smart Inserter
- Posts: 5211
- Joined: Tue Jul 12, 2016 9:03 am
- Contact:
Re: Headless Server logs
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))
Author of: Belt Planner, Hand Crank Generator, Screenshot Maker, /sudo and more.
Mod support languages: 日本語, Deutsch, English
My code in the post above is dedicated to the public domain under CC0.
Mod support languages: 日本語, Deutsch, English
My code in the post above is dedicated to the public domain under CC0.