Northcomputer

by M9-SD

Contributors

M9-SD

1.0.3

twee
Game Version
1.4.0.22
Created
Thu, 29 May 2025 09:41:57 GMT
Last Modified
Thu, 29 May 2025 09:41:59 GMT

1.0.2

Changelog: Kill Log System Overhaul

1. 🆕 Log Format:
   - Switched from plain `.txt` to `.json` for structured logging.
   - Each entry is a JSON object within an array.

2. 🆕 File Initialization:
   - Created `OnGameStart()` to initialize a unique log file with a timestamped name.
   - Starts file with an opening bracket `[`.

3. 🆕 File Finalization:
   - Added `OnGameEnd()` to append a closing bracket `]` to complete the JSON array.

4. ✏️ Player Name Handling:
   - Added `SanitizePlayerName()` to:
     - Escape JSON characters.
     - Replace commas with spaces.
     - Strip newlines and carriage returns.
     - Trim leading/trailing whitespace.

5. ✏️ JSON Escaping:
   - Introduced `EscapeJson()` for safe inclusion of names in JSON format.

6. 🧠 Smarter Action Type Detection:
   - Differentiates between `kill`, `teamkill`, and `suicide` based on UID and faction.

7. 🔁 Comma Logic:
   - Tracks first JSON entry using `m_bFirstEntry` to correctly insert commas between entries.

8. 📆 Timestamping:
   - Replaced old timestamp format with ISO 8601 UTC format (`YYYY-MM-DDTHH:MM:SSZ`).
   - Introduced `GetTimestampForFilename()` for filesystem-safe filenames.

9. 🔐 Path Handling:
   - Ensures `$profile:/M9_Statistics` directory is created if missing.

10. 🧹 Clean-up:
   - Removed legacy logic for CSV line writing.
   - Removed date formatting with square brackets.
Game Version
1.4.0.22
Created
Thu, 22 May 2025 19:24:52 GMT
Last Modified
Thu, 22 May 2025 19:25:07 GMT

1.0.1

Game Version
1.3.0.170
Created
Wed, 21 May 2025 00:16:28 GMT
Last Modified
Wed, 21 May 2025 00:16:37 GMT

Showing 1 to 3 of 3 results

Rows per page