Cabin_Mod_CodeLock_RaGed
Addon for the Cabin_Mod_RaG'ed to make it compatible with Code Lock Mod.
No file I/O on hot paths, no timers created per event, no per-player-per-frame hooks.
Every server-visible override preserves its chain.
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.
4 hooks · 0.00079 ms/s
| Event hooksrun when something happens: an inventory move, a hit, an action | 4 hooks | 0.00079 ms/s | 99.8% | CodeLock.SetActions, Hacksaw.SetActions, Prefab_Cabin.CanReceiveAttachment and 1 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.
Where 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 · 2 · info
- ActionDismantleCabinPart.DismantleCondition vetoes early (returns false) on some paths and defers to super.DismantleCondition() otherwise — composes safely with vanilla's and earlier mods' conditions.
cabin_mod_codelock.pbo::scripts\4_World\ActionDismantleCabinPart.c:3 - Prefab_Cabin.CanOpenCabinFence vetoes early (returns false) on some paths and defers to super.CanOpenCabinFence() otherwise — composes safely with vanilla's and earlier mods' conditions.
cabin_mod_codelock.pbo::scripts\4_World\Prefab_Cabin.c:5
- ActionDismantleCabinPart.DismantleCondition vetoes early (returns false) on some paths and defers to super.DismantleCondition() otherwise — composes safely with vanilla's and earlier mods' conditions.
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 | ✓ | cabin_mod_codelock.pbo::scripts\4_World\actionconstructor.c:2 |
ActionDismantleCabinPart.DismantleCondition |
— | yes | conditional | cabin_mod_codelock.pbo::scripts\4_World\ActionDismantleCabinPart.c:3 |
CodeLock.SetActions |
T2 | yes | ✓ | cabin_mod_codelock.pbo::scripts\4_World\CodeLock.c:3 |
CodeLockServerRPC.OpenTarget |
— | yes | ✓ | cabin_mod_codelock.pbo::scripts\4_World\CodeLockServerRPC.c:3 |
Hacksaw.SetActions |
T2 | yes | ✓ | cabin_mod_codelock.pbo::scripts\4_World\Hacksaw.c:3 |
Prefab_Cabin.CanOpenCabinFence |
— | yes | conditional | cabin_mod_codelock.pbo::scripts\4_World\Prefab_Cabin.c:5 |
Prefab_Cabin.CanReceiveAttachment |
T2 | yes | ✓ | cabin_mod_codelock.pbo::scripts\4_World\Prefab_Cabin.c:14 |
Prefab_Cabin.OnPartDismantledServer |
— | yes | ✓ | cabin_mod_codelock.pbo::scripts\4_World\Prefab_Cabin.c:30 |
Prefab_Cabin.SetActions |
T2 | yes | ✓ | cabin_mod_codelock.pbo::scripts\4_World\Prefab_Cabin.c:45 |
Dispatch surfaces and timers the grade prices
| surface | tier | rate (Hz) | rate source | ms/s |
|---|---|---|---|---|
CodeLock.SetActions | T2 | 8.0 | placeholder | 0.0002 |
Hacksaw.SetActions | T2 | 8.0 | placeholder | 0.0002 |
Prefab_Cabin.CanReceiveAttachment | T2 | 8.0 | placeholder | 0.0002 |
Prefab_Cabin.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.
cabin_mod_codelock.pbo
cabin_mod_codelockrequiredVersion 0.1 — requiresCodeLock,cabin_mod
census 1.1 · findings 1.1 · hash e1134647abfc465c