CGlobalAI::UnitMoveFailed doesn't work!

CGlobalAI::UnitMoveFailed doesn't work!

Here is where ideas can be collected for the skirmish AI in development

Moderators: hoijui, Moderators

Post Reply
User avatar
Rafal99
Posts: 162
Joined: 14 Jan 2006, 04:09

CGlobalAI::UnitMoveFailed doesn't work!

Post by Rafal99 »

I did lots of tests and found that CGlobalAI::UnitMoveFailed function doesn't work properly. It is simply NEVER called, even if unit spams "Can't reach destination" messages!
I started looking into spring code and found that CGlobalAI::UnitMoveFailed is called by CGlobalAIHandler::UnitMoveFailed and functions from CGlobalAIHandler class are called in Sim\Units\Unit.cpp file, but CGlobalAIHandler::UnitMoveFailed is called nowhere! :!: :shock:
Hope it will be fixed soon, because it is very hard to detect stuck units without this function.
User avatar
jcnossen
Former Engine Dev
Posts: 2440
Joined: 05 Jun 2005, 19:13

Post by jcnossen »

Err, it worked when I implemented it, but that was in the old CVS repository. This was never copied in the cvs->svn merges.
Fixed in svn now.
User avatar
Rafal99
Posts: 162
Joined: 14 Jan 2006, 04:09

Post by Rafal99 »

Thank you very much for quick reply and fix! :-)
submarine
AI Developer
Posts: 834
Joined: 31 Jan 2005, 20:04

Post by submarine »

oh now i know why my "making stuck units move again" code didnt work anymore :) th for the quick fix
Post Reply

Return to “AI”