Page 1 of 1

ETA Helper AI for 0.74b3

Posted: 05 Apr 2007, 14:48
by AF
Download here

Drop the dll binary into your AI/HelperAI/ folder and then ingame assign the AI to any unit, preferably something safe and out the way like a solar collector at the back of your base, then enjoy.

If a unit hasnt enough energy to fire its primary weapon, the AI will show a power symbol above it, and it will show estimated times of arrival for selected units with move orders, and ETA to reaching firing range on attack orders.

It will also show estimates of construction times, and itll show time to reach builder range for repair orders.

Posted: 05 Apr 2007, 16:47
by Lindir The Green
Wouldn't this be better in LUA...?

Posted: 05 Apr 2007, 17:35
by TheFatController
I believe AF had already developed this helper AI and this is just a compiled version that works in the latest spring, correct me if im wrong.

Posted: 05 Apr 2007, 18:20
by AF
indeed it is my intention to create a widget version.

Posted: 05 Apr 2007, 19:10
by BrainDamage
would it possible to have the source of this AI, so people would be able to make it run in other OS besides windows?

Posted: 05 Apr 2007, 19:22
by 1v0ry_k1ng
this thing is damn useful

Posted: 08 Apr 2007, 19:14
by BrainDamage
no chances to have the sources of this AI? :(

Posted: 09 Apr 2007, 17:31
by AF
Its already available somewhere IIRC. The source code to this hasnt changed in months and months so if you find an old source release there's a very good chance its still the same.

Posted: 10 Apr 2007, 00:24
by BrainDamage
thanks

i digged a bit and found them here :-)

i tried to compile them & it threw me an error:
AI/Group/ETA/TestAI.cpp: In function 'IGroupAI* GetNewAI()':
AI/Group/ETA/TestAI.cpp:17: error: cannot allocate an object of abstract type 'CGroupAI'
AI/Group/ETA/GroupAI.h:34: note: because the following virtual functions are pure within 'CGroupAI':
rts/ExternalAI/IGroupAI.h:29: note: virtual void IGroupAI::DrawCommands()
i tried also to compile the other group AIs & they had the same error

does anybody knows how to fix it?

Posted: 10 Apr 2007, 01:41
by Kloot
Add this line...

Code: Select all

virtual void DrawCommands() {};
...to the CGroupAI class definition in GroupAI.h (for any group AI you wish to compile).

The file you linked to does not seem to contain any source by the way, are you sure it's the right one?