From 9b88d2ae56c5e58740db18160ec02d192f7d6571 Mon Sep 17 00:00:00 2001
From: Cuh4 <89425262+Cuh4@users.noreply.github.com>
Date: Sat, 15 Jun 2024 20:44:31 +0100
Subject: [PATCH] Release - 1.6.2
---
_build/Noir.lua | 18 ++++++------------
1 file changed, 6 insertions(+), 12 deletions(-)
diff --git a/_build/Noir.lua b/_build/Noir.lua
index 6c668b8..1b0a779 100644
--- a/_build/Noir.lua
+++ b/_build/Noir.lua
@@ -637,7 +637,7 @@ function Noir.Classes.ServiceClass:_Start()
-- Call ServiceStart
if not self.ServiceStart then
- Noir.Libraries.Logging:Warning("Service", "%s: This service is missing a ServiceStart method. You can ignore this if your service doesn't require it.", self.Name)
+ Noir.Libraries.Logging:Warning("Service", "%s: This service is missing a ServiceStart method. You can ignore this if this service doesn't require it.", self.Name)
return
end
@@ -1591,7 +1591,7 @@ Noir.Libraries.Logging.OnLog = Noir.Libraries.Events:Create()
Represents the logging layout.
Requires two '%s' in the layout. First %s is the log type, the second %s is the log title. The message is then added after the layout.
]]
-Noir.Libraries.Logging.Layout = "[%s] [%s]: "
+Noir.Libraries.Logging.Layout = "[Noir] [%s] [%s]: "
--[[
Set the logging mode.
@@ -1640,7 +1640,7 @@ end
---@param ... any
function Noir.Libraries.Logging:_FormatLog(logType, title, message, ...)
-- Validate args
- local validatedLogType = tostring(logType):upper()
+ local validatedLogType = tostring(logType)
local validatedTitle = tostring(title)
local validatedMessage = type(message) == "table" and Noir.Libraries.Table:ToString(message) or (... and tostring(message):format(...) or tostring(message))
@@ -2625,11 +2625,11 @@ function Noir.Services.PlayerService:ServiceStart()
end
-- Log
- Noir.Libraries.Logging:Info("PlayerService", "Loading player in game: %s (%d, %s)", player.name, player.id, player.steam_id)
+ Noir.Libraries.Logging:Info("PlayerService", "server.getPlayers(): Loading player in game: %s (%d, %s)", player.name, player.id, player.steam_id)
-- Check if already loaded
if self:GetPlayer(player.id) then
- Noir.Libraries.Logging:Info("PlayerService", "(in-game load) %s already has data. Ignoring.", player.name)
+ Noir.Libraries.Logging:Info("PlayerService", "server.getPlayers(): %s already has data. Ignoring.", player.name)
goto continue
end
@@ -2685,12 +2685,6 @@ function Noir.Services.PlayerService:_GivePlayerData(steam_id, name, peer_id, ad
-- Save player
self.Players[peer_id] = player
- -- Add properties savedata table
- local properties = self:_GetSavedProperties()
- properties[peer_id] = {}
-
- self:_OverwriteSavedProperties(properties)
-
-- Return
return player
end
@@ -3761,7 +3755,7 @@ end
The current version of Noir.
Follows [Semantic Versioning.](https://semver.org)
]]
-Noir.Version = "1.6.1"
+Noir.Version = "1.6.2"
--[[
This event is called when the framework is started.