prominentalex
Well-Known Member
Wheres 2.0?
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Wheres 2.0?
Hi Spork, great mod. Have one issue though, often it announces to my server that I have hacked the exp. This usually happens after I level, instead of xp reseting. example is like I get 87/87xp, level, but unstead of xp resetting it starts counting xp over, for example 240/87 and never levels again until it displays that server message about me hacking. Then it resets your level back to 1 and resets your xp. Highest level anyone has got so far is level 6 before it resets. Any idea where I could start to look to fic this?
Thanks in advance
sporkulus: Do you mind to post/pn me how you managed to send the spawned vehicles to Database?
_charID = _this select 0;
_class =_this select 1;
_worldspace = _this select 2;
_object = createVehicle [_class, _worldspace select 1, [], 0, "CAN_COLLIDE"];
_object setDir (_worldspace select 0);
_uid = _worldspace call dayz_objectUID2;
_key = format["CHILD:308:%1:%2:%3:%4:%5:%6:%7:%8:%9:",dayZ_instance, _class, 0 , _charID, _worldspace, [], [], 0,_uid];
_key call server_hiveWrite;
_object setVariable ["lastUpdate",time];
_object setVariable ["ObjectUID", _uid,true];
if (isNil "vehicle_handleServerKilled") then {vehicle_handleServerKilled = {};};
if (isNil "object_handleServerKilled") then {object_handleServerKilled = {};};
_object addMPEventHandler ["MPKilled",{_this call vehicle_handleServerKilled;_this call object_handleServerKilled;}];
_object enableSimulation false;
dayz_serverObjectMonitor set [count dayz_serverObjectMonitor,_object];
[(_object)] spawn {sleep 3;[(_this select 0),"all"] call server_updateObject;};
_type = _this select 0;
_pos = _this select 1;
_player = _this select 2;
_dirPlr = getDir _player;
_object = createVehicle [_type, _pos, [], 0, "CAN_COLLIDE"];
_object addMPEventHandler ["MPKilled",{_this call vehicle_handleServerKilled;}];
_uniqueid = str(round(random 999999));
_object setVariable ["ObjectID", _uniqueid, true];
_object setVariable ["ObjectUID", _uniqueid, true];
_object setVariable ["lastUpdate",time,true];
_object setDir _dirPlr;
dayz_serverObjectMonitor set [count dayz_serverObjectMonitor, _object];
waitUntil {(!isNull _object)};
sleep 3;
_typeObj = typeOf _object;
_posObj = getPos _object;
_dirObj = getDir _object;
_key = format["CHILD:999:select `id` from `vehicle` where `class_name` = '?' LIMIT 1:[""%1""]:",_typeObj];
_data = "HiveEXT" callExtension _key;
_result = call compile format ["%1", _data];
_status = _result select 0;
if (_status == "CustomStreamStart") then
{
"HiveEXT" callExtension _key;
_temp = _result select 1;
if (_temp == 0) then
{
_data = "HiveEXT" callExtension format["CHILD:999:Insert into vehicle
(class_name, damage_min, damage_max, fuel_min, fuel_max, limit_min, limit_max, parts, inventory)
values
('?',0,0,1.0,1.0,0,99,'',''):[""%1""]:", _typeObj];
};
};
_data = "HiveEXT" callExtension format["CHILD:999:Insert into world_vehicle
(vehicle_id, world_id, worldspace, chance)
values
((SELECT `id` FROM `vehicle` where `class_name` = '?' LIMIT 1), 1, '',1):[""%1"", ""%2""]:", _typeObj, worldName];
_data = "HiveEXT" callExtension format["CHILD:999:Insert into instance_vehicle
(world_vehicle_id, instance_id, worldspace, inventory, parts, fuel, damage)
values
((SELECT `id` FROM `world_vehicle` where `vehicle_id` = (SELECT `id` FROM `vehicle` where `class_name` = '%1' LIMIT 1) LIMIT 1), %3, '%2','[[[],[]],[[],[]],[[],[]]]','[]',1,0):[]:", _typeObj, [_dirObj, _posObj], dayZ_instance];
_key = format["CHILD:999:SELECT `id` FROM `instance_vehicle` ORDER BY `id` DESC LIMIT 1:[]:"];
_data = "HiveEXT" callExtension _key;
_result = call compile format ["%1", _data];
_status = _result select 0;
if (_status == "CustomStreamStart") then
{
_temp = _result select 1;
if (_temp == 1) then
{
_data = "HiveEXT" callExtension _key;
_result = call compile format ["%1", _data];
_status = _result select 0;
};
};
_object setVariable ["lastUpdate",time];
_object setVariable ["ObjectID", str(_status), true];
_object setVariable ["CharacterID", "1337", true];
[(_object)] spawn {sleep 3;[(_this select 0),"all"] call server_updateObject;};
_vehicleSpawner =
{
_type = _this select 0;
_pos = _this select 1;
_player = player;
_dirPlr = getDir _player;
_object = createVehicle [_type, _pos, [], 0, "CAN_COLLIDE"];
_object addMPEventHandler ["MPKilled",{_this call vehicle_handleServerKilled;}];
_uniqueid = str(round(random 999999));
_object setVariable ["ObjectID", _uniqueid, true];
_object setVariable ["ObjectUID", _uniqueid, true];
_object setVariable ["lastUpdate",time,true];
_object setDir _dirPlr;
dayz_serverObjectMonitor set [count dayz_serverObjectMonitor, _object];
waitUntil {(!isNull _object)};
sleep 3;
_typeObj = typeOf _object;
_posObj = getPos _object;
_dirObj = getDir _object;
_key = format["CHILD:999:select `id` from `vehicle` where `class_name` = '?' LIMIT 1:[""%1""]:",_typeObj];
_data = "HiveEXT" callExtension _key;
_result = call compile format ["%1", _data];
_status = _result select 0;
if (_status == "CustomStreamStart") then
{
"HiveEXT" callExtension _key;
_temp = _result select 1;
if (_temp == 0) then
{
_data = "HiveEXT" callExtension format["CHILD:999:Insert into vehicle
(class_name, damage_min, damage_max, fuel_min, fuel_max, limit_min, limit_max, parts, inventory)
values
('?',0,0,1.0,1.0,0,99,'',''):[""%1""]:", _typeObj];
};
};
_data = "HiveEXT" callExtension format["CHILD:999:Insert into world_vehicle
(vehicle_id, world_id, worldspace, chance)
values
((SELECT `id` FROM `vehicle` where `class_name` = '?' LIMIT 1), 1, '',1):[""%1"", ""%2""]:", _typeObj, worldName];
_data = "HiveEXT" callExtension format["CHILD:999:Insert into instance_vehicle
(world_vehicle_id, instance_id, worldspace, inventory, parts, fuel, damage)
values
((SELECT `id` FROM `world_vehicle` where `vehicle_id` = (SELECT `id` FROM `vehicle` where `class_name` = '%1' LIMIT 1) LIMIT 1), %3, '%2','[[[],[]],[[],[]],[[],[]]]','[]',1,0):[]:", _typeObj, [_dirObj, _posObj], dayZ_instance];
_key = format["CHILD:999:SELECT `id` FROM `instance_vehicle` ORDER BY `id` DESC LIMIT 1:[]:"];
_data = "HiveEXT" callExtension _key;
_result = call compile format ["%1", _data];
_status = _result select 0;
if (_status == "CustomStreamStart") then
{
_temp = _result select 1;
if (_temp == 1) then
{
_data = "HiveEXT" callExtension _key;
_result = call compile format ["%1", _data];
_status = _result select 0;
};
};
_object setVariable ["lastUpdate",time];
_object setVariable ["ObjectID", str(_status), true];
_object setVariable ["CharacterID", "1337", true];
[(_object)] spawn {sleep 3;[(_this select 0),"all"] call server_updateObject;};
};
download link not work!![]()
Any chance of an install video for Epoch as it seems more people now play Epoch than vanilla Dayz, atleast according to dayz commander.
Thanks in advance
Thanks you Sir.added the mirror back
For god sake add a building folder LOLThe reason I ask Spork is the video starts by saying put the minigames file in the building folder in the server pbo, but on epoch there isnt one in the same place. Any idea where I should look?
Thanks in advance