How Do You Make AI Patches?

Started by UltraNuparu, February 02, 2013, 12:50:03 AM

Previous topic - Next topic

UltraNuparu

I've been trying to make an AI patch for Suave Dude but the AI coding tutorials don't seem to help. Can someone please help me?

Cyanide

No AI coding tutorial will help because AI differs from move to move. All any tutorial for this can give you is the very basic basics of how to trigger an attack without a command requirement and how turning on AI works. That's it. Rest is up to you to tweak over and over and over and over and over and over and over and over and over and over and over and over and over and over * 9238759834


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.

UltraNuparu

Can at least someone help me how to make one? I mean it has already been done.

Bastard Mami

what are you problem with ai tutorials ?

also, isthe ai for winmugen or mugen 1.0 ?

UltraNuparu

Lets try winmugen AI coding first.

Bastard Mami


UltraNuparu

Please teach me because I am going to make an AI patch for Suave Dude.

Bastard Mami

well, if it's for winmugen the first thing to do is search for winane's ai activation code, then make sure to implement it in your character and that everything works properly and the ai triggers when it should, maybe by adding an ai / only explod sctrl in st-1 .

if using mugen 1.0 that step would not be necessary.


Bastard Mami

good, I assume you hav set var 59 to 1 when the ai is on; the method some of us use (i do it because of portability) is to allow the real mugen ai to move the character around and block, that means that the character still benefits from the coded in- levels of difficulty; then  what your actual ai code does is make teh character attack.
A good, optional step is to add a triggerall = var59 != 1 to all the attacks in the .cmd file, that way only the attacks you code in the ai will come out.
After that copy the cmd changestate of and attack, let's say the strong punch; the triggerall should have the command in there, delete that line and add a triggerall = var59 = 1 line instead (if you did the optional step, change the var59 != 1 to var59 = 1). the attack shoudl come out when the ai is in controland it will be similar to a human mashing the button.
After that p2movetype, p2bodydist and random are going to be your friends; you want to make the attack only come out when it has a chance of hitting, so you add those triggers to the triggerall, for this case you don't want to punch when p2movetype = A as he is already attacking, you also want to p2bodydist < 100 or some other value so the attack only comes out when the oponent is close, then you add a triggerall = random < 100 or some other value that you like (after testing) to make your ai's actions less predictable.

when you get done with that ask again, if you ahve any doubts on the process also ask.

I_Cry

Look at P.O.T.S and infinite's characters coding, they have one of the best AI's. Then you can get an idea on how to atleast code a decent AI for some basic moves

Cyanide

That won't tell him anything, the moves in those characters will differ in every direction from his edits. AI is entirely character dependant. Even between the same character made by 2 different authors.


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.

beterhans

Quote from: I_Cry on February 15, 2013, 02:29:23 AM
Look at P.O.T.S and infinite's characters coding, they have one of the best AI's. Then you can get an idea on how to atleast code a decent AI for some basic moves

Before you can make AI
you should able to make a NO AI character.

POTS's work is decent and It's a style but but they don't fight well.
The best AI maker for me is GM.   his SF3 characters fight like real top player. not machine. If you look at the real sf3 Human player match you'll feel it.

and there is no short cut. you have to learn mugen from the basics. before move on to AI.

Bastard Mami

that'sa  bad tip, if you excluseively want to know how to make an ai you don't need to learn how to make a character, some of the knowledge is shared but learning to make characters when you only want to make ais is a waste of time, it's like learning how to make characters when you only want to learn how to make stages.

UltraNuparu

#14
Yes, but I need help because the character I am planning to make an AI patch is 100% weak sauce when he is supposed to be an end of arcade char. AI patches have been made can at least someone who have made one help me on this?

Cyanide

We have been. I have no idea how much you're taking in.

I hate winanes AI code because it doesn't port to 1.0 nicely if you wanna do that. Still. Follow any AI tutorial to get the AI turned on, there are a few of these inside the tips and tutorials forum, follow one of these and then come back.

Once your AI is turned on ask a very specific question about a single attack defining every single feature about it. What sort of range it has. When it should be used. Whether it can combo. Whether you WANT it to combo, Give us all relevant stateno's for it and any limitations the original command has. We can then make up a very innaccurate AI only changestate. Which you will still need to alter afterwards.


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.

UltraNuparu

I do not know what stateno's are. Do you mean statedef's? I only know how to make small/medium changes to chars like: some spriting and explod's positions and blah blah blah. can you tell me what they are and how to find them and I will give them to you.

Bastard Mami

* maximilianjenus passes teh flag to cyanide

ok, your turn to help him.

Cyanide

Find the tutorial first and learn how to turn on AI. There are many, they are in the tutorials section of this site. Please go and look.

There is no point talking about anything else until you've managed to turn AI on. And this would be easier if it was 1.0


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.

UltraNuparu

I read many AI tutorials and I even tried copy & pasting some AI activation codes and it did not work. Can please you look into Suave Dude's CNS & CMD file and tell me the limitations and stuff because I do not know how to know them. And how do you put the CNS & CMD file in this post?