ParseableLogs

版本 v0.2.0·更新於 2022-07-01

Parseable JSON log of ingame events.

模組介紹 作者原文

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

安裝與使用 安裝:Northstar 用戶端模組

  1. 先安裝 Northstar 用戶端(Titanfall 2 的開源社群用戶端,官方發布頁提供安裝器),模組由它載入。
  2. 把本站下載的壓縮包解壓,內容放入 Titanfall2 目錄下的 Northstar/mods/ 資料夾。
  3. 透過 NorthstarLauncher.exe 啟動遊戲,控制台會列出已載入的模組。

Northstar 用於私人伺服器與自訂內容,請勿用它連線官方伺服器。

前置依賴

下面這些內容需要先安裝,否則該模組不會生效:

northstar-Northstar

檔案與校驗

檔案名稱
ParseableLogs-0.2.0.zip
檔案大小
24.8 KiB