Project Zomboid

Project Zomboid

490 ratings
Unbreakable Metal Fences + Gates! (Build 41+)
4
6
2
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
384.090 KB
12 Dec, 2022 @ 1:00am
19 Dec, 2022 @ 6:25am
2 Change Notes ( view )

Subscribe to download
Unbreakable Metal Fences + Gates! (Build 41+)

Description
This mod makes newly-created vanilla "Big Wired Fences" and "Double Metal Wire Gate Doors"

...Invincible or unbreakable to zombies!

The Big Wired fences and Gate Doors are under vanilla "Metalworking"

This mod was made with version 41.78.15

The Mod should work with pre-41.78.15 versions of Zomboid.

Incompatible with: The Fencing Kits! and Improved Build Menu
(You may enable my mod to create the fences then disable it, the effects stay)

Un-aesthetic Fence-crates be gone! or MMGA (Make Metalworking Great Again)

You know how Zombies ignore tall wired metal fences that already exist around the map?
This is because map objects have "thumpable" set to "false" in the code.
In non-programming lingo it means the zombies are set to ignore them.

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.

------------------------------------------------------------------

https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=515555911
Do you want Invincible or Indestructible Metal Fences from the MoreBuilding mod?

All you need is notepad and determination.

1. Navigate to steamapps\workshop\content\108600\515555911\mods\MoreBuilds\media\lua\server\BuildingObjects
2. Find ISHighMetalFence.lua and open it with notepad or a text editor
3. Find function ISHighMetalFence:addPart(x, y, z, north, sprite)
4. add self.javaObject:setIsThumpable(false) after line 28, which should be after "self.javaObject:setThumpSound("ZombieThumpMetal")"
5. ???
6. Profit

I did not include such a patch in this Mod because I'm not too sure if it will break anything and I don't have time to debug (so far no negative comments from those who did try this method). Modders aren't paid to do work but we're happy to help for free so long as people don't feel entitled

------------------------------------------------------------------

🔎 Misc. Details 🔎

Please note that the effect only applies to newly-created Big Wired Fences or Double Metal Wire Gate Doors

Please download a Cheat Menu mod if you want to re-apply the effects (creative mode + instant action + sledge)

I made this Mod as I was tired of crate-fencing certain locations in the map, but I didn't want zombies to totally ignore player-made constructions as that would be too boring.

Redistribution of this mod without explicit permission from the original creator is prohibited under any circumstances. This includes, but not limited to, uploading these mods to the Steam Workshop or any other site, distribution as part of another mod or modpack, and distribution of modified versions.

------------------------------------------------------------------

🙏 Special thanks to: 🙏

Dru from Indestructible Log Walls 41.65 (41.x) for the thumpable code.
I opted to learn how the whole thing works and expanded it to metalworking.
https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=1965117520

Workshop ID: 2900870031
Mod ID: IndestructibleMetalFences
Popular Discussions View All (1)
5
6 Jan, 2024 @ 10:48am
Question
dtoxic
201 Comments
Comando 16 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