FINALLY I DID IT!!!!! - AI AGGRESSION PATCHES (APPROPRIATE)

Started by hjk, June 07, 2008, 12:59:29 PM

Previous topic - Next topic

hjk

Feedback is very welcome.
Well I have realized for quite some time that my currently released AI patches SUCK!!! Just thought I'd put that out there:
- Haohmaru - 100% Anti-Airs, Dodges too much (for forward progression), pulls that damn reversal every two seconds... yuck
- Charlie - That one just was a complete pile of shit
- Hinata - 100% anti airs, no forward progression, mistriggered air attack states.... ewwww
-  The only one that I considered half-decent was Terry, but he himself had a tragic flaw, his aggression could be compormized when battles were AI vs. Player.


Now for the past few months I have been wondering why it is that my AI patches tend to be aggressive against other AIs, but almost static against humans. The funny thing is that I had known the answer all along, but had refused to do something about it due to the fact that I thought it would make my patches 20 times more vulnerable, adding to the "riskyness" they play with now. The answer itself was, that I should just put in a highly triggered run code activating after a certain period of ticks starting from pretty close range.
This video of Tatsu's Dan patched by me vs. Morrigna by PotS played by Laquak, highlights the new change well (rounds 2 and 3 are particularly good):
[/b][/size]

Now, here's why I'm creating a definite line between AI vs. AI and AI vs. Human:
Here's the OLD Dan vs. other AIs: http://youtube.com/watch?v=1ciyFOz8NkQ
Very aggressive huh? Well here he is in a 1 on 2 against a player: http://youtube.com/watch?v=qMvHFhUWCDE

Not a good example... OK.  Here's Senind's Duck King against other AIs: http://youtube.com/watch?v=eQT11IfjL3A
Now check him out against Humans:
- http://youtube.com/watch?v=2oQruxsA3jA
- http://youtube.com/watch?v=_EN4Dbn_sIk
- http://youtube.com/watch?v=OPAPmWLXpvo
Senind is a freind of mine and Patches in the same form I do.
Notice how he pretty much remains static against humans.
Yes, I know that there are some factors that have to be considered, but it seems to me that because Humans tend to move/transition slower, and stay still longer, it has a bad effect on my AIs. In some cases, AIs are the smae way, I know.

I could go on longer with examples about how different AIs react to, blah, but I think my point will be understood.

Any suggestions as far as aggression goes...??
LOL, Caddie's the man!! ;)

I'm as real as the runnin, I just happen to rap, Nigaas London, Japan, and i'm scared of dat tap.

I suggest extending my banning, cuz when I come back, it's gonna be hell. You think I was annoying before, oh man, it's on now :)
hjk vs. 99% of MFG. I will win.

RIP Poo Bear Tell my Dead Homie isson, for the year my partner.

hjk

#1
- Double Posting to make sure it is noticed for anyone of the people who viewed this thing 94 times to notice and to possibly make it so that the thread isn't forgotten too quickly -
I would really like some feedback if anyone would like to give it
*Thanks Cyanide and Evil Momoko*

So I made a huge change in the rest time the player is allowed between the Normal Dan Patch, and the Evil mode Tatsu installed.
WARNING: The Randomized AI Aggression in teh following video is not for the faint of heart...:
The Match features the Dan by Tatsu, of course, with Fr33dom/Fr33dom87 at the controls of the KOF Another Kyo by Garyu (Thanks for the info Bahamut  :-* ).
[/b][/size]

And BTW, that up close projectile spam is based solely on "random." It is a rarely occuring event, but adds a bit of unpredictability to Dan, and serves as a major set-up point for counter combos.

Maybe someone could tell me which vid they liked better? I dunno, any type of feedback.
LOL, Caddie's the man!! ;)

I'm as real as the runnin, I just happen to rap, Nigaas London, Japan, and i'm scared of dat tap.

I suggest extending my banning, cuz when I come back, it's gonna be hell. You think I was annoying before, oh man, it's on now :)
hjk vs. 99% of MFG. I will win.

RIP Poo Bear Tell my Dead Homie isson, for the year my partner.

Orochi Gill

Quote from: Bistard Wolf on June 12, 2008, 05:50:52 AM
The Match features the Dan by Tatsu, of course, with Fr33dom/Fr33dom87 at the controls of the KOF Another Kyo (I don't know the author yet but iI'll update you guys soon).
[/b][/size]

