Validation, and Update

This commit is contained in:
Brett Nordin 2018-10-01 12:46:07 -06:00
parent a8205ede17
commit 766ea5482c
42 changed files with 56 additions and 20 deletions

View File

@ -2,20 +2,13 @@
Version = 1
Randomize Config File = false
;; Randomizes Config File after loading.
;; Recommend to turn on, if you have enabled filepatching on arma.
Allow Reset = false
;; Allows 9:RESET, usefull for development work
Thread = 0;
;; Option to force number of worker threads for extDB3.
;; Min = 2, Max = 6
[Log]
Flush = true;
;; Flush logfile after each update.
;; Option really only usefull if running DEBUG BUILD
[exile]
IP = DatabaseIp

View File

@ -5,9 +5,10 @@ Strip Chars = "\/\|;{}<>\'"
Strip Chars Mode = 0
Input SQF Parser = false
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; Account related queries
;; Exile Version 1.0.4
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; Account related queries
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
@ -102,7 +103,7 @@ SQL1_1 = DELETE FROM player WHERE id = ?
SQL1_INPUTS = 1
;;TEMP FIX FOR DUPLICATE ENTIRES
;;TEMP FIX FOR DUPLICATE ENTIRES
[loadPlayer]
SQL1_1 = SELECT p.id,
SQL1_2 = p.name,

View File

@ -7,8 +7,9 @@
*
* This work is licensed under the Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License.
* To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/4.0/.
* 64Bit Conversion File Header (Extdb3) - Validatior
*/
private["_constructionObject","_position","_vectorDirection","_vectorUp","_territoryFlag","_territoryID","_data","_extDB2Message","_constructionID"];
_constructionObject = _this;
_position = getPosATL _constructionObject;
@ -36,4 +37,4 @@ _constructionID = _extDB2Message call ExileServer_system_database_query_insertSi
_constructionObject setVariable ["ExileDatabaseID", _constructionID];
_constructionObject setVariable ["ExileTerritoryID", _territoryID];
_constructionID
_constructionID

View File

@ -7,6 +7,7 @@
*
* This work is licensed under the Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License.
* To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/4.0/.
* 64Bit Conversion File Header (Extdb3) - Validatior
*/
private["_constructionID", "_data", "_position", "_vectorDirection", "_vectorUp", "_constructionObject", "_damageLevel", "_public", "_pinCode"];

View File

@ -7,6 +7,7 @@
*
* This work is licensed under the Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License.
* To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/4.0/.
* 64Bit Conversion File Header (Extdb3) - Validatior
*/
private["_className","_position","_direction","_containerObject"];

View File

@ -7,6 +7,7 @@
*
* This work is licensed under the Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License.
* To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/4.0/.
* 64Bit Conversion File Header (Extdb3) - Validatior
*/
private["_containerObject","_position","_vectorDirection","_vectorUp","_territoryFlag","_territoryID","_data","_extDB2Message","_containerID","_cargoContainers"];

View File

@ -7,6 +7,7 @@
*
* This work is licensed under the Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License.
* To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/4.0/.
* 64Bit Conversion File Header (Extdb3) - Validatior
*/
private["_containerID", "_data", "_position", "_vectorDirection", "_vectorUp", "_abandoned", "_containerObject", "_cargoContainers"];

View File

@ -7,6 +7,7 @@
*
* This work is licensed under the Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License.
* To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/4.0/.
* 64Bit Conversion File Header (Extdb3) - Validatior
*/
private["_containerObject","_containerID","_position","_vectorDirection","_vectorUp","_territoryFlag","_territoryID","_data","_extDB2Message"];

View File

@ -7,6 +7,7 @@
*
* This work is licensed under the Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License.
* To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/4.0/.
* 64Bit Conversion File Header (Extdb3) - Validatior
*/
private["_sessionID", "_requestingPlayer", "_spawnLocationMarkerName", "_bambiPlayer", "_accountData", "_escapeEnabled", "_direction", "_position", "_spawnAreaPosition", "_spawnAreaRadius", "_clanID", "_clanData", "_clanGroup", "_escapeAccountdata", "_devFriendlyMode", "_devs", "_parachuteNetID", "_spawnType", "_parachuteObject"];

View File

