Open TheLionEscanor opened 1 week ago
@TheLionEscanor This error is occurring because of hirelings, causing the server and players to crash.
@TheLionEscanor
On: \canary\data\libs\systems\hireling.lua
` function SaveHirelings()
local successCount = 0
local failedCount = 0
for _, hireling in ipairs(HIRELINGS) do
local success = hireling:save()
print(success)
if not success then
failedCount = failedCount + 1
logger.warn("Failed to save hireling: {} (ID: {}).", hireling:getName(), hireling:getId())
else
successCount = successCount + 1
end
end
if successCount == #HIRELINGS then
logger.info("All hirelings successfully saved.")
else
logger.warn("Failed to save {} hirelings.", failedCount)
end
end`
success will always return null (nill)
I'm back to the way I was before.
function SaveHirelings() for _, hireling in ipairs(HIRELINGS) do hireling:save() end end
That does not sound consistent, since that only occurs with a forced exit or disconnection, while hirelings are saved in global save
Priority
Medium
Area
What happened?
What OS are you seeing the problem on?
Windows
Code of Conduct