ParseableLogs

v0.2.0·Updated 2022-07-01

Parseable JSON log of ingame events.

About this mod Author’s original text

Northstar server Parseable Logs

This mod adds a bunch of logs to Northstar servers. The logs output in JSON format, to allow for easily parsing them with external tools.

companion python library

I made a companion python library that parses these logs and provides callbacks for handling events logged by this mod:

Check it out here:

Log format

A log line might look like this:

[20:42:14] [info] [SERVER SCRIPT] [ParseableLog]{"subject":{"type":"player","name":"laundmo","playerIndex":0,"teamId":3,"uid":"1006865660022","ping":196685,"kills":0,"deaths":0,"alive":false},"verb":"existing"}

The logs take a subject-verb or subject-verb-object structure. The subject is any thing which happens to do something, the verb is what it does, and the object what it does it to.

In the example line, i had set the parsable_player_interval convar to 10, meaning every player is logged with the verb existing every 10 seconds. Without this, logs only happen when certain events happen.

Currently logged events:

  • client connecting
  • client connected
  • client disconnected
  • player respawned
  • player killed
  • round ended
  • game state changed
  • chat messages

Config

This mod defines one config variable, parsable_player_interval in seconds. Its used to periodically log all players. default 0 (disabled)

Changelog

0.2.0

  • Added chat logs

Install & use Install: Northstar client mod

  1. Install the Northstar client first (the open-source community client for Titanfall 2; its release page provides an installer). It loads the mods.
  2. Unzip the archive from playbuff and put its contents into the Northstar/mods/ folder inside your Titanfall2 directory.
  3. Start the game through NorthstarLauncher.exe — the console lists the mods it loaded.

Northstar is for private servers and custom content; do not use it to connect to official servers.

Dependencies

Install these first, or the mod will not work:

northstar-Northstar

File & checksum

Filename
ParseableLogs-0.2.0.zip
File size
24.8 KiB