Custom buildings not appearing after 1.7.7 update

Chuck Morris

New Member
We've updated the server with the new patch yet we've had trouble implementing any custom buildings onto our server, which before 1.7.7 worked perfectly.

We've removed them from instance building table and building table and re added them yet they do not appear.
 
Afai have seen, there is no logic in the serverfiles to pull data from these tables.

I ended up using my own logic to query and spawn them in again.

Sarge
 
Need to add this to your server_monitor.sqf file

Code:
//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!");
        };
 
Need to add this to your server_monitor.sqf file

Code:
//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!");
        };


Thank you will try that
 
My custom buildings have shown up in 1.7.7 without adding anything. I wonder if the folks at dayzpriv already implemented a similar fix as presented here.
 
Some hosts modify the PBOs before they release them, so my guess is they added it back in for ya :D
 
Back
Top