Error Message

Started by MUGENforever, February 09, 2008, 05:33:27 AM

Previous topic - Next topic

MUGENforever

This is my first real shot at making a character, and I get this error message when I try to use him.


I Don't know why the picture isn't working so here it is written out.

Error message:
Error loading char/ryu/ryu.def
Error while precaching
Error loading char/ryu/ryu.def
Error while precaching
Error loading char/ryu/ryu.def
Error loading p1

My ryu.def file looks like this

; Player information
[Info]
name = "Ryu"
displayname = "Ryu"
author = "Me"
pal.defaults = 12

; Files for the player
[Files]
cmd     = ryu.cmd   ;Command set
cns     = ryu.cns   ;Constants
sprite  = ryu.sff   ;Sprite
anim    = ryu.air   ;Animation
sound   =    ;Sound
pal1    = ryu.act
pal2    = ryu2.act
pal3    = ryu3.act
pal4    = ryu4.act
pal5    = ryu5.act
pal6    = ryu6.act
pal7    = ryu7.act
pal8    = ryu8.act
pal9    = ryu9.act
pal10   = ryu10.act
pal11   = ryu11.act
pal12   = ryu12.act
;intro.storyboard =
;ending.storyboard =

If you need to see or know anything else please let me know, I am using windows vista at this point.

TempesT

#1
What's the error?

Nvm, you forgot this line:

stcommon = common1.cns 

And I'm not sure, but I think you have to null out the

sound   =    ;Sound

make it

;sound  =

Unless you have a SND for him already.
you can't mixup a blind man, and you can't out think a brick ~skisonic
Street fighting is all about analysis, prediction, and reaction. That's it.


MUGENforever

Thanks, I did both of those, the error however won't go away, any other suggestions?

Makkah

Try changing pal.defaults to 6,3,4,2. *shrugs*

If that doesn't work check to see that the files being referred to aren't in subdirectories and that their names aren't mistyped.

MUGENforever

I got it, I was missing the line

st = ryu.cns   ;States

Now I get this error:

Error Message: Need at least one statedef
Error in ryu.cns
Character needs to be updated
Error loading ryu/ryu.def
Error loading p1

Does this mean I have to give him an action other then just a walking action that has a statedef such as a taunt or punch before i can use him?

Makkah

That usually means you have a blank state. I.E

