Project Zomboid

Project Zomboid

Indestructible Fences & Gates (upgraded 41+)(READ DESCRIPTION!!!!)
20 Comments
Land_Strider 26 Jun, 2024 @ 6:06am 
I'm having a log trouble that I think stems from this mod. It created a huge amount of log files ranging from 4 MB to 10,2 MB, up to ~85,000 lines of

[02-12-23 17:25:44.639] 76561198048403486 "Land_Strider" IndestructibleFencesHP.IndestructibleFencesHP @ 12131,7110,0.

with about 10 lines per millisecond in the User/Land_Strider/Zomboid directory.

Huge amounts of these files like 50 to 500 per session, depending on the length of the session. From what I see, lines generate for each player in the multiplayer session, too. I have a very minimal amount of wire fence use with maybe 10 segments of wall and 12 segments of gates in total. There is almost no other wire fences around generated by the world, though they shouldn't be affected by this mod.

It looks like the logs have been generating for the last 7 months, although dates in the lines are stuck in the December of 2023, varying between all days of the month.
ElAutodenominadoUltimoTubérculo  [author] 7 Nov, 2023 @ 11:24am 
@Jack I really don't feel like adding more code, I'll wait and see if the modders manage to figure something out and then maybe expand the mod. RN it is really modular, but searching for the variables for the normal high gate would take me time, and I have spent way too much in a mod I just made for fun and was intended to be small size and easy to do. If you want the mod to work, use the tips I have written at the beginning of the mod description.
ElAutodenominadoUltimoTubérculo  [author] 7 Nov, 2023 @ 11:21am 
@Jax try with this new update, the folder structure was working weirdly.
Jack 7 Nov, 2023 @ 8:38am 
hm maybe do in the meantime the normal high gate indestructible? so we have an alternative the meantime?
ElAutodenominadoUltimoTubérculo  [author] 7 Nov, 2023 @ 1:36am 
@Jack that will not work. The game processes double doors as follows: You boot up/build a door > The game assigns an HP value > If you open the door, the two lateral tiles act like a normal door, but the central tiles get deleted and replaced in the new tiles. The issue boils down to the game not storing the hp values of the central tiles when opening/closing the door. This already causes an issue in vanilla without the mod, and I have reported it on the forums, where you can see a more detailed explanation of the issue with screenshots. Checking every 30 mins will do nothing, since, for example, map placed double doors only have 100hp, so zombies would break them way before. And since the game has no Events for detecting zombie attacks OR an HP loss of a thumpable me and other modders are still trying to find a fix for that. The link to the forum post where this issue is explained: https://theindiestone.com/forums/index.php?/topic/69239-4178-double-door-hp-resetting-on-central-tiles/
Jack 6 Nov, 2023 @ 8:41pm 
What if you make the mod scan every ingame 30 min for those gates and reset their hp or something maybe like that?
Jax 6 Nov, 2023 @ 8:11pm 
Yep, big wire fence just broke down. Started w/ 700 health. When it reached 0 it fell. Not sure if I am missing something.
Jax 6 Nov, 2023 @ 8:08pm 
Thanks for the reply on the below part. My fences do seem destructible and draw a lot of zombies in seemingly. Unless they are able to lose HP and not break? I haven't let them get that low yet, but they absolutely are losing HP.
ElAutodenominadoUltimoTubérculo  [author] 6 Nov, 2023 @ 2:27pm 
@Jack i have been discussing this on the discord and other moders have told me the issue is that the game deletes the central segments of gates when opening them, and then reasigns the default value to them. This is a vanilla issue, and happens with any placed door that has a different value from 500 hp. I am trying to find a solution, but for some weird reason the game has no events for either detecting a zombie attack or detecting when a door is damaged, but it has one for when a player hits a thumpable object. It is the only solution I have found RN, I'll keep looking into it.
ElAutodenominadoUltimoTubérculo  [author] 6 Nov, 2023 @ 1:41am 
@Jack yes, I have found this issue where if you open a gate then the two central parts will reset their hp value -presumably due to them changing tiles- to vanilla default and be breakable until you reload. I am going to look into it, but I have a very limited knowledge of codding
Aves 5 Nov, 2023 @ 3:49pm 
"but zombies will still try to hit player placed fences and both kinds of fenced doors -even naturally generated ones. Other mods tend to make fences non-thumpable, thus zombies will not even try to hit them, I think my solution is more elegant."

Oh thats really cool actually. I can relive my Twd prison fence stabbing dreams. I always wished zombies pressing against fences was a part of their ai but I disliked that they'd break through. This is a great mod.
Jack 5 Nov, 2023 @ 11:43am 
the fences seem fine but the gates not
Jack 5 Nov, 2023 @ 11:43am 
so uh i have this mod enabled on new save constructed a high fence gate out of metal and they destroyed like half of a half door and swarmed the base on my server
ElAutodenominadoUltimoTubérculo  [author] 5 Nov, 2023 @ 2:36am 
@a quality meme This mod makes the objects affected by it have an almost limitless hp pool, but zombies will still try to hit player placed fences and both kinds of fenced doors -even naturally generated ones. Other mods tend to make fences non-thumpable, thus zombies will not even try to hit them, I think my solution is more elegant.
a quality meme 4 Nov, 2023 @ 2:30pm 
What does this mod mean exactly by "allows zombies to interact with fences and doors" if all fences and doors are indestructible? Do they still try to break them even though it's futile or do they have some special thing going on?
ElAutodenominadoUltimoTubérculo  [author] 3 Nov, 2023 @ 12:12am 
I'll edit the description, now that I read it I see why it is confusing.
ElAutodenominadoUltimoTubérculo  [author] 3 Nov, 2023 @ 12:11am 
@Jax only the ones that are supposed to be Indestructible AND are world generated -not player placed-. That way, you are in the same boat as the zomboids, and must find other ways in. Wooden doors, etc. Can still be disassembled ;).
Jax 2 Nov, 2023 @ 8:20pm 
I love this version, but you can't disassemble doors now? Like even normal wood doors? Guess I'm not clear on "It also doesn't allow people to disassemble already placed doors."
pgames-food 30 Oct, 2023 @ 5:32pm 
congratulations :lunar2019piginablanket:
Rob Bobbert 30 Oct, 2023 @ 1:44am 
This mod got me pregnant