← modperf · analyzed mods

AgricultureCore

AgricultureCore AgricultureCore is the shared foundation for my Agriculture-based mods. It’s mostly meant to combine common scripts/content in one place so updates can be isolated to this mod, instead of duplicating code and files across multiple projects. In-game, it provides a configurable core plant/harvest system (driven by a plant registry and server settings) and includes shared item/effect functionality used… (more)

AgricultureCore AgricultureCore is the shared foundation for my Agriculture-based mods. It’s mostly meant to combine common scripts/content in one place so updates can be isolated to this mod, instead of duplicating code and files across multiple projects. In-game, it provides a configurable core plant/harvest system (driven by a plant registry and server settings) and includes shared item/effect functionality used by related mods. Features Core plant registry system via AC_RegisterPlant() and g_AG_PlantRegistry for registered plant types (GrowTime, CropCount, InitialYield, minute-based grow time option, and fertilize behavior flags). Modded plant lifecycle behavior (registered plants) Custom growth timing and maturity calculations for registered plants. Spoil timing controlled by a server setting (MinutesToPlantSpoiling). Infestation chance set to 0.0 in the PlantBase constructor. Fertilization can affect crop count and yield based on registry flags and fertility/harvesting efficiency. Modded harvesting behavior Harvest action is gated so it only executes when a plant exists and has crops. Harvest spam protection (5-second cooldown) to prevent repeated harvest processing. Harvest spawns crop items up to the plant’s crop count and sets created items to maximum quantity. If the plant is spoiled, harvested edible items are set to the rotten food stage where applicable. Optional plant removal after harvest (RemovePlantAfterHarvest). Plant removal behavior Optional PlantMaterial drop when removing a plant, controlled by EnablePlantMaterialDrop (quantity scales with current plant material quantity). Persistence Saves/loads crop state, crop count, and current yield (server-side). Exposes yield accessors (GetCurrentYield/SetCurrentYield). Server configuration + client sync Server loads a JSON config, supports versioning/backup of outdated configs, and validates minimum values. Clients request the config at mission start and receive it via RPC so client-side scripts can use the server’s settings. Optional server/client debug logging toggles via config. Smokable base + smoke particle support AC_SmokableBase provides a network-synced smoking state and synchronized health value. Smoke particles are started/stopped and tuned based on smoke state (SMOKING / INACTIVE / NOT_SMOKING). Includes a registered particle entry: AC_SMOKE (from "AgricultureCore/Particles/" "smoke") and an EffSmoke effect that uses it. Rolling papers items Adds AC_RollingPapers (and Green/Silver variants) with quantity (0–20) and an "AC_RollingPapers" inventory slot/proxy. Cigarette pack item Adds AC_CigarettePack_Empty (crafted loot category) using the vanilla cigarette pack model with custom textures/material damage states. Installation Subscribe to the mod on the Workshop. Enable AgricultureCore in the DayZ Launcher (client and server). Restart the server/client after enabling. Configuration AgricultureCore uses a JSON configuration (loaded server-side) and sends the active settings to clients on mission start. Config fields present: EnableServerDebugLogging EnableClientDebugLogging RemovePlantAfterHarvest EnablePlantMaterialDrop MinutesToPlantSpoiling SecondsToFertilizeUsingPlantMaterial SecondsToFertilizeUsingGardenLime Compatibility Uses vanilla cultivation scripting (requires DZ_Gear_Cultivation as an addon dependency). Modifies core behavior for PlantBase and ActionHarvestCrops; any other mod that also overrides these may conflict depending on load order and implementation. You may repack this mod, although I don't recommend it because if I update it, and you aren't fast enough updating your repacked version, it may mess up CannabisPlus, DrugsPlus, and/or GardeningPlus. Credits Author: IceBlade

Workshop 3690289718 · mod updated 2026-10-15 · analyzed 2026-10-15 14:29 UTC · history · 26 script files

Stall risks
None found

No file I/O on hot paths, no timers created per event, no per-player-per-frame hooks.

Compatibility
1 by design

1 chain break, all on specific classes the mod replaces wholesale — matters only if another mod patches the same classes.

Structural footprint 1.1
A
1 by design
Heavier than 9% of 328 scripted mods analyzed.

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.

Where this mod sits

Structural load of the 328 scripted mods analyzed, lightest on the left. This mod's bar is lit; 6 others share it. Ranked list.

20
40
60
  • 24 mods
    0.0000022 to 0.0000046 ms/s · grade A
  • This mod
  • 1 mod
    0.00001 to 0.000022 ms/s · grade A
  • 1 mod
    0.000022 to 0.000046 ms/s · grade A
  • 37 mods
    0.0001 to 0.00022 ms/s · grade A
  • 26 mods
    0.00022 to 0.00046 ms/s · grade A
  • 33 mods
    0.00046 to 0.001 ms/s · grade A
  • 22 mods
    0.001 to 0.0022 ms/s · grade A
  • 13 mods
    0.0022 to 0.0046 ms/s · grade A
  • 10 mods
    0.0046 to 0.01 ms/s · grade A
  • 5 mods
    0.01 to 0.022 ms/s · grade A
  • 18 mods
    0.022 to 0.046 ms/s · grade A
  • 17 mods
    0.046 to 0.1 ms/s · grade A
  • 41 mods
    0.1 to 0.22 ms/s · grade A
  • 26 mods
    0.22 to 0.46 ms/s · grade A
  • 28 mods
    0.46 to 1 ms/s · grade A
  • 8 mods
    1 to 2.2 ms/s · grade A to B
  • 10 mods
    2.2 to 4.6 ms/s · grade B
  • 1 mod
    4.6 to 10 ms/s · grade B to C
