YesNoOk
avatar

Seriously Need help (character can cancel out of move) (Read 743 times)

Started by Setsitaru, July 29, 2009, 06:48:56 am
Share this topic:
Seriously Need help (character can cancel out of move)
#1  July 29, 2009, 06:48:56 am
I'm creating my character and was going through a few test runs of her basics when a problem arose, she can cancel out some of her attacks directly after they connect by pushing the button again, skipping any frames that come after the hitting frame. does anyone know what the problem is? i checked both her .CMD and her .CNS but can't seem to find a way to solve the problem. here is the code for both of them so you can all look it over...

STATE:

;Double Fisted Punch
[Statedef 220]
type    = S
movetype= A
physics = S
juggle  = 0
poweradd= 65
ctrl = 0
velset = 0,0
anim = 220
sprpriority = -1

[State 220, 2]
type = HitDef
trigger1 = AnimElem = 3
attr = S, NA
animtype  = Heavy
damage    = 50
guardflag = MA
pausetime = 12,12
sparkno = S6001
sparkxy = -10,-70
hitsound   = S2, 3
guardsound = S2, 0
ground.type = High
ground.slidetime = 16
ground.hittime  = 13
ground.velocity = -5.5
air.velocity = -2.5,-4

[State 220, 3]
type = SprPriority
trigger1 = AnimElem = 6
value = 2

[State 220, 4]
type = ChangeState
trigger1 = AnimTime = 0
value = 0
ctrl = 1

[State 220, 5]
type = PlaySnd
trigger1 = Time = 1
value = 1, 3

---------------------------------------------------------------------------------------------------------

COMMAND:

;Double Fisted Punch
[State -1, Double Fisted Punch]
type = ChangeState
value = 220
triggerall = command = "z"
triggerall = command != "holddown"
trigger1 = statetype = S
trigger1 = ctrl
Re: Seriously Need help (character can cancel out of move)
#2  July 29, 2009, 08:35:46 am
  • ******
  • Legendary XIII
  • I am the eye of the storm to come!
    • New Zealand
    • network.mugenguild.com/cyanide/
You cancel out of that move, or into it? If you're canceling out of it, you're looking at the wrong .cmd entry. If you're canceling into it, you may have another instance of a changestate that sends you to 220, you may have to check round a bit.


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.
Re: Seriously Need help (character can cancel out of move)
#3  July 29, 2009, 11:46:25 am
she can cancel out of it directly after it has hit the opponent. i know it has something to do with the .CMD command but i don't know what trigger to insert or take out that would change this problem
Re: Seriously Need help (character can cancel out of move)
#4  July 29, 2009, 11:52:55 am
  • ******
The question is, do you cancel this move into a different one ? If yes, look at the changestate block for that second move in the .cmd file. It has to do with what triggers the second move. If you can cancel a move A into a move B, it means that the triggers of move B say you can perform it from move A.
You don't say that move A can lead into move B, C or D, you say that move B can be done when you are in move A.
If you can cancel this move into itself, then, as Cyanide said, it means there must be another bloc of code that says that this move can be done when you are in the middle of the move itself.

As a random unrelated sidenote, on the triggers you have, it's usually preferred to use "statetype != A" instead of "statetype = S". You already have "command != holddown" anyway, so it already prevents you from doing it when you're simply in your crouching stance. Let's imagine that you want to be able to cancel this move out of a crouching state/attack, where the statetype is C, you won't be able to do it because of your current trigger.
Well, that's just a habit.
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.
Last Edit: July 29, 2009, 12:03:27 pm by Byakko
Re: Seriously Need help (character can cancel out of move)
#5  July 29, 2009, 06:08:18 pm
  • ****
    • www.mugenevolution.co.uk/hadoabuser
I looked into this myself and Sakura cancels into state 52 when u push the corresponding button after the hit connects, it happens so fast its almost not noticed and she appears to just cancel into state 0.

Anybody have a clue on y that happens with no command to do so ???
Card Sagas Wars > what ever you like.
POTS has his name in 50% of characters' readme. I shall have 50% too, but for stages ! :ninja: ;D
Last Edit: July 29, 2009, 07:45:32 pm by Hadoabuser
Re: Seriously Need help (character can cancel out of move)
#6  July 29, 2009, 09:08:13 pm
  • ******
What ?? Cancels what when you push what button ? And it's not doing this by magic. If it does that, it means there's something that's telling it to do it. Just fucking look for it. A changestate to statedef 52 or anything.
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.
Re: Seriously Need help (character can cancel out of move)
#7  July 29, 2009, 11:54:21 pm
  • ****
    • www.mugenevolution.co.uk/hadoabuser
I did  ::)

I checked the move state, only 3 controllers, hitdef, playsnd, and changestate with a animtime = 0 trigger. The KFM var(0) varset controller in the -1 statedef, no -2 states and the only -3 state plays the landing sound, and ctrl is set to 0 in the statedef parameters.

Ex. if u pushed "c" to do the move "c" would cancel into state 52 after the move hits.
Card Sagas Wars > what ever you like.
POTS has his name in 50% of characters' readme. I shall have 50% too, but for stages ! :ninja: ;D
Re: Seriously Need help (character can cancel out of move)
#8  July 30, 2009, 12:26:51 am
  • ******
  • Legendary XIII
  • I am the eye of the storm to come!
    • New Zealand
    • network.mugenguild.com/cyanide/
.....

The only other option is that move has been coded shitty and has physics = A at some point. 52 is jump land.


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.
Re: Seriously Need help (character can cancel out of move)
#9  July 30, 2009, 12:29:06 am
  • ******
