From 038da982b4c57a50d5ef6f6ae2dfd58bf4ec3805 Mon Sep 17 00:00:00 2001 From: ebayShopper Date: Tue, 28 Nov 2017 15:51:22 -0500 Subject: [PATCH] Update SQL for removed policecar Vanilla commit: https://github.com/DayZMod/DayZ/commit/b6252d75ec817424a48d849e7e27d2a0d07b8754 --- CHANGE LOG 1.0.6.2.txt | 2 +- SQF/dayz_code/Configs/CfgVehicles/Car/CAR_SEDAN.hpp | 4 ++-- Server Files/SQL/1.0.6.2_Updates.sql | 5 +++++ 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/CHANGE LOG 1.0.6.2.txt b/CHANGE LOG 1.0.6.2.txt index dfefedb4d..5320df69b 100644 --- a/CHANGE LOG 1.0.6.2.txt +++ b/CHANGE LOG 1.0.6.2.txt @@ -34,6 +34,7 @@ [UPDATED] Added all upgraded weapons to the traders as sell only for the sell price of the base weapon plus the sell price of attachments. This allows them to be sold without removing attachments first. #1982 @worldwidesorrow [UPDATED] Increased the coverage angle of headlights on land vehicles and added a headlight to the bicycle [UPDATED] The huey searchlight and gunner seat now have improved visibility in first person view. +[UPDATED] Removed policecar from dayz_vehicles due to model errors, SQL must be updated if this vehicle was used, see 1.0.6.2_Updates.sql [FIXED] Purchased and upgraded vehicles will now spawn quicker and no longer be destroyed by sched_safetyVehicle when server FPS is low. HiveExt.dll and SQL must be updated. See 1.0.6.2_Updates.sql [FIXED] Kamaz refuel trucks no longer allow automatic refueling. #1855 @coresync2k @dreamforceinc @@ -58,7 +59,6 @@ [FIXED] Unable to sell upgraded _DZE[1-4] vehicle variants if their base vehicle class is removed from the trader configs. [FIXED] The player building a shed, tent or other unlocked storage was unable to use its gear until relog when DZE_GodModeBase=true; @oiad [FIXED] Death message killer inaccurate when player is caused to bleed by one unit and then killed by a different unit shortly after. @oiad -[FIXED] The DayZ police car can no longer be upgraded to car_sedan_DZE1. #1929 @F507DMT [FIXED] Group tags sometimes printing WARNING: Function 'name' - x is dead to RPT. [FIXED] Group saving issue which could potentially join a player to a random group or not save group properly after death. [FIXED] Harvested pumpkin, sunflower, and hemp plants no longer respawn after relog (allowed infinite harvesting). diff --git a/SQF/dayz_code/Configs/CfgVehicles/Car/CAR_SEDAN.hpp b/SQF/dayz_code/Configs/CfgVehicles/Car/CAR_SEDAN.hpp index ce715e24b..873745994 100644 --- a/SQF/dayz_code/Configs/CfgVehicles/Car/CAR_SEDAN.hpp +++ b/SQF/dayz_code/Configs/CfgVehicles/Car/CAR_SEDAN.hpp @@ -12,13 +12,13 @@ class car_sedan : SkodaBase { ItemORP[] = {"car_sedan_DZE1",{},{{"ItemORP",1},{"PartEngine",2}}}; }; }; - +/* //Removed from dayz_vehicles class policecar: car_sedan { class Upgrades { ItemORP[] = {}; }; }; - +*/ // Performance 1 class car_sedan_DZE1: car_sedan { original = "car_sedan"; diff --git a/Server Files/SQL/1.0.6.2_Updates.sql b/Server Files/SQL/1.0.6.2_Updates.sql index 3eef1df44..39eb4eef4 100644 --- a/Server Files/SQL/1.0.6.2_Updates.sql +++ b/Server Files/SQL/1.0.6.2_Updates.sql @@ -34,6 +34,11 @@ UPDATE character_data SET Inventory = REPLACE(Inventory, '"SVD_Gh_DZ"', '"SVD_PS UPDATE object_data SET Inventory = REPLACE(Inventory, '"SVD_Gh_DZ"', '"SVD_PSO1_Gh_DZ"') WHERE INSTR(Inventory, '"SVD_Gh_DZ"') > 0; +/* PoliceCar was removed from dayz_vehicles */ +UPDATE `object_data` SET `Classname` = 'car_sedan' WHERE `Classname` = 'policecar'; +DELETE FROM `Traders_DATA` WHERE item = '["policecar"]'; + + /* THIS PROCEDURE IS REQUIRED FOR 1062 AND RETURNS THE OBJECT ID MUCH MORE EFFICIENTLY THAN THE METHOD IN 1061 SQF */ DROP procedure IF EXISTS `retObjID`;