KoF Another Kyo? It's by "Garyu" I think his name was.

hjk

Quote from: Bahamut on June 12, 2008, 05:54:30 AM
KoF Another Kyo? It's by "Garyu" I think his name was.
Thank you.

Updating the last post  :sugoi:
LOL, Caddie's the man!! ;)

I'm as real as the runnin, I just happen to rap, Nigaas London, Japan, and i'm scared of dat tap.

I suggest extending my banning, cuz when I come back, it's gonna be hell. You think I was annoying before, oh man, it's on now :)
hjk vs. 99% of MFG. I will win.

RIP Poo Bear Tell my Dead Homie isson, for the year my partner.

Cyanide

Sorry that's worse than what i see in the earlier videos. It might be the character behind it. But he uses shoryuken at the WORST moments, and tends to proj spam at close range a lot, not even as part of combos either. Most people wouldn't do that because there SHOULD be some leadin and lead out to a move like that that gets you hit.

I mostly blame character but your evil AI doesn't show itself off very well. The first one was much better and more intelligent looking.

Edit: Stuck him against rikuo, who uses the default mugen AI for all his guarding, jumping and basic moves, and takes on some custom AI for intelligent use of specials. This was about an hours work and rikuo seems to win considerably more than dan. Believe me that rikuo is NOT spammy. Although dan did achieve a double KO vs mukai, which was confusing to say the least.

He doesn't guard at a distance either, only up close. Projectiles kick the crap out of him.


In M.U.G.E.N there is no magic button

They say a little knowledge is a dangerous thing, but it's not one half so bad as a lot of ignorance.

hjk

#5
Quote from: Cyanide on June 12, 2008, 09:42:32 AM
Sorry that's worse than what i see in the earlier videos. It might be the character behind it. But he uses shoryuken at the WORST moments, and tends to proj spam at close range a lot, not even as part of combos either. Most people wouldn't do that because there SHOULD be some leadin and lead out to a move like that that gets you hit.
I mostly blame character but your evil AI doesn't show itself off very well. The first one was much better and more intelligent looking.
I guess you and Evil Momoko are right. I should "Humanize" the Evil AI. I really like leaving my own holes in it because with its advantaged triggers I want it to be able to be countered. I could remove the Bad Shoryuken, but my major fear is that doing so will distort how random my AI is.
I blame myself. I made some changes to the Character for the Evil mode, so I could create some clear differences. I kind of focused on a "Trap" mentality for Evil Dan (with one simple trigger) so everything is meant to either draw p2 into attacking so Evil Dan can counter, or else for p2 into uncomfortable positions where Evil dan will mix up his moves until he triggers the highly likely shatter punch.

Quote from: Cyanide on June 12, 2008, 09:42:32 AM
Edit: Stuck him against rikuo, who uses the default mugen AI for all his guarding, jumping and basic moves, and takes on some custom AI for intelligent use of specials. This was about an hours work and rikuo seems to win considerably more than dan. Believe me that rikuo is NOT spammy. Although dan did achieve a double KO vs mukai, which was confusing to say the least.
He doesn't guard at a distance either, only up close. Projectiles kick the crap out of him.
I've noticed some interesting things with the Default AI itself. I noticed that if left alone the Default AI does a TON of guarding, and if you do not code a character to attack almost all of the time, it also does a lot of guarding. The reason why I set up my random triggers in such a unique way is because for me they work, and they make a major cut to my AIs guarding which is the way I prefer to do things...
Hopefully the chars you tested Dan against (with the projectiles) don't use "Helper" projectiles (undetectable) as opposed to "Projectile" Projectiles (semi-detectable). In the video above, the coding I put in for Projectiles activated every time it seems, because Evil Dan dodged every one....

Oh BTW, I think this video better humanizes the regular Dan Patch. I think Mugen's speed plays a major role in how "Human" AIs can look because where they tend to have immediate triggers getting faster with a speed increase, the Human is still pressing keys and reacting at the same rate (the real life rate):
[/b][/size]

Also I'm looking for the other chars, but they've been compressed into a big file, so I'm in a deleting process before  extracting it all to save some space.
LOL, Caddie's the man!! ;)

I'm as real as the runnin, I just happen to rap, Nigaas London, Japan, and i'm scared of dat tap.

I suggest extending my banning, cuz when I come back, it's gonna be hell. You think I was annoying before, oh man, it's on now :)
hjk vs. 99% of MFG. I will win.

