Chat Patches

Chat Patches

2M Downloads

"[ChatLog()] Couldn't create file connections" even when chat saving is disabled - 1.19.2 / 1.5.7

SplendidAlakey opened this issue ยท 2 comments

commented

Description

An error appears in the logs, mentioning failing to locate chatlog.json, even if it's not supposed to exist, due to saveChat option being set to false.

How to reproduce

  1. Install the mod and launch the game to generate configs
  2. Close the game, edit wmch.json to disable saveChat feature
  3. Re-launch the game and open latest.log, find the line that says "[ChatLog()] Couldn't create file connections", even though it's not supposed to even try

Note: the error will appear, if you have saveChat enabled, as well. I believe this is also not supposed to happen, because there's no chat to speak of yet, we are only in the main menu.

Expected result

Don't attempt to log chat at all, if the feature is disabled. If that's already the case, then suppress the errors.

Don't attempt to log chat in main menu.

Log file link

https://gist.github.com/SplendidAlakey/fbbdbd6deb8d0651db5150bbc713d0d3

Specs and Details

Required information:

  • Win10
  • 1.19.2
  • 0.14.13 + 0.73.0
  • Cloth Config and Mod Menu aren't installed
  • no other mods
    Optional:
  • wmch.zip
  • chatlog.json doesn't exist

Additional context

commented

This has already been fixed in the 1.19.3 mod version and will be backported shortly!

commented

Closed with 0465ef7.