AI need some update badly!!!
#1

I hate the stupid endless climbing tactics that AI use on dogfights, there must be some way to disable it, what do you think??? it is possible to do, or need so much programing work???

Potenz
Reply
#2

Perhaps, as discussed many months ago, the downgrading to an earlier version of AI. I believe someone had actually done that and uploaded it up some stage...
Reply
#3

eh...they tried...but to no real avail it would seem, i tried it and definitely didn't notice a difference on my end. and i agree. another annoyance on my part is the super ai planes that you can blast to kingdom come, the crew bails out, and the plane magically flies on at perfect trim and speed and altitude until the fuel runs out...
Reply
#4

I have been looking into the A.I files but due to my current lull in help for java related stuff. Nothing much i can do. So far what i have seen looks really complicated.
Reply
#5

In any game the AI is the hardest thing programming.
Besides there's the question according to which "vision" to improve.
If you make the AI act more realistically (in the sense that it simulates real life flying etc) it will be boring to the virtual pilot, because the virtual pilot himself is not doing things realistically (no pilot fatigue modeled in il2 so you can turn and do the clown thing as much as you wish etc) so the virtual pilot can easily win against the ai if the ai acts realistically unless the AI is really smart, and that's the big problem with AI to make them smart without cheating. There was a patch, 4.something, I liked very much, precisely because the ai would not do much violent moves. I just decreased my stick settings to match the ai manner of flying and had a lot of fun and immersion because it was looking and feeling right. But there were complains that the AI were too weak then, done by the usual vocal people, so Oleg "improved" the AI according to their wishes...
See it's a problem. In previous versions the ai would not run that much but turn a lot even if the plane type was not suited for turning, and that was hilarious because you could cheat them, you could kill a FW190 in your il2 just cheating him to turn with you till he was a sitting suck.
Hm doing pretty random talk, but it is not easy in my opinion to decide what means improved AI...
Let me give another example: ai doesn't overheat. Now that would be great to make them overheat but then you have to make them smarter too, make them manage in a sensible way their energy, with the overheat constraint added...
Smart AI... that's a dream
:mrgreen:
Reply
#6

This are for me the main points to improve:

1
Reply
#7

[quote="Potenz"]This are for me the main points to improve:

1
Reply
#8

A big improvement would be i the AI didn't aim for your head all the time, but rather for the engine or even choose an option depending on the situation.
Right now they always aim for your head and that's really annoying. Hey, shoot for my engine when i'm behind a bomber, right now flying behind one (not good idea i know) for me results invariably in a headshot on my side. A fix for that alone would improve things very much.
Reply
#9

Agree 100%.. better AI WILL be possible if someone with capable brain would look into some right files I think instead of try to edit frankestein and unprobable FM for new aircraft
Reply
#10

Adding to the list, it seems that the AI does not switch from Supercharger 1 regardless of altitude. If the player is leading a formation at high altitude, the AI planes cannot keep up if the player switches to S2 or S3 and maintains a high throttle setting. Not a huge issue, but it would be nice to see it resolved when or if anyone tackles the AI.
Reply
#11

so we have as main things to change

1
Reply
#12

After about a Hour of looking around. With my limited java knowledge. This is what i found.


I may be wrong, so don't take these as fact just yet..


Specifics

A.I does cheat quite a bit. Sometimes the ability of the flight model is doubled. double g tolerance, double speed, double turning radius. Not Confirmed yet. Just what i saw.

The predictable moves the A.I does once you jump its 6 can be changed i believe. It seems its coded to do that same sequence.

Don't think you can make movements "aircraft" specific. I.E P-47 won't dive away or used BnZ effectively. Not too sure about this. But its not looking good.


Overall the A.I code (for me) is very complicated. So much advanced java code.

Example of some of it.

Code:
public void goodFighterVsFighter(float f)
    {
        Ve.sub(target.Loc, Loc);
        float f1 = (float)Math.sqrt(Ve.x * Ve.x + Ve.y * Ve.y);
        Or.transformInv(Ve);
        float f2 = (float)Ve.length();
        float f4 = 1.0F / f2;
        Vtarg.set(Ve);
        Vtarg.scale(f4);
        float f5 = (Energy - target.Energy) * 0.1019F;
        tmpV3f.sub(target.Vwld, Vwld);
        if(sub_Man_Count == 0)
        {
            float f6 = 0.0F;
            if(CT.Weapons[1] != null && CT.Weapons[1][0].countBullets() > 0)
                f6 = ((GunGeneric)CT.Weapons[1][0]).bulletSpeed();
            else
            if(CT.Weapons[0] != null)
                f6 = ((GunGeneric)CT.Weapons[0][0]).bulletSpeed();
            if(f6 > 0.01F)
                bullTime = 1.0F / f6;
            submanDelay = 0;
        }
        if(f1  -0.20000000298023224D)
            {
                f7 = 3F * ((float)Vtarg.x + 0.2F);
                Vxy.set(tmpV3f);
                Vxy.scale(1.0D);
                Or.transformInv(Vxy);
                Vxy.add(Ve);
                Vxy.normalize();
                f9 = 10F * (float)(Vxy.x - Vtarg.x);
                if(f9  1.0F)
                    f9 = 1.0F;


I'm going to start testing some things and i'll report back to if i get any results.
Reply
#13

very very thxs for your effort th!reye, yo are doing a good work heep on it

Potenz
Reply
#14

Well i haven't gotten anything to work as of yet. This is very complicated stuff. My brain hurts. Smile

I'm still waiting for PM's from certain people to help me with some java tools and tips that i need. I really want to fix the A.I as much as the next guy but i feel like a 2 year old reading college algebra. I have been using a Decompiler and Compile technique of doing a mod, but even thou the files are easy to read and i know what to edit. I can't get the mod to work because it won't recompile. But if i use direct .class editor i can get mods to work, but its much much harder to understand what to edit. It seems like both are missing things from one another. So all this A.I research im doing feels like a waste since i am probably missing parts. Alot of the code is complete java language that only a hardcore java programmer will understand.
Reply
#15

try starting a post asking for people to form a team for work on this this will be the best way to get it done i can do it for you if you want i can put your user name for pm's

Potenz
Reply


Forum Jump:


Users browsing this thread: 7 Guest(s)