[Statedef ####]
anim = blah
ctrl = 1
...etc

and nothing underneath.

Understand? Basically you've defined a state with no instructions for mugen to execute.

MUGENforever

I really appreciate the help, I didn't have any stedefs at the time when I got that last message, so I added one for intro and now I get this error, ugh, thanks again fo rall the help.

Error message: Can't access Movement constants
Error in ryu.cns
Character needs to be updated
Error loading ryu/ryu.def
Error loading p1

what does that even mean?

TempesT

Are you working with blank everything? o_O

Give us the contents in your cns with the mcode tags, plz.

you can't mixup a blind man, and you can't out think a brick ~skisonic
Street fighting is all about analysis, prediction, and reaction. That's it.


MUGENforever

This is my CNS, I don't know what mcode is exactly.  I am working with blank everything, except sprites, I want to learn to make a character from scratch because I feel It will help me best.

[Data]
life = 1000
attack = 100
defence = 100
fall.defence_up = 60
liedown.time = 15
airjuggle = 25
sparkno = 0
guard.sparkno = S9300
KO.echo = 0
volume = 255
IntPersistIndex = 30

[Size]
xscale = 1
yscale = 1
ground.back = 15
ground.front = 17
air.back = 13
air.front = 13
z.width = 3
height = 60
attack.width = 4,4
attack.dist = 160
proj.attack.dist = 90
proj.doscale = 0
head.pos = -14, -87
mid.pos = -5, -60

[Velocity]
walk.fwd  = 3.3
walk.back = -3
run.fwd  = 5.6, 0
run.back = -5.5,-4.8
jump.neu = 0,-9.5
jump.back = -3.4
jump.fwd = 3.4
runjump.back = -3.55,-9.1
runjump.fwd = 5,-9.1
airjump.neu = 0,-9.1
airjump.back = -3.55,-9.1
airjump.fwd = 3.5,-9.1

[Statedef 190]
type = S
ctrl = 0
anim = 0
velset = 0,0,0

[State 192, 2]
type = ChangeState
trigger1 = AnimTime = -10
value = 0[Movement]
airjump.num = 0
airjump.height = 40
yaccel = .45
stand.friction = .85
crouch.friction = .82



This is my cmd

[Remap]
x = x
y = y
z = z
a = a
b = b
c = c
s = s

[Defaults]
command.time = 15
command.buffer.time = 1

[Command]
name = "a"
command = a
time = 1

[Command]
name = "b"
command = b
time = 1

[Command]
name = "c"
command = c
time = 1

[Command]
name = "x"
command = x
time = 1

[Command]
name = "y"
command = y
time = 1

[Command]
name = "z"
command = z
time = 1

[Command]
name = "start"
command = s
time = 1

;-| Double Tap |-----------------------------------------------------------
[Command]
name = "FF"     ;Required (do not remove)
command = F, F
time = 10

[Command]
name = "BB"     ;Required (do not remove)
command = B, B
time = 10

;-| 2/3 Button Combination |-----------------------------------------------
[Command]
name = "recovery";Required (do not remove)
command = x+y
time = 1

;-| Hold Dir |--------------------------------------------------------------
[Command]
name = "holdfwd";Required (do not remove)
command = /$F
time = 1

[Command]
name = "holdback";Required (do not remove)
command = /$B
time = 1

[Command]
name = "holdup" ;Required (do not remove)
command = /$U
time = 1

[Command]
name = "holddown";Required (do not remove)
command = /$D
time = 1

[Statedef -1]

TempesT

You don't have

[Movement]
airjump.num = 0      ;Number of air jumps allowed (opt)
airjump.height = 35  ;Minimum distance from ground before you can air jump (opt)
yaccel = .44         ;Vertical acceleration
stand.friction = .82  ;Friction coefficient when standing
crouch.friction = .82 ;Friction coefficient when crouching

At the end of the constants
Your intro isn't coded correctly, this is what your intro should look like

[Statedef 190]
type = s
ctrl = 0
anim = 190

[State 190, 1] ;Freeze animation until PreIntro is over
type = ChangeAnim
trigger1 = RoundState = 0
value = 190

[State 190, 2] ;Assert this until you want "round 1, fight" to begin
type = AssertSpecial
trigger1 = 1
flag = Intro

[State 190, 3]
type = ChangeState
trigger1 = AnimTime = 0
value = 0
ctrl = 0
You should also be sure that you have his stance in the AIR under State 0. I'm not entirely sure what else... if this doesn't do it, you'll have to wait for someone more experienced to waltz along
you can't mixup a blind man, and you can't out think a brick ~skisonic
Street fighting is all about analysis, prediction, and reaction. That's it.


MUGENforever

Yeah, it worked, it was the movment thing, I thought I had that, I guess I deleted at one point.

Now I get this error
Error Message: Need at leat one state controller
Error in [Statedef -1]
Error in ryu.cmd

You can see my cmd in the post above, all I want to do is see my guy walk :(

Cyanide

You've started totally from scratch? Not really the best way to go, you miss stuff.

Take an existing character and strip it down. KFM would be best, or you can DL narutorial 2 on my site and use the blank files provided. They contain nothing but important stuff and 1 example punch state.

No .sff or .act so you have to add those yourself.


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.

TempesT

Add the basic ones:

;---------------------------------------------------------------------------
;Run Fwd
[State -1, Run Fwd]
type = ChangeState
value = 100
trigger1 = command = "FF"
trigger1 = statetype = S
trigger1 = ctrl

;---------------------------------------------------------------------------
;Run Back
[State -1, Run Back]
type = ChangeState
value = 105
trigger1 = command = "BB"
trigger1 = statetype = S
trigger1 = ctrl

You don't need animations there, but you should get to that sooner than later. All under [State -1] in the CMD
you can't mixup a blind man, and you can't out think a brick ~skisonic
Street fighting is all about analysis, prediction, and reaction. That's it.


MUGENforever

Thank you so much, it works now, thank yoooooooou.