A316
B11
C1
D0
E0
ms/s, log scale: each labelled step is ten times the one before. Letter grade and mods holding it below the axis.
Where the load comes from

Lifecycle hooks carry 81% of this mod's structural load. 0.000 ms/s in all.

81%Lifecycle hooks · 81%
4 hooks · 0.000008 ms/s
Lifecycle hooksrun when an entity is created, loaded or deleted 4 hooks 0.000008 ms/s 81% MissionServer.OnInit, PlantBase.OnStoreLoad, PlantBase.OnStoreSave 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.

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.

By design
Family · PlantBase and its 6 vanilla subclasses
PlantBase replaced on 1 method · 1 override

RemovePlantEx

Only this class is affected. Matters only if another mod in your stack patches the same class.

1 classPlantBase
1 locationAgricultureCore.pbo::scripts\4_world\entities\gardenbase\plantbase.c:136

Other findings

What this report can tell you

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.

What it cannot

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 17 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.

methodsurfaceserversuper()where
ActionConstructor.RegisterActions — yes ✓ AgricultureCore.pbo::scripts\4_world\classes\useractionscomponent\actionconstructor.c:3
ActionHarvestCrops.OnExecuteClient — yes conditional AgricultureCore.pbo::scripts\4_world\AgricultureCore.c:11
ActionHarvestCrops.OnExecuteServer — yes conditional AgricultureCore.pbo::scripts\4_world\AgricultureCore.c:19
CAContinuousFertilizeGardenSlot.Setup — yes ✓ AgricultureCore.pbo::scripts\4_world\classes\useractionscomponent\actions\continuous\cacontinuousfertilizegardenslot.c:6
MissionGameplay.OnInit T3 yes ✓ AgricultureCore.pbo::scripts\5_mission\MissionGameplay.c:5
MissionGameplay.OnMissionStart T3 yes ✓ AgricultureCore.pbo::scripts\5_mission\MissionGameplay.c:17
MissionServer.OnInit T3 yes ✓ AgricultureCore.pbo::scripts\5_mission\MissionServer.c:5
ModItemRegisterCallbacks.RegisterHeavy — yes ✓ AgricultureCore.pbo::scripts\4_world\entities\manbase\AC_ItemInHands.c:4
PlantBase.Init — yes conditional AgricultureCore.pbo::scripts\4_world\entities\gardenbase\plantbase.c:14
PlantBase.Harvest — yes conditional AgricultureCore.pbo::scripts\4_world\entities\gardenbase\plantbase.c:78
PlantBase.RemovePlantEx — yes ✗ none AgricultureCore.pbo::scripts\4_world\entities\gardenbase\plantbase.c:136
PlantBase.OnStoreLoad T3 yes ✓ AgricultureCore.pbo::scripts\4_world\entities\gardenbase\plantbase.c:155
PlantBase.OnStoreSave T3 yes ✓ AgricultureCore.pbo::scripts\4_world\entities\gardenbase\plantbase.c:169
PlayerBase.Init — yes ✓ AgricultureCore.pbo::scripts\4_world\entities\manbase\AC_PlayerBase.c:10
PlayerBase.OnPlayerLoaded — yes ✓ AgricultureCore.pbo::scripts\4_world\entities\manbase\AC_PlayerBase.c:16
PlayerBase.EEKilled T3 yes ✓ AgricultureCore.pbo::scripts\4_world\entities\manbase\AC_PlayerBase.c:27
PluginRecipesManager.RegisterRecipies — yes ✓ AgricultureCore.pbo::scripts\4_world\classes\recipes\pluginrecipesmanagerbase.c:3
Dispatch surfaces and timers the grade prices
surfacetierrate (Hz)rate sourcems/s
PlantBase.OnStoreLoadT3 0.1placeholder0.0000
PlantBase.OnStoreSaveT3 0.1placeholder0.0000
PlayerBase.EEKilledT3 0.1placeholder0.0000
MissionServer.OnInitT3 0.1placeholder0.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.

AgricultureCore.pbo

  • AC_EmptyBags requiredVersion 0.1 — requires DZ_Data
  • AC_EmptyBags requiredVersion 0.1 — requires DZ_Data
  • AC_Bricks requiredVersion 0.1 — requires DZ_Data
  • AC_Bricks requiredVersion 0.1 — requires DZ_Data
  • AC_Cigarettepacks requiredVersion 0.1 — requires DZ_Data, DZ_Gear_Medical
  • AC_Cigarettepacks requiredVersion 0.1 — requires DZ_Data, DZ_Gear_Medical
  • AC_Composter requiredVersion 0.1 — requires DZ_Data, DZ_Gear_Cultivation, DZ_Gear_Consumables, AgricultureCore
  • AC_Composter requiredVersion 0.1 — requires DZ_Data, DZ_Gear_Cultivation, DZ_Gear_Consumables, AgricultureCore
  • AgricultureCore requiredVersion 0.1 — requires DZ_Data, DZ_Scripts, DZ_Gear_Cultivation
  • AgricultureCore requiredVersion 0.1 — requires DZ_Data, DZ_Scripts, DZ_Gear_Cultivation
  • AC_Rollingpaper requiredVersion 0.1 — requires DZ_Data
  • AC_Rollingpaper requiredVersion 0.1 — requires DZ_Data

census 1.1 · findings 1.1 · hash 300622766cbaa0e1