From 3b7f00eb8f646903b78a55f7a0fa2e92a094b21b Mon Sep 17 00:00:00 2001 From: Bitl Date: Fri, 8 Feb 2019 10:31:07 -0700 Subject: [PATCH] bugfixes --- .../NovetusLauncher/ClientinfoCreator.cs | 2 ++ clients/2006S/content/scripts/CSMPFunctions.lua | 17 +++++++++++------ clients/2007M/content/scripts/CSMPFunctions.lua | 17 +++++++++++------ clients/2008M/content/scripts/CSMPFunctions.lua | 17 +++++++++++------ clients/2009E/content/scripts/CSMPFunctions.lua | 17 +++++++++++------ clients/2010L/content/scripts/CSMPFunctions.lua | 17 +++++++++++------ clients/2011E/content/scripts/CSMPFunctions.lua | 17 +++++++++++------ 7 files changed, 68 insertions(+), 36 deletions(-) diff --git a/NovetusLauncher/NovetusLauncher/ClientinfoCreator.cs b/NovetusLauncher/NovetusLauncher/ClientinfoCreator.cs index 8de8c04..c7f67d3 100644 --- a/NovetusLauncher/NovetusLauncher/ClientinfoCreator.cs +++ b/NovetusLauncher/NovetusLauncher/ClientinfoCreator.cs @@ -209,9 +209,11 @@ namespace NovetusLauncher SelectedClientScriptMD5 = ""; SelectedClientInfoPath = ""; CustomArgs = ""; + Locked = false; checkBox1.Checked = UsesPlayerName; checkBox2.Checked = UsesID; checkBox3.Checked = LegacyMode; + checkBox4.Checked = Locked; checkBox6.Checked = FixScriptMapMode; checkBox7.Checked = AlreadyHasSecurity; textBox3.Text = SelectedClientScriptMD5.ToUpper(); diff --git a/clients/2006S/content/scripts/CSMPFunctions.lua b/clients/2006S/content/scripts/CSMPFunctions.lua index 70139f2..16c6f6e 100644 --- a/clients/2006S/content/scripts/CSMPFunctions.lua +++ b/clients/2006S/content/scripts/CSMPFunctions.lua @@ -31,12 +31,14 @@ function readonlytablechildren(table) end end -readonlytablechildren(_G) -_G._G = readonlytable(_G) -mt = getmetatable(game.Changed) -mt.__metatable=false -mt = getmetatable("curse you roblox") -mt.__metatable=false +function readonlytableprotection() + readonlytablechildren(_G) + _G._G = readonlytable(_G) + mt = getmetatable(game.Changed) + mt.__metatable=false + mt = getmetatable("curse you roblox") + mt.__metatable=false +end --function made by rbxbanland function newWaitForChild(newParent,name) @@ -209,6 +211,7 @@ rbxversion = version() print("ROBLOX Client version '" .. rbxversion .. "' loaded.") function CSServer(Port,PlayerLimit,ClientEXEMD5,LauncherMD5,ClientScriptMD5,RemoveTeapotTurret) + readonlytableprotection() Server = game:GetService("NetworkServer") RunService = game:GetService("RunService") Server:start(Port, 20) @@ -257,6 +260,7 @@ function CSServer(Port,PlayerLimit,ClientEXEMD5,LauncherMD5,ClientScriptMD5,Remo end function CSConnect(UserID,ServerIP,ServerPort,PlayerName,Hat1ID,Hat2ID,Hat3ID,HeadColorID,TorsoColorID,LeftArmColorID,RightArmColorID,LeftLegColorID,RightLegColorID,TShirtID,ShirtID,PantsID,FaceID,HeadID,IconType,ItemID,ClientEXEMD5,LauncherMD5,ClientScriptMD5,Ticket) + readonlytableprotection() local suc, err = pcall(function() client = game:GetService("NetworkClient") player = game:GetService("Players"):CreateLocalPlayer(UserID) @@ -333,6 +337,7 @@ function CSConnect(UserID,ServerIP,ServerPort,PlayerName,Hat1ID,Hat2ID,Hat3ID,He end function CSSolo(UserID,PlayerName,Hat1ID,Hat2ID,Hat3ID,HeadColorID,TorsoColorID,LeftArmColorID,RightArmColorID,LeftLegColorID,RightLegColorID,TShirtID,ShirtID,PantsID,FaceID,HeadID,IconType,ItemID) + readonlytableprotection() local plr = game.Players:CreateLocalPlayer(UserID) game:GetService("RunService"):run() game.Workspace:InsertContent("rbxasset://Fonts//libraries.rbxm") diff --git a/clients/2007M/content/scripts/CSMPFunctions.lua b/clients/2007M/content/scripts/CSMPFunctions.lua index 9d60526..c26736a 100644 --- a/clients/2007M/content/scripts/CSMPFunctions.lua +++ b/clients/2007M/content/scripts/CSMPFunctions.lua @@ -27,12 +27,14 @@ function readonlytablechildren(table) end end -readonlytablechildren(_G) -_G._G = readonlytable(_G) -mt = getmetatable(game.Changed) -mt.__metatable=false -mt = getmetatable("curse you roblox") -mt.__metatable=false +function readonlytableprotection() + readonlytablechildren(_G) + _G._G = readonlytable(_G) + mt = getmetatable(game.Changed) + mt.__metatable=false + mt = getmetatable("curse you roblox") + mt.__metatable=false +end --function made by rbxbanland function newWaitForChild(newParent,name) @@ -322,6 +324,7 @@ end print("ROBLOX Client version '0.3.512.0' loaded.") function CSServer(Port,PlayerLimit,ClientEXEMD5,LauncherMD5,ClientScriptMD5,RemoveTeapotTurret) + readonlytableprotection() Server = game:GetService("NetworkServer") RunService = game:GetService("RunService") PlayerService = game:GetService("Players") @@ -372,6 +375,7 @@ function CSServer(Port,PlayerLimit,ClientEXEMD5,LauncherMD5,ClientScriptMD5,Remo end function CSConnect(UserID,ServerIP,ServerPort,PlayerName,Hat1ID,Hat2ID,Hat3ID,HeadColorID,TorsoColorID,LeftArmColorID,RightArmColorID,LeftLegColorID,RightLegColorID,TShirtID,ShirtID,PantsID,FaceID,HeadID,IconType,ItemID,ClientEXEMD5,LauncherMD5,ClientScriptMD5,Ticket) + readonlytableprotection() local suc, err = pcall(function() client = game:GetService("NetworkClient") player = game:GetService("Players"):CreateLocalPlayer(UserID) @@ -442,6 +446,7 @@ function CSConnect(UserID,ServerIP,ServerPort,PlayerName,Hat1ID,Hat2ID,Hat3ID,He end function CSSolo(UserID,PlayerName,Hat1ID,Hat2ID,Hat3ID,HeadColorID,TorsoColorID,LeftArmColorID,RightArmColorID,LeftLegColorID,RightLegColorID,TShirtID,ShirtID,PantsID,FaceID,HeadID,IconType,ItemID) + readonlytableprotection() local plr = game.Players:CreateLocalPlayer(UserID) game:GetService("RunService"):run() game.Workspace:InsertContent("rbxasset://Fonts//libraries.rbxm") diff --git a/clients/2008M/content/scripts/CSMPFunctions.lua b/clients/2008M/content/scripts/CSMPFunctions.lua index 77c12bd..ec40ac6 100644 --- a/clients/2008M/content/scripts/CSMPFunctions.lua +++ b/clients/2008M/content/scripts/CSMPFunctions.lua @@ -31,12 +31,14 @@ function readonlytablechildren(table) end end -readonlytablechildren(_G) -_G._G = readonlytable(_G) -mt = getmetatable(game.Changed) -mt.__metatable=false -mt = getmetatable("curse you roblox") -mt.__metatable=false +function readonlytableprotection() + readonlytablechildren(_G) + _G._G = readonlytable(_G) + mt = getmetatable(game.Changed) + mt.__metatable=false + mt = getmetatable("curse you roblox") + mt.__metatable=false +end --function made by rbxbanland function newWaitForChild(newParent,name) @@ -375,6 +377,7 @@ rbxversion = version() print("ROBLOX Client version '" .. rbxversion .. "' loaded.") function CSServer(Port,PlayerLimit,ClientEXEMD5,LauncherMD5,ClientScriptMD5,RemoveTeapotTurret) + readonlytableprotection() Server = game:GetService("NetworkServer") RunService = game:GetService("RunService") Server:start(Port, 20) @@ -423,6 +426,7 @@ function CSServer(Port,PlayerLimit,ClientEXEMD5,LauncherMD5,ClientScriptMD5,Remo end function CSConnect(UserID,ServerIP,ServerPort,PlayerName,Hat1ID,Hat2ID,Hat3ID,HeadColorID,TorsoColorID,LeftArmColorID,RightArmColorID,LeftLegColorID,RightLegColorID,TShirtID,ShirtID,PantsID,FaceID,HeadID,IconType,ItemID,ClientEXEMD5,LauncherMD5,ClientScriptMD5,Ticket) + readonlytableprotection() local suc, err = pcall(function() client = game:GetService("NetworkClient") player = game:GetService("Players"):CreateLocalPlayer(UserID) @@ -495,6 +499,7 @@ function CSConnect(UserID,ServerIP,ServerPort,PlayerName,Hat1ID,Hat2ID,Hat3ID,He end function CSSolo(UserID,PlayerName,Hat1ID,Hat2ID,Hat3ID,HeadColorID,TorsoColorID,LeftArmColorID,RightArmColorID,LeftLegColorID,RightLegColorID,TShirtID,ShirtID,PantsID,FaceID,HeadID,IconType,ItemID) + readonlytableprotection() local plr = game.Players:CreateLocalPlayer(UserID) game:GetService("RunService"):run() game.Workspace:InsertContent("rbxasset://Fonts//libraries.rbxm") diff --git a/clients/2009E/content/scripts/CSMPFunctions.lua b/clients/2009E/content/scripts/CSMPFunctions.lua index ee89cce..18043c4 100644 --- a/clients/2009E/content/scripts/CSMPFunctions.lua +++ b/clients/2009E/content/scripts/CSMPFunctions.lua @@ -31,12 +31,14 @@ function readonlytablechildren(table) end end -readonlytablechildren(_G) -_G._G = readonlytable(_G) -mt = getmetatable(game.Changed) -mt.__metatable=false -mt = getmetatable("curse you roblox") -mt.__metatable=false +function readonlytableprotection() + readonlytablechildren(_G) + _G._G = readonlytable(_G) + mt = getmetatable(game.Changed) + mt.__metatable=false + mt = getmetatable("curse you roblox") + mt.__metatable=false +end --function made by rbxbanland function newWaitForChild(newParent,name) @@ -418,6 +420,7 @@ rbxversion = version() print("ROBLOX Client version '" .. rbxversion .. "' loaded.") function CSServer(Port,PlayerLimit,ClientEXEMD5,LauncherMD5,ClientScriptMD5,RemoveTeapotTurret) + readonlytableprotection() Server = game:GetService("NetworkServer") RunService = game:GetService("RunService") Server:start(Port, 20) @@ -465,6 +468,7 @@ function CSServer(Port,PlayerLimit,ClientEXEMD5,LauncherMD5,ClientScriptMD5,Remo Server.IncommingConnection:connect(IncommingConnection) end function CSConnect(UserID,ServerIP,ServerPort,PlayerName,Hat1ID,Hat2ID,Hat3ID,HeadColorID,TorsoColorID,LeftArmColorID,RightArmColorID,LeftLegColorID,RightLegColorID,TShirtID,ShirtID,PantsID,FaceID,HeadID,IconType,ItemID,ClientEXEMD5,LauncherMD5,ClientScriptMD5,Ticket) + readonlytableprotection() pcall(function() game:SetPlaceID(-1, false) end) pcall(function() game:GetService("Players"):SetChatStyle(Enum.ChatStyle.ClassicAndBubble) end) @@ -550,6 +554,7 @@ function CSConnect(UserID,ServerIP,ServerPort,PlayerName,Hat1ID,Hat2ID,Hat3ID,He end function CSSolo(UserID,PlayerName,Hat1ID,Hat2ID,Hat3ID,HeadColorID,TorsoColorID,LeftArmColorID,RightArmColorID,LeftLegColorID,RightLegColorID,TShirtID,ShirtID,PantsID,FaceID,HeadID,IconType,ItemID) + readonlytableprotection() local plr = game.Players:CreateLocalPlayer(UserID) game:GetService("RunService"):run() game.Workspace:InsertContent("rbxasset://Fonts//libraries.rbxm") diff --git a/clients/2010L/content/scripts/CSMPFunctions.lua b/clients/2010L/content/scripts/CSMPFunctions.lua index b7d1e6d..34920f6 100644 --- a/clients/2010L/content/scripts/CSMPFunctions.lua +++ b/clients/2010L/content/scripts/CSMPFunctions.lua @@ -31,12 +31,14 @@ function readonlytablechildren(table) end end -readonlytablechildren(_G) -_G._G = readonlytable(_G) -mt = getmetatable(game.Changed) -mt.__metatable=false -mt = getmetatable("curse you roblox") -mt.__metatable=false +function readonlytableprotection() + readonlytablechildren(_G) + _G._G = readonlytable(_G) + mt = getmetatable(game.Changed) + mt.__metatable=false + mt = getmetatable("curse you roblox") + mt.__metatable=false +end --function made by rbxbanland function newWaitForChild(newParent,name) @@ -418,6 +420,7 @@ rbxversion = version() print("ROBLOX Client version '" .. rbxversion .. "' loaded.") function CSServer(Port,PlayerLimit,ClientEXEMD5,LauncherMD5,ClientScriptMD5,RemoveTeapotTurret) + readonlytableprotection() assert((type(Port)~="number" or tonumber(Port)~=nil or Port==nil),"CSRun Error: Port must be nil or a number.") local NetworkServer=game:GetService("NetworkServer") local RunService = game:GetService("RunService") @@ -466,6 +469,7 @@ function CSServer(Port,PlayerLimit,ClientEXEMD5,LauncherMD5,ClientScriptMD5,Remo end function CSConnect(UserID,ServerIP,ServerPort,PlayerName,Hat1ID,Hat2ID,Hat3ID,HeadColorID,TorsoColorID,LeftArmColorID,RightArmColorID,LeftLegColorID,RightLegColorID,TShirtID,ShirtID,PantsID,FaceID,HeadID,IconType,ItemID,ClientEXEMD5,LauncherMD5,ClientScriptMD5,Ticket) + readonlytableprotection() pcall(function() game:SetPlaceID(-1, false) end) pcall(function() game:GetService("Players"):SetChatStyle(Enum.ChatStyle.ClassicAndBubble) end) @@ -571,6 +575,7 @@ function CSConnect(UserID,ServerIP,ServerPort,PlayerName,Hat1ID,Hat2ID,Hat3ID,He end function CSSolo(UserID,PlayerName,Hat1ID,Hat2ID,Hat3ID,HeadColorID,TorsoColorID,LeftArmColorID,RightArmColorID,LeftLegColorID,RightLegColorID,TShirtID,ShirtID,PantsID,FaceID,HeadID,IconType,ItemID) + readonlytableprotection() local plr = game.Players:CreateLocalPlayer(UserID) game:GetService("RunService"):run() plr.Name = PlayerName diff --git a/clients/2011E/content/scripts/CSMPFunctions.lua b/clients/2011E/content/scripts/CSMPFunctions.lua index 2f6add7..c70198d 100644 --- a/clients/2011E/content/scripts/CSMPFunctions.lua +++ b/clients/2011E/content/scripts/CSMPFunctions.lua @@ -47,12 +47,14 @@ function readonlytablechildren(table) end end -readonlytablechildren(_G) -_G._G = readonlytable(_G) -mt = getmetatable(game.Changed) -mt.__metatable=false -mt = getmetatable("curse you roblox") -mt.__metatable=false +function readonlytableprotection() + readonlytablechildren(_G) + _G._G = readonlytable(_G) + mt = getmetatable(game.Changed) + mt.__metatable=false + mt = getmetatable("curse you roblox") + mt.__metatable=false +end --function made by rbxbanland function newWaitForChild(newParent,name) @@ -434,6 +436,7 @@ rbxversion = version() print("ROBLOX Client version '" .. rbxversion .. "' loaded.") function CSServer(Port,PlayerLimit,ClientEXEMD5,LauncherMD5,ClientScriptMD5,RemoveTeapotTurret) + readonlytableprotection() assert((type(Port)~="number" or tonumber(Port)~=nil or Port==nil),"CSRun Error: Port must be nil or a number.") local NetworkServer=game:GetService("NetworkServer") local RunService = game:GetService("RunService") @@ -482,6 +485,7 @@ function CSServer(Port,PlayerLimit,ClientEXEMD5,LauncherMD5,ClientScriptMD5,Remo end function CSConnect(UserID,ServerIP,ServerPort,PlayerName,Hat1ID,Hat2ID,Hat3ID,HeadColorID,TorsoColorID,LeftArmColorID,RightArmColorID,LeftLegColorID,RightLegColorID,TShirtID,ShirtID,PantsID,FaceID,HeadID,IconType,ItemID,ClientEXEMD5,LauncherMD5,ClientScriptMD5,Ticket) + readonlytableprotection() pcall(function() game:SetPlaceID(-1, false) end) pcall(function() game:GetService("Players"):SetChatStyle(Enum.ChatStyle.ClassicAndBubble) end) @@ -595,6 +599,7 @@ function CSConnect(UserID,ServerIP,ServerPort,PlayerName,Hat1ID,Hat2ID,Hat3ID,He end function CSSolo(UserID,PlayerName,Hat1ID,Hat2ID,Hat3ID,HeadColorID,TorsoColorID,LeftArmColorID,RightArmColorID,LeftLegColorID,RightLegColorID,TShirtID,ShirtID,PantsID,FaceID,HeadID,IconType,ItemID) + readonlytableprotection() local plr = game.Players:CreateLocalPlayer(UserID) game:GetService("RunService"):run() plr.Name = PlayerName