Anynew with fixing bug ??
Anynew with fixing bug ??
I tried to analyze using the RPT file, save and load character.
It was found that, while maintaining the character of loss of things not happening. save file is created in the correct form with the presence of a gaming thing that disappears already at boot time on the server.
But in the process of downloading some game things disappear.
Influences on this, as I have noticed, fnc_addInvItems.sqf file, which analyzes all added to the player's inventory items.
I have done in this file output to a file PRT values by setting sludeyuschy code:
After that, the RPT logfiles found:private ["_arr","_item","_agent"];
_agent = _this select 0;
_arr = [];
{
_class = _x select 0;
_dmg = _x select 1;
_qty = _x select 2;
_inv = _x select 3;
_wet = _x select 4;
diag_log format ["download1 result: %1",_class]; //add
diag_log format ["download2 result: %1",_dmg]; //add
diag_log format ["download3 result: %1",_qty]; //add
diag_log format ["download4 result: %1",_inv]; //add
diag_log format ["download5 result: %1",_wet]; //add
/*
if ( _class isKindOf "AttachmentBase" ) then {
_item = _agent createAsAttachment _class;
} else {
_item = _agent createInInventory _class;
};
*/
_item = _agent createInInventory _class;
_item setDamage _dmg;
_item setVariable ["wet", _wet];
if (_item isKindOf "MagazineBase") then {
_item setMagazineAmmo _qty;
} else {
_item setQuantity _qty;
};
if ( count _inv != 0 ) then {
null = [_item, _inv] call fnc_addInvItems;
};
diag_log format ["download6-0 result: %1",count _inv]; //add
diag_log format ["download6 result: %1",_item]; //add
diag_log format ["download7 result: %1",_inv]; //add
} forEach (_this select 1);
true
My db file save character:18:27:12 Saved [Houses] data file 0 items.
18:27:15 "download1 result: PM73Rak"
18:27:15 "download2 result: 0"
18:27:15 "download3 result: 0"
18:27:15 "download4 result: []"
18:27:15 "download5 result: 0"
18:27:15 "download6-0 result: 0"
18:27:15 "download6 result: PM73Rak:2:28640"
18:27:15 "download7 result: []"
18:27:15 "download1 result: RadarCap_Green"
18:27:15 "download2 result: 0"
18:27:15 "download3 result: 0"
18:27:15 "download4 result: []"
18:27:15 "download5 result: 0"
18:27:15 "download6-0 result: 0"
18:27:15 "download6 result: RadarCap_Green:2:28641"
18:27:15 "download7 result: []"
18:27:15 "download1 result: WorkingGloves_Black"
18:27:15 "download2 result: 0"
18:27:15 "download3 result: 0"
18:27:15 "download4 result: []"
18:27:15 "download5 result: 0"
18:27:15 "download6-0 result: 0"
18:27:15 "download6 result: WorkingGloves_Black:2:28642"
18:27:15 "download7 result: []"
18:27:15 "download1 result: BomberJacket_Olive"
18:27:15 "download2 result: 0"
18:27:15 "download3 result: 0"
18:27:15 "download4 result: [["Food_CanSpaghetti",0.196683,0,[],0],["Food_CanSardines",0.6,0,[],0],["Tool_MeatTenderizer",0.080824,0,[],0]]"
18:27:15 "download5 result: 0"
18:27:15 "download1 result: Food_CanSpaghetti"
18:27:15 "download2 result: 0.196683"
18:27:15 "download3 result: 0"
18:27:15 "download4 result: []"
18:27:15 "download5 result: 0"
18:27:15 "download6-0 result: 0"
18:27:15 "download6 result: Food_CanSpaghetti:2:28644"
18:27:15 "download7 result: []"
18:27:15 "download1 result: Food_CanSardines"
18:27:15 "download2 result: 0.6"
18:27:15 "download3 result: 0"
18:27:15 "download4 result: []"
18:27:15 "download5 result: 0"
18:27:15 "download6-0 result: 0"
18:27:15 "download6 result: Food_CanSardines:2:28645"
18:27:15 "download7 result: []"
18:27:15 "download1 result: Tool_MeatTenderizer"
18:27:15 "download2 result: 0.080824"
18:27:15 "download3 result: 0"
18:27:15 "download4 result: []"
18:27:15 "download5 result: 0"
18:27:15 "download6-0 result: 0"
18:27:15 "download6 result: <NULL-object>"
18:27:15 "download7 result: []"
18:27:15 "download6-0 result: 0"
18:27:15 "download6 result: BomberJacket_Olive:2:28643"
18:27:15 "download7 result: []"
18:27:15 "download1 result: Jeans_Grey"
18:27:15 "download2 result: 0"
18:27:15 "download3 result: 20"
18:27:15 "download4 result: [["Tool_WeaponCleaningKit",0.470705,0,[],0],["Ammo_762",0.355814,20,[],0]]"
18:27:15 "download5 result: 0"
18:27:15 "download1 result: Tool_WeaponCleaningKit"
18:27:15 "download2 result: 0.470705"
18:27:15 "download3 result: 0"
18:27:15 "download4 result: []"
18:27:15 "download5 result: 0"
18:27:15 "download6-0 result: 0"
18:27:15 "download6 result: Tool_WeaponCleaningKit:2:28647"
18:27:15 "download7 result: []"
18:27:15 "download1 result: Ammo_762"
18:27:15 "download2 result: 0.355814"
18:27:15 "download3 result: 20"
18:27:15 "download4 result: []"
18:27:15 "download5 result: 0"
18:27:15 "download6-0 result: 0"
18:27:15 "download6 result: Ammo_762:2:28648"
18:27:15 "download7 result: []"
18:27:15 "download6-0 result: 0"
18:27:15 "download6 result: Jeans_Grey:2:28646"
18:27:15 "download7 result: []"
18:27:15 "download1 result: LeatherShoes_Black"
18:27:15 "download2 result: 0"
18:27:15 "download3 result: 0"
18:27:15 "download4 result: []"
18:27:15 "download5 result: 0"
18:27:15 "download6-0 result: 0"
18:27:15 "download6 result: LeatherShoes_Black:2:28649"
18:27:15 "download7 result: []"
18:27:15 "Recording player Unknown Entity with 76561****"
I do not have enough knowledge of the language script execution data to identify the cause of the problem. Perhaps someone more knowledgeable in this area will help to solve this problem together.[true,"SurvivorPartsMaleDean",[11211.9,6566.64,0.384422],58.708,[["PM73Rak",0,0,[],0],["RadarCap_Green",0,0,[],0],["WorkingGloves_Black",0,0,[],0],["BomberJacket_Olive",0,0,[["Food_CanSpaghetti",0.196683,0,[],0],["Food_CanSardines",0.6,0,[],0],["Tool_MeatTenderizer",0.080824,0,[],0]],0],["Jeans_Grey",0,20,[["Tool_WeaponCleaningKit",0.470705,0,[],0],["Ammo_762",0.355814,20,[],0]],0],["LeatherShoes_Black",0,0,[],0]],[["health",5000],["blood",5000],["energy",4404.06],["water",1770.42],["shock",0],["stomach",1092.55],["diet",1],["bodytemperature",37.149],["heatcomfort",-8.61647],["wet",0],["musclecramp",0],["restrainedwith",0],["totalHeatIsolation",25.41],["totalWeight",9650],["bloodtype","BloodAPos"],["unconscious",false],["damageArray",[]],["myNotifiers",[[],[],["energized",[0.439,0.804,0.0431,1]],[],[],["healthy",[0.439,0.804,0.0431,1]],[],[],["hot",[0.525,0.541,0.031,1]]]],["bleedingsources","[]"],["bleedingLevel",0],["modstates",[[[0],0,-1],[[5],-1,6],[[1],-1,-1],[[3],-1,-1],[[0],-1,-1]]],["modifiers",["HitLegs","Temperature","HighEnergy","Healing","FeelingCold"]]],[],["Pickaxe",0.248816,0,[],0]]
P.S. I do not speak English, sorry
Link is dead, any way to get ahold of these files?
Last edited by onkeltoctoc; 28-11-16 at 09:38 PM. Reason: upload
Awesome! Can't wait!
Hi,
here my updated mission/save-system..
Download: DayZSA-Testing-master.zip
[>>>
please copy & overwrite all files/folders into the root directory of the gameserver !!
- config
- MPMissions
- scripts
<<<<]
Thank you for your work. But if I go out to the server and then I go to him, the number of bandages in your inventory is reset to 0. It looks like there is a problem, and with other things.
- - - Updated - - -
Guys, could find a server with the conservation, where things sohryanyatsya normal, without losing anything from the inventory. Do not lost the number of items, the items that occupy multiple slots (disappeared flask, hatchet, a saw, after rejoining the server), the stuff inside of weapons (rifle scopes, silencers, etc.). But notice one bug when reconnecting to a server, objects are duplicated in weapons inventory.
Here are the files: https://yadi.sk/d/zJu8zhx9zhs4W
Testing and error rule together!
Many thanks 420gaming and scorpions.
this server files are with an older version of my mission/save-system!
- - - Updated - - -
i started a new thread with my files @ http://forum.ragezone.com/f866/dayz-...-save-1120581/
Keep getting kicked out of my game, server log says I have disconnected, any advice?
Nope, log just says I disconnected from the server :T
What appears to happen is:
Saved [Houses] data file X items. (This shows up quite often in different numbers, mere spamming it)
Saved [Dynamic Events] file [storage_-1\ChernarusPlus\000\events.bin] [X] event types.
(this is less often but still shows up here and there)
The
Saved [Houses] data file X items. Line seems to repeat.
Log: DayZerror - Pastebin.com