RIP Poo Bear Tell my Dead Homie isson, for the year my partner.

Cyanide

QuoteHopefully the chars you tested Dan against (with the projectiles) don't use "Helper" projectiles (undetectable) as opposed to "Projectile" Projectiles (semi-detectable). In the video above, the coding I put in for Projectiles activated every time it seems, because Evil Dan dodged every one....
Inguarddist gives you a method of detecting if something is close enough to hit. With or without it being a projectile or helper. Sure default is 160 range and that's what most people leave it at, but that's still enough to figure you should probably be in a guard state.


In M.U.G.E.N there is no magic button

They say a little knowledge is a dangerous thing, but it's not one half so bad as a lot of ignorance.

hjk

*I'll fix my language later. Right now, I have a massive headache. My body will not let me sleep.*

Quote from: Cyanide on June 15, 2008, 09:48:48 AM
QuoteHopefully the chars you tested Dan against (with the projectiles) don't use "Helper" projectiles (undetectable) as opposed to "Projectile" Projectiles (semi-detectable). In the video above, the coding I put in for Projectiles activated every time it seems, because Evil Dan dodged every one....
Inguarddist gives you a method of detecting if something is close enough to hit. With or without it being a projectile or helper. Sure default is 160 range and that's what most people leave it at, but that's still enough to figure you should probably be in a guard state.
Now I remember the question I was going to ask. Inguarddist seems kind of iffy. I'm not sure if it allows specific helper detetection, but I'll try it. The thing with helpers in the first place is, I'd have to be "name" specific and there are a whole multitude of chars that use Helper Projectiles, so my AIs will become unfair to teh designated person's chars  :-\. Then there is the issue of detecting the correct helpers (helper ID) which easily becomes a hassle because I've seen a lot of chars that don't identify them properly.
I'm not sure, but if I looked at say waru's chars, with helper groove bars present throughout the match, would I b able to use inguarddist to detect when they are attacking at any time, without having the helper groove bar affect teh detection??
LOL, Caddie's the man!! ;)

I'm as real as the runnin, I just happen to rap, Nigaas London, Japan, and i'm scared of dat tap.

I suggest extending my banning, cuz when I come back, it's gonna be hell. You think I was annoying before, oh man, it's on now :)
hjk vs. 99% of MFG. I will win.

RIP Poo Bear Tell my Dead Homie isson, for the year my partner.

Cyanide

Inguarddist is only in effect during an active hitdef, hitdefs can only be active if movetype = A. Waru's bars should NOT be movetype = A or have hitdefs, no problems.


In M.U.G.E.N there is no magic button

They say a little knowledge is a dangerous thing, but it's not one half so bad as a lot of ignorance.

hjk

Quote from: Cyanide on June 20, 2008, 05:27:38 AM
Inguarddist is only in effect during an active hitdef, hitdefs can only be active if movetype = A. Waru's bars should NOT be movetype = A or have hitdefs, no problems.
Is that true for Helpers and Projectiles though. I think that chars can use a projectile and have their movetype temporarily be A, but after coming back to I (idle) that helper can still be existant.
That is part of the problem I believe I'll have with inguarddist and detection of Helpers.
LOL, Caddie's the man!! ;)

I'm as real as the runnin, I just happen to rap, Nigaas London, Japan, and i'm scared of dat tap.

I suggest extending my banning, cuz when I come back, it's gonna be hell. You think I was annoying before, oh man, it's on now :)
hjk vs. 99% of MFG. I will win.

RIP Poo Bear Tell my Dead Homie isson, for the year my partner.

Cyanide

The projectile is a different matter when taken like that. However it is still an active hitdef. It will cause you to guard if you press back, therefore inguarddist will still function.

Projectiles have slightly different rules applied. But when it comes to helper it's going to be hitdef + movetype = A. Inguarddist is a completely reliable trigger.


In M.U.G.E.N there is no magic button

They say a little knowledge is a dangerous thing, but it's not one half so bad as a lot of ignorance.

aokmaniac13

QuoteI really like leaving my own holes in it because with its advantaged triggers I want it to be able to be countered.
There are ways to dampen or eliminate the AI's advantage on reaction speed, and I think it'd be worthwhile for you to investigate here.
IIRC [E] was doing something like that for his AI.

Bastard Mami

