Turn off target pos fluctuation for cheating AI

Turn off target pos fluctuation for cheating AI

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

Moderators: hoijui, Moderators

slogic
AI Developer
Posts: 626
Joined: 17 Mar 2008, 19:03

Turn off target pos fluctuation for cheating AI

Post by slogic »

IS IT POSSIBLE? I can't control units thinking they shoot enemy. Looks ugly from spectator point of view and also from probability theory because they can miss forever while i think position should be randomized not only around a target, but above the target itself. As a brute forced decision I can give 4x target facilities in the beginning. But they should be invisible and without hitbox.
User avatar
hoijui
Former Engine Dev
Posts: 4344
Joined: 22 Sep 2007, 09:51

Re: Turn off target pos fluctuation for cheating AI

Post by hoijui »

pro:
  • looks better from spectator view
  • AI will own more
contra:
in addition to the annoyance that the AI knows about everything, even when not having seen it, it will be able to shoot at everything without missing it, even when not seeing it.
it will make the AI only more annoying, plus it allows for tons of new cheats.
.. no way!
slogic
AI Developer
Posts: 626
Joined: 17 Mar 2008, 19:03

Re: Turn off target pos fluctuation for cheating AI

Post by slogic »

I'm asking about a TOOL to control this. AI will have difficulty levels. Also i need this for new group behaviour. Finally, who's AI developer? :) Also I would like to understand the nature of this behaviour. I feel this happens not when i assign ATTACK command, but when unit is in idle mode and automatically searches for target.
User avatar
Beherith
Posts: 5145
Joined: 26 Oct 2007, 16:21

Re: Turn off target pos fluctuation for cheating AI

Post by Beherith »

Have AI make targetting facility.
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Re: Turn off target pos fluctuation for cheating AI

Post by AF »

Beherith wrote:Have AI make targetting facility.
+1

edit: there's nothing stopping an AI from sending a command to a gadget to disable the 'floatyness' of radar blips and the units they represent for that team under uber hard AIs. I would say though that such a gadget disable it for all AIs as well as the AI that issued the command, in the name of fairness.
User avatar
zwzsg
Kernel Panic Co-Developer
Posts: 7049
Joined: 16 Nov 2004, 13:08

Re: Turn off target pos fluctuation for cheating AI

Post by zwzsg »

When a cheating AI fetch the position of an enemy unit, does it get float-blurred coordinates? Cause if not, then attack the x,y,z of the unit instead of attacking the unit.
slogic
AI Developer
Posts: 626
Joined: 17 Mar 2008, 19:03

Re: Turn off target pos fluctuation for cheating AI

Post by slogic »

Exact position position is returned (you can watch this by entering "!e323ai mil", line is drawn directly to target). Attacking position instead of target ID is valid for static units only. Though can be used in some cases.

I'm not sure but i think shifted target pos it returned only when unit found a target by itself within its weapon range (result of Spring logic in maneuvering state), not under direct AI control.
Last edited by slogic on 19 May 2010, 22:39, edited 1 time in total.
User avatar
JohannesH
Posts: 1793
Joined: 07 Apr 2009, 12:43

Re: Turn off target pos fluctuation for cheating AI

Post by JohannesH »

I don't think changing unit stats is a good way to make your AI harder, it's not intuitive to the player at all.
slogic
AI Developer
Posts: 626
Joined: 17 Mar 2008, 19:03

Re: Turn off target pos fluctuation for cheating AI

Post by slogic »

What stats? AI is using LOS cheat. Here i wonder why it sometimes still targets at shifted enemy position (like it uses a radar over the hole map). Easily could be considered as a bug.
User avatar
JohannesH
Posts: 1793
Joined: 07 Apr 2009, 12:43

Re: Turn off target pos fluctuation for cheating AI

Post by JohannesH »

Hmm, so it shoots at radar blips? Ok I can see why to remove that.

Initially I thought you just wanted to remove all inaccuracy.
slogic
AI Developer
Posts: 626
Joined: 17 Mar 2008, 19:03

Re: Turn off target pos fluctuation for cheating AI

Post by slogic »

Just tested. Rocko was exactly at weapon range towards the target. AI due to coded algorithm issued attack command on target. Rocko was shooting NEAR the target. Shooting & shooting, missing & missing. Looks really ugly. He was shooting until Spring algo decided to move it further a bit. Then again push it, until target appeared in his LOS and Rocko could hit target directly. This is abnormal behaviour. Cheating AI has no LOS! And those blips are NEVER pointing at REAL target position.

