Project Zomboid

Project Zomboid

Unbreakable Metal Fences + Gates! (Build 41+)
201 Comments
Comando 23 hours ago 
Well, I had a problem with the mod. When I pressed on the gates, they would break, and looking at my list of mods I've tested (50+ mods),
the one causing this was the mod
lightSensor
For anyone else who's experiencing this, see if this mod is on your list. I hope it helps.


@Player 1
CampinKarl  [author] 10 Jul @ 6:30am 
@dogma

That's the only one I know as of now
dogma 20 Jun @ 5:51am 
hi, very helpful mod. Is there any other property similar to "isThumpable" which let zombies completly ignore player fences? Sometimes few zombies start to attack (but not break) my fences.
CampinKarl  [author] 13 Jun @ 7:35pm 
@milk 108600 is the steam ID tag for Zomboid

either you've never downloaded a mod before, which is why it's empty, or you haven't installed the game, or I dunno

steamapps - the steamapps folder
workshop - its workshop folder
content - content for workshops
108600 - Zomboid's assigned Steam ID
515555911 - the Morebuilds mod
milk 9 Jun @ 12:50pm 
idk if I'm just dumb or what's up but I don't have steamapps\workshop\content\108600\515555911\mods\MoreBuilds\media\lua\server\BuildingObjects
i have two different steamapps\workshop\content and neither have 108600 :CryingGhost:
i'm not sure what this means, and while i don't think it's because of any of my mods, if it was, maybe it's mod options (build 41) and/or mod manager: load order sorter? i'd like to use this with MoreBuilding, so if anyone can help i'd appreciate it
not sure if i'd need to provide more info for help, so just lmk
Shadow Pendragon 9 Apr @ 8:59pm 
Still works as of writing this ;D
CampinKarl  [author] 18 Mar @ 11:28pm 
I'll probably wait until B42 stable releases before I fix this up

I recommend you guys use Better Tiles Picker to spawn the unthumpable steel fences or the long-standing metal constructions mod in the meantime
CampinKarl  [author] 18 Mar @ 11:20pm 
Ah, update: method below doesn't work with big wired steel doors

Seems the code is revamped for that one, explains the errors
CampinKarl  [author] 18 Mar @ 11:08pm 
To those want to use this for Build 42, temporary patch (manual) :spiffo:

I just finished some preliminary testing and it throws some errors

It does work but until I can make it function without the red box flags on the lower right, this is the method I found below.

1.) Navigate to steamapps\workshop\content\108600\2900870031\mods\IndestructibleMetalFences

2.) Make a folder named "common", don't put anything in it

3.) Make a folder named "42"

4.) Copy the "media" folder, mod.info, and poster.png

5.) Paste the files inside the 42 folder.

6.) boot zomboid, the Mod should show in Mods on 42 unstable

As this is a temporary fix, I haven't tested for Mod incompatibilities yet
F1tgal911 27 Feb @ 1:42am 
Yes! Ty
CampinKarl  [author] 25 Feb @ 9:48am 
holy heck I completely forgot I made this mod, I didn't even get notifs from all these comments

I'll update it when I can, maybe when B42 becomes official and leaves beta
F1tgal911 15 Jan @ 9:38am 
Please this for B42. I hate it so much that a piglet or calf can break my welded metal bar fences all the time.
Ben 1 Jan @ 1:54am 
really need this for build 42 please x
KNX Kong 19 Dec, 2024 @ 7:49pm 
B42 Update
RuaN-PZ 19 Dec, 2024 @ 4:36am 
b42 <3 ?
Hellcat 18 Dec, 2024 @ 6:43pm 
i like this modder guy. dude has some sense of humour. keep up the great work. thank you!
Player 1 17 Aug, 2024 @ 5:31pm 
Hi, I do not know if you know about this allready so sorry if i Waste your Time...

The MOD seem to work fine - Until you (Mouse) Klick with the Right button 1 Time on the Fence... then it seem to lose it's "Map Object State" and get attacked (and destroyed) by the Zombies. I have tryed this out now 3 Times... When Zomies are near the Fense, right cklick to the Fense and they start to attack it... You can tryout by your own.
Zseobi 28 Jul, 2024 @ 1:25am 
gates are broken bro something wrong in 41.78.16
✪ Maickeen.[4] 24 Jul, 2024 @ 9:47pm 
Any way to make Metal Fences fireproof ?
HQ 9 Jul, 2024 @ 11:47pm 
Tested in debug: only works with itself and/or More Builds mod(using the method provided), no other build menu will work or More builds Plus addons, so deactivate the other mods for it to work properly, then you can reactivate them, once you've built your fences, the effect should stick. It will also work with long standing metal constructions.
Бес Балбес 9 May, 2024 @ 12:37pm 
The mod has stopped appearing in the list of mods. Reinstalled the game and my version. It didn't help. What to do?
harrydubois 11 Apr, 2024 @ 1:10am 
What happens if i have this mod + Long Standing Metal Constructions mod installed together? Does the latter overwrite this mod and negate its invulnerability?
george washingzyn 4 Apr, 2024 @ 6:10pm 
Does anyone know how to make this work in multiplayer
Mrdoggo0911 21 Mar, 2024 @ 6:22pm 
Does this work when you make the wire fence?
CampinKarl  [author] 6 Mar, 2024 @ 3:41am 
@paradox

