@quenty/softshutdown 9.23.0-canary.544.de8fcee.0 → 9.23.1-canary.545.2374fb2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md
CHANGED
|
@@ -3,7 +3,26 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
## [9.23.1-canary.545.2374fb2.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/softshutdown@9.23.0...@quenty/softshutdown@9.23.1-canary.545.2374fb2.0) (2025-04-05)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* Add types to packages ([2374fb2](https://github.com/Quenty/NevermoreEngine/commit/2374fb2b043cfbe0e9b507b3316eec46a4e353a0))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
# [9.23.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/softshutdown@9.22.3...@quenty/softshutdown@9.23.0) (2025-04-02)
|
|
18
|
+
|
|
19
|
+
**Note:** Version bump only for package @quenty/softshutdown
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
## [9.22.3](https://github.com/Quenty/NevermoreEngine/compare/@quenty/softshutdown@9.22.2...@quenty/softshutdown@9.22.3) (2025-03-31)
|
|
7
26
|
|
|
8
27
|
**Note:** Version bump only for package @quenty/softshutdown
|
|
9
28
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@quenty/softshutdown",
|
|
3
|
-
"version": "9.23.
|
|
3
|
+
"version": "9.23.1-canary.545.2374fb2.0",
|
|
4
4
|
"description": "This service lets you shut down servers without losing a bunch of players. When game.OnClose is called, the script teleports everyone in the server into a reserved server.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Roblox",
|
|
@@ -29,25 +29,25 @@
|
|
|
29
29
|
"access": "public"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@quenty/attributeutils": "14.17.
|
|
33
|
-
"@quenty/baseobject": "10.8.0",
|
|
34
|
-
"@quenty/basicpane": "13.17.
|
|
35
|
-
"@quenty/bindtocloseservice": "8.17.
|
|
36
|
-
"@quenty/blend": "12.18.
|
|
37
|
-
"@quenty/clienttranslator": "14.19.
|
|
38
|
-
"@quenty/coreguienabler": "12.18.
|
|
39
|
-
"@quenty/datastore": "13.20.
|
|
40
|
-
"@quenty/loader": "10.8.0",
|
|
41
|
-
"@quenty/maid": "3.4.0",
|
|
42
|
-
"@quenty/math": "2.7.
|
|
43
|
-
"@quenty/promise": "10.10.
|
|
44
|
-
"@quenty/rx": "13.17.
|
|
45
|
-
"@quenty/servicebag": "11.11.
|
|
46
|
-
"@quenty/table": "3.7.
|
|
47
|
-
"@quenty/teleportserviceutils": "9.17.
|
|
48
|
-
"@quenty/uiobjectutils": "6.16.
|
|
49
|
-
"@quenty/valuebaseutils": "13.17.
|
|
50
|
-
"@quenty/valueobject": "13.17.
|
|
32
|
+
"@quenty/attributeutils": "14.17.1-canary.545.2374fb2.0",
|
|
33
|
+
"@quenty/baseobject": "10.8.1-canary.545.2374fb2.0",
|
|
34
|
+
"@quenty/basicpane": "13.17.1-canary.545.2374fb2.0",
|
|
35
|
+
"@quenty/bindtocloseservice": "8.17.1-canary.545.2374fb2.0",
|
|
36
|
+
"@quenty/blend": "12.18.1-canary.545.2374fb2.0",
|
|
37
|
+
"@quenty/clienttranslator": "14.19.1-canary.545.2374fb2.0",
|
|
38
|
+
"@quenty/coreguienabler": "12.18.1-canary.545.2374fb2.0",
|
|
39
|
+
"@quenty/datastore": "13.20.1-canary.545.2374fb2.0",
|
|
40
|
+
"@quenty/loader": "10.8.1-canary.545.2374fb2.0",
|
|
41
|
+
"@quenty/maid": "3.4.1-canary.545.2374fb2.0",
|
|
42
|
+
"@quenty/math": "2.7.2-canary.545.2374fb2.0",
|
|
43
|
+
"@quenty/promise": "10.10.2-canary.545.2374fb2.0",
|
|
44
|
+
"@quenty/rx": "13.17.1-canary.545.2374fb2.0",
|
|
45
|
+
"@quenty/servicebag": "11.11.2-canary.545.2374fb2.0",
|
|
46
|
+
"@quenty/table": "3.7.2-canary.545.2374fb2.0",
|
|
47
|
+
"@quenty/teleportserviceutils": "9.17.1-canary.545.2374fb2.0",
|
|
48
|
+
"@quenty/uiobjectutils": "6.16.1-canary.545.2374fb2.0",
|
|
49
|
+
"@quenty/valuebaseutils": "13.17.1-canary.545.2374fb2.0",
|
|
50
|
+
"@quenty/valueobject": "13.17.1-canary.545.2374fb2.0"
|
|
51
51
|
},
|
|
52
|
-
"gitHead": "
|
|
52
|
+
"gitHead": "2374fb2b043cfbe0e9b507b3316eec46a4e353a0"
|
|
53
53
|
}
|
|
@@ -16,20 +16,21 @@ local SoftShutdownTranslator = require("SoftShutdownTranslator")
|
|
|
16
16
|
local SoftShutdownUI = require("SoftShutdownUI")
|
|
17
17
|
local ValueObject = require("ValueObject")
|
|
18
18
|
local CoreGuiEnabler = require("CoreGuiEnabler")
|
|
19
|
+
local _ServiceBag = require("ServiceBag")
|
|
19
20
|
|
|
20
21
|
local SoftShutdownServiceClient = {}
|
|
21
22
|
SoftShutdownServiceClient.ServiceName = "SoftShutdownServiceClient"
|
|
22
23
|
|
|
23
24
|
local DISABLE_CORE_GUI_TYPES = {
|
|
24
|
-
Enum.CoreGuiType.PlayerList
|
|
25
|
-
Enum.CoreGuiType.Health
|
|
26
|
-
Enum.CoreGuiType.Backpack
|
|
27
|
-
Enum.CoreGuiType.Chat
|
|
28
|
-
Enum.CoreGuiType.EmotesMenu
|
|
29
|
-
Enum.CoreGuiType.All
|
|
25
|
+
Enum.CoreGuiType.PlayerList,
|
|
26
|
+
Enum.CoreGuiType.Health,
|
|
27
|
+
Enum.CoreGuiType.Backpack,
|
|
28
|
+
Enum.CoreGuiType.Chat,
|
|
29
|
+
Enum.CoreGuiType.EmotesMenu,
|
|
30
|
+
Enum.CoreGuiType.All,
|
|
30
31
|
}
|
|
31
32
|
|
|
32
|
-
function SoftShutdownServiceClient:Init(serviceBag)
|
|
33
|
+
function SoftShutdownServiceClient:Init(serviceBag: _ServiceBag.ServiceBag)
|
|
33
34
|
assert(not self._serviceBag, "Already initialized")
|
|
34
35
|
self._serviceBag = assert(serviceBag, "No serviceBag")
|
|
35
36
|
|
|
@@ -47,7 +48,7 @@ function SoftShutdownServiceClient:Init(serviceBag)
|
|
|
47
48
|
self._localTeleportDataSaysIsLobby.Value = true
|
|
48
49
|
end
|
|
49
50
|
if self:_queryIsArrivingAfterShutdown() then
|
|
50
|
-
self._isArrivingAfterShutdown.Value = true
|
|
51
|
+
self._isArrivingAfterShutdown.Value = true
|
|
51
52
|
end
|
|
52
53
|
end)
|
|
53
54
|
|
|
@@ -167,7 +168,7 @@ function SoftShutdownServiceClient:_hideCoreGuiUI(maid, ignoreScreenGui)
|
|
|
167
168
|
end
|
|
168
169
|
end
|
|
169
170
|
|
|
170
|
-
for _, child in
|
|
171
|
+
for _, child in playerGui:GetChildren() do
|
|
171
172
|
handleChild(child)
|
|
172
173
|
end
|
|
173
174
|
|
|
@@ -180,12 +181,12 @@ function SoftShutdownServiceClient:_hideCoreGuiUI(maid, ignoreScreenGui)
|
|
|
180
181
|
end))
|
|
181
182
|
|
|
182
183
|
maid:GiveTask(function()
|
|
183
|
-
for screenGui, _ in
|
|
184
|
+
for screenGui, _ in enabledScreenGuis do
|
|
184
185
|
screenGui.Enabled = true
|
|
185
186
|
end
|
|
186
187
|
end)
|
|
187
188
|
|
|
188
|
-
for _, coreGuiType in
|
|
189
|
+
for _, coreGuiType in DISABLE_CORE_GUI_TYPES do
|
|
189
190
|
maid:GiveTask(CoreGuiEnabler:PushDisable(coreGuiType))
|
|
190
191
|
end
|
|
191
192
|
end
|
|
@@ -26,6 +26,7 @@ local Maid = require("Maid")
|
|
|
26
26
|
local Promise = require("Promise")
|
|
27
27
|
local SoftShutdownConstants = require("SoftShutdownConstants")
|
|
28
28
|
local TeleportServiceUtils = require("TeleportServiceUtils")
|
|
29
|
+
local _ServiceBag = require("ServiceBag")
|
|
29
30
|
|
|
30
31
|
local SoftShutdownService = {}
|
|
31
32
|
SoftShutdownService.ServiceName = "SoftShutdownService"
|
|
@@ -40,7 +41,7 @@ SoftShutdownService.ServiceName = "SoftShutdownService"
|
|
|
40
41
|
|
|
41
42
|
@param serviceBag ServiceBag
|
|
42
43
|
]=]
|
|
43
|
-
function SoftShutdownService:Init(serviceBag)
|
|
44
|
+
function SoftShutdownService:Init(serviceBag: _ServiceBag.ServiceBag)
|
|
44
45
|
self._maid = Maid.new()
|
|
45
46
|
self._serviceBag = assert(serviceBag, "No serviceBag")
|
|
46
47
|
|
|
@@ -60,7 +61,7 @@ function SoftShutdownService:Init(serviceBag)
|
|
|
60
61
|
end)
|
|
61
62
|
end
|
|
62
63
|
|
|
63
|
-
function SoftShutdownService:_isReservedServer()
|
|
64
|
+
function SoftShutdownService:_isReservedServer(): boolean
|
|
64
65
|
return game.PrivateServerId ~= "" and game.PrivateServerOwnerId == 0
|
|
65
66
|
end
|
|
66
67
|
|
|
@@ -134,7 +135,7 @@ function SoftShutdownService:_promiseTeleportPlayersToLobby()
|
|
|
134
135
|
end
|
|
135
136
|
|
|
136
137
|
function SoftShutdownService:_containsPending(promises)
|
|
137
|
-
for _, item in
|
|
138
|
+
for _, item in promises do
|
|
138
139
|
if item:IsPending() then
|
|
139
140
|
return true
|
|
140
141
|
end
|
|
@@ -42,7 +42,9 @@
|
|
|
42
42
|
|
|
43
43
|
local ReplicatedFirst = game:GetService("ReplicatedFirst")
|
|
44
44
|
|
|
45
|
-
|
|
45
|
+
if true then
|
|
46
|
+
error("TODO: Update this code before publishing again to support new loader")
|
|
47
|
+
end
|
|
46
48
|
|
|
47
49
|
local client, server, shared = require(script:FindFirstChild("LoaderUtils", true)).toWallyFormat(script.src, false)
|
|
48
50
|
|