Check the statetype. If it's A, Mugen will think you are in the air, find that you are on the ground, add both of the above togethr and sum it to send you to the landing state.

edit - beaten by Cyanide :(
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.
Re: Seriously Need help (character can cancel out of move)
#10  July 30, 2009, 12:58:13 am
  • ****
    • www.mugenevolution.co.uk/hadoabuser
Nope its listed as Stand, physics also.
Card Sagas Wars > what ever you like.
POTS has his name in 50% of characters' readme. I shall have 50% too, but for stages ! :ninja: ;D
Re: Seriously Need help (character can cancel out of move)
#11  July 30, 2009, 01:01:07 am
  • ******
If it happens when you hit, then the change would be on the hit. It doesn't happen if the attack misses, does it ? Either you have something triggered by movehit, or your hitdef is really weird.
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.
Re: Seriously Need help (character can cancel out of move)
#12  July 30, 2009, 01:13:20 am
  • ****
    • www.mugenevolution.co.uk/hadoabuser
Lol not mine, and yea it happens when movehit != 0 && command = "c" (guessing the triggers for the condition). The hitdef is ok.
Card Sagas Wars > what ever you like.
POTS has his name in 50% of characters' readme. I shall have 50% too, but for stages ! :ninja: ;D
Re: Seriously Need help (character can cancel out of move)
#13  July 30, 2009, 01:17:05 am
  • ******
Okay, you're right. Nothing's wrong with your code. In fact, the bug doesn't even happen. Lucky for us, because if it did, we would need to be psychics to magically guess what is messed up in your code if you don't show us anything and only say "everything is fine".
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.

BC

Re: Seriously Need help (character can cancel out of move)
#14  July 30, 2009, 01:27:18 am
  • ****
    • UK
    • www.mugenevolution.co.uk/Forum
this is an odd one lol

i just tested it too, the "random" changestate happens after you press hard punch the moment after successfully connecting with it.



theres nothing coded to change to that state. he doesnt even have a common1 file to mess things up.

it happens with hard kick too. But all the other punches and kicks are fine... has anyone ruled out corrupt file??
click the image to join my forum ;)
Re: Seriously Need help (character can cancel out of move)
#15  July 30, 2009, 01:28:26 am
  • ****
    • www.mugenevolution.co.uk/hadoabuser
I'm saying its not my code nor char, I was trying to help Setsitaru out because I understand Mugen more than he does. ::)

Would it help if u looked at the files urself :p.
Card Sagas Wars > what ever you like.
POTS has his name in 50% of characters' readme. I shall have 50% too, but for stages ! :ninja: ;D

BC

Re: Seriously Need help (character can cancel out of move)
#16  July 30, 2009, 01:35:10 am
  • ****
    • UK
    • www.mugenevolution.co.uk/Forum
setsitaru ive found your problem

its a dodgy command file.

as i added a brand new kfm .cmd, then altered things slightly and it works fine without the bug.


(altered as in adjust the command and changestate value as kfm doesnt use z)
click the image to join my forum ;)
Last Edit: July 30, 2009, 01:38:33 am by BC
Re: Seriously Need help (character can cancel out of move)
#17  July 30, 2009, 01:44:11 am
  • ******
  • Legendary XIII
  • I am the eye of the storm to come!
    • New Zealand
    • network.mugenguild.com/cyanide/
Although i'm sure that fixed it, it won't be a corrupt .cmd. It's going to be something EXTRA that's been coded in.


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.
Re: Seriously Need help (character can cancel out of move)
#18  July 30, 2009, 07:16:48 am
@ BC: really? ok, i'll try that and see what happens BC, thanks

@ Cyanide: i'm going to look at the whole .CMD as well to check for anything "extra" that i put in as well

EDIT: i'll repost later to let you all know if there are any changes
Last Edit: July 30, 2009, 08:02:44 am by Setsitaru

BC

Re: Seriously Need help (character can cancel out of move)
#19  July 30, 2009, 03:23:21 pm
  • ****
    • UK
    • www.mugenevolution.co.uk/Forum
Cyanide is right, i shouldn't have overlooked what was ACTUALLY causing it.

setsitaru:

even though the move is state 220, by going through your .cmd file i came to this changestate and removed the movecontact trigger and all was working.
(unsure why its causing a problem as the problem is visible without using jumping hard punch)
;Overhead Slam
[State -1, Overhead Slam]
type = ChangeState
value = 620
triggerall = command = "z"
trigger1 = statetype = A
trigger1 = ctrl
trigger2 = movecontact <<<< this line is conflicting, by removing it the move works as normal
trigger3 = stateno = 1350 ;Air blocking



EDIT> actually you dont need to do that, just make statetype=A a triggerall.
click the image to join my forum ;)
Last Edit: July 30, 2009, 03:27:09 pm by BC
Re: Seriously Need help (character can cancel out of move)
#20  July 31, 2009, 03:38:21 am
i applied this to the code and yes, it does work BC. now i can finally get back to work  :sugoi:
Re: Seriously Need help (character can cancel out of move)
#21  July 31, 2009, 09:16:01 am
  • ******
  • Legendary XIII
  • I am the eye of the storm to come!
    • New Zealand
    • network.mugenguild.com/cyanide/
I forget what the default buffer.time is for normal buttons but obviously when your HP hits the "z" command is still in the system and triggers the move based on that shitty trigger. You realise that movecontact on it's own is a bad plan right? I mean, you can do that kick over and over and over until you land if it hits once.


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.
Re: Seriously Need help (character can cancel out of move)
#22  July 31, 2009, 11:16:33 am
yes, i do realize this and have since removed that trigger, thanks for the heads up though Cyanide