Project Zomboid

Project Zomboid

3,897 个评价
Barricaded World - Extended Erosion [b41/b42]
9
4
8
4
2
2
3
3
2
   
奖励
收藏
已收藏
取消收藏
文件大小
发表于
更新日期
140.629 KB
2021 年 12 月 27 日 上午 11:25
2024 年 12 月 23 日 下午 4:37
10 项改动说明 ( 查看 )

订阅以下载
Barricaded World - Extended Erosion [b41/b42]

描述
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
热门讨论 查看全部(5)
4
6 月 18 日 下午 1:45
[B42.9] Non-Fatal Errors
AnomNom
1
2024 年 10 月 22 日 上午 7:15
Bugged Double Gates (Buildt for cars)
LexTexMex
2
2022 年 9 月 24 日 下午 4:59
Bug Report
Kyrox
410 条留言
KANO 10 月 11 日 下午 3:33 
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 月 10 日 下午 11:34 
The error is fixed and is no longer showing up. bu I just realized nothing is barricaded. Please help.
KANO 10 月 10 日 下午 9:02 
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 9 月 16 日 下午 8:06 
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 8 月 27 日 上午 3:00 
number of planks
Lo Thanh Phen 7 月 27 日 下午 1:13 
how do you even recognize Survivor Houses with this mod turned on
Happy Person 7 月 27 日 上午 11:43 
load order?
borkie :3 7 月 23 日 下午 10:41 
performance update when :c
Intequr 7 月 23 日 下午 10:36 
can you add this after you start a game
VexyWexy 7 月 19 日 上午 8:10 
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.