Looks like zwzsg is right, i need to shoot at geometry, not target ID. It is more accurate, LOL.
User avatar
lurker
Posts: 3842
Joined: 08 Jan 2007, 06:13

Re: Turn off target pos fluctuation for cheating AI

Post by lurker »

hoijui wrote:able to shoot at everything without missing it, even when not seeing it
What if the AI only used the aimhacks and didn't cheat unit info? It would be the least annoying of all!
User avatar
hoijui
Former Engine Dev
Posts: 4344
Joined: 22 Sep 2007, 09:51

Re: Turn off target pos fluctuation for cheating AI

Post by hoijui »

look ...
the reason that most AIs use LOS cheat is, cause scouting is hard to code. That is at least the case for E323AI (Error said that), and it is the only acceptable reason. if this would also make units aim perfectly, even doh they have only radar coverage, it would be bad, cause it would make the AI just more annoying/appearing to cheat, with the advantage that "it looks not stupid from a spectators POV".
IF you care so much for it to look good for you as spectator while you are debugging your AI, do what Beherith said: let the AI cheat give its self 4 targeting facilities and the soars it needs to run them.
User avatar
MidKnight
Posts: 2652
Joined: 10 Sep 2008, 03:11

Re: Turn off target pos fluctuation for cheating AI

Post by MidKnight »

What about games with no targeting facility unit?
User avatar
hoijui
Former Engine Dev
Posts: 4344
Joined: 22 Sep 2007, 09:51

Re: Turn off target pos fluctuation for cheating AI

Post by hoijui »

then UH HUH! it will look bad for spectators.
go watch water ballet instead of spectating spring!
slogic
AI Developer
Posts: 626
Joined: 17 Mar 2008, 19:03

Re: Turn off target pos fluctuation for cheating AI

Post by slogic »

Why are you binded with spectators? Leave them alone. It was minor point. AI with LOS cheating is coded in a way it shoots at its weapon range, not LOS range. AI coders needs a tool (API method to control this cheat). That is all. There is some switch for passive cheats in API. Could be one more method. I'm thinking you're trying to control AI development from your own point of view how AI should behave. Are you fear AI will be too overpowered? Then why does cheating interface exist? It is a point of allowing AI coder to fully control AI instead of dancing around by thinking how can i overcome this problem without unofficially modifying AI interface.

As we concerned cheats, my point of view is: GiveMeMetal(), SetMyHandicap(), GiveMeEnergy() and CreateUnit() functions are the most ugliest cheats AI can have. But they do exist! While we're arguing about adding control to much more moderate cheat.
slogic
AI Developer
Posts: 626
Joined: 17 Mar 2008, 19:03

Re: Turn off target pos fluctuation for cheating AI

Post by slogic »

By the way, /aicontrol command should disable any cheat and block AI form using it for fair play until you're playing in single mode.
slogic
AI Developer
Posts: 626
Joined: 17 Mar 2008, 19:03

Re: Turn off target pos fluctuation for cheating AI

Post by slogic »

Rocko was shooting NEAR the target. Shooting & shooting, missing & missing. Looks really ugly. He was shooting until Spring algo decided to move it further a bit. Then again push it, until target appeared in his LOS and Rocko could hit target directly. This is abnormal behaviour.
So, can i consider this behaviour as Spring bug? Each shot occurs on _static_ random position which is calculated once. But this position should be random each shot because blip is not accurate. Or may be my thoughts about random radar blips are out of Spring conventions?
User avatar
hoijui
Former Engine Dev
Posts: 4344
Joined: 22 Sep 2007, 09:51

Re: Turn off target pos fluctuation for cheating AI

Post by hoijui »

it is right as it is. if each shot was at a random position, you would know where exactly the unit is after 10 shots. also, re-read posts.
slogic
AI Developer
Posts: 626
Joined: 17 Mar 2008, 19:03

Re: Turn off target pos fluctuation for cheating AI

Post by slogic »

> if each shot was at a random position, you would know where exactly the unit is after 10 shots

No until unit got los on him.

Re-read what? I already understood that AI devs won't get control on this behaviour. I just would like to understand if current "shooting at blips" behaviour is normal for Spring devs. For me it is ugly. It would be normal if unit was shooting at random position near the target (when target is out of los). Even if unit shot the target this is considered as occasional. Next shot can miss easily.
Post Reply

Return to “AI”