@ -7,6 +7,7 @@
*
* This work is licensed under the Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License.
* To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/4.0/.
* 64Bit Conversion File Header (Extdb3) - Validatior
*/
private["_data","_oldPlayerObject","_playerUID","_sessionID","_position","_direction","_player","_clanID","_clanName","_clanData","_clanGroup","_devFriendlyMode","_devs","_requestingPlayer","_bambiPlayer","_headgear","_goggles","_binocular","_primaryWeapon","_handgunWeapon","_secondaryWeapon","_currentWeapon","_uniform","_vest","_backpack","_uniformContainer","_vestContainer","_backpackContainer","_assignedItems"];

View File

@ -7,6 +7,7 @@
*
* This work is licensed under the Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License.
* To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/4.0/.
* 64Bit Conversion File Header (Extdb3) - Validatior
*/
private["_victim", "_killer", "_instigator", "_countDeath", "_countKill", "_killSummary", "_killingPlayer", "_killType", "_oldVictimRespect", "_newVictimRespect", "_oldKillerRespect", "_newKillerRespect", "_unknownReasons", "_systemChat", "_modifyVictimRespect", "_respectLoss", "_perks", "_minRespectTransfer", "_respectTransfer", "_perkNames", "_killerStatsNeedUpdate", "_newKillerFrags", "_victimStatsNeedUpdate", "_newVictimDeaths", "_victimPosition"];

View File

@ -7,6 +7,7 @@
*
* This work is licensed under the Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License.
* To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/4.0/.
* 64Bit Conversion File Header (Extdb3) - Validatior
*/
private["_className", "_position", "_direction", "_usePositionATL", "_vehicleObject"];

View File

@ -7,6 +7,7 @@
*
* This work is licensed under the Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License.
* To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/4.0/.
* 64Bit Conversion File Header (Extdb3) - Validatior
*/
private["_className", "_position", "_direction", "_usePositionATL", "_pinCode", "_vehicleObject"];

View File

@ -7,6 +7,7 @@
*
* This work is licensed under the Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License.
* To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/4.0/.
* 64Bit Conversion File Header (Extdb3) - Validatior
*/
private["_vehicleID", "_data", "_position", "_vectorDirection", "_vectorUp", "_pinCode", "_texture", "_vehicleObject", "_lock", "_unlockInSafeZonesAfterRestart", "_isLocked", "_hitpoints", "_cargoContainers"];

View File

@ -7,6 +7,7 @@
*
* This work is licensed under the Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License.
* To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/4.0/.
* 64Bit Conversion File Header (Extdb3) - Validatior
*/
private["_sessionID", "_parameters", "_nickname", "_playerObject", "_flagObject", "_territoryID", "_vehicleInfo", "_buildRights", "_storedVehicles", "_index"];

View File

@ -7,6 +7,7 @@
*
* This work is licensed under the Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License.
* To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/4.0/.
* 64Bit Conversion File Header (Extdb3) - Validatior
*/
private["_isConnected", "_error", "_result"];

View File

@ -7,6 +7,7 @@
*
* This work is licensed under the Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License.
* To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/4.0/.
* 64Bit Conversion File Header (Extdb3) - Validatior
*/
private["_key", "_result", "_pipe"];

View File

@ -7,6 +7,7 @@
*
* This work is licensed under the Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License.
* To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/4.0/.
* 64Bit Conversion File Header (Extdb3) - Validatior
*/
private["_parameters","_query"];

View File

@ -7,6 +7,7 @@
*
* This work is licensed under the Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License.
* To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/4.0/.
* 64Bit Conversion File Header (Extdb3) - Validatior
*/
private["_parameters","_query","_result"];

View File

@ -7,6 +7,7 @@
*
* This work is licensed under the Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License.
* To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/4.0/.
* 64Bit Conversion File Header (Extdb3) - Validatior
*/
private["_parameters","_query","_result"];

View File

@ -7,6 +7,7 @@
*
* This work is licensed under the Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License.
* To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/4.0/.
* 64Bit Conversion File Header (Extdb3) - Validatior
*/
private["_parameters","_query","_result"];

View File

@ -7,6 +7,7 @@
*
* This work is licensed under the Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License.
* To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/4.0/.
* 64Bit Conversion File Header (Extdb3) - Validatior
*/
private["_parameters","_query","_result"];

View File

@ -7,6 +7,7 @@
*
* This work is licensed under the Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License.
* To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/4.0/.
* 64Bit Conversion File Header (Extdb3) - Validatior
*/
private["_arsenal","_weaponClassNames","_className","_linkedItems","_i"];

View File

@ -7,6 +7,7 @@
*
* This work is licensed under the Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License.
* To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/4.0/.
* 64Bit Conversion File Header (Extdb3) - Validatior
*/
ExileSimulationMonitoredVehicles = [];

View File

