diff --git a/public/game/gameserver.php b/public/game/gameserver.php index 7947d4f..64b361c 100644 --- a/public/game/gameserver.php +++ b/public/game/gameserver.php @@ -9,42 +9,6 @@ ob_start(); ?> -- Start Game Script Arguments --- test -local assetPropertyNames = {"Texture", "TextureId", "SoundId", "MeshId", "SkyboxUp", "SkyboxLf", "SkyboxBk", "SkyboxRt", "SkyboxFt", "SkyboxDn", "PantsTemplate", "ShirtTemplate", "Graphic", "Frame", "ImageLabel", "GuiMain", "Image", "LinkedSource", "AnimationId"} -local variations = {"http://www%.roblox%.com/asset/%?id=", "http://www%.roblox%.com/asset%?id=", "http://%.roblox%.com/asset/%?id=", "http://%.roblox%.com/asset%?id="} - -function GetDescendants(o) - local allObjects = {} - function FindChildren(Object) - for _,v in pairs(Object:GetChildren()) do - table.insert(allObjects,v) - FindChildren(v) - end - end - FindChildren(o) - return allObjects -end - -local replacedProperties = 0--Amount of properties changed - -for i, v in pairs(GetDescendants(game)) do - for _, property in pairs(assetPropertyNames) do - pcall(function() - if v[property] and not v:FindFirstChild(property) then --Check for property, make sure we're not getting a child instead of a property - assetText = string.lower(v[property]) - for _, variation in pairs(variations) do - v[property], matches = string.gsub(assetText, variation, "http://www%.roblox%.com/asset/%?id=") - if matches > 0 then - replacedProperties = replacedProperties + 1 - print("Replaced " .. property .. " asset link for " .. v.Name) - break - end - end - end - end) - end -end - ------------------- UTILITY FUNCTIONS -------------------------- local cdnSuccess = 0 diff --git a/public/game/join.php b/public/game/join.php index 3c338be..1043a5d 100644 --- a/public/game/join.php +++ b/public/game/join.php @@ -111,9 +111,9 @@ end -- called when the client connection closes function onDisconnection(peer, lostConnection) if lostConnection then - showErrorWindow("You have lost connection", "LostConnection", "LostConnection") + showErrorWindow("You have lost connection (ID: 200)", "LostConnection", "LostConnection") else - showErrorWindow("This game has been shutdown", "Kick", "Kick") + showErrorWindow("This game has been shut down (ID: 210)", "Kick", "Kick") end end @@ -187,13 +187,13 @@ end -- called when the client connection fails function onConnectionFailed(_, error) - showErrorWindow("Failed to connect to the Game. (ID=" .. error .. ")", "ID" .. error, "Other") + showErrorWindow("Failed to connect. (ID=" .. error .. ")", "ID" .. error, "Other") end -- called when the client connection is rejected function onConnectionRejected() connectionFailed:disconnect() - showErrorWindow("This game is not available. Please try another", "WrongVersion", "WrongVersion") + showErrorWindow("Your connection has been rejected. (ID: 300)", "WrongVersion", "WrongVersion") end pcall(function() settings().Diagnostics:LegacyScriptMode() end) @@ -201,7 +201,7 @@ local success, err = pcall(function() game:SetRemoteBuildMode(true) - setMessage("Connecting to :") + setMessage("Joining :") client.ConnectionAccepted:connect(onConnectionAccepted) client.ConnectionRejected:connect(onConnectionRejected) connectionFailed = client.ConnectionFailed:connect(onConnectionFailed) @@ -220,7 +220,7 @@ local success, err = pcall(function() player.CharacterAppearance = "" if not test then visit:SetUploadUrl("")end - player.Name = "" + player.Name = "" end) pcall(function() game:SetScreenshotInfo("") end)