Skip to content

Commit 103271f

Browse files
committed
fix: update to use latest packages
1 parent 64f071b commit 103271f

File tree

3 files changed

+22
-17
lines changed

3 files changed

+22
-17
lines changed

Place/Source/Client/Cameras/DefaultCamera.luau

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@ local TroveTypes = require(ReplicatedStorage.Shared.Types.Trove)
1414

1515
local DefaultCamera = {}
1616

17-
function DefaultCamera.OnActivated(self: DefaultCamera)
17+
DefaultCamera.Name = `DefaultCamera`
18+
19+
function DefaultCamera.Start(self: DefaultCamera)
1820
self.Trove = Trove.new()
1921

2022
self.Instance.CameraSubject = Players.LocalPlayer.Character
@@ -26,12 +28,12 @@ function DefaultCamera.OnActivated(self: DefaultCamera)
2628
end)
2729
end
2830

29-
function DefaultCamera.OnDeactivated(self: DefaultCamera)
31+
function DefaultCamera.Stop(self: DefaultCamera)
3032
self.Trove:Destroy()
3133
end
3234

3335
export type DefaultCamera = CameraTypes.Camera & typeof(DefaultCamera) & {
3436
Trove: TroveTypes.Trove,
3537
}
3638

37-
return Sift.Dictionary.merge(CameraProfiler.Camera.new("DefaultCamera"), DefaultCamera)
39+
return CameraProfiler:Profile(DefaultCamera)

Place/Source/Client/Runtime.client.luau

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,14 @@ Runtime:SetFFValue("IsProduction", isProduction)
4444

4545
Runtime:SetFFValue("ShowLoadingScreenInStudio", false)
4646

47-
Console.setGlobalLogLevel(isProduction and Console.LogLevel.Warn or Console.LogLevel.Debug)
48-
Console.setGlobalSchema("[%s][%s] :: %s")
47+
Console.setDefaults({
48+
LogLevel = isProduction and "Warn" or "Debug" :: any,
49+
})
4950

50-
runtimeReporter:Log(`Server Branch: {gitBranch}`)
51-
runtimeReporter:Log(`Server Commit: {gitCommit}`)
52-
runtimeReporter:Log(`Server Build: {gitBuild}`)
51+
runtimeReporter:Info(`Server Branch: {gitBranch}`)
52+
runtimeReporter:Info(`Server Commit: {gitCommit}`)
53+
runtimeReporter:Info(`Server Build: {gitBuild}`)
54+
runtimeReporter:Info(`Client Build: {version()}`)
5355

5456
if isProduction then
5557
runtimeReporter:Warn(`Production environment detected, disabling verbose logs!`)
@@ -94,8 +96,8 @@ xpcall(function()
9496
require(ReplicatedFirst.Client.Lifecycles.RenderStepped)(ReplicatedFirst.Client.Singletons)
9597

9698
runtimeReporter:Debug(`Loaded Singleton lifecycle methods`)
97-
runtimeReporter:Log(`Loaded {moduleCount} runtime modules in {os.clock() - scriptStartTime} seconds`)
98-
runtimeReporter:Log(``)
99+
runtimeReporter:Info(`Loaded {moduleCount} runtime modules in {os.clock() - scriptStartTime} seconds`)
100+
runtimeReporter:Info(``)
99101
end, function(exception: string)
100102
--[[
101103
Error handling in the case of a critical error, if an error occurs here - the game code is considered borked.

Place/Source/Server/Runtime.server.luau

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,13 @@ Runtime:SetFFValue("Build", gitBuild)
3232

3333
Runtime:SetFFValue("IsProduction", isProduction)
3434

35-
Console.setGlobalLogLevel(isProduction and Console.LogLevel.Warn or Console.LogLevel.Debug)
36-
Console.setGlobalSchema("[%s][%s] :: %s")
35+
Console.setDefaults({
36+
LogLevel = isProduction and "Warn" or "Debug" :: any,
37+
})
3738

38-
runtimeReporter:Log(`Server Branch: {gitBranch}`)
39-
runtimeReporter:Log(`Server Commit: {gitCommit}`)
40-
runtimeReporter:Log(`Server Build: {gitBuild}`)
39+
runtimeReporter:Info(`Server Branch: {gitBranch}`)
40+
runtimeReporter:Info(`Server Commit: {gitCommit}`)
41+
runtimeReporter:Info(`Server Build: {gitBuild}`)
4142

4243
if isProduction then
4344
runtimeReporter:Warn(`Production environment detected, disabling verbose logs!`)
@@ -75,8 +76,8 @@ xpcall(function()
7576
require(ServerScriptService.Server.Lifecycles.Heartbeat)(ServerScriptService.Server.Singletons)
7677

7778
runtimeReporter:Debug(`Loaded Singleton lifecycle methods`)
78-
runtimeReporter:Log(`Loaded {moduleCount} runtime modules in {os.clock() - scriptStartTime} seconds`)
79-
runtimeReporter:Log(``)
79+
runtimeReporter:Info(`Loaded {moduleCount} runtime modules in {os.clock() - scriptStartTime} seconds`)
80+
runtimeReporter:Info(``)
8081
end, function(exception: string)
8182
--[[
8283
Error handling in the case of a critical error, if an error occurs here - the game code is considered borked.

0 commit comments

Comments
 (0)