MuchDecos_Codelock
Mod Support ended with Version 1.26 Mod will work until it won't. Use it if you want but there won't be any more updates This mod is an addon for MuchDecos mod. To be able to run this you require CodeLock mod as well. Monetization You may run this on monetized servers as long no item or retexture of an item from this pack is monetized. Copyright Repack is allowed. This work is licensed under ADPL-SA This work is… (more)
Mod Support ended with Version 1.26 Mod will work until it won't. Use it if you want but there won't be any more updates This mod is an addon for MuchDecos mod. To be able to run this you require CodeLock mod as well. Monetization You may run this on monetized servers as long no item or retexture of an item from this pack is monetized. Copyright Repack is allowed. This work is licensed under ADPL-SA This work is licensed under Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License This mod can be repacked under your server mod(only server specific mods). This pbo must be run on both client and server. Donations
No file I/O on hot paths, no timers created per event, no per-player-per-frame hooks.
1 chain break, all on specific classes the mod replaces wholesale — matters only if another mod patches the same classes.
less than 0.001% of each server frame at 100 players (0.001 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; 32 others share it. Ranked list.
Event hooks carry 99.8% of this mod's structural load. 0.001 ms/s in all.
5 hooks · 0.00099 ms/s
| Event hooksrun when something happens: an inventory move, a hit, an action | 5 hooks | 0.00099 ms/s | 99.8% | ActionOpenBuildingDoors.ActionCondition, CodeLock.SetActions, Hacksaw.SetActions and 2 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
1 override 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.
CreateConditionComponents
Only this class is affected. Matters only if another mod in your stack patches the same class.
1 class
ActionOpenBuildingDoors1 location
MuchDecos_Codelock.pbo::scripts\4_World\Actions\ActionOpenBuildingDoors.c:10Where 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.
Other findings
super() only on some paths · 1 · warning
- MD_OpenableItem_Base.CanReceiveAttachment returns true without consulting super.CanReceiveAttachment() on some paths — vanilla's conditions and every earlier-loaded mod's vetoes are bypassed there.
MuchDecos_Codelock.pbo::scripts\4_World\ItemBase\MD_OpenableItem_Base.c:3
- MD_OpenableItem_Base.CanReceiveAttachment returns true without consulting super.CanReceiveAttachment() on some paths — vanilla's conditions and every earlier-loaded mod's vetoes are bypassed there.
Checks answered without super() · 1 · warning
- ActionOpenBuildingDoors.ActionCondition returns its own answer without consulting super.ActionCondition() — vanilla's conditions on this check, and those of every earlier-loaded mod, no longer apply. Intended when a mod owns the rule outright; otherwise it is how another mod's restriction quietly stops working.
MuchDecos_Codelock.pbo::scripts\4_World\Actions\ActionOpenBuildingDoors.c:21
- ActionOpenBuildingDoors.ActionCondition returns its own answer without consulting super.ActionCondition() — vanilla's conditions on this check, and those of every earlier-loaded mod, no longer apply. Intended when a mod owns the rule outright; otherwise it is how another mod's restriction quietly stops working.
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 9 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 | ✓ | MuchDecos_Codelock.pbo::scripts\4_World\Actions\actionconstructor.c:3 |
ActionOpenBuildingDoors.CreateConditionComponents |
— | yes | ✗ none | MuchDecos_Codelock.pbo::scripts\4_World\Actions\ActionOpenBuildingDoors.c:10 |
ActionOpenBuildingDoors.GetText |
— | yes | ✗ none | MuchDecos_Codelock.pbo::scripts\4_World\Actions\ActionOpenBuildingDoors.c:16 |
ActionOpenBuildingDoors.ActionCondition |
T2 | yes | ✗ none | MuchDecos_Codelock.pbo::scripts\4_World\Actions\ActionOpenBuildingDoors.c:21 |
CodeLock.NewUnlockServer |
— | yes | ✓ | MuchDecos_Codelock.pbo::scripts\4_World\ItemBase\CodeLock.c:3 |
CodeLock.SetActions |
T2 | yes | ✓ | MuchDecos_Codelock.pbo::scripts\4_World\ItemBase\CodeLock.c:19 |
Hacksaw.SetActions |
T2 | yes | ✓ | MuchDecos_Codelock.pbo::scripts\4_World\ItemBase\Hacksaw.c:3 |
MD_OpenableItem_Base.CanReceiveAttachment |
T2 | yes | conditional | MuchDecos_Codelock.pbo::scripts\4_World\ItemBase\MD_OpenableItem_Base.c:3 |
MD_OpenableItem_Base.SetActions |
T2 | yes | ✓ | MuchDecos_Codelock.pbo::scripts\4_World\ItemBase\MD_OpenableItem_Base.c:12 |
Dispatch surfaces and timers the grade prices
| surface | tier | rate (Hz) | rate source | ms/s |
|---|---|---|---|---|
ActionOpenBuildingDoors.ActionCondition | T2 | 8.0 | placeholder | 0.0002 |
CodeLock.SetActions | T2 | 8.0 | placeholder | 0.0002 |
Hacksaw.SetActions | T2 | 8.0 | placeholder | 0.0002 |
MD_OpenableItem_Base.CanReceiveAttachment | T2 | 8.0 | placeholder | 0.0002 |
MD_OpenableItem_Base.SetActions | 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.
MuchDecos_Codelock.pbo
MuchDecos_CodelockrequiredVersion 0.1 — requiresDZ_Data,CodeLock,MuchDecos
census 1.1 · findings 1.1 · hash 5551da4f0c6872dc