[Concept] Auto Assist AI (Repairs & Builds)

[Concept] Auto Assist AI (Repairs & Builds)

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

Moderators: hoijui, Moderators

Post Reply
TheBlasphemer
Posts: 20
Joined: 31 Jul 2006, 13:13

[Concept] Auto Assist AI (Repairs & Builds)

Post by TheBlasphemer »

Alright, here's a little concept AI, At it's current state it might be usable, but it has a few glitches that need to be fixed before it's ready for real use :)

The usage is simple, just add a few units with the "Repair" command to this AI, and if Idle they will automatically repair or build the closest unit that does not have full-health.
Basically if you keep a few builders in this group, everything that gets built automatically gets assisted by these builders, and everything that gets damaged, like laser-towers or vehicles, will automatically get repaired faster.

Downsides:
- When you try to reclaim your own buildings, the AutoRepair group starts rebuilding it while it isn't 100% reclaimed.
- If a unit is under attack you might not appreciate builders going to that scene.
- Offensive units will get healed too, which might not be what you want ;)

Anyway, you can get it at <err I can't seem to post hyperlinks :S, see bottom of post for hints ;)>
Just stick it in TASpring/aidll/, and in-game use "Select AI" to create a group of repairmen ;)
As a quick side-note, it's better to add units to an existing repair AI group, than to create a new repair AI group. This is because if they're all in the same group, the AI will optimize it's search routines...

Anyway, have fun with it, and any feedback or recommendations should be posted here :)

The URL consists of thuis <dot> hardijzer <dot> nl <slash> autorepair <dot> dll
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Post by AF »

In the new version, set builders on a repeating Fight command
TheBlasphemer
Posts: 20
Joined: 31 Jul 2006, 13:13

Post by TheBlasphemer »

AF wrote:In the new version, set builders on a repeating Fight command
What do you mean :S?
Should I constantly let it attack an empty space?
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Post by AF »

The fight command in 0.73b1, or at least use patrol. And no they wont attack empty space they have no weapons so they'll just do exactly what you specified above.
TheBlasphemer
Posts: 20
Joined: 31 Jul 2006, 13:13

Post by TheBlasphemer »

You mean that what this AI does is already in the engine :S?
bummer! :P
User avatar
Dragon45
Posts: 2883
Joined: 16 Aug 2004, 04:36

Post by Dragon45 »

Yeah, its actually far more flexible to use a group-repair with Repeat On, as well as simpler >_>

Sorry mate >_>
TheBlasphemer
Posts: 20
Joined: 31 Jul 2006, 13:13

Post by TheBlasphemer »

Oh well, 't was a nice practice anyway ;)
Post Reply

Return to “AI”