Project Zomboid

Project Zomboid

3,897 ratings
Barricaded World - Extended Erosion [b41/b42]
9
4
8
4
2
2
3
3
2
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
140.629 KB
27 Dec, 2021 @ 11:25am
23 Dec, 2024 @ 4:37pm
10 Change Notes ( view )

Subscribe to download
Barricaded World - Extended Erosion [b41/b42]

Description
Features
Most of the time, I play at very advanced erosion. But I always found that houses were "too clean" so I created this mod to put erosion to the next level. It makes most of the houses look like abandoned safehouses and city buildings appear desolated.

Depends on the world's current erosion level.
When loaded, windows and doors in the world may be broken and/or randomly barricaded.

Windows
  • 60% will be destroyed
  • 44% chance of planks barricades
  • 6% chance of metal sheet barricade
  • Note: Only ground floor windows may get barricaded
Doors
  • 40% will be destroyed
  • 20% chance of planks barricades
  • Note: Only doors leading outside may get barricaded

You can protect some doors / windows from erosion
  • Right click on your safehouse s doors/windows and select Protect from erosion
  • You can also remove protection from erosion the same way
  • See it in action here

Erosion Integration

Here is my personal recommendation for playing with this mod: Sandbox Config[i.imgur.com]
You could also use the "Six Month Later" Sandbox preset with a "Normal" zombie count for a quicker configuration.

Apparition of broken and barricaded windows depends on erosion advancement:
  • In options, adjust erosion with "Erosion Speed" and keep "Erosion Days" at 0
  • The more advanced the erosion, the more chances the following code has to happen
  • 25% of current erosion advancement means 25% chance for a window to go through the Barricaded World code
  • If erosion below 100%, 30 days after a place load, if the place is loaded again, the code will be run again
  • When code is loaded for a place at 100% erosion, it will not run anymore even past several days

Examples of Sandbox configuration for erosion:
  • A world with normal "Erosion Speed" (100 days) and with "Month since Apocalypse" set to 2 (60 days) will start at 60% of Erosion.
  • A world with very fast "Erosion Speed" (20 days) and with "Month since Apocalypse" set to 1 (30 days) will start at 100% of Erosion.

Upcoming Plans
I have several ideas that I may implement in the future:
  • Increase performance if possible to rely on something else than LoadGridsquare
  • More configurability of script (percentages, toggle on-off, etc.)
  • Find a way to handle alarms being triggered when glasses are broken

Map Pre-loading (optional)
If you are encountering performance issues using the mod, it is because checking squares for windows and doors can be performance intensive and rely on the LoadGridsquare function. If you want to benefit from the apocalypse look allowed by this mod but are experiencing stuttering, you can pre-load the key parts of the map one time and then disable the mod from your save/server.

I have created a mod specifically for that use case:


Since this is a one-shot map loading. It will obviously not work for progessive erosion but only at the erosion level set during the map loading (I usually do it with maximum erosion, but you may want to load your map at lower erosion levels).

The process takes time but I find it very useful, especially when preparing a server as admin before playing with friends. Hope this can help, meanwhile I will continue to try improving the mod s performance!

Extra
I tested the mod in solo and local multiplayer. It relies on the LoadGridsquare event so it has more impact on performances than some other mods. Many thanks to co` for showing me how to access decompiled PZ code which allowed me to do the erosion integration.

Workshop ID: 2696986935
Mod ID: BarricadedWorld

More Mods by Onkeen:


Workshop ID: 2696986935
Mod ID: BarricadedWorld
Popular Discussions View All (5)
4
18 Jun @ 1:45pm
[B42.9] Non-Fatal Errors
AnomNom
1
22 Oct, 2024 @ 7:15am
Bugged Double Gates (Buildt for cars)
LexTexMex
2
24 Sep, 2022 @ 4:59pm
Bug Report
Kyrox
410 Comments
KANO 11 Oct @ 3:33pm 
I only had this mod on active and i used debug mode nothing is barricaded bro. It seems like the latest updated caused this mod not to work properly anymore.
KANO 10 Oct @ 11:34pm 
The error is fixed and is no longer showing up. bu I just realized nothing is barricaded. Please help.
KANO 10 Oct @ 9:02pm 
I keep getting an error and it keeps going up and doesnt stop. It only this mod that causes it is there something i need to do on my end?
Golden Dragon 16 Sep @ 8:06pm 
Just suggestion, it is possible to barricade whole line of windows? cases where we have 3 window close to another, but barricaded only one - looks ugly.
Or I missed something?
Red 27 Aug @ 3:00am 
number of planks
Lo Thanh Phen 27 Jul @ 1:13pm 
how do you even recognize Survivor Houses with this mod turned on
Happy Person 27 Jul @ 11:43am 
load order?
borkie :3 23 Jul @ 10:41pm 
performance update when :c
Intequr 23 Jul @ 10:36pm 
can you add this after you start a game
VexyWexy 19 Jul @ 8:10am 
made a version of this mod that fixes the error spam here until author updates. Also exposed sandbox options to tweak all the options, enabled garage doors to be broken as well.