It is because mi ai, instead of being a set of changestates that directly affect the character  is a set of changestates to a helper which act as command input. that means I can easily add buffer states to delay the input and add time triggers in the ai's code so the changetstates are not instant.

hjk

#13
Quote from: Cyanide on June 20, 2008, 09:09:16 AM
The projectile is a different matter when taken like that. However it is still an active hitdef. It will cause you to guard if you press back, therefore inguarddist will still function.
Yes, indeed I understand that for a projectile.

Quote from: Cyanide on June 20, 2008, 09:09:16 AM
Projectiles have slightly different rules applied. But when it comes to helper it's going to be hitdef + movetype = A. Inguarddist is a completely reliable trigger.
Really? I'm not sure I understand, BUT, am I correct in saying that movetype = A reads off of the char itself?
Let me just make this more clear so I can absolutely understand it. A char's Helper projectile launch anim last 5 ticks as a whole, where teh movetype = A, then it returns to state = 0 (which I assume by teh common is supposed to be idle) and the char stays in state = 0. It launches the Helper which lasts for a period of 160 ticks. For the rest of the time the Helper is active, after the first 5 ticks, will the char's movetype still be A (I am not attempting to be a smart alick at all. There might be something I am genuinely misunderstanding about movetype = A).

Quote from: Evil Momoko on June 20, 2008, 02:14:10 PM
There are ways to dampen or eliminate the AI's advantage on reaction speed, and I think it'd be worthwhile for you to investigate here.
IIRC [E] was doing something like that for his AI.
I LOVE YOU. Thanks for the info, and yeah, I remember something about that.

Quote from: Satou Sei on June 20, 2008, 04:41:02 PM
It is because mi ai, instead of being a set of changestates that directly affect the character  is a set of changestates to a helper which act as command input. that means I can easily add buffer states to delay the input and add time triggers in the ai's code so the changetstates are not instant.
Interesting. It sounds to me that could possibly rely on a bit of randomness, or even cause lag (jk)... it just seems like it would need quite a bit of coding to actually work.
LOL, Caddie's the man!! ;)

I'm as real as the runnin, I just happen to rap, Nigaas London, Japan, and i'm scared of dat tap.

I suggest extending my banning, cuz when I come back, it's gonna be hell. You think I was annoying before, oh man, it's on now :)
hjk vs. 99% of MFG. I will win.

RIP Poo Bear Tell my Dead Homie isson, for the year my partner.

Cyanide

QuoteReally? I'm not sure I understand, BUT, am I correct in saying that movetype = A reads off of the char itself?
Let me just make this more clear so I can absolutely understand it. A char's Helper projectile launch anim last 5 ticks as a whole, where teh movetype = A, then it returns to state = 0 (which I assume by teh common is supposed to be idle) and the char stays in state = 0. It launches the Helper which lasts for a period of 160 ticks. For the rest of the time the Helper is active, after the first 5 ticks, will the char's movetype still be A (I am not attempting to be a smart alick at all. There might be something I am genuinely misunderstanding about movetype = A).

You're not misunderstanding movetype = A precisely. What you're doing is focusing too heavily on a small thing. Your original question was about warusaki's groove bars. They will be movetype = I, even if they HAD a hitdef it could not be active as the bars aren't movetype = A. Therefore they will not provide a false positive for inguarddist. Inguarddist will be functioning on the hitdef. You don't need to even look for movetype = A while triggering. inguarddist will be a global "active hitdef" identifier.

Certainly good enough for blocking vs ranged attacks.

Test it if you like. Send p2 to an I state, and have him create a helper with an A state. See if you guard or not.


In M.U.G.E.N there is no magic button

They say a little knowledge is a dangerous thing, but it's not one half so bad as a lot of ignorance.

hjk

#15
I see.

Let me switch this up for a second. Rajaboy, gave me a code which I'm playing around with.
http://www.mugen-infantry.net/forum/index.php?topic=107025.msg962864#msg962864

What my plan is, is to detect the Helper's actuall hitdefattr, with a simple code, but I'm not exactly sure how I'd set that up.
So far, what I have is this:
trigger2 = enemy, helper(hitdefattr = SCA,NP,SP,HP)
That detects the helper itself, but not necessarily its hitdef. It triggers whenever p2 has a helper.

