Jump to content
Sign in to follow this  
El' Rabito

constructionMoveResponse error report fix

Recommended Posts

There is a small issue with the ExileClient_object_construction_network_constructionMoveResponse.sqf.

Errors thrown from ExileServer_object_construction_network_moveConstructionRequest.sqf like "You cant move Damaged objects, repair it first" or "Territory has been under attack within the last %1 minutes." etc, are not getting displayed on the client side.

This small change fixes that.

/**
 * ExileClient_object_construction_network_constructionMoveResponse
 *
 * Exile Mod
 * www.exilemod.com
 * © 2015 Exile Mod Team
 *
 * This work is licensed under the Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License. 
 * To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/4.0/.
 */
 
private["_response", "_objectClass"];
_response = _this select 0;
_objectClass = _this select 1;
if(_response)then
{
	_objectClass call ExileClient_construction_beginExistingObject;
}
else
{	
	_exception = _this select 1;
	["ErrorTitleAndText", ["Construction aborted!", _exception]] call ExileClient_gui_toaster_addTemplateToast;
};
true

 

Share this post


Link to post
Share on other sites
Sign in to follow this  

×