Version 2.2.1

csarManager enhancements etc.
This commit is contained in:
Christian Franz
2024-04-04 13:25:33 +02:00
parent 3111d2e804
commit 8f7371825d
15 changed files with 848 additions and 331 deletions

View File

@@ -126,6 +126,7 @@ end
function groupTracker.addGroupToTrackerNamed(theGroup, trackerName)
if not trackerName then
trigger.action.outText("+++gTrk: nil tracker in addGroupToTrackerNamed", 30)
return
end
if not theGroup then
trigger.action.outText("+++gTrk: no group in addGroupToTrackerNamed <" .. trackerName .. ">", 30)
@@ -543,6 +544,13 @@ function groupTracker.trackGroupsInZone(theZone)
local trackerName = cfxZones.getStringFromZoneProperty(theZone, "addToTracker:", "<none>")
local theGroups = cfxZones.allGroupsInZone(theZone, nil)
--[[-- trigger.action.outText("Groups in zone <" .. theZone.name .. ">:", 30)
local msg = " :: "
for idx, aGroup in pairs (theGroups) do
msg = msg .. " <" .. aGroup:getName() .. ">"
end
trigger.action.outText(msg, 30)
--]]--
-- now init array processing
local trackerNames = {}
@@ -613,6 +621,18 @@ function groupTracker.start()
groupTracker.trackGroupsInZone(aZone) -- process attributes
end
-- verbose debugging:
-- show who's tracking who
for idx, theZone in pairs(groupTracker.trackers) do
if groupTracker.verbose or theZone.verbose then
local msg = " - Tracker <" .. theZone.name .. ">: "
for idx, theGroup in pairs(theZone.trackedGroups) do
msg = msg .. "<" .. theGroup:getName() .. "> "
end
trigger.action.outText(msg, 30)
end
end
-- update all cloners and spawned clones from file
if persistence then
-- sign up for persistence