as per mod description:
"The metal fences in this mod are invincible or indestructible because they are now recognized as "map" objects that are now immune to thumping. So they are technically not invincible or indestructible to fire, rain, rust, and nuclear missiles, only invincible to zombies per se because they are practically a barrier the zombies can only walk around."
parad0x 3 Mar, 2024 @ 11:03am 
I tested the mod today, the zombies dont attack the high metal fence/gate they just try to walk to you and make noices :-D.
You can attack and kill them through the fence/door btw.
On build 41.78.16 (without editing the config files)
莫名某某 7 Feb, 2024 @ 7:03am 
Can you make the Metal Barricade invincible as well? I really want an unbeatable reinforced window that you can see through.:steamhappy:
CampinKarl  [author] 20 Jan, 2024 @ 1:51am 
@Falkner

that's outside my paygrade :))

hell I just pulled this code off a logwall mod I discovered somewhere.

If you can find a mod that does that for something else, send me a link and I'll study how they did it, reverse-engineer the whole thing like how China does it with Western Nike shoes, give me a week and presto you get your request.

Otherwise I have no reference and can't do anything
Falkner 19 Jan, 2024 @ 4:40pm 
Thanks for this!
Could i request you make it so they will still break/take damage if too many ( >10) zombies are pushing against the fence like with the vanilla wooden picket fences? Hopefully the codes easy to copy paste/

I dislike repairing/rebuilding but still want there to be a good reason to keep the zombie numbers down.
CampinKarl  [author] 14 Jan, 2024 @ 1:05am 
@xyz

I learned how to do this mod without tutorials of any kind

sometimes you just have to run it, see if it works, and if it doesn't, search up similar mods and see what they did

this mod probably even works in multiplayer, I just haven't tested

see if only the host needs it, or if both need it, again it's all just trial and error
B0nk 137' peek 14 Jan, 2024 @ 1:01am 
yo, i wanted to ask, is there any like tutorial or sum how to use this mod in mp?
:spiffo:
CampinKarl  [author] 9 Jan, 2024 @ 7:38am 
@barbieout4blud
@Gust

The mod should still be working

Remember to enable it in the mods tab for existing saves and to actually apply it,
which is what some people forget to do

If I recall it might work in multiplayer so long as the host and everyone else has it enabled
barbieout4blud 8 Jan, 2024 @ 10:07pm 
Does this mod still work? And is there any way to check if it works?
Johnny Blue 8 Jan, 2024 @ 2:37pm 
@CampinKarl But it doesn't work in multiplayer, right? since I would only modify the files for myself.
CampinKarl  [author] 5 Jan, 2024 @ 4:15pm 
@cort.x

modding should help people mod to create more mods

happy to help since I also learned from someone else
cort.x 5 Jan, 2024 @ 12:39pm 
Bro you just learn me how to reach those mods code. I tried to figured out since a while. Thanks
CampinKarl  [author] 21 Dec, 2023 @ 8:54pm 
@Gust

Subscribe to the MoreBuilding mod

Then apply the fix in the description
Johnny Blue 21 Dec, 2023 @ 8:47pm 
How do I make the other types of bars that appear in the thumbnail image of the mod?
CampinKarl  [author] 1 Dec, 2023 @ 5:20pm 
@cieniewicz

yup
cieniewicz 1 Dec, 2023 @ 1:04pm 
Hi, should we skip a line between 28 and the line of code to be written? Should we put the line of code on line 29, between the other two lines of code?
a random pickle 26 Nov, 2023 @ 10:07am 
Is this outdated now?
GammaJunkie1836 23 Nov, 2023 @ 4:21am 
it did not work for me the destroyed my base now
MidoriAshy 16 Nov, 2023 @ 12:31pm 
Hi, can you include an option to choose between the Wired fence variant and the Pole fence/gate variant?
ElAutodenominadoUltimoTubérculo 29 Oct, 2023 @ 12:50pm 
Couldn't this mod use the more elegant solution employed by the Indestructible Door HP mod to enable zombies to hit the doors and fences but be virtually incapable of destroying them? I tried to code it myself, but I do not have near enough knowledge of LUA to do this.
Oguri Kyousuke 17 Oct, 2023 @ 12:06am 
@Brogan: Silly enough, judging by the code, most likely it does.
Then again if it does, you're basically just doing a switcheroo between world generated fence and player made fence. What exactly are you trying to achieve with it?
Ash 16 Oct, 2023 @ 10:43pm 
Stupid question, but better me than other poor soul.
Does this mod work with Destroyable World Fences?
Mr.Worldwide 8 Oct, 2023 @ 11:08am 
So you'll just make the fence and gate and it's automatically indestructible? or
Executive Operative 24 Sep, 2023 @ 1:18pm 
Hello! This is an excellent mod. Thank you for taking the time to create and share this with everyone!

One question though, is it possible (and are you interested) in creating a mod that allows zombies to lean against the fences and gates but deal no damage? I feel like the same animation of zombies leaning on windows could be used for this purpose.
DaveFitz 22 Sep, 2023 @ 2:41pm 
Before it worked very well for me, it even worked with the MoreBuilding mod, but for a while now, almost over a month now, I haven't been able to get it to work again, it only works with the basic metal fence and the double gate.
One of my favorite mods btw <3
Chop Chop 22 Sep, 2023 @ 11:28am 
I use fencing kits and it works fine. Just curious as to why in your description is says incompatible