Zens Core Mod
What Is This? Here is a video guide explaining the purpose and functionality of this mod: https://youtu.be/2CnhDKHg7bo This mod is a dependency requirement for many of my standalone mods and my Zen Mod Pack. I know it's annoying to require a core framework mod to run my other mods, but it is for the best. Many of my mods reuse the same code, and given that I have 70+ mods floating around, I thought it was about time… (more)
What Is This? Here is a video guide explaining the purpose and functionality of this mod: https://youtu.be/2CnhDKHg7bo This mod is a dependency requirement for many of my standalone mods and my Zen Mod Pack. I know it's annoying to require a core framework mod to run my other mods, but it is for the best. Many of my mods reuse the same code, and given that I have 70+ mods floating around, I thought it was about time I streamlined all my reused code into a single mod. This should improve server performance (marginally), but most importantly, improve the management overhead for my own mod development. Features This mod doesn't come with a lot of features that the average player will care about, it is more for my own mods to build upon. Here's a short list - if you're a modder, feel free to look into the source code for more details: - A base framework for managing config files, including syncing to the client and saving database files - A base framework for managing client-side settings in the game's Options menu - A base framework for interacting with Discord webhooks (previously contained in my Raid Alarm mod) - A base framework for spawning objects onto static objects (eg. Firewood piles, Chicken coops, invisible mapgroupproto objects) - Dozens of helper functions for various game mechanics used across many of my mods, and a 3D model base for deployable kits Installation Instructions: Install this mod like any other mod - copy it into your server folder and add it to your mods list. Make sure to copy the .bikey into your server keys if you're not using a server management tool like OmegaManager which does that automatically. This mod must be run on both client and server. Like most DayZ mods, it also requires Community Framework to function. Repack & Source Code: I recommend not repacking this mod unless you're a very experienced modder and server admin, but you can repack this mod if you like, and do anything else you want with it for that matter. Just keep in mind my future updates won't be applied so make sure to check back for new versions if you notice any bugs. The source code is on my GitHub at https://zenarchist.com Learn Modding Want to learn how to make your own mods? Check out my guides on YouTube: https://www.youtube.com/@Zenarchist Buy Me A Coffee: All my mods are free and open source, but it takes an enormous amount of time to put some of these mods together. If I've helped you out, please consider helping me buy my next coffee! I don't expect it, but I very much appreciate it. https://buymeacoffee.com/zenarchist Enjoy
Patterns that can stall a single frame regardless of the load figure — see below.
Every server-visible override preserves its chain.
less than 0.001% of each server frame at 100 players (0.004 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; 14 others share it. Ranked list.
Event hooks carry 99% of this mod's structural load. 0.004 ms/s in all.
4 hooks · 0.0038 ms/s
11 hooks · 0.000022 ms/s
| Event hooksrun when something happens: an inventory move, a hit, an action | 4 hooks | 0.0038 ms/s | 99% | ItemBase.OnItemLocationChanged, AnimalBase.EEHitBy, ManBase.EEHitBy and 1 more |
| Lifecycle hooksrun when an entity is created, loaded or deleted | 11 hooks | 0.000022 ms/s | 0.6% | AnimalBase.EEKilled, ManBase.EEKilled, MissionBase.OnInit and 8 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 · 3 · warning
- Hologram.EvaluateCollision calls super.EvaluateCollision() only on some paths — on the others the chain below this mod is dropped.
ZenModCore.pbo::scripts\4_World\ZenModCore\Classes\Hologram.c:3 - Hologram.SetProjectionOrientation calls super.SetProjectionOrientation() only on some paths — on the others the chain below this mod is dropped.
ZenModCore.pbo::scripts\4_World\ZenModCore\Classes\Hologram.c:30 - Hologram.SetProjectionPosition calls super.SetProjectionPosition() only on some paths — on the others the chain below this mod is dropped.
ZenModCore.pbo::scripts\4_World\ZenModCore\Classes\Hologram.c:16
- Hologram.EvaluateCollision calls super.EvaluateCollision() only on some paths — on the others the chain below this mod is dropped.
Timers created inside event paths · 1 · heuristic
- ItemBase.OnItemLocationChanged (T2) registers timers inside a per-event path (CallLater). If these are not cleaned up, each live timer costs ~140 ns/frame of queue residency and the count grows with player activity — verify the cleanup path by reading the code.
ZenModCore.pbo::scripts\4_World\ZenModCore\Entities\ItemBase\ItemBase.c:125
- ItemBase.OnItemLocationChanged (T2) registers timers inside a per-event path (CallLater). If these are not cleaned up, each live timer costs ~140 ns/frame of queue residency and the count grows with player activity — verify the cleanup path by reading the code.
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 57 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 |
|---|---|---|---|---|
ActionDeployObject.Post_SetupAction |
— | yes | ✓ | ZenModCore.pbo::scripts\4_World\ZenModCore\Classes\UserActionsComponent\Actions\Continuous\ActionDeployObject.c:3 |
AnimalBase.EEOnDamageCalculated |
— | yes | ✓ | ZenModCore.pbo::scripts\4_World\ZenModCore\Entities\Creatures\Animals\AnimalBase.c:12 |
AnimalBase.EEHitBy |
T2 | yes | ✓ | ZenModCore.pbo::scripts\4_World\ZenModCore\Entities\Creatures\Animals\AnimalBase.c:23 |
AnimalBase.EEKilled |
T3 | yes | ✓ | ZenModCore.pbo::scripts\4_World\ZenModCore\Entities\Creatures\Animals\AnimalBase.c:47 |
Apple.EEOnCECreate |
— | yes | ✓ | ZenModCore.pbo::scripts\4_World\ZenModCore\Entities\ItemBase\EEOnCECreateFixes.c:6 |
ChatInputMenu.OnShow |
— | yes | ✓ | ZenModCore.pbo::scripts\5_Mission\ZenModCore\GUI\Chat\ChatInputMenu.c:9 |
ChatInputMenu.Update |
— | yes | ✓ | ZenModCore.pbo::scripts\5_Mission\ZenModCore\GUI\Chat\ChatInputMenu.c:23 |
ChatInputMenu.OnChange |
— | yes | conditional | ZenModCore.pbo::scripts\5_Mission\ZenModCore\GUI\Chat\ChatInputMenu.c:87 |
CraterellusMushroom.EEOnCECreate |
— | yes | ✓ | ZenModCore.pbo::scripts\4_World\ZenModCore\Entities\ItemBase\EEOnCECreateFixes.c:16 |
ExplosivesBase.OnPlacementComplete |
— | yes | ✓ | ZenModCore.pbo::scripts\4_World\ZenModCore\Entities\ItemBase\ExplosivesBase.c:5 |
GreenBellPepper.EEOnCECreate |
— | yes | ✓ | ZenModCore.pbo::scripts\4_World\ZenModCore\Entities\ItemBase\EEOnCECreateFixes.c:26 |
Grenade_Base.Unpin |
— | yes | ✓ | ZenModCore.pbo::scripts\4_World\ZenModCore\Entities\ItemBase\Grenade_Base.c:10 |
Hologram.EvaluateCollision |
— | yes | conditional | ZenModCore.pbo::scripts\4_World\ZenModCore\Classes\Hologram.c:3 |
Hologram.SetProjectionPosition |
— | yes | conditional | ZenModCore.pbo::scripts\4_World\ZenModCore\Classes\Hologram.c:16 |
Hologram.SetProjectionOrientation |
— | yes | conditional | ZenModCore.pbo::scripts\4_World\ZenModCore\Classes\Hologram.c:30 |
Hologram.RefreshVisual |
— | yes | ✓ | ZenModCore.pbo::scripts\4_World\ZenModCore\Classes\Hologram.c:42 |
ItemBase.EEOnCECreate |
— | yes | ✓ | ZenModCore.pbo::scripts\4_World\ZenModCore\Entities\ItemBase\ItemBase.c:15 |
ItemBase.DeferredInit |
— | yes | ✓ | ZenModCore.pbo::scripts\4_World\ZenModCore\Entities\ItemBase\ItemBase.c:30 |
ItemBase.OnItemLocationChanged |
T2 | yes | ✓ | ZenModCore.pbo::scripts\4_World\ZenModCore\Entities\ItemBase\ItemBase.c:125 |
ItemBase.CF_OnStoreSave |
— | yes | ✓ | ZenModCore.pbo::scripts\4_World\ZenModCore\Entities\ItemBase\ItemBase.c:171 |
ItemBase.CF_OnStoreLoad |
— | yes | ✓ | ZenModCore.pbo::scripts\4_World\ZenModCore\Entities\ItemBase\ItemBase.c:187 |
ManBase.EEOnDamageCalculated |
— | yes | ✓ | ZenModCore.pbo::scripts\4_World\ZenModCore\Entities\ManBase.c:12 |
ManBase.EEHitBy |
T2 | yes | ✓ | ZenModCore.pbo::scripts\4_World\ZenModCore\Entities\ManBase.c:23 |
ManBase.EEKilled |
T3 | yes | ✓ | ZenModCore.pbo::scripts\4_World\ZenModCore\Entities\ManBase.c:47 |
MissionBase.OnInit |
T3 | yes | ✓ | ZenModCore.pbo::scripts\5_Mission\ZenModCore\MissionBase.c:30 |
MissionBase.OnMissionStart |
T3 | yes | ✓ | ZenModCore.pbo::scripts\5_Mission\ZenModCore\MissionBase.c:143 |
MissionBase.OnMissionFinish |
T3 | yes | ✓ | ZenModCore.pbo::scripts\5_Mission\ZenModCore\MissionBase.c:150 |
MissionGameplay.OnInit |
T3 | yes | ✓ | ZenModCore.pbo::scripts\5_Mission\ZenModCore\MissionGameplay.c:6 |
MissionGameplay.TickScheduler |
T0 | yes | ✓ | ZenModCore.pbo::scripts\5_Mission\ZenModCore\MissionGameplay.c:20 |
MissionGameplay.LoadZenConfig |
— | yes | ✓ | ZenModCore.pbo::scripts\5_Mission\ZenModCore\MissionGameplay.c:38 |
MissionGameplay.RegisterZenRPC |
— | yes | ✓ | ZenModCore.pbo::scripts\5_Mission\ZenModCore\MissionGameplay.c:75 |
MissionServer.OnMissionStart |
T3 | yes | ✓ | ZenModCore.pbo::scripts\5_Mission\ZenModCore\MissionServer.c:11 |
MissionServer.OnMissionFinish |
T3 | yes | ✓ | ZenModCore.pbo::scripts\5_Mission\ZenModCore\MissionServer.c:23 |
MissionServer.OnZenInit |
— | yes | ✓ | ZenModCore.pbo::scripts\5_Mission\ZenModCore\MissionServer.c:32 |
MissionServer.LoadZenConfig |
— | yes | ✓ | ZenModCore.pbo::scripts\5_Mission\ZenModCore\MissionServer.c:77 |
MissionServer.InvokeOnConnect |
T3 | yes | ✓ | ZenModCore.pbo::scripts\5_Mission\ZenModCore\MissionServer.c:82 |
MissionServer.OnEvent |
— | yes | ✓ | ZenModCore.pbo::scripts\5_Mission\ZenModCore\MissionServer.c:130 |
MissionServer.PlayerDisconnected |
T3 | yes | ✓ | ZenModCore.pbo::scripts\5_Mission\ZenModCore\MissionServer.c:159 |
MissionServer.ZenDeferredInit |
— | yes | ✓ | ZenModCore.pbo::scripts\5_Mission\ZenModCore\MissionServer.c:184 |
ModItemRegisterCallbacks.RegisterHeavy |
— | yes | ✓ | ZenModCore.pbo::scripts\4_World\ZenModCore\Entities\ManBase\DayZPlayer\ModItemRegisterCallbacks.c:3 |
MushroomBase.EEOnCECreate |
— | yes | ✓ | ZenModCore.pbo::scripts\4_World\ZenModCore\Entities\ItemBase\EEOnCECreateFixes.c:86 |
OptionsMenuGame.IsChanged |
— | yes | ✓ | ZenModCore.pbo::scripts\5_Mission\ZenModCore\GUI\Options\OptionsMenuGame.c:160 |
OptionsMenuGame.Apply |
— | yes | ✓ | ZenModCore.pbo::scripts\5_Mission\ZenModCore\GUI\Options\OptionsMenuGame.c:168 |
OptionsMenuGame.Revert |
— | yes | ✓ | ZenModCore.pbo::scripts\5_Mission\ZenModCore\GUI\Options\OptionsMenuGame.c:175 |
Pear.EEOnCECreate |
— | yes | ✓ | ZenModCore.pbo::scripts\4_World\ZenModCore\Entities\ItemBase\EEOnCECreateFixes.c:36 |
PlayerBase.OnPlayerLoaded |
— | yes | ✓ | ZenModCore.pbo::scripts\4_World\ZenModCore\Entities\ManBase\PlayerBase.c:21 |
PlayerBase.OnDisconnect |
— | yes | ✓ | ZenModCore.pbo::scripts\4_World\ZenModCore\Entities\ManBase\PlayerBase.c:31 |
PlayerBase.EEKilled |
T3 | yes | ✓ | ZenModCore.pbo::scripts\4_World\ZenModCore\Entities\ManBase\PlayerBase.c:50 |
Plum.EEOnCECreate |
— | yes | ✓ | ZenModCore.pbo::scripts\4_World\ZenModCore\Entities\ItemBase\EEOnCECreateFixes.c:46 |
Potato.EEOnCECreate |
— | yes | ✓ | ZenModCore.pbo::scripts\4_World\ZenModCore\Entities\ItemBase\EEOnCECreateFixes.c:56 |
StandardActionInput.UpdatePossibleActions |
— | yes | ✓ | ZenModCore.pbo::scripts\4_World\ZenModCore\Classes\UserActionsComponent\ActionInput.c:16 |
Tomato.EEOnCECreate |
— | yes | ✓ | ZenModCore.pbo::scripts\4_World\ZenModCore\Entities\ItemBase\EEOnCECreateFixes.c:66 |
TrapBase.StartActivate |
— | yes | ✓ | ZenModCore.pbo::scripts\4_World\ZenModCore\Entities\ItemBase\TrapBase.c:10 |
ZombieBase.EEOnDamageCalculated |
— | yes | ✓ | ZenModCore.pbo::scripts\4_World\ZenModCore\Entities\Creatures\Infected\ZombieBase.c:12 |
ZombieBase.EEHitBy |
T2 | yes | ✓ | ZenModCore.pbo::scripts\4_World\ZenModCore\Entities\Creatures\Infected\ZombieBase.c:23 |
ZombieBase.EEKilled |
T3 | yes | ✓ | ZenModCore.pbo::scripts\4_World\ZenModCore\Entities\Creatures\Infected\ZombieBase.c:47 |
Zucchini.EEOnCECreate |
— | yes | ✓ | ZenModCore.pbo::scripts\4_World\ZenModCore\Entities\ItemBase\EEOnCECreateFixes.c:76 |
Dispatch surfaces and timers the grade prices
| surface | tier | rate (Hz) | rate source | ms/s |
|---|---|---|---|---|
ItemBase.OnItemLocationChanged | T2 | 130.0 | measured | 0.0032 |
AnimalBase.EEHitBy | T2 | 8.0 | placeholder | 0.0002 |
ZombieBase.EEHitBy | T2 | 8.0 | placeholder | 0.0002 |
ManBase.EEHitBy | T2 | 8.0 | placeholder | 0.0002 |
AnimalBase.EEKilled | T3 | 0.1 | placeholder | 0.0000 |
ZombieBase.EEKilled | T3 | 0.1 | placeholder | 0.0000 |
ManBase.EEKilled | T3 | 0.1 | placeholder | 0.0000 |
PlayerBase.EEKilled | T3 | 0.1 | placeholder | 0.0000 |
MissionBase.OnInit | T3 | 0.1 | placeholder | 0.0000 |
MissionBase.OnMissionStart | T3 | 0.1 | placeholder | 0.0000 |
MissionBase.OnMissionFinish | T3 | 0.1 | placeholder | 0.0000 |
MissionServer.OnMissionStart | T3 | 0.1 | placeholder | 0.0000 |
MissionServer.OnMissionFinish | T3 | 0.1 | placeholder | 0.0000 |
MissionServer.InvokeOnConnect | T3 | 0.1 | placeholder | 0.0000 |
MissionServer.PlayerDisconnected | T3 | 0.1 | placeholder | 0.0000 |
Includes 0.001 ms/s from placeholder-rated surfaces.
RPC ids (1 declaration)
The numeric ids this mod's script RPCs travel under, from its enum and integer-constant declarations. Server tooling reports RPCs by these numbers; look any id up. Found by is whether the declaration is named like an RPC id or used as one; — means the value depends on something the static scan can't see (for example a modded enum continuing a base).
| id | name | found by | server | where |
|---|---|---|---|---|
1000 |
ZenConfigBase.RPC_MAX_CHUNK_CHARS |
name | yes | ZenModCore.pbo::scripts\3_Game\ZenModCore\Config\ZenConfigBase.c:81 |
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.
ZenModCore.pbo
ZenModCore— requiresDZ_Data,DZ_Scripts,JM_CF_Scripts
census 1.1 · findings 1.1 · hash 90e25245cd7cdd62