Applying nochase category to fighter planes

Applying nochase category to fighter planes

Requests for features in the spring code.

Moderator: Moderators

User avatar
smartie
NOTA Developer
Posts: 146
Joined: 23 Jun 2005, 19:29

Applying nochase category to fighter planes

Post by smartie »

Pretty much what the subject says. The no chase category doesn't apply to fighter airplanes even if the weapons are set only to shoot at air. It doenst' sound like a very big problem, but it makes it impossible to set your fighters on patrol if there are any enemy units around.
User avatar
MadRat
Posts: 532
Joined: 24 Oct 2006, 13:45

Post by MadRat »

+1

Isn't it on the MTR?
Fri13
Posts: 54
Joined: 03 Feb 2007, 13:15

Re: Applying nochase category to fighter planes

Post by Fri13 »

smartie wrote: It doenst' sound like a very big problem, but it makes it impossible to set your fighters on patrol if there are any enemy units around.
It is big problem. Player has units patrolling AIR and units starts chasing ground units whate are taken care by other units.
User avatar
kiki
Posts: 859
Joined: 05 Nov 2007, 03:06

Re: Applying nochase category to fighter planes

Post by kiki »

makes for easy destruction of enemy air patrol. Whatever they exploit against you, you can exploit against them. Remeber that maxim.
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Re: Applying nochase category to fighter planes

Post by Forboding Angel »

Problem is, some of use use bombers that aren't really bombers (iirc, EE is like this, evo does it, maybe gundam too but I'm not usre on that one), because, bomber flight and fight patters are 100% phailure. It is a little frustrating when gunships or fighters (and by extention, bombers) lock on to an air target that they can't attack. Fix plox!
User avatar
KDR_11k
Game Developer
Posts: 8293
Joined: 25 Jun 2006, 08:44

Re: Applying nochase category to fighter planes

Post by KDR_11k »

Of course, assuming valid targets from the role a unit had in OTA is stupid anyway.
User avatar
MadRat
Posts: 532
Joined: 24 Oct 2006, 13:45

Re: Applying nochase category to fighter planes

Post by MadRat »

So do people propose perhaps to recycle old interceptor=1 tag for vtol fighters; if interceptor=0 a unit in flight does not chase other air units?
User avatar
KDR_11k
Game Developer
Posts: 8293
Joined: 25 Jun 2006, 08:44

Re: Applying nochase category to fighter planes

Post by KDR_11k »

No, that is TOTAL nonsense. NoChaseCategory is fine.
User avatar
MadRat
Posts: 532
Joined: 24 Oct 2006, 13:45

Re: Applying nochase category to fighter planes

Post by MadRat »

Isn't the problem more of a target lock issue, where it just won't give up trying to defend itself and continues chasing something that attacked it already?
manored
Posts: 3179
Joined: 15 Nov 2006, 00:37

Re: Applying nochase category to fighter planes

Post by manored »

kiki wrote:makes for easy destruction of enemy air patrol. Whatever they exploit against you, you can exploit against them. Remeber that maxim.
This is true but if something is expoitable and you cant prevent it then everone must do it thus reducing the strategy options and making the game less fun... like, if everone start exploiting the AI weakness to kill fighter patrols then people will have to stop making fighter patrols.
User avatar
KDR_11k
Game Developer
Posts: 8293
Joined: 25 Jun 2006, 08:44

Re: Applying nochase category to fighter planes

Post by KDR_11k »

MadRat wrote:Isn't the problem more of a target lock issue, where it just won't give up trying to defend itself and continues chasing something that attacked it already?
Has nothing to do with defending, the plane just picks a target independent of its weapons.
User avatar
ILMTitan
Spring Developer
Posts: 410
Joined: 13 Nov 2004, 08:35

Re: Applying nochase category to fighter planes

Post by ILMTitan »

I'm going to start working on this.
User avatar
ILMTitan
Spring Developer
Posts: 410
Joined: 13 Nov 2004, 08:35

Re: Applying nochase category to fighter planes

Post by ILMTitan »

Just committed something that should fix this. Revision 5418.
User avatar
MadRat
Posts: 532
Joined: 24 Oct 2006, 13:45

Re: Applying nochase category to fighter planes

Post by MadRat »

I don't see anything in the change log. Was it complicated?

https://springrts.com/svn/spring ... ngelog.txt
User avatar
yuritch
Spring 1944 Developer
Posts: 1018
Joined: 11 Oct 2005, 07:18

Re: Applying nochase category to fighter planes

Post by yuritch »

svn log says there was a commit (no one updated the changelog.txt though):

Code: Select all

Revision: 5418
Author: przybyjw
Date: 06:45:38, 29.01.2008
Message:
Have fighting, patrolling and guarding aircraft and guarding ground units follow noChaseCatagory.
----
Modified : /trunk/rts/Sim/Units/CommandAI/AirCAI.cpp
Modified : /trunk/rts/Sim/Units/CommandAI/AirCAI.h
Modified : /trunk/rts/Sim/Units/CommandAI/MobileCAI.cpp
Modified : /trunk/rts/Sim/Units/CommandAI/MobileCAI.h
Big thanks for that, now I need to compile an svn Spring to see if this indeed fixed fighter problems :-)
User avatar
lurker
Posts: 3842
Joined: 08 Jan 2007, 06:13

Re: Applying nochase category to fighter planes

Post by lurker »

The changelog generally gets updated in big batches by whoever feels like it, such as tombom.
Tobi
Spring Developer
Posts: 4598
Joined: 01 Jun 2005, 11:36

Re: Applying nochase category to fighter planes

Post by Tobi »

yuritch wrote:now I need to compile an svn Spring to see if this indeed fixed fighter problems :-)
http://buildbot.no-ip.org/~buildbot/spring

;-)
User avatar
Argh
Posts: 10920
Joined: 21 Feb 2005, 03:38

Re: Applying nochase category to fighter planes

Post by Argh »

Tested this, and I found that now Fighters and Bombers automatically attack Neutral Units, which they shouldn't do unless given a specific order.
User avatar
ILMTitan
Spring Developer
Posts: 410
Joined: 13 Nov 2004, 08:35

Re: Applying nochase category to fighter planes

Post by ILMTitan »

After looking over the code, it is not apparent why this would be happening, and in fact appears that it should not be.

Just to be clear, while executing a fight or patrol command, the aircraft is being given a command to attack the neutral unit, as evidenced by, with shift held down, a line from the aircraft to the neutral, which has an attack symbol hovering over it? That opposed to the aircraft simply firing at neutral units while flying by (a different problem I am still willing to look into).

If you can confirm, could you post or PM me your test mod/map/whatever so I can test?

Also, I haven't put it in the changelog yet because it is not definitively fixed, and I am considering other, somewhat related changes.
User avatar
Argh
Posts: 10920
Joined: 21 Feb 2005, 03:38

Re: Applying nochase category to fighter planes

Post by Argh »

while executing a fight or patrol command, the aircraft is being given a command to attack the neutral unit, as evidenced by, with shift held down, a line from the aircraft to the neutral
Yes, that's what is happening. I'll send you a copy of the latest build of P.U.R.E., so that you can see it.
Post Reply

Return to “Feature Requests”