DayZ
26 ratings
EntityReplacer
   
Award
Favorite
Favorited
Unfavorite
Type: Mod, Server
File Size
Posted
Updated
29.330 KB
21 Nov, 2020 @ 5:20am
10 May, 2024 @ 12:17pm
18 Change Notes ( view )

Subscribe to download
EntityReplacer

Description
This mod can be used to replace specific items or vehicles on the map on server start and transfers all attachments (as long as compatible slots are on the replacement), complete inventory, current global health, quantity (in case of stacks, liquid containers or magazines), and in case of vehicles, also fuel and coolant (if you are using Expansion, it also transfers key pairings for vehicles).

This can be useful to (e.g.) get rid of bugged items, or to replace items from one mod with items from another mod.

WARNING WARNING WARNING READ THIS!
NO GUARANTEE CAN BE MADE THAT THIS ALWAYS WORKS CORRECTLY.

CAVEATS:
Replacing vehicles in this way takes them out of the events spawners, so vehicles that were originally spawned by events WILL respawn as well which can lead to an unwanted increase of vehicles on the map. Also make sure vehicle lifetimes in your types XMLs are set sensibly (set them to 3888000 to be on the safe side).

How to use this mod:

1. Subscribe and add it to your server command line (-servermod=@EntityReplacer)
2. Create a text file EntityReplacer.cfg in your server profile directory. For an example of what to put in this file see below.
3. After editing EntityReplacer.cfg, start server.

Example EntityReplacer.cfg that will replace all Sedan_02 (Sarka) with Hatchback_02 (Gunther):
Sedan_02 = Hatchback_02 Sedan_02_Door_1_1 = Hatchback_02_Door_1_1 Sedan_02_Door_1_2 = Hatchback_02_Door_1_2 Sedan_02_Door_2_1 = Hatchback_02_Door_2_1 Sedan_02_Door_2_2 = Hatchback_02_Door_2_2 Sedan_02_Hood = Hatchback_02_Hood Sedan_02_Trunk = Hatchback_02_Trunk Sedan_02_Wheel = Hatchback_02_Wheel
It will also work for modded vehicles (if both vehicle types are coming from a mod, both mods need to be loaded during replacement).
30 Comments
NEO 22 Apr, 2023 @ 10:40pm 
Does the mod replace things only when server start or constantly replacing, ex: admin spawn an item that's in the replace list
Jez 12 Mar, 2022 @ 12:25pm 
Great mod, thanks for this very handy to get rid of the unwanted crud on the map.
pennybelle 29 Jan, 2022 @ 5:14pm 
Error with 1.16: entityreplacer.c(657): Can't find variable 'CZ527StableStateID'

Causes server crashes. Love this mod, hope to see it transfers over <3
Dublonen und Moneten 13 Jan, 2022 @ 2:38pm 
any1 know how to play it tho?
Blake Raz al Ghul 13 Jan, 2022 @ 1:37pm 
how do we do command line thingy majiger
SRR-Viper 13 Jan, 2022 @ 1:37pm 
your description explains how to add it to a server start not a game start???
◣ ▲▼▲  [author] 13 Jan, 2022 @ 1:26pm 
It would help if people would read the description of this mod...
76561199086920825 13 Jan, 2022 @ 1:20pm 
???
salsacerena 13 Jan, 2022 @ 1:14pm 
wht da hell man
SRR-Viper 13 Jan, 2022 @ 12:52pm 
not loading :-(