Give me a moment. You all probably have the answer, but I'll come back and post in a few hours if I have figured out how to detect the helper's hitdef myself using this code, and I'll be reporting on my tests with the inguarddist (haven't had the time to do so yet, because I was away from home as i will be again shortly).
LOL, Caddie's the man!! ;)

I'm as real as the runnin, I just happen to rap, Nigaas London, Japan, and i'm scared of dat tap.

I suggest extending my banning, cuz when I come back, it's gonna be hell. You think I was annoying before, oh man, it's on now :)
hjk vs. 99% of MFG. I will win.

RIP Poo Bear Tell my Dead Homie isson, for the year my partner.

Cyanide

Quotetrigger2 = enemy, helper(hitdefattr = SCA,NP,SP,HP)

You need to redirect within a redirect to manage that. What you've done is made use of an expression inside the helper(ID) trigger. Probably returning helper(0)

What you're looking for, and what's totally impossible is enemy, helper, hitdefattr which can't be done as redirects do not go that far. At best, you could possibly figure out the player ID of the helper and use

player(ID), hitdefattr

But figuring that out would take a lot of effort with the amount people use helpers these days. Also, you'd have your own helpers to contend with.


In M.U.G.E.N there is no magic button

They say a little knowledge is a dangerous thing, but it's not one half so bad as a lot of ignorance.

hjk

Quote from: Cyanide on June 22, 2008, 12:21:56 AM
Quotetrigger2 = enemy, helper(hitdefattr = SCA,NP,SP,HP)
You need to redirect within a redirect to manage that. What you've done is made use of an expression inside the helper(ID) trigger. Probably returning helper(0)
What you're looking for, and what's totally impossible is enemy, helper, hitdefattr which can't be done as redirects do not go that far.
I posted the wrong thing  --;
I had "num"helper typed, but had taken it out to experiemnt. It's in the char I was using, but I was being negligent when I posted here. 

Quote from: Cyanide on June 22, 2008, 12:21:56 AM
At best, you could possibly figure out the player ID of the helper and use
player(ID), hitdefattr
But figuring that out would take a lot of effort with the amount people use helpers these days. Also, you'd have your own helpers to contend with.
YES!!!  :sugoi:
That's the point I've been making for a while. Projectiles have a singular purpose in Mugen, so I use, "numproj" or "numproj > 0" in order to detect projectiles. I'm really looking for an equivalent way to detect Helpers with it, but as I go through, I've been getting trapped over and over again.
I can't quite find a way to detect Helpers as well, but hopefully that inguarddist can help me.
LOL, Caddie's the man!! ;)

I'm as real as the runnin, I just happen to rap, Nigaas London, Japan, and i'm scared of dat tap.

I suggest extending my banning, cuz when I come back, it's gonna be hell. You think I was annoying before, oh man, it's on now :)
hjk vs. 99% of MFG. I will win.

RIP Poo Bear Tell my Dead Homie isson, for the year my partner.

Cyanide

It's not so much a detect helpers as detect attack. Once you're detecting the attack and using the right ability (either guard or parry) it doesn't really matter what type of attack it is.


In M.U.G.E.N there is no magic button

They say a little knowledge is a dangerous thing, but it's not one half so bad as a lot of ignorance.

hjk

#19
Quote from: Cyanide on June 22, 2008, 02:55:59 AM
It's not so much a detect helpers as detect attack. Once you're detecting the attack and using the right ability (either guard or parry) it doesn't really matter what type of attack it is.
Well see what I really want my chars to do is roll when the projectile is present.
BUT, I'm working on a specific AI patch that detects the projectiles and does a move to throw it right back at an opponent with a rather limited time window in which to do it.

Again, I'm really a bit slow and confused. "Detecting the attack;"  Is this more geared toward the inguarddist code you suggested, or is there actually a way I can detect the helper as efficiently as I do the projectiles (I mean at any distance)? Also, would what you said about, "detecting the attack" work, in the sitaution I posted above with the movetype = A, thing? (Sorry if you have to repeat yourself. I'm just trying to wrap myself around things I don't yet understand).
LOL, Caddie's the man!! ;)

I'm as real as the runnin, I just happen to rap, Nigaas London, Japan, and i'm scared of dat tap.

I suggest extending my banning, cuz when I come back, it's gonna be hell. You think I was annoying before, oh man, it's on now :)
hjk vs. 99% of MFG. I will win.

RIP Poo Bear Tell my Dead Homie isson, for the year my partner.