@ -7,6 +7,7 @@
*
* This work is licensed under the Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License.
* To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/4.0/.
* 64Bit Conversion File Header (Extdb3) - Validatior
*/
private["_flagObject","_territoryName","_flagTexture","_territorySize","_owner","_position","_build","_moderators","_data","_extDB2Message","_territoryID"];

View File

@ -7,6 +7,7 @@
*
* This work is licensed under the Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License.
* To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/4.0/.
* 64Bit Conversion File Header (Extdb3) - Validatior
*/
private["_flag", "_currentTimestamp", "_flagBuild", "_maintenancePeriod", "_maintenancePeriodDueDate"];

View File

@ -7,6 +7,7 @@
*
* This work is licensed under the Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License.
* To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/4.0/.
* 64Bit Conversion File Header (Extdb3) - Validatior
*/
private["_sessionID","_parameters","_flag","_playerObject","_databaseID","_level","_flagPosition","_spawnRadius","_weaponHolderPosition","_weaponHolder","_logging","_territoryLog"];

View File

@ -7,6 +7,7 @@
*
* This work is licensed under the Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License.
* To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/4.0/.
* 64Bit Conversion File Header (Extdb3) - Validatior
*/
private["_sessionID","_parameters","_flagNetID","_flag","_playerObject","_buildRights","_playerUID","_level","_itemClassName","_flagFee","_playerMoney","_logging","_databaseID","_territoryLog"];

View File

@ -7,6 +7,7 @@
*
* This work is licensed under the Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License.
* To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/4.0/.
* 64Bit Conversion File Header (Extdb3) - Validatior
*/
private["_sessionID","_parameters","_flagNetID","_playerObject","_flagObject","_flagStolen","_territoryDatabaseID","_radius","_level","_objectsInTerritory","_popTabAmountPerObject","_totalPopTabAmount","_playerPopTabs","_currentTimestamp","_logging","_territoryLog"];

View File

@ -7,6 +7,7 @@
*
* This work is licensed under the Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License.
* To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/4.0/.
* 64Bit Conversion File Header (Extdb3) - Validatior
*/
private["_sessionID","_player","_price","_playerMoney","_logging","_territoryLog"];

View File

@ -7,6 +7,7 @@
*
* This work is licensed under the Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License.
* To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/4.0/.
* 64Bit Conversion File Header (Extdb3) - Validatior
*/
private["_sessionID","_parameters","_flagNetID","_flag","_playerObject","_buildRights","_playerUID","_level","_itemClassName","_territoryDatabaseID","_flagTexture","_logging"];

View File

@ -7,6 +7,7 @@
*
* This work is licensed under the Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License.
* To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/4.0/.
* 64Bit Conversion File Header (Extdb3) - Validatior
*/
private["_sessionID","_parameters","_flag","_playerObject","_databaseID","_moderators","_level","_territoryConfig","_territoryLevels","_territoryPrice","_territoryRange","_playerMoney","_logging","_territoryLog"];

View File

@ -7,6 +7,7 @@
*
* This work is licensed under the Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License.
* To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/4.0/.
* 64Bit Conversion File Header (Extdb3) - Validatior
*/
private["_sessionID", "_parameters", "_itemClassName", "_quantity", "_containerType", "_containerNetID", "_playerObject", "_vehicleObject", "_salesPrice", "_playerMoney", "_playerRespect", "_quality", "_requiredRespect", "_logging", "_traderLog", "_responseCode"];

View File

@ -7,6 +7,7 @@
*
* This work is licensed under the Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License.
* To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/4.0/.
* 64Bit Conversion File Header (Extdb3) - Validatior
*/
private["_sessionID","_parameters","_vehicleClass","_pinCode","_playerObject","_salesPrice","_playerMoney","_position","_vehicleObject","_logging","_traderLog","_responseCode"];

View File

@ -7,6 +7,7 @@
*
* This work is licensed under the Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License.
* To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/4.0/.
* 64Bit Conversion File Header (Extdb3) - Validatior
*/
private["_sessionID","_parameters","_vehicleNetID","_skinTextures","_playerObject","_vehicleObject","_vehicleParentClass","_salesPrice","_skinVariations","_availableSkinTexture","_playerMoney","_skinMaterials","_skinClassName","_vehicleID","_logging","_traderLog","_responseCode"];

View File

