Project Zomboid

Project Zomboid

Not enough ratings
Indestructible Fences & Gates (upgraded 41+)(READ DESCRIPTION!!!!)
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
7.220 KB
Oct 29, 2023 @ 4:47pm
Nov 7, 2023 @ 11:20am
3 Change Notes ( view )

Subscribe to download
Indestructible Fences & Gates (upgraded 41+)(READ DESCRIPTION!!!!)

Description
VERY IMPORTANT: at this moment there is a known issue where after closing/opening a double door its hp values reset to default This issue is better explained in this bug repport I made: https://theindiestone.com/forums/index.php?/topic/69239-4178-double-door-hp-resetting-on-central-tiles/. To avoid zombies breaking in, make sure to hit BOTH central parts of a duble door YOURSELF -->(1 2___3 4 --> hit tiles 2 and 3). This fix will only work with doors placed by default on the world, not palyer built ones. The fix to that issue is the following one:

If you really want fully functioning double doors -doing the trick mentioned above of hitting tiles 2 and 3-, then I recommend doing the following:

1. Get the required materials and skill level to build a Metal Double Fence Door

2. Install the following mod and only enable it for doing what I am going to tell you right now -just to avoid cluttering your context menu-→Better Tiles Picker: https://steamcommunity.com/sharedfiles/filedetails/?id=2792714394

3. Right-click anywhere > BetterTilesPicker > TilesPicker > A window will open, in the top left corner there is a black rectangle above the first category that works as a search bar, paste the following: fixtures_doors_fences_01 then click on the only category that will appear (with the same name) and scroll down a bit until you find the metal fence door tilesets -you will see 16 in total-.

4. Now you need to select the 4 tiles that compose a door, there are 4 groups of 4 tile sets, beginning from the first on the left -they are: (1,2|3,4) (5,6|7,8), (9,10|11,12) (13,14|15,16), the | symbol denotes that, for example, 1,2 are in the upper row and 3,4 in the lower. ONLY use tilesets (1,2|3,4) & (5,6|7,8), the others are thought only for half doors and will never snap together to form 4 tile full-doors. The following values: {2,3,6,7} are the doors extremes and the other ones are the central tiles. What you want to do is place in the world (left-click the desired tile on the window and then left-click on a tile in the world) the 4 tiles of the SAME tileset (the previous 2 groups in this step), NEVER combine them, or trying to open the door will crash the game -nothing serious, but annoying-.

5. After doing this, dispose of the materials as you like and then disable the Better Tiles Picker Mod.

6. And there you have it, this new door will have unlimited HP and you will be able to perform the trick mentioned at the beginning of the description of the mod for resetting the hp of the central tiles

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

Makes Player placed Chainlink fences and both Black Pole and Chainlink Double Doors (natural or in the second case both placed or natural) virtually indestructible. Doors that are considered indestructible by this mod and that have been spawned during world gen can't be dissasembled by players -that way, you are playing by the same rules as the zomboids-.

This mod allows for zombies to interact with fences and doors, unlike the Unbreakable Metal Fences + Gates! mod.

As anyone can deduce, I took great inspiration from:

Unbreakable Metal Fences + Gates!: https://steamcommunity.com/sharedfiles/filedetails/?id=2900870031
&
Indestructible Door HP: https://steamcommunity.com/sharedfiles/filedetails/?id=2971617269

I am not a full time modder, I just built this for one of my playthroughs and decided to share it, so expect no updates or compatibility fixes, etc.

IMPORTANT: I have noted that zombies MIGHT break doors that where damaged before the mod was added to the save, so I seriously recommend adding the mod before starting your save.

Workshop ID: 3065834861
Mod ID: IndestructibleFences
20 Comments
Land_Strider Jun 26, 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] Nov 7, 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] Nov 7, 2023 @ 11:21am 
@Jax try with this new update, the folder structure was working weirdly.
Jack Nov 7, 2023 @ 8:38am 
hm maybe do in the meantime the normal high gate indestructible? so we have an alternative the meantime?
ElAutodenominadoUltimoTubérculo  [author] Nov 7, 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 Nov 6, 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 Nov 6, 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 Nov 6, 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] Nov 6, 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] Nov 6, 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