Yeah, I'm an idiot - that's a typo. Thanks!pretty sure mission reads X Z Y.
EDIT: fixed!
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.
Yeah, I'm an idiot - that's a typo. Thanks!pretty sure mission reads X Z Y.
ErrorMessage: File mpmissions\__cur_mp.chernarus\mission.sqm, line 1346: /Mission.Vehicles: Member already defined.
NetServer::finishDestroyPlayer(1661358796): DESTROY immediately after CREATE, both cancelled
I run rMod - haven't personally tested it without rMod - it's possible dayz bans the LHD parts.also no idea why but my rpt says
Code:ErrorMessage: File mpmissions\__cur_mp.chernarus\mission.sqm, line 1346: /Mission.Vehicles: Member already defined. NetServer::finishDestroyPlayer(1661358796): DESTROY immediately after CREATE, both cancelled
im going to try to add them to excelsiors bridge chunk mabe thats the reason.
See the OP at the bottom there's a bit about BE - did you do this? I don't use BE myself, so I'm not sure if it works but someone said they had it working.I've attempted to get his one to work but I'm getting a Battleye createvehicle restriction #50 kick. In my createvehicle.txt I've found a like with _lhd_ and changed it from a 5 to a 1 (log only) but I'm still getting the kick. Does anyone know the line that causes this one?
Thanks in advance.
Oops. Sorry - missed that bit. All working!! My bombing helis now have a home!See the OP at the bottom there's a bit about BE - did you do this? I don't use BE myself, so I'm not sure if it works but someone said they had it working.
If we know when the map buildings are loaded, as I don't yet, only the DB buildings, we can add a waitUntil (scriptDone _loadBldngs) where _loadBldngs is responsible for loading all the buildings into the map - add it before the vehicles spawn in.
//Stream in objects
/* STREAM OBJECTS */
//Send the key
_key = format["CHILD:302:%1:",dayZ_instance];
_result = _key call server_hiveReadWrite;
diag_log "HIVE: Request sent";
//Process result
_status = _result select 0;
_myArray = [];
if (_status == "ObjectStreamStart") then {
.......
.......
.......
};
//Monitor the object
//_object enableSimulation false;
dayz_serverObjectMonitor set [count dayz_serverObjectMonitor,_object];
};
} forEach _myArray;
// # END OF STREAMING #
//Send the key
_key = format["CHILD:999:select b.class_name, ib.worldspace from instance_building ib join building b on ib.building_id = b.id where ib.instance_id = ?:[%1]:", dayZ_instance];
_data = "HiveEXT" callExtension _key;
diag_log("SERVER: Fetching buildings...");
//Process result
_result = call compile format ["%1", _data];
_status = _result select 0;
_bldList = [];
_bldCount = 0;
if (_status == "CustomStreamStart") then {
_val = _result select 1;
for "_i" from 1 to _val do {
_data = "HiveEXT" callExtension _key;
_result = call compile format ["%1",_data];
_pos = call compile (_result select 1);
_dir = _pos select 0;
_pos = _pos select 1;
_building = createVehicle [_result select 0, _pos, [], 0, "CAN_COLLIDE"];
_building setDir _dir;
_bldCount = _bldCount + 1;
};
diag_log ("SERVER: Spawned " + str(_bldCount) + " buildings!");
};
//Send the key
_key = format["CHILD:999:select b.class_name, ib.worldspace from instance_building ib join building b on ib.building_id = b.id where ib.instance_id = ?:[%1]:", dayZ_instance];
_data = "HiveEXT" callExtension _key;
diag_log("SERVER: Fetching buildings...");
//Process result
_result = call compile format ["%1", _data];
_status = _result select 0;
_bldList = [];
_bldCount = 0;
if (_status == "CustomStreamStart") then {
_val = _result select 1;
for "_i" from 1 to _val do {
_data = "HiveEXT" callExtension _key;
_result = call compile format ["%1",_data];
_pos = call compile (_result select 1);
_dir = _pos select 0;
_pos = _pos select 1;
_building = createVehicle [_result select 0, _pos, [], 0, "CAN_COLLIDE"];
_building setDir _dir;
_bldCount = _bldCount + 1;
};
diag_log ("SERVER: Spawned " + str(_bldCount) + " buildings!");
};
//Stream in objects
/* STREAM OBJECTS */
//Send the key
_key = format["CHILD:302:%1:",dayZ_instance];
_result = _key call server_hiveReadWrite;
diag_log "HIVE: Request sent";
//Process result
_status = _result select 0;
_myArray = [];
if (_status == "ObjectStreamStart") then {
.......
.......
.......
};
//Monitor the object
//_object enableSimulation false;
dayz_serverObjectMonitor set [count dayz_serverObjectMonitor,_object];
};
} forEach _myArray;
// # END OF STREAMING #
Only for the custom buildings you've added in the database. Which work maybe 75% of the time for me.So I was looking at how the buildings are fetched and found this in server_monitor.sqf
Only for the custom buildings you've added in the database. Which work maybe 75% of the time for me.
Map buildings are loaded somewhere else - we need to find where it loads the default chernarus map, and make sure that the buildings on it are loaded before.
You have access to your mission.pbo so yes!Does this work for Dayz.st?
That is strange, like on top of eachother?anyone have issues with multiple LHDs spawning in (at the same place)?