[SUPPORT] DayZ of Glory (SPORKMOD)

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
 
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


This is caused by you gaining 100EXP over your next lvl without leveling and most likely you caused this by turning exp gain up to high or you have major lag.
 
sporkulus: Do you mind to post/pn me how you managed to send the spawned vehicles to Database?


for epoch its

Code:
_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;};

for dayz 1.8 and 1.7.7.1 its

Code:
        _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;};



for example using this code do some thing like

Code:
_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;};
};

and to call it do

_class = "vehicle name";
_pos = getPos vehicle player;
_dir = getdir vehicle player;
_pos = [(_pos select 0)+8*sin(_dir),(_pos select 1)+8*cos(_dir),0];
[_class,_pos] call _vehicleSpawner;
 
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
 
for anyone that did not know if you add yourself as admin in init.sqf then you can press f6 ingame to send messages to server! :)
 
The 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
 
Also wanted to make a suggestion, would be willing to help if needed. But I thought a good idea would be to add perks at certain levels. For example, level 10 you get a 10% armor boost so you can take more knocks from zombies and something like level 20 you get a 12% increase to run speed, level 25 your perk could be 5% more bag space or top car speed and so on and so on. Stuff thats not game breaking but adds a nice dimension. Also when you die under this system you lose all your levels.

Also for Epoch, a good idea would be to add rare base building parts like cinder blocks for example to the gun or car vendor. But make it really expensive like perhaps after a full day of zed killing you could afford between 1-3 pieces. Make level and cash gathering really grindy under this system.

Like I said, would be willing to help code it if your strapped for time if you would give me a little guidance.

Thanks in advance.
 
For
The 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
For god sake add a building folder LOL
 
Back
Top