Jump to content
  • 0

Error stopping the server from running -Fixed


MGT

Question

Any idea whats causing this in the rpt, have put everything back to stock

12:55:04 Error in expression < compile format ["%1",_data];
_status = _result select 0;

if (_status == "Objec>
12:55:04   Error position: <_result select 0;

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

if (_status == "ObjectStreamStart") then {
_val = _r>
12:55:04   Error position: <== "ObjectStreamStart") then {
_val = _r>
12:55:04   Error Generic error in expression
12:55:04 File z\addons\dayz_server\system\server_monitor.sqf, line 290
Edit: Fixed, check your obect data in database and look for the most recent write, check integrity of tables. Partial writes made like if a player buys a vehicle just before restart can cause errors like the above in the rpt log.
Link to comment
Share on other sites

9 answers to this question

Recommended Posts

  • 0

if it helps, this is the section in my server_monitor.sqf file

	// preload server traders menu data into cache
	{
		// 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;
Link to comment
Share on other sites

  • 0

It's gone from server being fine to this happening.

 

Edit, found it, it was a partial write to the database of a vehicle purchased just before restart - the timing meant that only partial data was written and the game hung when it was pulling the object data with that error.

Link to comment
Share on other sites

  • 0

Looks like I now have the same problem after restarting the server, it is not that the server freezes it seems to still be running but everytime I tried to log on it loaded me into the debug plains invisible. I thought it might have been the player that was the bad write so I deleted my profiles and now it kicks me after a long wait on joining. I also uploaded a known working server pbo with no result. 

 

Error posted is:

 

16:49:38 Error in expression < compile format ["%1",_data];
_status = _result select 0;
 
if (_status == "Objec>
16:49:38 Error position: <_result select 0;
 
if (_status == "Objec>
16:49:38 Error Undefined variable in expression: _result
16:49:38 File z\addons\dayz_server\system\server_monitor.sqf, line 288
16:49:38 Error in expression <status = _result select 0;
 
if (_status == "ObjectStreamStart") then {
_val = _r>
16:49:38 Error position: <== "ObjectStreamStart") then {
_val = _r>
16:49:38 Error Generic error in expression
16:49:38 File z\addons\dayz_server\system\server_monitor.sqf, line 290

 

 

Hive is saying:

 

2013-09-05 16:49:38 HiveExt: [information] Result: [6686,["UAZ_Unarmed_UN_EP1",2],1,[8,"ItemGoldBar",1],[4,"ItemGoldBar",1],0,661,"trade_any_vehicle"]
2013-09-05 16:49:38 HiveExt: [information] Method: 399 Params: 662:
2013-09-05 16:49:38 HiveExt: [Error] Error executing |CHILD:399:662:|
2013-09-05 16:49:38 HiveExt: [information] Method: 399 Params: 663:
2013-09-05 16:49:38 HiveExt: [information] Result: [6687,["ItemSandbag",1],15,[2,"ItemGoldBar",1],[2,"ItemGoldBar",1],0,662,"trade_items"]
2013-09-05 16:54:43 HiveExt: [information] Method: 103 Params: 129495878:any:2:
2013-09-05 16:54:43 HiveExt: [Error] Error executing |CHILD:103:129495878:any:2:|

 

 

Any idea what the issue could be? I tried the check table and it says it is OK.

Link to comment
Share on other sites

  • 0

Hmm checked nothing seems to be amiss, seems to relate entirely to the traders_data table but even if I delete the records in question it just skips to the next one in line and then stops there with the same error. 

 

2013-09-05 18:56:59 HiveExt: [information] Result: [6688,["ItemTankTrap",1],2,[1,"ItemSilverBar10oz",1],[1,"ItemSilverBar10oz",1],0,662,"trade_items"]
2013-09-05 18:58:39 HiveExt: [information] Method: 103 Params: 129495878:any:2:
2013-09-05 18:58:39 HiveExt: [Error] Error executing |CHILD:103:129495878:any:2:|

 

Example previously stopped at sandbag, delete sandbag then stops at tank trap. All items related to Stary traders which is, coincidentally where I logged out last. I smell another roll back. Pretty much at the limit of my limited knowledge. Server_monitor looks OK when compared with default file and the lines where the error are deal with loading the db trader data into cache. 

 

I previously made some modifications to the table roughly in those locations, added two objects to building supplier at Stary, worked OK. Removed some weapons from weapons trader, didn't check trader but loaded in OK. 

 

Meh, think I will go download "Sharknado" to cheer me up. 

Link to comment
Share on other sites

  • 0

Hey guys. I got this same error. Checked the RPT logs, no one purchased anything 5 minutes prior to reset. But what I did find was that I was messing around with the prices in trader data. Found that I had made a change in price but there was a syntax error in the price itself.

 

The Syntax error was the price was :

[1,ItemSilverBar,1]

 

But should have read:

[1,"ItemSilverBar",1]

 

If you were playing with your trader database before the restart then I would check for a syntax error. Hope this helps!

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Advertisement
  • Discord

×
×
  • Create New...