more better logging

This commit is contained in:
Lilian Jónsdóttir 2020-10-03 22:16:40 -07:00
parent 3ff73e86c6
commit f87ee44a64

View file

@ -145,6 +145,7 @@ local function onLoaded()
end end
local function onCellChanged(e) local function onCellChanged(e)
processors.searchCellsForNPCs()
updateCells() updateCells()
common.runtimeData.followers = buildFollowerList() common.runtimeData.followers = buildFollowerList()
updatePlayerTrespass(e.cell, e.previousCell) updatePlayerTrespass(e.cell, e.previousCell)
@ -163,6 +164,9 @@ local function onKeyDown(e)
end end
-- if ctrl log position data formatted for positions.lua -- if ctrl log position data formatted for positions.lua
if e.isControlDown then 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) log(common.logLevels.none, "[MAIN] {position = %s, orientation = %s},", pos, ori)
end end
end end