CodeLock to ExpansionCodeLock Bridge
Makes other mods compatible with the DayZ Expansion BaseBuilding codelock (this mod was previously named MSP_ExpansionCodeLockCompat). This has to be loaded INSTEAD of the Code Lock mod by RoomService. It is recommended that you either wipe or use EntityReplacer to replace all instances of CodeLock with ExpansionCodeLock PRIOR to installing this mod. Currently directly supported: Adamx Storage BaseBuildingPlus Dex… (more)
Makes other mods compatible with the DayZ Expansion BaseBuilding codelock (this mod was previously named MSP_ExpansionCodeLockCompat). This has to be loaded INSTEAD of the Code Lock mod by RoomService. It is recommended that you either wipe or use EntityReplacer to replace all instances of CodeLock with ExpansionCodeLock PRIOR to installing this mod. Currently directly supported: Adamx Storage BaseBuildingPlus Dex Storage Stuff Doors and Barricades - ProjectBR (outdated, fixed version here) MoreDoors MuchDecos MuchStuffPack RaG_BaseItems RaG_Cabin Mods that work with Expansion Codelock out-of-the-box (Bridge not needed) Building Fortifications EvenMoreDoors RaG_Hunting_Cabin
No file I/O on hot paths, no timers created per event, no per-player-per-frame hooks.
2 chain breaks, all on specific classes the mod replaces wholesale — matters only if another mod patches the same classes.
0.000724% of each server frame at 100 players (0.007 ms/s). Counts hook dispatch and timers only, not what the hooks do inside. Methodology.
Structural load of the 328 scripted mods analyzed, lightest on the left. This mod's bar is lit; 9 others share it. Ranked list.
Event hooks carry 100% of this mod's structural load. 0.007 ms/s in all.
6 hooks · 0.0072 ms/s
| Event hooksrun when something happens: an inventory move, a hit, an action | 6 hooks | 0.0072 ms/s | 100% | BBP_BASE.EEItemAttached, Fence.EEItemAttached, ActionOpenFence.ActionCondition and 3 more |
Counts how often each hook is dispatched and how many timers stay alive, not what the code inside does. Some rates are order-of-magnitude estimates; the methodology lists which.
Chain breaks, by consequence
2 overrides that skip super(), ranked by how much they can affect. On any server a break replaces vanilla's behaviour on that method and silences every earlier-loaded mod hooking it.
Close · Open
Only this class is affected. Matters only if another mod in your stack patches the same class.
1 class
rag_cabin2 locations
CL2ECL_Bridge.pbo::Scripts\4_World\rag_cabin.c:41CL2ECL_Bridge.pbo::Scripts\4_World\rag_cabin.c:36Where this mod runs often
Hooks on per-frame and high-rate surfaces, with what their bodies call. Body work, not the hook itself, is what costs frame time.
ActionCondition on ExpansionActionEnterCodeLockOther findings
super() only on some paths · 6 · warning
- Fence.CloseFence calls super.CloseFence() only on some paths — on the others the chain below this mod is dropped.
CL2ECL_Bridge.pbo::Scripts\4_World\Fence.c:17 - Fence.PlaySoundSet returns true without consulting super.PlaySoundSet() on some paths — vanilla's conditions and every earlier-loaded mod's vetoes are bypassed there.
CL2ECL_Bridge.pbo::Scripts\4_World\Fence.c:51 - Fence.RemoveAction calls super.RemoveAction() only on some paths — on the others the chain below this mod is dropped.
CL2ECL_Bridge.pbo::Scripts\4_World\Fence.c:74 - ItemBase.AddAction calls super.AddAction() only on some paths — on the others the chain below this mod is dropped.
CL2ECL_Bridge.pbo::Scripts\4_World\ItemBase.c:10 - ItemBase.RemoveAction calls super.RemoveAction() only on some paths — on the others the chain below this mod is dropped.
CL2ECL_Bridge.pbo::Scripts\4_World\ItemBase.c:95 - ExpansionActionEnterCodeLock.ActionCondition vetoes early (returns false) on some paths and defers to super.ActionCondition() otherwise — composes safely with vanilla's and earlier mods' conditions.
CL2ECL_Bridge.pbo::Scripts\4_World\ExpansionActionEnterCodeLock.c:3
- Fence.CloseFence calls super.CloseFence() only on some paths — on the others the chain below this mod is dropped.
Which vanilla methods the mod hooks, which of them drop the chain, how often each hook fires, and which risky calls sit inside hot hooks.
How long hook bodies take, network cost, or engine-side load. Measured across live fleets, most server lag comes from the engine and world state, not mod script chains — a light footprint does not clear a mod of lag, and a heavy one does not convict it. Methodology.
Everything else
All 34 overrides
Surface is the dispatch tier the rubric can price (— = unpriced); server is whether the override exists on a dedicated server; super() shows whether the vanilla chain is preserved on a server.
| method | surface | server | super() | where |
|---|---|---|---|---|
ActionConstructor.RegisterActions |
— | yes | ✓ | CL2ECL_Bridge.pbo::Scripts\4_World\ActionConstructor.c:3 |
ActionOpenFence.ActionCondition |
T2 | yes | ✓ | CL2ECL_Bridge.pbo::Scripts\4_World\ActionOpenFence.c:3 |
ActionUnHideCabinInventory.ActionCondition |
T2 | yes | ✓ | CL2ECL_Bridge.pbo::Scripts\4_World\rag_cabin.c:57 |
BBP_BASE.EEItemAttached |
T2 | yes | ✓ | CL2ECL_Bridge.pbo::Scripts\4_World\BBP_BASE.c:4 |
ExpansionActionAttachCodeLock.ActionCondition |
T2 | yes | ✓ | CL2ECL_Bridge.pbo::Scripts\4_World\ExpansionActionAttachCodeLock.c:3 |
ExpansionActionEnterCodeLock.ActionCondition |
T2 | yes | conditional | CL2ECL_Bridge.pbo::Scripts\4_World\ExpansionActionEnterCodeLock.c:3 |
Fence.CloseFence |
— | yes | conditional | CL2ECL_Bridge.pbo::Scripts\4_World\Fence.c:17 |
Fence.DeferredInit |
— | yes | ✓ | CL2ECL_Bridge.pbo::Scripts\4_World\Fence.c:28 |
Fence.EEItemAttached |
T2 | yes | ✓ | CL2ECL_Bridge.pbo::Scripts\4_World\Fence.c:37 |
Fence.HasFullyConstructedGate |
— | yes | ✓ | CL2ECL_Bridge.pbo::Scripts\4_World\Fence.c:46 |
Fence.PlaySoundSet |
— | yes | conditional | CL2ECL_Bridge.pbo::Scripts\4_World\Fence.c:51 |
Fence.RemoveAction |
— | yes | conditional | CL2ECL_Bridge.pbo::Scripts\4_World\Fence.c:74 |
Hammer.isBBPAdminTool |
— | yes | ✓ | CL2ECL_Bridge.pbo::Scripts\4_World\Hammer.c:4 |
ItemBase.AddAction |
— | yes | conditional | CL2ECL_Bridge.pbo::Scripts\4_World\ItemBase.c:10 |
ItemBase.RemoveAction |
— | yes | conditional | CL2ECL_Bridge.pbo::Scripts\4_World\ItemBase.c:95 |
ItemBase.ExpansionIsOpenable |
— | yes | ✓ | CL2ECL_Bridge.pbo::Scripts\4_World\ItemBase.c:119 |
MD_OpenableItem_Base.ExpansionIsOpenable |
— | yes | ✓ | CL2ECL_Bridge.pbo::Scripts\4_World\MuchDecos.c:4 |
MD_OpenableItem_Base.ExpansionCanClose |
— | yes | ✓ | CL2ECL_Bridge.pbo::Scripts\4_World\MuchDecos.c:12 |
MD_OpenableItem_Base.ExpansionHasCodeLock |
— | yes | ✓ | CL2ECL_Bridge.pbo::Scripts\4_World\MuchDecos.c:20 |
Msp_Greenhouse_Base.ExpansionIsOpenable |
— | yes | ✓ | CL2ECL_Bridge.pbo::Scripts\4_World\MSP.c:4 |
Msp_Greenhouse_Base.ExpansionCanClose |
— | yes | ✓ | CL2ECL_Bridge.pbo::Scripts\4_World\MSP.c:12 |
Msp_Greenhouse_Base.ExpansionHasCodeLock |
— | yes | ✓ | CL2ECL_Bridge.pbo::Scripts\4_World\MSP.c:20 |
Msp_OpenableContainer.DeferredInit |
— | yes | ✓ | CL2ECL_Bridge.pbo::Scripts\4_World\MSP.c:33 |
rag_baseitems_greenhouse_base.GetSlotIndexByAttachmentSlot |
— | yes | ✓ | CL2ECL_Bridge.pbo::Scripts\4_World\rag_baseitems.c:4 |
rag_baseitems_greenhouse_base.ExpansionIsOpenable |
— | yes | ✓ | CL2ECL_Bridge.pbo::Scripts\4_World\rag_baseitems.c:12 |
rag_baseitems_greenhouse_base.ExpansionCanClose |
— | yes | ✓ | CL2ECL_Bridge.pbo::Scripts\4_World\rag_baseitems.c:20 |
rag_baseitems_greenhouse_base.ExpansionHasCodeLock |
— | yes | ✓ | CL2ECL_Bridge.pbo::Scripts\4_World\rag_baseitems.c:28 |
rag_cabin.ExpansionIsOpenable |
— | yes | ✓ | CL2ECL_Bridge.pbo::Scripts\4_World\rag_cabin.c:4 |
rag_cabin.ExpansionCanOpen |
— | yes | ✓ | CL2ECL_Bridge.pbo::Scripts\4_World\rag_cabin.c:12 |
rag_cabin.ExpansionCanClose |
— | yes | ✓ | CL2ECL_Bridge.pbo::Scripts\4_World\rag_cabin.c:20 |
rag_cabin.ExpansionHasCodeLock |
— | yes | ✓ | CL2ECL_Bridge.pbo::Scripts\4_World\rag_cabin.c:28 |
rag_cabin.Open |
— | yes | ✗ none | CL2ECL_Bridge.pbo::Scripts\4_World\rag_cabin.c:36 |
rag_cabin.Close |
— | yes | ✗ none | CL2ECL_Bridge.pbo::Scripts\4_World\rag_cabin.c:41 |
rag_cabin.CloseAndLock |
— | yes | ✓ | CL2ECL_Bridge.pbo::Scripts\4_World\rag_cabin.c:46 |
Dispatch surfaces and timers the grade prices
| surface | tier | rate (Hz) | rate source | ms/s |
|---|---|---|---|---|
BBP_BASE.EEItemAttached | T2 | 130.0 | measured | 0.0032 |
Fence.EEItemAttached | T2 | 130.0 | measured | 0.0032 |
ActionOpenFence.ActionCondition | T2 | 8.0 | placeholder | 0.0002 |
ExpansionActionAttachCodeLock.ActionCondition | T2 | 8.0 | placeholder | 0.0002 |
ExpansionActionEnterCodeLock.ActionCondition | T2 | 8.0 | placeholder | 0.0002 |
ActionUnHideCabinInventory.ActionCondition | T2 | 8.0 | placeholder | 0.0002 |
Includes 0.001 ms/s from placeholder-rated surfaces.
Load-order constraints (CfgPatches)
What each PBO declares: its addon identity and the addons it requires to be loaded first (requiredAddons). A partial load-order signal from the mod's own metadata.
0_CL2ECL_Bridge_Preload.pbo
CL2ECL_Bridge_PreloadrequiredVersion 0.1 — no requiredAddons
CL2ECL_Bridge.pbo
CL2ECL_BridgerequiredVersion 0.1 — requiresDZ_Data,DayZExpansion_BaseBuilding_Scripts
census 1.1 · findings 1.1 · hash 0c208d81cb3d9fa5