ETA Helper AI for 0.74b3

ETA Helper AI for 0.74b3

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

Moderators: hoijui, Moderators

Post Reply
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

ETA Helper AI for 0.74b3

Post 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.
User avatar
Lindir The Green
Posts: 815
Joined: 04 May 2005, 15:09

Post by Lindir The Green »

Wouldn't this be better in LUA...?
User avatar
TheFatController
Balanced Annihilation Developer
Posts: 1177
Joined: 10 Dec 2006, 18:46

Post 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.
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Post by AF »

indeed it is my intention to create a widget version.
User avatar
BrainDamage
Lobby Developer
Posts: 1164
Joined: 25 Sep 2006, 13:56

Post 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?
User avatar
1v0ry_k1ng
Posts: 4656
Joined: 10 Mar 2006, 10:24

Post by 1v0ry_k1ng »

this thing is damn useful
User avatar
BrainDamage
Lobby Developer
Posts: 1164
Joined: 25 Sep 2006, 13:56

Post by BrainDamage »

no chances to have the sources of this AI? :(
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Post 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.
User avatar
BrainDamage
Lobby Developer
Posts: 1164
Joined: 25 Sep 2006, 13:56

Post 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?
Kloot
Spring Developer
Posts: 1867
Joined: 08 Oct 2006, 16:58

Post 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?
Post Reply

Return to “AI”