From f87ee44a64843893944cf8156e9a74d4631b9d50 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lilian=20J=C3=B3nsd=C3=B3ttir?= Date: Sat, 3 Oct 2020 22:16:40 -0700 Subject: [PATCH] more better logging --- MWSE/mods/celediel/NPCsGoHome/main.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/MWSE/mods/celediel/NPCsGoHome/main.lua b/MWSE/mods/celediel/NPCsGoHome/main.lua index d1b63d1..3ce0951 100644 --- a/MWSE/mods/celediel/NPCsGoHome/main.lua +++ b/MWSE/mods/celediel/NPCsGoHome/main.lua @@ -145,6 +145,7 @@ local function onLoaded() end local function onCellChanged(e) + processors.searchCellsForNPCs() updateCells() common.runtimeData.followers = buildFollowerList() updatePlayerTrespass(e.cell, e.previousCell) @@ -163,6 +164,9 @@ local function onKeyDown(e) end -- if ctrl log position data formatted for positions.lua if e.isControlDown then + local pos = tostring(tes3.player.position):gsub("%(", "{"):gsub("%)", "}") + local ori = tostring(tes3.player.orientation):gsub("%(", "{"):gsub("%)", "}") + log(common.logLevels.none, "[MAIN] {position = %s, orientation = %s},", pos, ori) end end