Mods / Log Splitter

Tags: #Utility
Author: TheFifthRider
Side: Client
Created: Dec 2nd 2024 at 11:01 PM
Last modified: Jan 4th at 1:06 AM
Downloads: 196
Follow Unfollow 8

Latest release (for Vintage Story 1.19.8, outdated):
logsplitter_1.0.2.zip  1-click install
For testers (for Vintage Story 1.20.0-rc.6, outdated):
logsplitter_1.0.3.zip  1-click install


Ever wanted to share some of your favorite RP moments with a player who wasn't there? Client-chat.txt has all of the words, but you have to edit it and format it... Not to mention if you only want to capture TheBasic's proximity chat while a lively discussion is happening in general, you're going to have a lot of that editing to do. Plus, if you leave the game and rejoin it'll get wiped! What's a person to do?

Fear not. With LogSplitter, a markdown file will get generated for each chat for each of your play sessions. No editing required!

The markdown files are saved with format YYYY-MM-DD-hhmm_<chat name>.md

Config

The default LogSplitter config looks something like this:

{
  "serverChats": {
    "0": "GeneralChat",
    "-1": "ServerInfo",
    "-5": "DamageLog",
    "-6": "InfoLog",
    "-4": "Console"
  },
  "mutedChats": [
    -1,
    -5,
    -6,
    -4
  ],
  "chatDirectory": "C:\\Users\\<username>\\AppData\\Roaming\\VintagestoryData\\Logs"
}

serverChats

A dictionary that maps chat ids to the name you'd like present in the markdown file. Recommended that you avoid spaces and special characters depending on what your OS likes, after all this is going to be in the file name of the created markdown file!

Defaults to handling GeneralChat, ServerInfo, DamageLog, InfoLog, and Console logs. You may need to add more if you're using something like TheBasic's proximity chat.

If a mapping for a chat is not present here, the markdown file will be saved as YYYY-MM-DD-hhmm_UnknownChat(<chat id>).md

mutedChats

A list of chat ids that you don't want to create markdown files for.

chatDirectory

The absolute path to where you'd like markdown files generated for each chat.

Defaults to your VintageStoryData\Logs directory.

ConfigLib

Supports a configlib integration for in-game modification of settings, but due to limitations in ConfigLib at time of writing you can't modify serverChats and mutedChats from there -- just chatDirectory.

Mod Version For Game version Downloads Released Changelog Download 1-click mod install*
1.0.3 93 Jan 4th at 1:06 AM logsplitter_1.0.3.zip 1-click install
Adds some resiliency, should prevent the handler from ever crashing your game. Logsplitter is a log splitting mod, it should do its best to not cause errors even when it enters a fatal state.
1.0.2 103 Dec 2nd 2024 at 11:03 PM logsplitter_1.0.2.zip 1-click install

Fixes an NPE when attempting to consume a log message that has no logType attached.


0 Comments (oldest first | newest first)

 (edit comment delete)
Основной веб-сайт | Почтовый сервер | FTP сервер | Административная панель | API интерфейс | Content Delivery Network | Статические файлы | Ресурсы сайта | Изображения | Файловое хранилище | Блог | Интернет-магазин | Техническая поддержка | Справочная система | Документация | Форум | Новости | Загрузки | Демонстрация | Тестовая среда | Приложение | Медиа контент | Разработка | Промежуточная среда | Бета версия | Безопасная зона | Вход в систему | Панель управления | Портал | Система управления контентом