Headless Server logs

Anything that prevents you from playing the game properly. Do you have issues playing for the game, downloading it or successfully running it on your computer? Let us know here.
its-row
Manual Inserter
Manual Inserter
Posts: 3
Joined: Wed Sep 30, 2020 8:01 am
Contact:

Headless Server logs

Post 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!
User avatar
eradicator
Smart Inserter
Smart Inserter
Posts: 5211
Joined: Tue Jul 12, 2016 9:03 am
Contact:

Re: Headless Server logs

Post 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))
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.
Post Reply

Return to “Technical Help”