Update plugin references from Rojo to Atlas

- Changed all instances of "Rojo" to "Atlas" in error messages, UI titles, and connection actions for consistent branding.
- Updated the sound player widget and patch history recording to reflect the new name.
- Enhanced logging in the hydration process to provide better diagnostics for missing virtual instances.
This commit is contained in:
Joe 2026-02-01 11:57:00 -06:00
parent 9ab1369444
commit edc09741bf
9 changed files with 71 additions and 27 deletions

View file

@ -3,6 +3,9 @@
concrete instances and assigning them IDs.
]]
local Packages = script.Parent.Parent.Parent.Packages
local Log = require(Packages.Log)
local invariant = require(script.Parent.Parent.invariant)
local function hydrate(instanceMap, virtualInstances, rootId, rootInstance)
@ -26,6 +29,17 @@ local function hydrate(instanceMap, virtualInstances, rootId, rootInstance)
for _, childId in ipairs(virtualInstance.Children) do
local virtualChild = virtualInstances[childId]
if virtualChild == nil then
Log.warn(
"Hydration: virtualInstances missing child ID {} (parent: {} '{}')",
childId,
rootId,
virtualInstance.Name
)
continue
end
local matched = false
for childIndex, childInstance in existingChildren do
if not isExistingChildVisited[childIndex] then
-- We guard accessing Name and ClassName in order to avoid
@ -40,10 +54,33 @@ local function hydrate(instanceMap, virtualInstances, rootId, rootInstance)
if accessSuccess and name == virtualChild.Name and className == virtualChild.ClassName then
isExistingChildVisited[childIndex] = true
hydrate(instanceMap, virtualInstances, childId, childInstance)
matched = true
break
end
end
end
if not matched then
-- Log why the match failed to help diagnose hydration issues
Log.debug(
"Hydration: No match for virtual child '{}' ({}) under '{}' ({})",
virtualChild.Name,
virtualChild.ClassName,
virtualInstance.Name,
rootInstance:GetFullName()
)
-- List real children for comparison
local realChildNames = {}
for _, child in existingChildren do
local success, childName, childClass = pcall(function()
return child.Name, child.ClassName
end)
if success then
table.insert(realChildNames, string.format("%s (%s)", childName, childClass))
end
end
Log.trace(" Real children: {}", table.concat(realChildNames, ", "))
end
end
end