Author Topic: More detailed server log / API  (Read 270 times)

fiskfisk

  • Posts: 9
I'd like to automagically keep track of results from our server, and possibly keep a list of lap - and race - times from these events.

In Flatout 2 it was possible to make the host write an XML file to disk after the race finished, but just getting the server to print these details in its existing log would be more than good enough. That way I can tail the log file and parse any updates as they arrive in the log file. Having JSON as an output format would work fine, or just a parsable text format. The current log information isn't very useful between event start and event end.

Event details at event start could also be useful.

Lap: fiskfisk, Lap: 3/8, 00:39.423

Event finished
1. fiskfisk 1:34.291 00:39.423
2. xyz 1:36.111 00:40.493

.. etc.

Extracting this from the server binary's memory could also be an option - it'll have to keep that data around somewhere, but that's prone to fail in spectacular ways.. Shared memory as Project Cars did is also an option, but I haven't found any details about any implementation of this in Wreckfest (.. and the mods doesn't have access to any data such as this).

r0ver2

  • Posts: 1
No way you will be first on that list, fiskfisk.

Thefly

  • Posts: 13
+1 for detailed result log

This would enable so many possibilities..

fiskfisk

  • Posts: 9
I've uploaded my current progress to Github.

Currently it's able to detect new lap times, position changes and the current state of each player.

It's hacky and probably not usable unless you're already familiar with writing code in Python.