Help! Error in char.

Started by DeCeballos, February 15, 2021, 02:10:29 PM

Previous topic - Next topic

DeCeballos



  Hello, playing with my character I seem like this error and it closes Mugen: Any idea how to repair it?


Error detected.

Cannot find parameter: nameCannot find parameter: nameCannot find parameter: nameState machine stuck in loop (stopped after 2500 loops): 420 for Ultra Instinct Goku Z2
Check your states for infinite ChangeState loops.

Clipboard tail:
15968: Warning: Player Ultra Instinct Goku Z2 (57) in state 420: Changed to invalid action 420
15968: Warning: Player Ultra Instinct Goku Z2 (57) in state 420: Changed to invalid action 420
15968: Warning: Player Ultra Instinct Goku Z2 (57) in state 420: Changed to invalid action 420
15968: Warning: Player Ultra Instinct Goku Z2 (57) in state 420: Changed to invalid action 420
15968: Warning: Player Ultra Instinct Goku Z2 (57) in state 420: Changed to invalid action 420
15968: Warning: Player Ultra Instinct Goku Z2 (57) in state 420: Changed to invalid action 420
15968: Warning: Player Ultra Instinct Goku Z2 (57) in state 420: Changed to invalid action 420
15968: Warning: Player Ultra Instinct Goku Z2 (57) in state 420: Changed to invalid action 420
15968: Warning: Player Ultra Instinct Goku Z2 (57) in state 420: Changed to invalid action 420
15968: Warning: Player Ultra Instinct Goku Z2 (57) in state 420: Changed to invalid action 420
15968: Warning: Player Ultra Instinct Goku Z2 (57) in state 420: Changed to invalid action 420
15968: Warning: Player Ultra Instinct Goku Z2 (57) in state 420: Changed to invalid action 420
15968: Warning: Player Ultra Instinct Goku Z2 (57) in state 420: Changed to invalid action 420
15968: Warning: Player Ultra Instinct Goku Z2 (57) in state 420: Changed to invalid action 420
15968: Warning: Player Ultra Instinct Goku Z2 (57) in state 420: Changed to invalid action 420
15968: Warning: Player Ultra Instinct Goku Z2 (57) in state 420: Changed to invalid action 420
15968: Warning: Player Ultra Instinct Goku Z2 (57) in state 420: Changed to invalid action 420
15968: Warning: Player Ultra Instinct Goku Z2 (57) in state 420: Changed to invalid action 420
15968: Warning: Player Ultra Instinct Goku Z2 (57) in state 420: Changed to invalid action 420
15968: Warning: Player Ultra Instinct Goku Z2 (57) in state 420: Changed to invalid action 420

Kanbei

Looks like stateno 420 may have a bug. Can, you post the code so I can see? This is just the DebugFlood Text so it won't tell me much.

DeCeballos

Is this?


[State 420, 1]
type = PlaySnd
trigger1 = AnimElem = 5
value = 0, 2

[State 420, ToStand]
type = StateTypeSet
trigger1 = AnimElem = 4
statetype = S
physics = S

[State 420, 3]
type = HitDef
trigger1 = AnimElem = 5
trigger1 = fvar(3) = 1
attr = S, NA
;damage = 44,0
damage = ceil(ifElse(fvar(11) * 44 < 7, 7, fvar(11) * 44)), 0
hitflag = MAF
guardflag = MA
priority = 4, Hit
pausetime = 0,0
guard.pausetime = 0,0
sparkno = s7030
guard.sparkno = s7000
sparkxy = -20,-60
hitsound   = s5, 2
guardsound = S6,0
animtype = Hard
ground.type = Low
ground.slidetime = 16
ground.hittime = 16
ground.velocity = 0 ;-3
guard.velocity = 0
airguard.velocity = 0,0   
air.velocity = 0,0
airguard.cornerpush.veloff= 0
fall.recover=0
air.animtype = back
getpower= ifelse(p2movetype=H,40,210), 35
givepower = 35,35
yaccel = 0.5
ID = 1098

VictorCYBR

Uh... either you didn't post the whole state or it is missing a lot of things. More likely the former.

It is missing the StateDef, something like that:

[StateDef 420]
type = C
physics = C
moveType = A
anim = 420
ctrl = 0
[...]

and also missing a changestate in the end, which might be causing the loop. Are you sure this is the whole state?

DeCeballos

Sorry I think now

