DayZ
PVEZ
 This topic has been pinned, so it's probably important
Ermiq  [developer] Oct 12, 2019 @ 10:32am
PVEZ SETTINGS DETAILED OVERVIEW
ATTENTION:
Now PVEZ has the in-game admin UI menu, so you don't need to edit the files manually. See the installation instruction on the main description page on how to get access to the menu in-game.
This overview will stay here for a while though, because some settings are not added in the UI menu yet and you might want to know what's there.
But be aware that names and values described here might be changed in next updates. For example, "Mode" values have been changed to integers instead of strings, so the values listed here do not work in current version of the mod.


NOTE:
"PVEZ_Config.json" consists of options names and their values. To edit them you should use NotePad++ or WordPad or any other advanced text editor with syntax highlighting.
Don't change options names, if you do that, PVEZ will use default settings for the option that has wrong name.
Don't change Json syntax symbols ({}:,[]) unless you know what to do with them. If you brake the syntax, PVEZ will replace the whole file with default settings upon the server restart.
Settings have several sections called GENERAL, DAMAGE, LAWBREAKERS_SYSTEM, MAP (settings for map markers and indicators), AIRDROP_ZONES (settings for Airdrop plugin) and ZONES (static zones that could be PvP or PvE areas depending on the Mode value).

So, "PVEZ_Config.json" contents:

GENERAL:
  • "Mode" : "PVP_ZONES" :
    Default mode, the map is PvE area and the zones are PvP. Players will get healed when hit by a player outside of PvP zones.
    Other options are:
    • "PVE_ZONES" - whole map is PvP, the zones are PvE (kind of safe zones in Trader mod, but you can shoot there and zombies can attack). Player will get healed when hit by a player in PvE zone.
    • "PVE" - the whole map is PvE, PvP is not allowed. Healing works anywhere.
    • "PVP" - basically just vanilla game. No healing, no lawbreakers system. But you can setup zones and use their notifications to inform players where you want them to do PvP legally.
  • "Update_Frequency" : 5
    The period in seconds determining how often the mod should check positions of the players to update their PvP status (is a player in a PvP/PvE zone or not). Does nothing in "PVE" mode.
  • "Show_Notifications" : 1
    Show notification to player on entering/leaving a zone. 0 - do not show.
  • "Use_UI_Notifications" : 1
    1 - use UI notifications, 0 - use chat messages.
  • "Add_Zone_Name_To_Message" : 1
    Adds the zone name to the enter zone message (e.g., default will be "You entered the open fire zone Staroye"). Change to 0 to not show the zone name.
  • "Exit_Zone_Countdown" : 10
    Countdown in seconds before leaving a zone.
  • "Custom_Enter_Zone_Message" : ""
    The custom text for notifications on entering a zone. You can put your own text in between the "" (e.g., "Custom_Enter_Zone_Message" : "Welcome to PVP!"). Default is "You entered the open fire zone" (in PVP_ZONES mode) and "You entered the armistice zone" (in PVE_ZONES mode) translated to different languages.
  • "Custom_Exit_Zone_Message" : ""
    The custom message on leaving a zone.
  • "Custom_Exit_Zone_Countdown_Message" : ""
    The message shown in UI notification countdown before leaving a zone. The seconds counter will be added to the end of the message. Default with English language in game will be "You will leave the open fire zone (or "the armistice zone") in 5-4-3-2-1".

