﻿id,summary,reporter,owner,description,type,status,priority,milestone,component,resolution,keywords,cc,phab_field
6377,UnitAI error code being displayed,Langbart,,"When playing a game on Alpha 25b [25860], some errors occurred and even when viewing the replay with and without mods, the error remains the same.
{{{
0 A.D. (0.0.25) Main log (warnings and errors only)
ERROR: JavaScript error: simulation/components/UnitAI.js line 6143 Failed to construct Vector3D object

ERROR: Failed to call ProcessCommand() global script function

Engine exited successfully on 2021-11-10 at 21:53:01 with 1604 message(s), 2 error(s) and 0 warning(s).
}}}
[[Image(unitai_error.jpg, 600px, center)]]

The error is displayed only once after about 10 seconds in the game.
I will attach the replay as a zip file, I have never seen this error before. 

[https://code.wildfiregames.com/source/0ad/browse/ps/trunk/binaries/data/mods/public/simulation/components/UnitAI.js;25860$6143 Line 6143] in Unitai.js at [25860]

{{{
#!js lineno=6137
UnitAI.prototype.RememberTargetPosition = function(orderData)
{
	if (!orderData)
		orderData = this.order.data;
	let cmpPosition = Engine.QueryInterface(orderData.target, IID_Position);
	if (cmpPosition && cmpPosition.IsInWorld())
		orderData.lastPos = cmpPosition.GetPosition();
};
}}}",defect,new,Should Have,Alpha 26,Core engine,,,,
