YesNoOk
avatar

Special Intro Error between Jmorphan's Chun-Li and rei's Vega(Claw) (Read 606 times)

Started by ApolloGrimoire, August 10, 2017, 11:03:11 pm
Share this topic:
Special Intro Error between Jmorphan's Chun-Li and rei's Vega(Claw)
#1  August 10, 2017, 11:03:11 pm
  • avatar
  • **
    • UK
I coded a special intro between Chun-Li and Vega(Claw).

I got it to work but for some reason I keep getting this error show here. It creates a 0 anmation of Vega

Spoiler, click to toggle visibilty

Spoiler, click to toggle visibilty

I'm using rei's Vega with the groove patch but here's the thing: There is no 10199 state in any of the cns files.
Insert signature here
Re: Special Intro Error between Jmorphan's Chun-Li and rei's Vega(Claw)
#2  August 10, 2017, 11:05:39 pm
  • ****
  • Niigasan
you have to code the state in yourself I'm assuming since it doesn't exist
Re: Special Intro Error between Jmorphan's Chun-Li and rei's Vega(Claw)
#3  August 10, 2017, 11:07:41 pm
  • avatar
  • **
    • UK
The code's there for both of them.

;Chun-Li Intro vs Vega
[StateDef 10192]
type = S
physics = S
anim = 10192

[State 196, Assert: Intro]
type = AssertSpecial
trigger1 = 1
flag = Intro
flag2 = NoMusic
flag3 = nobardisplay
ignorehitpause = 1

[State 196, Voice]
type = PlaySnd
trigger1 = AnimElem = 4
value = 10192,0
channel = 0

[State 196, Voice]
type = PlaySnd
trigger1 = AnimElem = 18
value = 10192,1
channel = 0

[State 196, End]
type = ChangeState
trigger1 = !AnimTime
value = 0

;~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
;;Vega intro vs Chun-Li
[Statedef 199]
type = S
movetype = I
velset = 0,0
ctrl = 0
anim = 199

[State 192]
type = varset
trigger1 = time=0
var(15)=1

[State 190,1]
type = AssertSpecial
trigger1 = 1
flag = Intro
flag2 = NoMusic
flag3 = nobardisplay
ignorehitpause = 1

[State 196, Voice]
type = PlaySnd
trigger1 = AnimElemTime(27) = 60
value = 199,0
channel = 0

[State 196, Voice]
type = PlaySnd
trigger1 = AnimElemTime(27) = 360
value = 199,1
channel = 0

[State 190,Exit]
type = ChangeState
trigger1 = AnimTime = 0
value = 0

Though Chun-Li's is working as is Vega's, I've got no clue where this state is coming from.
Insert signature here
Re: Special Intro Error between Jmorphan's Chun-Li and rei's Vega(Claw)
#4  August 10, 2017, 11:22:31 pm
  • ****
  • Niigasan
what I do when I see a invalid state I cant find is type in the state with the find/replace text and look through all the cns's and the command until I find it, try that.
Re: Special Intro Error between Jmorphan's Chun-Li and rei's Vega(Claw)
#5  August 10, 2017, 11:33:29 pm
  • avatar
  • **
    • UK
I did that too and found nothing.

What I did was modify state 190 since it was the intro and initialise state and created state 5900

;-------------------------------------------------------------
;INITIALIZE
[Statedef 5900]
type = S

[State 5900, Varreset]
type = varrangeset
trigger1 = !roundsexisted
value = 0

[State 5900, Varreset]
type = varrangeset
trigger1 = !roundsexisted
fvalue = 0

[State 5900, 3] ;Change palette
type = remappal
trigger1 = 1
source = 1,1
dest = 1,palno

[State 5900, Intro vs Chun-Li]
type = ChangeState
triggerall = NumEnemy
triggerall = !RoundsExisted && !(Enemy,RoundsExisted)
triggerall = !(TeamMode = Simul) && !(Enemy,TeamMode = Simul)
trigger1 = Enemy, Name = "Chun-Li" && enemy,authorname = "Jmorphman"
value = 199

[State 5900, Turns Intro]
type = ChangeState
trigger1 = TeamMode = Turns
trigger1 = !RoundsExisted && RoundNo >= 2
value = 6900

[State 5900, Intro Decider]
type = ChangeState
trigger1 = RoundNo = 1
value = 190

[State 5900, End]
type = ChangeState
trigger1 = 1
value = 0

Now it can't find the special intro.

I'm out of ideas.
Insert signature here
Re: Special Intro Error between Jmorphan's Chun-Li and rei's Vega(Claw)
#6  August 10, 2017, 11:38:42 pm
  • ****
  • Niigasan
I suggest changing it back, did u look thru the animations for that state? that's strange man
Re: Special Intro Error between Jmorphan's Chun-Li and rei's Vega(Claw)
#7  August 12, 2017, 10:59:21 am
  • *****
  • Shame on you!
    • USA
So you have chun li in statedef 10192 with anim 10192.
Claw is in statedef 10000 and cant find animation 10192.

Your Claw/Vega needs to be put into statedef 199 if I'm reading things right.
Show both character's statedef 190/intro decider states.

And I hope that those two states were copy/pasted from the two characters, and not just Chun Li?
vVv Ryuko718 Updated 10/31/22 vVv