YesNoOk
avatar

Error Message (Read 1323 times)

Started by MUGENforever, February 09, 2008, 05:33:27 am
Share this topic:
Error Message
#1  February 09, 2008, 05:33:27 am
  • avatar
  • ***
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.
Last Edit: February 09, 2008, 05:40:44 am by MUGENforever
Re: Error Message
#2  February 09, 2008, 05:36:50 am
  • ******
    • Canada
    • Skype - templovesu
What's the error?

Nvm, you forgot this line:

[mcode]stcommon = common1.cns[/mcode] 

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

[mcode]sound   =    ;Sound[/mcode]

make it

[mcode];sound  =[/mcode]

Unless you have a SND for him already.
Re: Error Message
#3  February 09, 2008, 05:49:13 am
  • avatar
  • ***
Thanks, I did both of those, the error however won't go away, any other suggestions?
Re: Error Message
#4  February 09, 2008, 05:54:59 am
  • ****
  • Humanity can be so much more
    • Jamaica
    • Skype - gouken1987
    • www.mugenguild.com/mastergouken/

  • Online
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.
Re: Error Message
#5  February 09, 2008, 06:04:18 am
  • avatar
  • ***
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?
Re: Error Message
#6  February 09, 2008, 06:11:06 am
  • ****
  • Humanity can be so much more
    • Jamaica
    • Skype - gouken1987
    • www.mugenguild.com/mastergouken/

  • Online
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.
Re: Error Message
#7  February 09, 2008, 06:24:39 am
  • avatar
  • ***
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?
Re: Error Message
#8  February 09, 2008, 06:26:24 am
  • ******
    • Canada
    • Skype - templovesu
Are you working with blank everything? o_O

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

Re: Error Message
#9  February 09, 2008, 06:31:01 am
  • avatar
  • ***
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]
Re: Error Message
#10  February 09, 2008, 06:35:20 am
  • ******
    • Canada
    • Skype - templovesu
You don't have

[mcode][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[/mcode]

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

[mcode][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[/mcode]
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
Re: Error Message
#11  February 09, 2008, 06:48:01 am
  • avatar
  • ***
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 :(
Re: Error Message
#12  February 09, 2008, 06:49:02 am
  • ******
  • Legendary XIII
  • I am the eye of the storm to come!
    • New Zealand
    • network.mugenguild.com/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.
Re: Error Message
#13  February 09, 2008, 06:52:41 am
  • ******
    • Canada
    • Skype - templovesu
Add the basic ones:

[mcode];---------------------------------------------------------------------------
;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[/mcode]

You don't need animations there, but you should get to that sooner than later. All under [State -1] in the CMD
Re: Error Message
#14  February 09, 2008, 06:59:05 am
  • avatar
  • ***
Thank you so much, it works now, thank yoooooooou.