server_publishObject.sqf
And the other one:
player_build.sqf
I went back and looked for anything I may have done and there was one thing.
In server_publishObject.sqf at the top we (reality users) should have had this:
OP says to add _code = _this select 5; after _fuel = _this select 4;
Do not just place _code = _this select 5; after _class = _this select 3; simply because that's all you had there.
Make sure to add in_fuel = _this select 4;
The section should now look like this:
Code:
private ["_class","_uid","_charID","_object","_worldspace","_key","_code","_fuel"];
//[dayz_characterID,_tent,[_dir,_location],"TentStorage"]
_charID = _this select 0;
_object = _this select 1;
_worldspace = _this select 2;
_class = _this select 3;
_fuel = _this select 4;
_code = _this select 5; //added to pick up the code which we passed from player_build.sqf
//if (!(_object isKindOf "Building")) exitWith {
// deleteVehicle _object;
//};
_allowed = [_object, "Server"] call check_publishobject;
if (!_allowed) exitWith { };
//diag_log ("PUBLISH: Attempt " + str(_object));
//get UID
_uid = _worldspace call dayz_objectUID2;
//Send request
_key = format["CHILD:308:%1:%2:%3:%4:%5:%6:%7:%8:%9:",dayZ_instance, _class, 0 , _charID, _worldspace, [], [], _fuel,_uid];
//_key = format["CHILD:308:%1:%2:%3:%4:%5:", dayz_instance, _class, _charID, _worldspace, _fuel, _uid];
//diag_log ("HIVE: WRITE: "+ str(_key));
_key call server_hiveWrite;
//_code = _fuel * 1000; //would be only necessary if we wouldn't pass the code from player_build.sqf
_object setVariable ["Code", _code,true]; //set the Code to the Object
_object setVariable ["ObjectUID", _uid,true]; //set ObjectUID to the Object
_object setVariable ["Classname", _class,true]; //set Classname to the Object
_object setVariable ["ObjectUID", _uid,true];
if (_object isKindOf "TentStorage") then {
_object addMPEventHandler ["MPKilled",{_this call vehicle_handleServerKilled;}];
};
dayz_serverObjectMonitor set [count dayz_serverObjectMonitor,_object];
diag_log ("PUBLISH: Created " + (_class) + " with ID " + _uid);
And the other one:
player_build.sqf
I went back and looked for anything I may have done and there was one thing.
In server_publishObject.sqf at the top we (reality users) should have had this:
Code:
private ["_class","_uid","_charID","_object","_worldspace","_key"];
//[dayz_characterID,_tent,[_dir,_location],"TentStorage"]
_charID = _this select 0;
_object = _this select 1;
_worldspace = _this select 2;
_class = _this select 3;
OP says to add _code = _this select 5; after _fuel = _this select 4;
Do not just place _code = _this select 5; after _class = _this select 3; simply because that's all you had there.
Make sure to add in_fuel = _this select 4;
The section should now look like this:
Code:
private ["_class","_uid","_charID","_object","_worldspace","_key","_code","_fuel"];
//[dayz_characterID,_tent,[_dir,_location],"TentStorage"]
_charID = _this select 0;
_object = _this select 1;
_worldspace = _this select 2;
_class = _this select 3;
_fuel = _this select 4;
_code = _this select 5; //added to pick up the code which we passed from player_build.sqf