Project Zomboid

Project Zomboid

3,763 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
400 Comments
Solaire 6 Jul @ 7:51pm 
Why is every window busted?
STORMFANG 16 Jun @ 6:13am 
needs to update this please
Patriote 14 Jun @ 12:44pm 
hella annoying tho!
AnomNom 11 Jun @ 5:18pm 
So, as of B42.9, this appears to be throwing up errors any time new windows or doors are loaded within the render distance. Despite this, as far as I can tell, it's still completely functional - windows are still barricaded, doors can still be found broken down.
Sco 8 May @ 9:58am 
work in b42?
F1tgal911 25 Apr @ 3:15pm 
@XlebniyBU
Same here. My containers have disappeared, barricaded windows and doors have been altered, randomly broken and plate metal was exchanged by planks. Floors I built are gone.
_zub_ 19 Mar @ 1:59am 
translation
Maximillion 3 Mar @ 1:09pm 
is there a way barricaded can be an option in sandbox i have a bug due to some mod for trees that spawn in the road and i cant fix it but its due to erosion settings so i cant have any more than 100 days sometimes 200
Meyar 1 Mar @ 3:20am 
I'm trying to do a 6 months later kind of start in a bunker, is there a way to have the mod skip over your spawn point only?
XlebniyBU 20 Feb @ 11:11am 
I don't know if the mod is to blame for all my items disappearing along with my inventory after I removed the mod from my save, but I ended up with 5 zombies around me and a character that lived for 5 months is now dead.

Be careful.