Simple Roof
A simple roof building mod to help secure your base. The roof panels can be accessed to dismantle, but only from inside the base. -To build a roof you'll need 10 planks and 30 nails. -A wooden pillar requires 1 log and 10 nails. You will currently get all those resources back if you dismantle the item. I've also included a step ladder in the mod to help with roof construction, the ladders will spawn in industrial… (more)
A simple roof building mod to help secure your base. The roof panels can be accessed to dismantle, but only from inside the base. -To build a roof you'll need 10 planks and 30 nails. -A wooden pillar requires 1 log and 10 nails. You will currently get all those resources back if you dismantle the item. I've also included a step ladder in the mod to help with roof construction, the ladders will spawn in industrial areas, but they currently cannot be crafted to prevent raiding abuse. SNAPPING Press B while holding a kit to toggle snap mode. Press F to cycle through the snap points. Press K to focus on an object. IMPORTANT This is now just a roof mod as it was originally intended!! The other base parts have been moved to a new mod called Simple Base. Only roofs and pillars can be crafted. If you want to craft walls, floors, windows and doors, use the new mod: Simple Base https://steamcommunity.com/sharedfiles/filedetails/?id=1814422822 BaseBuildingPlus For even more advanced base building features, check out BaseBuildingPlus. A new mod i'm working on with Hennessy, Juusto, Jest, Fourth and others: https://steamcommunity.com/sharedfiles/filedetails/?id=1710977250 CREDITS Credit to Ectotherm for the roof model: https://sketchfab.com/3d-models/wooden-wall-385bd34ec7e34243ac860449d99a4746 Credit to Francesco Coldesina for the step ladder model: https://sketchfab.com/3d-models/ladder-7f7c32e807e5490b89ebba02c1aed656 Credit to WholeTrees for the pillar model: https://sketchfab.com/3d-models/column-pole-1-f50e2fbf01ff49699ef920343538f1a2 Credit to TraianDumbrava for the saw model: https://sketchfab.com/3d-models/saw-tool-daff4bc1ecf14d43af365839d727a2f0 Credit to OP, I only managed to get this working by studying OP_Baseitems: https://steamcommunity.com/sharedfiles/filedetails/?id=1617874376 Credit to Cleetus for all his help along the way: https://steamcommunity.com/id/aussiecleetus/myworkshopfiles/ and credit to Hennessy who helped fix all the issues. Check out his mod More_Containers_and_Decorations: https://steamcommunity.com/sharedfiles/filedetails/?id=1638457776 SERVER OWNER INSTRUCTIONS 1. Copy the @Simple Roof folder from !Workshop to your DayZServer root folder. 2. Copy ChopperRoof.bikey file from the keys folder to your keys folder. 3. Add "-mod=@Simple Roof" to your server startup parameters. 4. Merge types.xml (located in mpmissions\dayzOffline.chernarusplus\db) with the file provided. 5. OPTIONAL: Merge TraderConfig.txt (located in YOURSERVERPROFILE\Trader) with the file provided. RECENT CHANGES ----------------------------------------------------------------------------------------------- New: Look-to-snap feature. Snapping is now auto-enabled. Just look to snap and use F to cycle snap points. New: K now locks the snapping target to the object you are currently looking at. Fixed: 1.13 issue with digging gardenplots. Fixed: Removed ability to climb onto roof. Fixed: Step ladder collision fixed. Fixed: Null pointers fixed. Thanks to Krypton91. DayZ 1.13 compatible. ----------------------------------------------------------------------------------------------- Have fun! Donations All my mods are completely free to use. If you want to contribute towards future development you can do so by donating via my Patreon page. Any donations are much appreciated, thanks :) https://www.patreon.com/ChopperMods MidEvil If you have time, please check out the new game I'm working on with HennySea. MidEvil on Steam
No file I/O on hot paths, no timers created per event, no per-player-per-frame hooks.
2 chain breaks on base classes or persisted data.
0.0165% of each server frame at 100 players (0.165 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; 40 others share it. Ranked list.
Repeating timers carry 99.6% of this mod's structural load. 0.165 ms/s in all.
3 hooks · 0.00059 ms/s
1 timer · 0.16 ms/s
| Event hooksrun when something happens: an inventory move, a hit, an action | 3 hooks | 0.00059 ms/s | 0.4% | ActionDestroyPart.ActionCondition, PlayerBase.SetActions, SledgeHammer.SetActions |
| Repeating timersstay in the timer queue, which is walked every frame | 1 timer | 0.16 ms/s | 99.6% | every frame |
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
2 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.
Hologram.AddProjectionRotation
Vanilla rotation handling is replaced — expected for placement-system overhauls.
What it is for: Vanilla placement hologram rotation input.
simpleroof.pbo::scripts\4_World\overrides\Hologram.c:153Hologram.SubtractProjectionRotation
Vanilla rotation handling is replaced — expected for placement-system overhauls.
What it is for: Vanilla placement hologram rotation input.
simpleroof.pbo::scripts\4_World\overrides\Hologram.c:158Where 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 · 6 · warning
- ActionDeployObject.OnEndServer calls super.OnEndServer() only on some paths — on the others the chain below this mod is dropped.
simpleroof.pbo::scripts\4_World\overrides\ActionDeployObject.c:3 - Hologram.EvaluateCollision calls super.EvaluateCollision() only on some paths — on the others the chain below this mod is dropped.
simpleroof.pbo::scripts\4_World\overrides\Hologram.c:55 - Hologram.GetProjectionEntityPosition calls super.GetProjectionEntityPosition() only on some paths — on the others the chain below this mod is dropped.
simpleroof.pbo::scripts\4_World\overrides\Hologram.c:3 - Hologram.ProjectionBasedOnParent calls super.ProjectionBasedOnParent() only on some paths — on the others the chain below this mod is dropped.
simpleroof.pbo::scripts\4_World\overrides\Hologram.c:40 - Hologram.SetProjectionOrientation calls super.SetProjectionOrientation() only on some paths — on the others the chain below this mod is dropped.
simpleroof.pbo::scripts\4_World\overrides\Hologram.c:134 - VicinityItemManager.IsObstructed vetoes early (returns false) on some paths and defers to super.IsObstructed() otherwise — composes safely with vanilla's and earlier mods' conditions.
simpleroof.pbo::scripts\5_Mission\mission\VicinityItemManager.c:3
- ActionDeployObject.OnEndServer calls super.OnEndServer() only on some paths — on the others the chain below this mod is dropped.
Checks answered without super() · 3 · warning
- ActionDestroyPart.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.
simpleroof.pbo::scripts\4_World\overrides\ActionDestroyPart.c:3 - MiscGameplayFunctions.BuildCondition returns its own answer without consulting super.BuildCondition() — 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.
simpleroof.pbo::scripts\4_World\overrides\MiscGameplayFunctions.c:31 - MiscGameplayFunctions.ComplexBuildCollideCheckClient returns its own answer without consulting super.ComplexBuildCollideCheckClient() — 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.
simpleroof.pbo::scripts\4_World\overrides\MiscGameplayFunctions.c:3
- ActionDestroyPart.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 19 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 | ✓ | simpleroof.pbo::scripts\4_World\actions\ActionConstructor.c:3 |
ActionDeployObject.OnEndServer |
— | yes | conditional | simpleroof.pbo::scripts\4_World\overrides\ActionDeployObject.c:3 |
ActionDestroyPart.ActionCondition |
T2 | yes | ✗ none | simpleroof.pbo::scripts\4_World\overrides\ActionDestroyPart.c:3 |
ActionFoldBaseBuildingObject.GetText |
— | yes | ✗ none | simpleroof.pbo::scripts\4_World\overrides\ActionFoldBaseBuildingObject.c:3 |
Hologram.GetProjectionEntityPosition |
— | yes | conditional | simpleroof.pbo::scripts\4_World\overrides\Hologram.c:3 |
Hologram.ProjectionBasedOnParent |
— | yes | conditional | simpleroof.pbo::scripts\4_World\overrides\Hologram.c:40 |
Hologram.EvaluateCollision |
— | yes | conditional | simpleroof.pbo::scripts\4_World\overrides\Hologram.c:55 |
Hologram.SetProjectionOrientation |
— | yes | conditional | simpleroof.pbo::scripts\4_World\overrides\Hologram.c:134 |
Hologram.GetProjectionRotation |
— | yes | ✗ none | simpleroof.pbo::scripts\4_World\overrides\Hologram.c:148 |
Hologram.AddProjectionRotation |
— | yes | ✗ none | simpleroof.pbo::scripts\4_World\overrides\Hologram.c:153 |
Hologram.SubtractProjectionRotation |
— | yes | ✗ none | simpleroof.pbo::scripts\4_World\overrides\Hologram.c:158 |
MiscGameplayFunctions.ComplexBuildCollideCheckClient |
— | yes | ✗ none | simpleroof.pbo::scripts\4_World\overrides\MiscGameplayFunctions.c:3 |
MiscGameplayFunctions.BuildCondition |
— | yes | ✗ none | simpleroof.pbo::scripts\4_World\overrides\MiscGameplayFunctions.c:31 |
MissionGameplay.OnKeyRelease |
— | yes | ✓ | simpleroof.pbo::scripts\5_Mission\mission\missionGameplay.c:4 |
MissionGameplay.OnUpdate |
T0 | yes | ✓ | simpleroof.pbo::scripts\5_Mission\mission\missionGameplay.c:57 |
PlayerBase.SetActions |
T2 | yes | ✓ | simpleroof.pbo::scripts\4_World\overrides\PlayerBase.c:3 |
PluginRecipesManager.RegisterRecipies |
— | yes | ✓ | simpleroof.pbo::scripts\4_World\recipes\moddedrecipe.c:3 |
SledgeHammer.SetActions |
T2 | yes | ✓ | simpleroof.pbo::scripts\4_World\overrides\Tools.c:3 |
VicinityItemManager.IsObstructed |
— | yes | conditional | simpleroof.pbo::scripts\5_Mission\mission\VicinityItemManager.c:3 |
Dispatch surfaces and timers the grade prices
| surface | tier | rate (Hz) | rate source | ms/s |
|---|---|---|---|---|
ActionDestroyPart.ActionCondition | T2 | 8.0 | placeholder | 0.0002 |
PlayerBase.SetActions | T2 | 8.0 | placeholder | 0.0002 |
SledgeHammer.SetActions | T2 | 8.0 | placeholder | 0.0002 |
Repeating timers
| period (ms) | residency ms/s | firing ms/s | where |
|---|---|---|---|
| 0 | 0.1400 | 0.024800 | simpleroof.pbo::scripts\4_World\items\Chopper_Base.c:388 |
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.
simpleroof.pbo
SimpleRoofrequiredVersion 0.1 — requiresDZ_Data,DZ_Gear_Camping,DZ_Gear_Consumables
census 1.1 · findings 1.1 · hash a3b0b1e4f842d010