From 215aea24ee25230aa9f23ec1c0d08a025beb0665 Mon Sep 17 00:00:00 2001 From: Lewin Kelly Date: Thu, 31 Aug 2023 07:58:55 +0100 Subject: [PATCH] Improve documentation for corescripts and add filename comments --- luau/107893730.luau | 2 ++ luau/152908679.luau | 6 ++++++ luau/153556783.luau | 6 ++++++ luau/157877000.luau | 6 ++++++ luau/36868950.luau | 2 ++ luau/37801172.luau | 2 ++ luau/38037565.luau | 6 ++++++ luau/39250920.luau | 2 ++ luau/45284430.luau | 8 +++++++- luau/45374389.luau | 2 ++ luau/46295863.luau | 2 ++ luau/48488235.luau | 2 ++ luau/48488398.luau | 1 + luau/48488451.luau | 2 ++ luau/53878047.luau | 2 ++ luau/53878057.luau | 2 ++ luau/59002209.luau | 1 + luau/60595411.luau | 22 ++++++++++++++++++++++ luau/60595695.luau | 10 ++++++---- luau/73157242.luau | 1 + luau/89449008.luau | 2 ++ luau/89449093.luau | 2 ++ luau/97188756.luau | 2 ++ mercury.yml | 5 +++++ 24 files changed, 93 insertions(+), 5 deletions(-) diff --git a/luau/107893730.luau b/luau/107893730.luau index 1b96b38..f625434 100644 --- a/luau/107893730.luau +++ b/luau/107893730.luau @@ -1,4 +1,6 @@ +-- CoreGui.RobloxGui.CoreScripts/PurchasePromptScript print "[Mercury]: Loaded corescript 107893730" + -- this script creates the gui and sends the web requests for in game purchase prompts local MarketplaceService = game:GetService "MarketplaceService" diff --git a/luau/152908679.luau b/luau/152908679.luau index edff8f5..775483e 100644 --- a/luau/152908679.luau +++ b/luau/152908679.luau @@ -1,4 +1,10 @@ +-- CoreGui.RobloxGui.CoreScripts/ContextActionTouch +-- Unused by Mercury print "[Mercury]: Loaded corescript 152908679" +for _ = 1, 4 do + warn "IF YOU SEE THIS MESSAGE, PLEASE REPORT IT TO THE MERCURY DEVELOPERS" + print "IF YOU SEE THIS MESSAGE, PLEASE REPORT IT TO THE MERCURY DEVELOPERS" +end -- ContextActionTouch.lua -- this script controls ui and firing of lua functions that are bound in ContextActionService for touch inputs diff --git a/luau/153556783.luau b/luau/153556783.luau index f723014..3729a60 100644 --- a/luau/153556783.luau +++ b/luau/153556783.luau @@ -1,4 +1,10 @@ +-- CoreGui.RobloxGui.CoreScripts/TouchControls +-- Unused by Mercury print "[Mercury]: Loaded corescript 153556783" +for _ = 1, 4 do + warn "IF YOU SEE THIS MESSAGE, PLEASE REPORT IT TO THE MERCURY DEVELOPERS" + print "IF YOU SEE THIS MESSAGE, PLEASE REPORT IT TO THE MERCURY DEVELOPERS" +end -- This is responsible for all touch controls we show (as of this writing, only on iOS) -- this includes character move thumbsticks, and buttons for jump, use of items, camera, etc. diff --git a/luau/157877000.luau b/luau/157877000.luau index 85ae392..17740ea 100644 --- a/luau/157877000.luau +++ b/luau/157877000.luau @@ -1,4 +1,10 @@ +-- Unused by Mercury print "[Mercury]: Loaded corescript 157877000" +for _ = 1, 4 do + warn "IF YOU SEE THIS MESSAGE, PLEASE REPORT IT TO THE MERCURY DEVELOPERS" + print "IF YOU SEE THIS MESSAGE, PLEASE REPORT IT TO THE MERCURY DEVELOPERS" +end + --Include local Create: (instance: string) -> ({ [string]: any }) -> Instance = assert(LoadLibrary "RbxUtility").Create diff --git a/luau/36868950.luau b/luau/36868950.luau index 1bcd706..1ebb1c0 100644 --- a/luau/36868950.luau +++ b/luau/36868950.luau @@ -1,4 +1,6 @@ +-- CoreGui.RobloxGui.CoreScripts/ToolTip print "[Mercury]: Loaded corescript 36868950" + local controlFrame = script.Parent:FindFirstChild "ControlFrame" if not controlFrame then diff --git a/luau/37801172.luau b/luau/37801172.luau index 8f4dcd6..51b82f5 100644 --- a/luau/37801172.luau +++ b/luau/37801172.luau @@ -1,4 +1,6 @@ +-- Script Context.StarterScript print "[Mercury]: Loaded corescript 37801172" + local scriptContext = game:GetService "ScriptContext" -- Creates all neccessary scripts for the gui on initial load, everything except build tools diff --git a/luau/38037565.luau b/luau/38037565.luau index 1fb94f5..bd94bb0 100644 --- a/luau/38037565.luau +++ b/luau/38037565.luau @@ -1,4 +1,10 @@ +-- Unused by Mercury print "[Mercury]: Loaded corescript 38037565" +for _ = 1, 4 do + warn "IF YOU SEE THIS MESSAGE, PLEASE REPORT IT TO THE MERCURY DEVELOPERS" + print "IF YOU SEE THIS MESSAGE, PLEASE REPORT IT TO THE MERCURY DEVELOPERS" +end + local damageGuiWidth = 5.0 local damageGuiHeight = 5.0 diff --git a/luau/39250920.luau b/luau/39250920.luau index b90b0d8..adc5afb 100644 --- a/luau/39250920.luau +++ b/luau/39250920.luau @@ -1,4 +1,6 @@ +-- CoreGui.RobloxGui.CoreScripts/MainBotChatScript print "[Mercury]: Loaded corescript 39250920" + function waitForProperty(instance, name) while not instance[name] do instance.Changed:wait() diff --git a/luau/45284430.luau b/luau/45284430.luau index b7286ff..f63e079 100644 --- a/luau/45284430.luau +++ b/luau/45284430.luau @@ -1,4 +1,6 @@ +-- RbxGui print "[Mercury]: Loaded corescript 45284430" + local t = {} local function ScopedConnect( @@ -4017,7 +4019,11 @@ t.CreateLoadingFrame = function(name, size, position) cancelButtonClicked:Fire() end) - local updateLoadingGuiPercent = function(percent: number, tweenAction, tweenLength) + local updateLoadingGuiPercent = function( + percent: number, + tweenAction, + tweenLength + ) if percent and type(percent) ~= "number" then error( "updateLoadingGuiPercent expects number as argument, got " diff --git a/luau/45374389.luau b/luau/45374389.luau index 1d97400..159de50 100644 --- a/luau/45374389.luau +++ b/luau/45374389.luau @@ -1,4 +1,6 @@ +-- RbxGear (unused) print "[Mercury]: Loaded corescript 45374389" + local t = {} t.Foo = function() diff --git a/luau/46295863.luau b/luau/46295863.luau index 9e31e34..ccb1e1f 100644 --- a/luau/46295863.luau +++ b/luau/46295863.luau @@ -1,4 +1,6 @@ +-- CoreGui.RobloxGui.CoreScripts/Settings print "[Mercury]: Loaded corescript 46295863" + local function waitForChild(instance, name) while not instance:FindFirstChild(name) do instance.ChildAdded:wait() diff --git a/luau/48488235.luau b/luau/48488235.luau index 44bf27f..43442fd 100644 --- a/luau/48488235.luau +++ b/luau/48488235.luau @@ -1,4 +1,6 @@ +-- CoreGui.RobloxGui.CoreScripts/PlayerListScript print "[Mercury]: Loaded corescript 48488235" + --new playerlist by Zach Lindblad (fusroblox) --contact him for any revisions/issues -------------------- diff --git a/luau/48488398.luau b/luau/48488398.luau index 3bc1a29..3bdde1c 100644 --- a/luau/48488398.luau +++ b/luau/48488398.luau @@ -1,3 +1,4 @@ +-- CoreGui.RobloxGui.CoreScripts/NotificationScript print "[Mercury]: Loaded corescript 48488398" local TeleportService = TeleportService diff --git a/luau/48488451.luau b/luau/48488451.luau index 76f8558..f97f1fa 100644 --- a/luau/48488451.luau +++ b/luau/48488451.luau @@ -1,4 +1,6 @@ +-- CoreGui.RobloxGui.CoreScripts/PopupScript print "[Mercury]: Loaded corescript 48488451" + --build our gui local popupFrame = Instance.new "Frame" diff --git a/luau/53878047.luau b/luau/53878047.luau index b0a5f46..afda5bb 100644 --- a/luau/53878047.luau +++ b/luau/53878047.luau @@ -1,4 +1,6 @@ +-- CoreGui.RobloxGui.CoreScripts/BackpackScripts/BackpackBuild print "[Mercury]: Loaded corescript 53878047" + -- This script creates almost all gui elements found in the backpack (warning: there are a lot!) -- TODO: automate this process diff --git a/luau/53878057.luau b/luau/53878057.luau index 10dbc92..4a3d712 100644 --- a/luau/53878057.luau +++ b/luau/53878057.luau @@ -1,4 +1,6 @@ +-- CoreGui.RobloxGui.CurrentLoadout.CoreScripts/BackpackScript print "[Mercury]: Loaded corescript 53878057" + if game.CoreGui.Version < 3 then return end -- peace out if we aren't using the right client diff --git a/luau/59002209.luau b/luau/59002209.luau index e1963bd..369c052 100644 --- a/luau/59002209.luau +++ b/luau/59002209.luau @@ -1 +1,2 @@ +-- Script Context.CoreScripts/Sections print "[Mercury]: Loaded corescript 59002209" diff --git a/luau/60595411.luau b/luau/60595411.luau index a1db4bd..1bb1471 100644 --- a/luau/60595411.luau +++ b/luau/60595411.luau @@ -1,4 +1,6 @@ +-- RbxUtility print "[Mercury]: Loaded corescript 60595411" + local t = {} ------------------------------------------------------------------------------------------------------------------------ @@ -1037,6 +1039,26 @@ end -------------------------------------------------Create function End---------------------------------------------------- +-- Lmao time - Heliodex + +function t.HttpGet(url: string) + return game:HttpGet(url) +end + +function t.HttpGetAsync(url: string) + return game:HttpGetAsync(url) +end + +function t.HttpPost(url: string) + return game:HttpPost(url) +end + +function t.HttpPostAsync(url: string) + return game:HttpPostAsync(url) +end + +-- Lmao time end + ------------------------------------------------------------------------------------------------------------------------ ------------------------------------------------------------------------------------------------------------------------ ------------------------------------------------------------------------------------------------------------------------ diff --git a/luau/60595695.luau b/luau/60595695.luau index 9b773b0..f2a057a 100644 --- a/luau/60595695.luau +++ b/luau/60595695.luau @@ -1,9 +1,11 @@ +-- Script Context./Libraries/LibraryRegistration/LibraryRegist print "[Mercury]: Loaded corescript 60595695" + -- Library Registration Script -- This script is used to register RbxLua libraries on game servers, so game scripts have -- access to all of the libraries (otherwise only local scripts do) -local deepakTestingPlace = 3569749 +-- local deepakTestingPlace = 3569749 local sc = game:GetService "ScriptContext" local tries = 0 @@ -16,9 +18,9 @@ end if sc then sc:RegisterLibrary("Libraries/RbxGui", "45284430") sc:RegisterLibrary("Libraries/RbxGear", "45374389") - if game.PlaceId == deepakTestingPlace then - sc:RegisterLibrary("Libraries/RbxStatus", "52177566") - end + -- if game.PlaceId == deepakTestingPlace then + -- sc:RegisterLibrary("Libraries/RbxStatus", "52177566") + -- end sc:RegisterLibrary("Libraries/RbxUtility", "60595411") sc:RegisterLibrary("Libraries/RbxStamper", "73157242") sc:LibraryRegistrationComplete() diff --git a/luau/73157242.luau b/luau/73157242.luau index 4c8f44b..7627545 100644 --- a/luau/73157242.luau +++ b/luau/73157242.luau @@ -1,3 +1,4 @@ +-- RbxStamper print "[Mercury]: Loaded corescript 73157242" local ChangeHistoryService = game:GetService "ChangeHistoryService" diff --git a/luau/89449008.luau b/luau/89449008.luau index bf7b33e..d7a6448 100644 --- a/luau/89449008.luau +++ b/luau/89449008.luau @@ -1,4 +1,6 @@ +-- CoreGui.RobloxGui.Backpack.CoreScripts/BackpackScripts/Back (1?) print "[Mercury]: Loaded corescript 89449008" + -- A couple of necessary functions local function waitForChild(instance, name) assert(instance) diff --git a/luau/89449093.luau b/luau/89449093.luau index e003b4a..f40fc96 100644 --- a/luau/89449093.luau +++ b/luau/89449093.luau @@ -1,4 +1,6 @@ +-- CoreGui.RobloxGui.Backpack.CoreScripts/BackpackScripts/Back (2?) print "[Mercury]: Loaded corescript 89449093" + -- This script manages context switches in the backpack (Gear to Wardrobe, etc.) and player state changes. Also manages global functions across different tabs (currently only search) if game.CoreGui.Version < 7 then return diff --git a/luau/97188756.luau b/luau/97188756.luau index 3501a32..9604455 100644 --- a/luau/97188756.luau +++ b/luau/97188756.luau @@ -1,4 +1,6 @@ +-- CoreGui.RobloxGui.CoreScripts/ChatScript print "[Mercury]: Loaded corescript 97188756" + --[[ //FileName: ChatScript.LUA //Written by: Sorcus diff --git a/mercury.yml b/mercury.yml index d2deed7..633d454 100644 --- a/mercury.yml +++ b/mercury.yml @@ -25,6 +25,11 @@ globals: _CHAR_APPEARANCE: args: [] + assert: + args: + - type: any + - required: false + type: string ypcall: args: - type: function