I tested the code above and it does indeed write base built objects to to the database! very good find seaweed!!! However... after my initial excitement I noticed it seems to have now caused tent and vehicle inventories as well as vehicle worldspace co-ordinates not to update at all. Both vehicle and tents worked just fine before adding the above suggested code and the visads latest commits from github.
Seaweed, when you get a chance if you could confirm it's doing the same thing for you RE: vehicles and tents that would be super.
Also, after adding the above code; the log files were spamming errors like crazy for every single vehicle like this:
if (!_parachuteWest) then {
if (_objectID == "0" && _uid == "0") then {
21:46:49 Error position: <_objectID == "0" && _uid == "0") then {
21:46:49 Error Undefined variable in expression: _objectid
21:46:49 File z\addons\dayz_server\compile\server_updateObject.sqf, line 34
21:46:49 "DEBUG: Monitoring: 24794100# 1056488: ural.p3d"
21:46:49 Error in expression <le ["ObjectUID","0"];};
if ((typeName _objectID != "string") || (typeName _uid>
21:46:49 Error position: <_objectID != "string") || (typeName _uid>
21:46:49 Error Undefined variable in expression: _objectid
21:46:49 File z\addons\dayz_server\compile\server_updateObject.sqf, line 23
21:46:49 "z\addons\dayz_code\compile\veh_handleDam.sqf _this:[24794100# 1056488: ural.p3d,"karoserie",1] vehicle:Ural_INS# part:"karoserie" current_part_damage:0. setH!t[karoserie,1]. Writing to hive. Returned damage:1"
21:46:49 Error in expression <0";
};
if (!_parachuteWest) then {
if (_objectID == "0" && _uid == "0") then {
21:46:49 Error position: <_objectID == "0" && _uid == "0") then {
21:46:49 Error Undefined variable in expression: _objectid
21:46:49 File z\addons\dayz_server\compile\server_updateObject.sqf, line 34
21:46:49 "DEBUG: Monitoring: 24794100# 1056488: ural.p3d"
21:46:49 Error in expression <le ["ObjectUID","0"];
};
and this :
2013-06-24 21:46:32 HiveExt: [Error] Error executing |CHILD:305::[155,[12160.7,3469.85,0.0106673]]:1:|
2013-06-24 21:46:43 HiveExt: [Error] Error executing |CHILD:305::[151,[6596.72,2904.84,0.104511]]:1:|
2013-06-24 21:46:49 HiveExt: [Error] Error executing |CHILD:305::[332,[8859.4,2896.59,0.446213]]:1:|
2013-06-24 21:54:32 HiveExt: [Error] Error executing |CHILD:305::[156,[7659.99,3981.68,-0.035984]]:1:|
2013-06-24 21:56:41 HiveExt: [Error] Error executing |CHILD:305::[253,[5927.18,2198.58,-0.0522041]]:0.987391:|
2013-06-24 21:56:51 HiveExt: [Error] Error executing |CHILD:305::[253,[5927.16,2198.58,-0.0525436]]:0.986476:|
2013-06-24 21:56:53 HiveExt: [Error] Error executing |CHILD:305::[253,[5927.15,2198.58,-0.0531492]]:0.986247:|
2013-06-24 21:56:54 HiveExt: [Error] Error executing |CHILD:305::[253,[5927.15,2198.58,-0.0539498]]:0.986096:|
2013-06-24 21:58:30 HiveExt: [Error] Error executing |CHILD:305::[253,[5927.15,2198.58,-0.0438132]]:0.983564:|
2013-06-24 23:03:33 HiveExt: [Error] Error executing |CHILD:305::[0,[11546.5,3380.94,0.00817776]]:1:|
I managed to get rid of all of these errors and get clean looking log files by adding in the visads recent commits from here...
https://github.com/thevisad/DayZ-Private-master/commit/560e95126b6289d8943d369d143f8a4167f93e3d
Although the log files are now looking good with no errors and basebuild object are saving to the database... Tent and vehicle inventories and vehicle worldspaces are not updating at all. However the log files suggest that something should be happening... here is a snip of the the log file of me with a vehicle after above fixes but nothing happens on the database.
0:47:54 "HIVE: WRITE: "CHILD:306:2477:[["glass1",0],["glass2",0],["glass3",0.1],["glass4",0],["wheel_1_1_steering",0.1],["wheel_1_2_steering",0],["wheel_2_1_steering",0],["wheel_2_2_steering",0],["motor",0],["sklo predni P",0],["sklo predni L",0],["karoserie",0],["palivo",0.8],["wheel_1_4_steering",0],["wheel_2_4_steering",0],["wheel_1_3_steering",0],["wheel_2_3_steering",0]]:0:""
0:48:12 "HIVE: WRITE: "CHILD:305:0:[197,[6068.68,10499.8,-0.000793457]]:0.96286:""
0:48:12 "HIVE: WRITE: "CHILD:309:2477:[[["m16a4_acg","Makarov","ItemEtool","ItemFlashlight","ItemHatchet","ItemKnife","ItemMap"],[1,1,1,1,1,1,1]],[["30Rnd_556x45_Stanag","ItemWaterbottle","HandRoadFlare","ItemTankTrap","ItemSodaCoke","8Rnd_9x18_Makarov"],[2,1,3,1,1,4]],[["DZ_Patrol_Pack_EP1"],[1]]]:""
0:48:12 "HIVE: WRITE: "CHILD:306:2477:[["glass1",0],["glass2",0],["glass3",0.1],["glass4",0],["wheel_1_1_steering",0.1],["wheel_1_2_steering",0],["wheel_2_1_steering",0],["wheel_2_2_steering",0],["motor",0],["sklo predni P",0],["sklo predni L",0],["karoserie",0],["palivo",0.8],["wheel_1_4_steering",0],["wheel_2_4_steering",0],["wheel_1_3_steering",0],["wheel_2_3_steering",0]]:0:""
I'm at another dead end at the moment as the log files are not giving me many clues to go on here.
Im going to look through the self actions again to see whats being executed for the save tent / save vehicle scroll wheel action