;---------------------------------------------------------------------------
;c.SP (not used)
[StateDef 420];(Removed for Uppercut)
type = C
movetype = A
physics = C
anim = 420
ctrl = 0
velset = 0,0
poweradd = 20
sprpriority = 1
juggle = 7

[State 220, snd]
type = playsnd
triggerall = var(55)=0      ;Voice=Japan
trigger1 = animelem=4 && random<500
value = 3,4+random%4
channel = 0

[State 200, 1];voice
type = PlaySnd
triggerall = var(55)=1      ;Voice=English
trigger1 = animelem=4 && random<500
value = 3,104+random%4
channel = 0

[State 420, 1]
type = PlaySnd
trigger1 = AnimElem = 5
value = 0, 2

[State 420, ToStand]
type = StateTypeSet
trigger1 = AnimElem = 4
statetype = S
physics = S

[State 420, 3]
type = HitDef
trigger1 = AnimElem = 5
trigger1 = fvar(3) = 1
attr = S, NA
;damage = 44,0
damage = ceil(ifElse(fvar(11) * 44 < 7, 7, fvar(11) * 44)), 0
hitflag = MAF
guardflag = MA
priority = 4, Hit
pausetime = 0,0
guard.pausetime = 0,0
sparkno = s7030
guard.sparkno = s7000
sparkxy = -20,-60
hitsound   = s5, 2
guardsound = S6,0
animtype = Hard
ground.type = Low
ground.slidetime = 16
ground.hittime = 16
ground.velocity = 0 ;-3
guard.velocity = 0
airguard.velocity = 0,0   
air.velocity = 0,0
airguard.cornerpush.veloff= 0
fall.recover=0
air.animtype = back
getpower= ifelse(p2movetype=H,40,210), 35
givepower = 35,35
yaccel = 0.5
ID = 1098




[State 230, 3]
type                = ChangeState
triggerall = var(43) = 1
triggerall = AnimElemTime(2) >= 1
trigger1 =  (command = "holddown") && (command = "x")
trigger2            = movecontact&&command="x"
value = 420

[State 230, 3]
type                = ChangeState
triggerall = var(43) = 1
triggerall = AnimElemTime(2) >= 1
trigger1 =  (command = "holddown") && (command = "y")
trigger2            = movecontact&&command="y"
value = 400

[State 230, 3]
type                = ChangeState
triggerall = var(43) = 1
triggerall = AnimElemTime(2) >= 1
trigger1 =  (command = "holddown") && (command = "z")
trigger2            = movecontact&&command="z"
value = 1210

[State 230, 3]
type                = ChangeState
triggerall = var(43) = 1
triggerall = AnimElemTime(2) >= 1
trigger1 =  (command = "holddown") && (command = "a")
trigger2            = movecontact&&command="a"
value = 430

[State 230, 3]
type                = ChangeState
triggerall = var(43) = 1
triggerall = AnimElemTime(2) >= 1
trigger1 =  (command = "holddown") && (command = "b")
trigger2            = movecontact&&command="b"
value = 440

[State 230, 3]
type                = ChangeState
triggerall = var(43) = 1
triggerall = AnimElemTime(2) >= 1
trigger1 =  (command = "holddown") && (command = "c")
trigger2            = movecontact&&command="c"
value = 450


[State 420, End]
type = ChangeState
trigger1 = AnimTime = 0
value = 0
ctrl = 1

VictorCYBR

Ok, I can't see anything weird in the state. So, does the character have animation 420?

Kanbei

Do you have a code like this for 420?

usually at the top

[Statedef 420]
type    = C
movetype= A
physics = C
juggle  = 6
poweradd= 25
ctrl = 0
anim = 420 <--- never remove this it will cause the animation to bug out
sprpriority = 2


PlasmoidThunder

Yeah it means the animation doesn't exist.

Quote from: Kanbei on February 19, 2021, 06:28:32 PM

anim = 420 <--- never remove this it will cause the animation to bug out

That's not strictly true, it just means it'll use the animation from the previous state; useful if you want an animation to continue between states without restarting, but obviously unrelated to the issue at hand.

Quote from: Iced on July 24, 2013, 01:25:14 AM
Oh, I want a diagram. I fucking love diagrams.

Kanbei

Thank you for correcting that for me.

DeCeballos

So, the problem is not there?

VictorCYBR

The problem is you're trying to change the character to animation 420, but it doesn't have animation 420. You need to create it or just change to a different animation.