KeyCard-Rooms Standalone
This is a fork of the amazing Mod KeyCard-Rooms by HellCat If you have any problems, suggestions etc check out the original mods DISCORD There you can contact me as well. (I DON'T accept Steam friendrequests) In order to use this mod independent from any map, i reduced the code to only enable the doors and keycards. So if you need any static buildings use VPP Admin Tools, DayZ Editor, init.c or any other methods.… (more)
This is a fork of the amazing Mod KeyCard-Rooms by HellCat If you have any problems, suggestions etc check out the original mods DISCORD There you can contact me as well. (I DON'T accept Steam friendrequests) In order to use this mod independent from any map, i reduced the code to only enable the doors and keycards. So if you need any static buildings use VPP Admin Tools, DayZ Editor, init.c or any other methods. For now the spawn of the lootcrate is also disabled till i add an external config file. If you want to add a loot chest i recommend to use CJ187-LootChest Server Owners: Add "@KeyCard-Rooms Standalone" to your server directory. Copy bikey file over to your servers keys folder. Add "@KeyCard-Rooms Standalone" to your server launch parameter. at first start a folder called "KeyCardRooms" will be generated inside your profilefolder. within this you find the config.json these are the classnames of the doors: Land_KlimaX_T1Door Land_KlimaX_T2Door Land_KlimaX_T3Door dont forget to add these classes to your types.xml RedemptionKeyCard_01 RedemptionKeyCard_02 RedemptionKeyCard_03
No file I/O on hot paths, no timers created per event, no per-player-per-frame hooks.
3 chain breaks, 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.000 ms/s). Counts hook dispatch and timers only, not what the hooks do inside. Methodology.
Structural load of the 348 scripted mods analyzed, lightest on the left. This mod's bar is lit; 25 others share it. Ranked list.
Event hooks carry 99% of this mod's structural load. 0.000 ms/s in all.
2 hooks · 0.0004 ms/s
1 hook · 0.000002 ms/s
| Event hooksrun when something happens: an inventory move, a hit, an action | 2 hooks | 0.0004 ms/s | 99% | ActionCloseDoors.ActionCondition, ActionOpenDoors.ActionCondition |
| Lifecycle hooksrun when an entity is created, loaded or deleted | 1 hook | 0.000002 ms/s | 0.5% | MissionServer.OnMissionStart |
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
3 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 · InitiateClose · Open
Only this class is affected. Matters only if another mod in your stack patches the same class.
1 class
KeyCard_Door_Base3 locations
KeyCardSystemServer.pbo::4_World\KeyCardSystemServer\Entities\SecurityDoor\SecurityDoor.c:107KeyCardSystemServer.pbo::4_World\KeyCardSystemServer\Entities\SecurityDoor\SecurityDoor.c:97KeyCardSystemServer.pbo::4_World\KeyCardSystemServer\Entities\SecurityDoor\SecurityDoor.c:78Where 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 · 4 · warning
- ActionOpenDoors.OnEndServer calls super.OnEndServer() only on some paths — on the others the chain below this mod is dropped.
KeyCardSystem.pbo::4_World\KeyCardSystem\Actions\ActionOpenDoors.c:99 - ActionOpenDoors.OnStartServer calls super.OnStartServer() only on some paths — on the others the chain below this mod is dropped.
KeyCardSystem.pbo::4_World\KeyCardSystem\Actions\ActionOpenDoors.c:71 - ActionCloseDoors.ActionCondition vetoes early (returns false) on some paths and defers to super.ActionCondition() otherwise — composes safely with vanilla's and earlier mods' conditions.
KeyCardSystem.pbo::4_World\KeyCardSystem\Actions\ActionCloseDoors.c:16 - ActionOpenDoors.ActionCondition vetoes early (returns false) on some paths and defers to super.ActionCondition() otherwise — composes safely with vanilla's and earlier mods' conditions.
KeyCardSystem.pbo::4_World\KeyCardSystem\Actions\ActionOpenDoors.c:41
- ActionOpenDoors.OnEndServer calls super.OnEndServer() 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 11 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 |
|---|---|---|---|---|
ActionCloseDoors.ActionCondition |
T2 | yes | conditional | KeyCardSystem.pbo::4_World\KeyCardSystem\Actions\ActionCloseDoors.c:16 |
ActionOpenDoors.GetText |
— | yes | ✗ none | KeyCardSystem.pbo::4_World\KeyCardSystem\Actions\ActionOpenDoors.c:6 |
ActionOpenDoors.ActionCondition |
T2 | yes | conditional | KeyCardSystem.pbo::4_World\KeyCardSystem\Actions\ActionOpenDoors.c:41 |
ActionOpenDoors.OnStartServer |
— | yes | conditional | KeyCardSystem.pbo::4_World\KeyCardSystem\Actions\ActionOpenDoors.c:71 |
ActionOpenDoors.OnEndServer |
— | yes | conditional | KeyCardSystem.pbo::4_World\KeyCardSystem\Actions\ActionOpenDoors.c:99 |
KeyCard_Door_Base.Open |
— | yes | ✗ none | KeyCardSystemServer.pbo::4_World\KeyCardSystemServer\Entities\SecurityDoor\SecurityDoor.c:78 |
KeyCard_Door_Base.InitiateClose |
— | yes | ✗ none | KeyCardSystemServer.pbo::4_World\KeyCardSystemServer\Entities\SecurityDoor\SecurityDoor.c:97 |
KeyCard_Door_Base.Close |
— | yes | ✗ none | KeyCardSystemServer.pbo::4_World\KeyCardSystemServer\Entities\SecurityDoor\SecurityDoor.c:107 |
MissionServer.OnMissionStart |
T3 | yes | ✓ | KeyCardSystemServer.pbo::5_Mission\KeyCardSystemServer\MissionServer.c:3 |
ModItemRegisterCallbacks.RegisterOneHanded |
— | yes | ✓ | RedemptionKeyCards.pbo::Scripts\4_World\Modded\AnimRegister.c:3 |
PluginManager.Init |
— | yes | ✓ | KeyCardSystemServer.pbo::4_World\KeyCardSystemServer\Plugins\PluginManager.c:3 |
Dispatch surfaces and timers the grade prices
| surface | tier | rate (Hz) | rate source | ms/s |
|---|---|---|---|---|
ActionCloseDoors.ActionCondition | T2 | 8.0 | placeholder | 0.0002 |
ActionOpenDoors.ActionCondition | T2 | 8.0 | placeholder | 0.0002 |
MissionServer.OnMissionStart | T3 | 0.1 | placeholder | 0.0000 |
Includes 0.000 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.
KeyCardSystem.pbo
KeyCardSystem— requiresKlimaX_Doors,RedemptionKeyCards,DZ_Characters
KeyCardSystemServer.pbo
KeyCardSystemServer— requiresKeyCardSystem
KlimaX_Doors.pbo
KlimaX_DoorsrequiredVersion 1.25 — requiresDZ_DataKlimaX_T1DoorrequiredVersion 0.1 — requiresDZ_Data,DZ_Structures_SignsKlimaX_T2DoorrequiredVersion 0.1 — requiresDZ_Data,DZ_Structures_SignsKlimaX_T3DoorrequiredVersion 0.1 — requiresDZ_Data,DZ_Structures_Signs
RedemptionKeyCards.pbo
RedemptionKeyCardsrequiredVersion 0.1 — requiresDZ_Data
census 1.1 · findings 1.1 · hash 458fac7a82272afc