help with coding a punch

Started by kingofsouls, April 13, 2009, 06:23:14 PM

Previous topic - Next topic

kingofsouls

Hi. I need a little help coding a simple light punch. I'm not sure what I am doign wrong, so if you can, can someone help me and tell me what I did wrong, and how to fix it.

Here si the files I am using:

http://www.mediafire.com/?sharekey=e7cead17480d09e58ef1259ff1b60e81e04e75f6e8ebb871

Bastard Mami

you don't know what yua re doing wrong, but you should know what happens wrong, post that.

kingofsouls

oh yea..eheh my bad.

the problem is that when i try to punch, there is no punch.

Fallen_angel

if you mean that the char doesnt make the animation of the punch...check that you are using the correct animation in your statedef......if the punch doesnt make contact with the opponent make sure that you have add the red clsn, and you are using a hitdef, that trigger correctly

kingofsouls

The character dosen't throw the punch (as in it jsut dosne't do it. download him and see for yourself if you would like to see.)

Byakko

#5
No, we're not going to download your files to fix it for you. You have to learn how to fix these things by yourself, because this is something very basic, if you can't do it, you won't do anything. For that, you must know the kind of things you should check for when you have this or that problem.

So, what does happen when you hit the button ? Did you put the command definition properly ? Did you put the changestate with proper triggers in the proper part of the .cmd file (somewhere after the line that says "statedef -1") ? Do you have an animation for the punch ? Is the state you send your character to properly uses that animation ? Do you have a proper changestate at the end of your punch state, is it not sending you back to state 0 too early ?
Also turn on the debug mode (ctrl+D) it can tell yo useful stuff, such as missing animation, invalid redirection etc.
If I struggled to the end of my determination, to the end of my way of life with my followers, if the result is ruin, then this ruin is inevitable. Grieve. Shed tears. But you cannot regret.

kingofsouls

#6
Uh..i posted teh file so you could follow along, just in case i lose you with my inaccurate descriptions.


So..when i hit the button, it does absolutly nothin. I don''t really understand what any of this mean, and when I read a description about it in this thing called
"narutorial", i got even more lost.

Byakko

Did you somehow fail to read the entirety of my post ? I asked you questions, check them one by one in the order they are. I actually did download your file and figured out your problem, but you have to learn to do it yourself. If you don't get what a specific question means, ask.
If I struggled to the end of my determination, to the end of my way of life with my followers, if the result is ruin, then this ruin is inevitable. Grieve. Shed tears. But you cannot regret.

kingofsouls

i have no idea what any of this means.

Byakko

Open the damn files.
Did you put the command definition properly ?
Did you put the changestate with proper triggers in the proper part of the .cmd file (somewhere after the line that says "statedef -1") ?
Do you have an animation for the punch ?
Is the state you send your character to properly uses that animation ?
Do you have a proper changestate at the end of your punch state, is it not sending you back to state 0 too early ?
Also turn on the debug mode (ctrl+D while in a fight) it can tell yo useful stuff, such as missing animation, invalid redirection etc.

Seriously. READ THESE LINES ONE BY ONE.
If I struggled to the end of my determination, to the end of my way of life with my followers, if the result is ruin, then this ruin is inevitable. Grieve. Shed tears. But you cannot regret.

kingofsouls

#10
okay, they are opened.

EDIT: i think i put in the command definition properly, but i am not sure, seinghow i don't know how to properly put in a command definition properly.

Byakko

#11
Look at the .cmd. Where did you define "x" ? Where did you define what should happen when you press "x" ?

Also, the docs, read them.


Quotei don't know how to properly put in a command definition properly.
Can you read ?
Quote; The CMD file.
;
; Two parts: 1. Command definition and  2. State entry
; (state entry is after the commands def section)
;
; 1. Command definition
; ---------------------
; Note: The commands are CASE-SENSITIVE, and so are the command names.
; The eight directions are:
;   B, DB, D, DF, F, UF, U, UB     (all CAPS)
;   corresponding to back, down-back, down, downforward, etc.
; The six buttons are:
;   a, b, c, x, y, z               (all lower case)
;   In default key config, abc are are the bottom, and xyz are on the
;   top row. For 2 button characters, we recommend you use a and b.
;   For 6 button characters, use abc for kicks and xyz for punches.
;
; Each [Command] section defines a command that you can use for
; state entry, as well as in the CNS file.
; The command section should look like:
;
;   [Command]
;   name = some_name
;   command = the_command
;   time = time (optional)
;   buffer.time = time (optional)
[...]
; Some common commands examples are given below.
;
; [Command] ;Quarter circle forward + x
; name = "QCF_x"
; command = ~D, DF, F, x
THIS CAN BE FOUND AT THE TOP OF YOUR FILE.
Why don't you actually READ it ??
If I struggled to the end of my determination, to the end of my way of life with my followers, if the result is ruin, then this ruin is inevitable. Grieve. Shed tears. But you cannot regret.

c00p

Chapter Eight: The cruel tutelage of Pai Mei Byakko

kingofsouls

this is gonna sound really stupuid, but in order to reach the cmd file, i have to use fighter factory,r ight?>

Byakko

Right click on the file -> "modify" or "open with" and chose any text editor (notepad++, wordpad etc.)
most files in Mugen are text files, you can open them that way. Mainly the .def, the .cns, the .st, the .cmd, the .air. Now the .sff and .snd are not, you can't directly open them, it's the images and the sounds.
Also please check again my previous post.
If I struggled to the end of my determination, to the end of my way of life with my followers, if the result is ruin, then this ruin is inevitable. Grieve. Shed tears. But you cannot regret.

kingofsouls

#15
8*sign* loak, let me set somehting striaght here. I have asbergers synbrome. i'm a little different okay? i glaze over things, a skip things, and I sometimes do teh oppasite of what people tell me to do.

Now, back on topicc. I see a windows NT command sctipt, my DEF, SFF, ACT, CNS, and AIR files. So...which one is the cmd file?

Byakko

.............
Quote from: kingofsouls on April 13, 2009, 07:55:20 PMthe cmd file
Now what would make you think that the cmd file is the cns file ? didn't you just ask about the cmd file and not the cns file ?

It's the file with a gear symbol (assuming you're on Windows).


Most files in Mugen are text files, you can open them that way. Mainly the .def, the .cns, the .st, the .cmd, the .air. Now the .sff and .snd are not, you can't directly open them, it's the images and the sounds.

Also read the docs, it tells you what file is what.
If I struggled to the end of my determination, to the end of my way of life with my followers, if the result is ruin, then this ruin is inevitable. Grieve. Shed tears. But you cannot regret.

kingofsouls

okay, i'm in th efile with the gear.

Byakko

Read what's at the top. All the lines that start with a ;.
If I struggled to the end of my determination, to the end of my way of life with my followers, if the result is ruin, then this ruin is inevitable. Grieve. Shed tears. But you cannot regret.

kingofsouls

okay...so i have to put my ligh tpunch in the command definition AND the state definition, right?