Running into a problem with HFB

srcinmo

Member
Everything on the server was running smoothly. went to add a few new items to the traders through the database and then went on to restart the server. Didn't make any changes to any of the files and the server just completely went all derp mode on me. Looked into the RPT file and this is what i'm seeing in the error messages

Code:
20:20:48 Error in expression < compile format ["%1",_data];
_status = _result select 0;

if (_status == "Objec>
20:20:48   Error position: <_result select 0;

if (_status == "Objec>
20:20:48   Error Undefined variable in expression: _result
20:20:48 File z\addons\dayz_server\system\server_monitor.sqf, line 265
20:20:48 Error in expression <status = _result select 0;

if (_status == "ObjectStreamStart") then {
_val = _r>
20:20:48   Error position: <== "ObjectStreamStart") then {
_val = _r>
20:20:48   Error Generic error in expression
20:20:48 File z\addons\dayz_server\system\server_monitor.sqf, line 267

If anyone has any ideas on this I would greatly appreciate the help
 
My lines of code for that particular area listed -

Code:
// preload server traders menu data into cache
    if !(DZE_ConfigTrader) then {
        {
            // get tids
            _traderData = call compile format["menu_%1;",_x];
            if(!isNil "_traderData") then {
                {
                    _traderid = _x select 1;

                    _retrader = [];

                    _key = format["CHILD:399:%1:",_traderid];
                    _data = "HiveEXT" callExtension _key;

                    //diag_log "HIVE: Request sent";
           
                    //Process result
                    _result = call compile format ["%1",_data];
                    _status = _result select 0;
           
                    if (_status == "ObjectStreamStart") then {
                        _val = _result select 1;
                        //Stream Objects
                        //diag_log ("HIVE: Commence Menu Streaming...");
                        call compile format["ServerTcache_%1 = [];",_traderid];
                        for "_i" from 1 to _val do {
                            _data = "HiveEXT" callExtension _key;
                            _result = call compile format ["%1",_data];
                            call compile format["ServerTcache_%1 set [count ServerTcache_%1,%2]",_traderid,_result];
                            _retrader set [count _retrader,_result];
                        };
                        //diag_log ("HIVE: Streamed " + str(_val) + " objects");
                    };

                } forEach (_traderData select 0);
            };
        } forEach serverTraders;
    };
 
Back
Top