Loading...
  OR  Zero-K Name:    Password:   

stupid AI builders

13 posts, 657 views
Post comment
Filter:    Player:  
sort
Why the fuck they go under enemy (no self-safe behaviour like warriors have)?
+0 / -0

8 years ago
Because the code tells them to.
+1 / -0
Question was not about "mechanical" reason. It was about stupid decissions of AI makers.
+1 / -0

8 years ago
ye it would be cool if cons had same tactical ai like in, say, aegis
+0 / -0
Skasi
quote:
no self-safe behaviour like warriors have

Pretty sure Warriors do not have self-preservation code.

quote:
It was about stupid decissions of AI makers

Pretty sure (C)AI creators never decided to have it suicide builders. It's just something that happens when AIs tell their units to reclaim. Stopping them from running to their death would require additional code, it's not something that can be achieved by simply toggling a switch or removing a few lines of "suicide code".

That said, don't play against AIs if you can't cope with them making stupid decisions.
+0 / -0
So why warriors (mainly while single) turn back or make curved move near circular boundary of defence? If such code exist, it can be relatively fastly and easily (may be with small modifications) added to builders'.

Builders not reclaim only. They also try to build near powered DDM.

quote:
"don't play against AIs if you can't cope with them making stupid decisions.


Fact that some things do exist/happen doesn't mean that things are correct and should be untouched.
+0 / -0
Skasi
8 years ago
Yes, but fact is also that you will always find AIs making stupid decisions with the current level of technology used in ZK. In its current form CAI will never learn on its own and humans can not prepare CAI for all possible situations.

I'm not saying CAI shouldn't be improved, only that you should not expect it to be anything other than a stupid AI.
+0 / -0

8 years ago
quote:
it can be relatively fastly and easily (may be with small modifications) added to builders

patches welcome
+1 / -0
Skasi
Well I'm pretty sure there is no code that makes Warriors avoid defenses. There already exists a widget which makes builders avoid enemy combat units. It might interfere with CAI orders though.
+0 / -0
Are you talking about the Unit AI with fight commands? It makes raiders jink around and other units try to keep the enemy at max range?

Constructors don't have a weapon, but I suppose you could add an arbitrary default for them and modify the code so that they will always try to run from enemies. Would be nice to have.

edit:
https://github.com/ZeroK-RTS/Zero-K/blob/89dd46beba60bb5ee4c0968cac4ada9c722cd5e4/LuaRules/Gadgets/91_unit_tactical_ai.lua

Zero-K/LuaRules/Gadgets/91_unit_tactical_ai.lua

I might just dig around myself...
+0 / -0
8 years ago
quote:

Are you talking about the Unit AI with fight commands? It makes raiders jink around and other units try to keep the enemy at max range?

wonder if it's possible to give them an invisible weapon with invisible shots and 0 dmg
+0 / -0


8 years ago
If you take a look at the code (just click the link), it already supports "fleeing" with arbitrary ranges. So no need to add hacky workarounds :)
+0 / -0
quote:
wonder if it's possible to give them an invisible weapon with invisible shots and 0 dmg


See: fake weapons.

They don't show up on the spacebar-click panel thing but they're in the code (from what Ive been told they help with orientating towards the target on long reload weapons or something like that.)
+0 / -0