DAMAGE:
  • "Restore_Target_Health" : 1
    With value 1 players will get their health restored if they were attacked by another player in PvE area. Set value to 0 to not heal them.
    "Protect_Clothing_And_Cargo" : 0
    Set to 1 to protect player's clothing and items from the damage caused by other players in PvE area.
  • "Allow_Damage_Between_PVP_and_PVE" : 0
    Determines whether or not PVP damage is allowed from PVP to PVE zone and vise versa. Set to 1 to make PVP between two players allowed when at least one of is in PVP area. If set to 0, PVP is allowed only if both players are in PVP area.
  • "Damage_Types_Sent_Back_To_The_Attacker"
    This section determines the damage types which will be sent to the attacker when he hits another player in PVE area, the types are:
    • "Weapon_Damage" : 1 - Send back the damage dealed with a weapon in hands (notice: any item in hands considered a weapon, even a bandage. I don't want to check what particular weapon the attacker use for the optimization purposes). 0 - not to send the damage back.
    • "Explosive_Damage" : 1 - Send back the damage dealed by a grenade thrown by a player. 0- not to send back.
    • "Vehicle_Damage" : 0 - Default is 0 (disabled) because of the way the vehicle damage is applied in the game. Set it to 1 and it will immediately kill the driver but his target won't get hurt at all (because of healing). At least during the tests I haven't killed anyone with a car, the target gets healed all the time.
    • "Fists_Damage" : 0 - Just like a vehicle damage the fists damage is not that high and it's almost impossible to kill a player with bare hands (because of heal). Set to 1 to damage the bully guy.

LAWBREAKERS_SYSTEM:
  • "Declare_a_Lawbreaker_When_Killed_a_Player_in_PVE_Area"
    The cases when killing a player should be considered a crime:
    • "On_Weaponary_Kill" : 1
    • "On_Explosive_Kill" : 1
    • "On_Vehicle_Kill" : 0 - probably not actually possible till the healing works.
    • "On_Fists_Kill" : 0 - same as vehicle. But if the target is already almost dead than one punch could kill, and this could be considered a mercy kill probably.
  • "Server_Wide_Message_About_Lawbreaker" : 1
    Send a notification to all players on the server about the crime with the killer name, victim name and a weapon.
  • "Custom_Crime_Notification_Message_Format" : ""
    Default format used inside the mod is "%1 killed %2. Weapon: %3" (in different languages), where %1 is replaced with the killer name, %2 - victim name, %3 - weapon. Example of customized message: "%2 was killed by %1 (weapon: %3)".
  • "Custom_Message_for_the_Lawbreaker"
    Personal message that is shown to the one who killed another player in PvE. Default message example you can see at the screenshot at the main page (translated to other languages as well).
  • "Auto_Clear_Lawbreakers_Data": 0
    When set to 1, player's record in Lawbreakers.json file will be removed if the player haven't played on the server for the given amount of days.
  • "Amount_of_Days_to_Store_Lawbreaker_Data": 14
    For how long player record should be stored in Lawbreakers.json file (in days). If autoclear is OFF, this setting is ignored.
  • "Allow_Lawbreakers_To_Attack_Anywhere": 0
    Since lawbreaker's position now could be seen on the map, other players could become some kind of headhunters to seek & kill lawbreakers. In this case it might be fare to allow lawbreakers to have an ability to fight back even in PVE areas (because other players can attack a lawbreaker anywhere). Set this to 1 to allow a lawbreaker to attack other players just like in default game.
  • "Pardon_On_Death_From_Any_Source": 0
    By default the lawbreaker can be pardoned only when they've been killed by a non-lawbreaker player, an infected or an animal. Set to 1 and the lawbreaker will be free off their lawbreaker status whenever they died, no matter what caused their death. Note that in this case they could commit a suicide in their camp or ask their friend to kill them or just let themeselves bleed out to death and remain unpunished.

MAP
- settings for markers on the map.
  • "Show_Player_Marker" : 1
    Show player marker on map
  • "Custom_Player_Marker_Text" : ""
    Custom text for player marker. Default is "You're here" in different languages.
  • "Zones_Border_Color"
    The color of the zone borderline on the map. Values are ARGB (0-255).
    • A - Transparency. 0- transparent, 255 - fully visible.
    • R - red spectre.
    • G - green spectre.
    • B - blue spectre.
  • "Lawbreakers_Markers" :
    This section is for lawbreakers positions settings:
    • "Update_Frequency": 800
      How often lawbreaker position is updated on the map (in seconds). When set to 0, markers won't be shown on map. Default is 800 secs (15 minutes).
    • "Custom_Lawbreaker_Label": ""
      Text for a lawbreaker map marker. Default is "Murderer" in different languages.
    • "Show_Name": 1
      Show lawbreaker's name on marker (default will be "Murderer Survivor"). Set to 0 to not show names.
    • "Lawbreakers_Can_See_Their_Own_Markers" : 0
      Set to 1 to allow a lawbreaker to see his own marker on the map.

AIRDROP_ZONES
- settings for Airdrop mod campatibility plugin (PVEZAirdropZones). Note that if you use Airdrop with PVEZ, you'd better set up "PVP_ZONES" mode, because in "PVE_ZONES" mode the airdrop zone will be a PvE area.
  • "Radius" : 100 - radius of the zone around airdrop.
  • "Zone_Name" : "Airdrop" - zone name for notifications.

ZONES
- the list of zones. Depending on the "Mode" value the zones will work as PvP or PvE areas.
A zone properties are:
  • "Name" : "Staroye"
    Can be changed to anything (just don't touch the quotes). This name will be added to the enter zone message.
  • "X"
    The West-to-East coordinate of the zone center,
  • "Z"
    The South-to-North coordinate.
  • "Radius" - of the zone.
  • "ShowBorderOnMap" : 1
    Show the zone borderline on map.
  • "ShowNameOnMap" : 0
    Show the zone name on map. Disabled for default zones because they're already displayed at in-game Chernarus map and VPP map.
  • "Activity_Schedule"
    The zone activity times determined by days of week, start and end hours.
    Contains 3 entries: "Days": "1 2 3 4 5 6 7", "StartHour" and "EndHour".
    NOTE: By default the numbers of days in a week are: Monday as 1st day, Sunday as 7th day. To change it to the numbers used in US, UK and other contries where Sunday is the 1st day, look for the new option in GENERAL section called "Week_Starts_On_Sunday" and set its value to 1.
    By default the zones are active all day long (from hour 0 to hour 24). For example, to set the zone active from 8 PM to midnight (20:00 to 00:00), set "StartHour" to 20, "EndHour" to 24.


PVEZ_Lawbreakers.json
file will be created within "PVEZ_Config" folder (next to the "PVEZ_Config.json") as soon as someone break the law by killing another player outside of PvP zones.
It will contain the following info for every lawbreaker:
  • UID - the 44-digits identificator of the player;
  • Recent_Character_Names - three of the most recent names the player used on the server;
  • Murder_Count - how many murders the player has performed against the law (mass murders within 2 minutes are considered a single murder);
  • Most_Recent_Murder_TimeStamp - the time of the latest murder the player has performed on the server (e.g., "October 12, 21:45:21").
    Also, a couple of technical information strings:
  • Is_Currently_Outlaw - used when player joins the server to re-apply a lawbreaker flag on him
  • Disconnect_Time - used to count down how long the player hasn't played on the server.
Last edited by Ermiq; Nov 27, 2020 @ 4:14pm
< >
Showing 1-15 of 30 comments
Zena10 Jun 1, 2020 @ 7:28am 
Hi, I tryed to setup as PVP zones Prison and Stalinsky island without success... I think that the problems are Y coordinates - altitude... Where is the best way to find the correct one?
Ermiq  [developer] Jun 1, 2020 @ 7:52am 
You can find them with some admin tools mod.
For example, Community-Online-Tools has a menu called Player Management, there you can see the selected player coordinates X, Y, Z - those are the same coordinated as the ones used by PVEZ.
Also, in next update I'll remove the Y coordinate. You'll need to set up just X (East-to-West) and Z (South-to-North). And zones will be altitude independent, so they'll be not spheres around some point but cylinders with infinite height.
Warning: next update won't be compatible with the old config (too much of legacy compatibility code already, I want to get rid of it). So, you guys will have to set up your custom zones again.
Last edited by Ermiq; Jun 1, 2020 @ 7:55am
Zena10 Jun 1, 2020 @ 3:05pm 
Nice man, great job!!
FluffyFlannel Jun 17, 2020 @ 12:13pm 
@Ermiq

First of all, loving your mod! But I have a slight issue. Whenever I create any custom zones, upon server restart the config file just resets back to default. Could you have any clue as to why?

Much Appreciated
Ermiq  [developer] Jun 17, 2020 @ 12:30pm 
Originally posted by FluffyFlannel:
@Ermiq

First of all, loving your mod! But I have a slight issue. Whenever I create any custom zones, upon server restart the config file just resets back to default. Could you have any clue as to why?

Much Appreciated
Paste your PVEZ_Config.json file contents here with your custom zones, I'll see what's wrong with it. It could happen if the file has syntax erros, i.e., missing special symbols ([]{},), in this case the mod replaces the file that has errors with a default file.
Jazza Sep 3, 2020 @ 5:55pm 
Hi @Ermiq,

Great mod!

Everytime i make edits to the Config file it replaces it. Even if it is just changing the IsActive to 0. I am trying to create custom zones for PVP however even slight changes to the file makes it download the default one. Any ideas?
Last edited by Jazza; Sep 3, 2020 @ 5:58pm
Bender the noob Sep 8, 2020 @ 5:13am 
Here is my settings on my server. works fine on server restarts:

{
"GENERAL": {
"Mode": "PVP",
"Update_Frequency": 5,
"Show_Notifications": 1,
"Use_UI_Notifications": 1,
"Add_Zone_Name_To_Message": 1,
"Exit_Zone_Countdown": 5,
"Custom_Enter_Zone_Message": "",
"Custom_Exit_Zone_Message": "",
"Custom_Exit_Zone_Countdown_Message": ""
},
"DAMAGE": {
"Restore_Target_Health": 0,
"Protect_Clothing_And_Cargo": 0,
"Allow_Damage_Between_PVP_and_PVE": 0,
"Damage_Types_Sent_Back_To_The_Attacker": {
"Weapon_Damage": 0,
"Explosive_Damage": 0,
"Vehicle_Damage": 0,
"Fist_Fight_Damage": 0
}
},
"LAWBREAKERS_SYSTEM": {
"Declare_a_Lawbreaker_When_Killed_a_Player_in_PVE_Area": {
"On_Weaponary_Kill": 0,
"On_Explosive_Kill": 0,
"On_Vehicle_Kill": 0,
"On_Fist_Fight_Kill": 0
},
"Server_Wide_Message_About_Lawbreaker": 0,
"Custom_Crime_Notification_Message_Format": "",
"Custom_Message_for_the_Lawbreaker": "",
"Auto_Clear_Lawbreakers_Data": 0,
"Amount_of_Days_to_Store_Lawbreaker_Data": 14,
"Allow_Lawbreakers_To_Attack_Anywhere": 0
},
"MAP": {
"Show_Player_Marker": 1,
"Custom_Player_Marker_Text": "",
"Zones_Border_Color": {
"A": 200,
"R": 255,
"G": 0,
"B": 0
},
"Lawbreakers_Markers": {
"Update_Frequency": 800,
"Custom_Lawbreaker_Label": "",
"Show_Name": 1,
"Lawbreakers_Can_See_Their_Own_Markers": 0
}
},
"AIRDROP_ZONES": {
"Radius": 150,
"Zone_Name": "Airdrop"
},
"ZONES": [
{
"Name": "Chernogorsk military base",
"X": 7230,
"Z": 3038,
"Radius": 150,
"IsActive": 1,
"ShowBorderOnMap": 1,
"ShowNameOnMap": 0
},
{
"Name": "Staroye",
"X": 10447,
"Z": 5969.82,
"Radius": 150,
"IsActive": 1,
"ShowBorderOnMap": 1,
"ShowNameOnMap": 0
},
{
"Name": "Prison Island",
"X": 2693,
"Z": 1309,
"Radius": 200,
"IsActive": 1,
"ShowBorderOnMap": 1,
"ShowNameOnMap": 0
}
],
"version": 7
}
djlightman Sep 20, 2020 @ 12:17pm 
hi i dont know if its a bug or something ice done wrong but i changed the refresh on the lawbreakers marker to 5 seconds and it doesnt seem to have registered, i restarted the server to make sure it was set right and the "Update_Frequency" is set the way i set it.
Ermiq  [developer] Sep 24, 2020 @ 7:50am 
Originally posted by guitargod2b:
hi i dont know if its a bug or something ice done wrong but i changed the refresh on the lawbreakers marker to 5 seconds and it doesnt seem to have registered, i restarted the server to make sure it was set right and the "Update_Frequency" is set the way i set it.
You need to restart the server to apply new settings.
BeardedHeathen Sep 29, 2020 @ 1:22am 
Can you set pvp zones? If so how do you do it?
FurryFailure Dec 28, 2020 @ 9:45pm 
Since this mod has updated, the modes "PVP" and "PVE" are now numerical values - which one is PVE? This guide needs updating.
Ermiq  [developer] Dec 30, 2020 @ 4:49am 
Originally posted by FurryFailure:
Since this mod has updated, the modes "PVP" and "PVE" are now numerical values - which one is PVE? This guide needs updating.
Well, as mentioned in the opening post, you'd better use in-game admin menu now, and this thread is here just in case. It's not a guide, just a representation of what was there before admin UI menu has come.
If you're interested anyway, the modes are:
PVP zones - 0
PVE zones - 1
PVE - 2
PVP - 3.
Not sure about 2 and 3 though, might be opposite.
Nyganas Jan 18, 2021 @ 11:30am 
Hello, can i set one hunter who hunt lawbreaker? One player only can see lawbreaker location?
Ermiq  [developer] Jan 20, 2021 @ 1:25am 
Originally posted by Negan:
Hello, can i set one hunter who hunt lawbreaker? One player only can see lawbreaker location?
No, lawbreakers locations are shown to all players.
Why would you need to show it to only one?
DIVE Jan 27, 2021 @ 4:36pm 
How do i activate the menu in-game? Whats the default key.
Last edited by DIVE; Jan 27, 2021 @ 4:36pm
< >
Showing 1-15 of 30 comments
Per page: 1530 50