@@ -106,7 +106,11 @@ function DeliveryCreationHandler:Initialize(activity)
106
106
107
107
for i = 0 , self .Activity .TeamCount - 1 do
108
108
local moduleID = PresetMan :GetModuleID (self .Activity :GetTeamTech (i ));
109
- self .teamTechTable [i ] = PresetMan :GetDataModule (moduleID );
109
+ if moduleID ~= - 1 then
110
+ self .teamTechTable [i ] = PresetMan :GetDataModule (moduleID );
111
+ else
112
+ self .teamTechTable [i ] = {[" FileName" ] = " All" }; -- master of ghetto
113
+ end
110
114
self .teamTechIDTable [i ] = moduleID ;
111
115
112
116
self .saveTable .teamRemovedPresets [i ] = {};
@@ -149,6 +153,12 @@ function DeliveryCreationHandler:Initialize(activity)
149
153
end
150
154
151
155
for team , module in pairs (self .teamTechTable ) do
156
+
157
+ local iterator = module .Presets ;
158
+ -- handle -All-
159
+ if not iterator then
160
+ iterator = PresetMan :GetAllEntities ();
161
+ end
152
162
153
163
self .teamPresetTables [team ] = {};
154
164
@@ -179,7 +189,7 @@ function DeliveryCreationHandler:Initialize(activity)
179
189
self .teamPresetTables [team ][" Actors - Mecha" ] = {};
180
190
self .teamPresetTables [team ][" Actors - Turrets" ] = {};
181
191
182
- for entity in module . Presets do
192
+ for entity in iterator do
183
193
if IsMOSRotating (entity ) and ToMOSRotating (entity ).IsBuyable and ToMOSRotating (entity ).BuyableMode ~= 2 then
184
194
185
195
local entityInfoTable = {};
@@ -447,7 +457,7 @@ function DeliveryCreationHandler:SelectPresetByGroupPair(team, primaryGroup, sec
447
457
local presetName = presetTable .PresetName ;
448
458
local className = presetTable .ClassName ;
449
459
local createFunc = " Create" .. className ;
450
- local techName = actingTech .FileName ;
460
+ local techName = actingTech .FileName or " All " ;
451
461
452
462
453
463
-- print(presetName)
0 commit comments