YesNoOk
avatar

Special Commands Help (Read 1215 times)

Started by ThatOneGamingDude, January 01, 2021, 06:55:32 pm
Share this topic:
Special Commands Help
#1  January 01, 2021, 06:55:32 pm
    • USA
So I'm working on Terry from Fatal Fury: First Contact, and the first Special Command I'm working on is the Power Wave, but every time I load up the game after changing everything, I get this:

Code:
Library error message: Error in clsn2 in [Begin Action 700] elem 0

Error detected.

Error in Terry.air:393
Error loading chars/ff3_0/ff3_0.def
Error loading p1

Clipboard tail:
Gameflow 9
Gameflow 10
Gameflow 11
Loading match assets...
Loading stage...
  Loading BG...OK
Stage loaded OK
  Allocating helpers...OK
Match RNG seed: 1553715735
Reset persist vars team 0
Reset persist vars team 1
Loading character chars/ff3_0/ff3_0.def...
  Loading info...Info: Terry loading in pre-1.0 compatible mode
OK
  Loading cmd command set Terry.cmd...OK
  Loading cns Terry.cns...OK
  Loading cmd state entry Terry.cmd...OK
  Loading common states common1.cns...OK
  Loading sff Terry.sff...OK
  Loading anim Terry.air...Character ff3_0.def failed to load

Here are the CMD and CNS Codes I made so we can detect what's wrong.

CMD Command:

Code:
[Command]
name = "Power_Wave"
command = ~F, DF, D, x

[Command]
name = "Power_Wave"
command = ~F, DF, D, y

CMD Trigger

Code:
[State -1, Power_Wave]
type = ChangeState
value = 700
trigger1 = command = "Power_Wave"
trigger2 = statetype = S

CNS Code

Code:
;Power Wave
[Statedef 700]
type    = S
movetype= A
physics = S
juggle  = 4
poweradd= 11
ctrl = 0
anim = 230
sprpriority = 2

[State 700, Projectile]
type = Projectile
trigger1 = AnimElem = 6
ProjID = 700
projanim = 701
projscale = 1,1
projremove = 1
projremovetime = 48
velocity = 6,0
projhits = 1
projpriority = 1
projsprpriority = 3
projedgebound = 40
projstagebound = 40

[State 700, 2]
type = ChangeState
trigger1 = AnimTime = 0
value = 1
Re: Special Commands Help
#2  January 01, 2021, 07:01:24 pm
  • *****
  • Resident Tosspot
  • Pftheh
    • UK
    • plasmoidthunder.neocities.org
The error states it's a CLSN issue, which means it's located in the .air file.

Oh, I want a diagram. I fucking love diagrams.
Re: Special Commands Help
#3  January 01, 2021, 07:21:34 pm
    • USA
Okay, I got the game to load, but now Terry is just stuck in the first frame of the attack. Can't move, can't attack, and the power meter charges like mad.
Re: Special Commands Help
#4  January 01, 2021, 07:24:22 pm
  • *****
  • Resident Tosspot
  • Pftheh
    • UK
    • plasmoidthunder.neocities.org
Does state 1 exist?

Oh, I want a diagram. I fucking love diagrams.
Re: Special Commands Help
#5  January 01, 2021, 07:37:56 pm
    • USA
Here's the CNS code to the states of Power Wave (again):

Code:
;Power Wave
[Statedef 700]
type    = S
movetype= A
physics = S
juggle  = 4
poweradd= 11
ctrl = 0
anim = 700
sprpriority = 2

[State 700, Projectile]
type = Projectile
trigger1 = time = 35
ProjID = 700
projanim = 701
projscale = 1,1
projremove = 1
projremovetime = 48
velocity = 6,0
projhits = 1
projpriority = 1
projsprpriority = 3
projedgebound = 40
projstagebound = 40

[State 700, 2]
type = ChangeState
trigger1 = AnimTime = 0
value = 1
Re: Special Commands Help
#6  January 01, 2021, 08:31:31 pm
    • USA
I found out what the problem was for the freezing was. Instead of having "triggerall" for the move to initiate, I had "trigger1" for both the state type and power. But now Terry's wave doesn't do any damage and he's stuck in an endless loop on his Power Wave attack animation. I'll get to work on that.
Re: Special Commands Help
#7  January 01, 2021, 08:44:19 pm
  • ****
    • crepa.neocities.org
Still sounds like you have done something weird in the AIR file. Did you mark "loop" in any frame of animation 700?
Re: Special Commands Help
#8  January 01, 2021, 09:48:37 pm
    • USA
No, there is no set loop, the move just plays over and over with no other movement options. Also, I found out that none of the normal attacks work anymore.
Re: Special Commands Help
#9  January 01, 2021, 10:02:06 pm
    • USA
I decided to start from scratch, as far as the CMD and CNS files are concerned, and actually learn what I'm getting into.
Re: Special Commands Help
#10  January 01, 2021, 10:53:40 pm
  • *****
  • Resident Tosspot
  • Pftheh
    • UK
    • plasmoidthunder.neocities.org
You're changing to state 1. Does state 1 exist? If it doesn't exist, the character isn't exiting state 700.

Oh, I want a diagram. I fucking love diagrams.