@ -7,6 +7,7 @@
*
* This work is licensed under the Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License.
* To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/4.0/.
* 64Bit Conversion File Header (Extdb3) - Validatior
*/
private["_sessionID", "_parameters", "_itemClassName", "_quantity", "_containerType", "_containerNetID", "_playerObject", "_vehicleObject", "_sellPrice", "_playerRespect", "_playerMoney", "_noRespectItems", "_respectGain", "_logging", "_playerMoneyString", "_traderLog", "_responseCode"];

View File

@ -7,6 +7,7 @@
*
* This work is licensed under the Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License.
* To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/4.0/.
* 64Bit Conversion File Header (Extdb3) - Validatior
*/
private["_sessionID","_parameters","_vehicleNetID","_mode","_vehicleObject","_vehicleDBID","_playerObject","_cargo","_revenue","_playerMoney","_respectGain","_playerRespect","_logging","_traderLog","_responseCode"];

View File

@ -7,6 +7,7 @@
*
* This work is licensed under the Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License.
* To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/4.0/.
* 64Bit Conversion File Header (Extdb3) - Validatior
*/
private["_time1","_time2"];

View File

@ -7,6 +7,7 @@
*
* This work is licensed under the Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License.
* To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/4.0/.
* 64Bit Conversion File Header (Extdb3) - Validatior
*/
(parseSimpleArray ("extDB3" callExtension "9:LOCAL_TIME")) select 1

View File

@ -7,6 +7,7 @@
*
* This work is licensed under the Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License.
* To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/4.0/.
* 64Bit Conversion File Header (Extdb3) - Validatior
*/
(parseNumber ("extDB3" callExtension "9:UPTIME:MINUTES"))

View File

@ -7,6 +7,7 @@
*
* This work is licensed under the Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License.
* To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/4.0/.
* 64Bit Conversion File Header (Extdb3) - Validatior
*/
enableDynamicSimulationSystem true;
"Initializing game world..." call ExileServer_util_log;

View File

@ -1,3 +1,6 @@
/*
The execution of this entire file is necessary, if you neglect to do so I will not provide support for you.
*/
SET SQL_SAFE_UPDATES=0;
UPDATE (player) SET name = REPLACE(name, '"', '');
UPDATE (clan) SET name = REPLACE(name, '"', '');
@ -6,29 +9,29 @@ UPDATE (clan_map_marker) SET label = REPLACE(label, '"', '');
UPDATE (territory) SET name = REPLACE(name, '"', '');
ALTER TABLE `player` CHANGE COLUMN `hitpoints` `hitpoints` VARCHAR(1024) NOT NULL DEFAULT '[]' ;
ALTER TABLE `player` DROP PRIMARY KEY, ADD PRIMARY KEY (`id`, `account_uid`);
ALTER TABLE `vehicle`
ALTER TABLE `vehicle`
CHANGE COLUMN `hitpoints` `hitpoints` TEXT NULL ,
CHANGE COLUMN `cargo_items` `cargo_items` TEXT NULL ,
CHANGE COLUMN `cargo_magazines` `cargo_magazines` TEXT NULL ,
CHANGE COLUMN `cargo_weapons` `cargo_weapons` TEXT NULL ,
CHANGE COLUMN `cargo_container` `cargo_container` TEXT NULL ,
CHANGE COLUMN `vehicle_texture` `vehicle_texture` TEXT NULL ;
ALTER TABLE `account`
ALTER TABLE `account`
CHANGE COLUMN `score` `score` INT(50) NOT NULL DEFAULT '0' ,
CHANGE COLUMN `locker` `locker` INT(50) NOT NULL DEFAULT '0' ;
ALTER TABLE `player`
ALTER TABLE `player`
CHANGE COLUMN `money` `money` INT(50) UNSIGNED NOT NULL DEFAULT '0' ;
ALTER TABLE `container`
ALTER TABLE `container`
DROP FOREIGN KEY `container_ibfk_2`;
ALTER TABLE `container`
ALTER TABLE `container`
DROP INDEX `territory_id` ;
ALTER TABLE `construction`
ALTER TABLE `construction`
DROP FOREIGN KEY `construction_ibfk_2`;
ALTER TABLE `construction`
ALTER TABLE `construction`
DROP INDEX `territory_id` ;
ALTER TABLE `territory`
ALTER TABLE `territory`
DROP FOREIGN KEY `territory_ibfk_2`;
ALTER TABLE `territory`
ALTER TABLE `territory`
DROP INDEX `flag_stolen_by_uid` ;
ALTER TABLE `vehicle` DROP FOREIGN KEY `vehicle_ibfk_2`;
ALTER TABLE `vehicle` DROP INDEX `vehicle_ibfk_2_idx` ;