From efbd7930ac9d59cb1892365bc1d00c5653bed446 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lilian=20J=C3=B3nsd=C3=B3ttir?= Date: Sun, 4 Oct 2020 01:14:11 -0700 Subject: [PATCH] worse but less crashing --- MWSE/mods/celediel/NPCsGoHome/main.lua | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/MWSE/mods/celediel/NPCsGoHome/main.lua b/MWSE/mods/celediel/NPCsGoHome/main.lua index 2f46499..d865ad7 100644 --- a/MWSE/mods/celediel/NPCsGoHome/main.lua +++ b/MWSE/mods/celediel/NPCsGoHome/main.lua @@ -4,6 +4,7 @@ local config = require("celediel.NPCsGoHome.config").getConfig() local common = require("celediel.NPCsGoHome.common") local checks = require("celediel.NPCsGoHome.functions.checks") local processors = require("celediel.NPCsGoHome.functions.processors") +local inspect = require("inspect") -- }}} -- {{{ variables and such @@ -159,8 +160,11 @@ end local function onKeyDown(e) -- if alt log runtimeData if e.isAltDown then - -- log(common.logLevels.small, common.inspect(common.runtimeData)) - log(common.logLevels.none, json.encode(common.runtimeData, { indent = true })) + -- ! this crashes my fully modded setup and I dunno why + -- ? doesn't crash my barely modded testing setup though + -- log(common.logLevels.none, json.encode(common.runtimeData, { indent = true })) + -- inspect handles userdata and tables within tables badly + log(common.logLevels.none, inspect(common.runtimeData)) end -- if ctrl log position data formatted for positions.lua if e.isControlDown then