YesNoOk
avatar

Help! Error in char. (Read 1409 times)

Started by DeCeballos, February 15, 2021, 02:10:29 PM
Share this topic:
Help! Error in char.
#1  February 15, 2021, 02:10:29 PM
  • *
    • Spain


  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
Re: Help! Error in char.
#2  February 18, 2021, 10:05:10 AM
  • ***
  • Wondering Mugen Ronin
  • Let's all take a chill pill.
    • USA
    • sites.google.com/view/kanbeiscreations/home

  • Online
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.
Re: Help! Error in char.
#3  February 18, 2021, 02:42:35 PM
  • *
    • Spain
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

DS

Re: Help! Error in char.
#4  February 18, 2021, 10:51:19 PM
  • ****
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?
Re: Help! Error in char.
#5  February 19, 2021, 10:17:44 AM
  • *
    • Spain
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

DS

Re: Help! Error in char.
#6  February 19, 2021, 06:08:16 PM
  • ****
Ok, I can't see anything weird in the state. So, does the character have animation 420?
Re: Help! Error in char.
#7  February 19, 2021, 06:28:32 PM
  • ***
  • Wondering Mugen Ronin
  • Let's all take a chill pill.
    • USA
    • sites.google.com/view/kanbeiscreations/home

  • Online
Do you have a code like this for 420?

usually at the top
Code:
[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
Re: Help! Error in char.
#8  February 19, 2021, 10:30:18 PM
  • *****
  • Resident Tosspot
  • Pftheh
    • UK
    • plasmoidthunder.neocities.org
Yeah it means the animation doesn't exist.

Code:
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.
3DS FC: 0516 - 7483 - 3564
Oh, I want a diagram. I fucking love diagrams.
Re: Help! Error in char.
#9  February 20, 2021, 01:31:54 AM
  • ***
  • Wondering Mugen Ronin
  • Let's all take a chill pill.
    • USA
    • sites.google.com/view/kanbeiscreations/home

  • Online
Thank you for correcting that for me.
Re: Help! Error in char.
#10  February 20, 2021, 05:47:29 PM
  • *
    • Spain
So, the problem is not there?

DS

Re: Help! Error in char.
#11  February 20, 2021, 06:41:10 PM
  • ****
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.