YesNoOk
avatar

trouble coding (Read 1012 times)

Started by Pessimus-Prime, January 05, 2009, 06:07:04 am
Share this topic:
trouble coding
#1  January 05, 2009, 06:07:04 am
  • avatar
  • **
i am trying to code a new move,a high kick for kfm but when i go into mugen and pick kfm i get this message:

Error Message:
Error in[statedef 241]
Error in kfm.cns
character needs to be updated see docs/incompt*.txt
Error in loading chars/editkfm/editkfm4.def
Error while precaching
Error in [staedef 241]
Error in kfm.cns
character needs to be updated

what should i do








go ahead and run!!! there's nowwhere in the world you can hide when it's my world!!
Re: trouble coding
#2  January 05, 2009, 06:16:26 am
  • ******
  • I hang out tough. I'm a real boss.
    • USA
    • litotichues.com/
the error message is exactly what it says, either post the state, or try and figure it out for yourself.
Re: trouble coding
#3  January 05, 2009, 08:26:54 am
  • ******
  • Legendary XIII
  • I am the eye of the storm to come!
    • New Zealand
    • network.mugenguild.com/cyanide/
Quote
Error in [staedef 241]
I trust that's you making a typo here and not a typo you've made in the state?


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: trouble coding
#4  January 05, 2009, 11:35:02 pm
  • avatar
  • **
this is the code i used to code the kick

; high kick
;cns difficulty: easy
[Statedef 241]
type = S
movetype= A
physics = S
juggle = 20
poweradd = 10
ctrl = 0
velset 0,0
anim = 241
sprpriority = 2

[state 241,1]
type = Playsnd
trigger1 = Time = 3
value = 0,1

[state 241,2]
type = Hitdef
trigger1 Time = 0
attr = S, NA
animtype = Hard
damage = 200
guardflag = MA
pausetime = 13,13
sparkno = 2
sparkxy -10, -100
hitsound = 5,2
guardsound = 6,0
ground.type = high
ground.slidetime = 30
ground.hittime = 30
ground.velocity= -8
air.velocity = -2.2, -3.2

[State 241,3]
type = PosAdd
trigger = AnimElem = 3
x = 13

[state 241, 4]

type = Changestate
trigger1 =AnimTime = 0
value = 0
ctrl = 1

is 241 not a valid state or something please help now that you have the state coding
go ahead and run!!! there's nowwhere in the world you can hide when it's my world!!
Re: trouble coding
#5  January 05, 2009, 11:45:03 pm
  • ******
  • [E]
    • Mexico
velset = 0,0
Re: trouble coding
#6  January 06, 2009, 12:09:08 am
  • avatar
  • **
still doesen't work but i get a new error message saying "error in high"
go ahead and run!!! there's nowwhere in the world you can hide when it's my world!!
Re: trouble coding
#7  January 06, 2009, 12:21:40 am
  • avatar
  • **
it still dosen't work here is the new code for my new move can anyone help

;-------------------------------------------------------------------------
; high kick
;cns difficulty: easy
[Statedef 241]
type = S
movetype = A
physics = S
juggle = 20
poweradd = 10
ctrl = 0
velset = 0,0
anim = 241
sprpriority = 2

[State 241,1]
type = Playsnd
trigger1 = Time = 3
value = 0,1

[State 241,2]
type = Hitdef
trigger1 = Time = 0
attr = S, NA
animtype = Hard
damage = 200
guardflag = MA
pausetime = 13,13
sparkno = 2
sparkxy = -10, -100
hitsound = 5,2
guardsound = 6,0
ground.type = high
ground.slidetime = 30
ground.hittime = 30
ground.velocity = -8
air.velocity = -2.2, -3.2

[State 241,3]
type = PosAdd
trigger1 = AnimElem = 3
x = 13

[State 241, 4]
type = Changestate
trigger1 = AnimTime = 0
value = 0
ctrl = 1

the new error message says error in [state
go ahead and run!!! there's nowwhere in the world you can hide when it's my world!!
Last Edit: January 06, 2009, 12:25:49 am by Pessimus-Prime
Re: trouble coding
#8  January 06, 2009, 10:57:56 am
  • ******
  • Legendary XIII
  • I am the eye of the storm to come!
    • New Zealand
    • network.mugenguild.com/cyanide/
Look these error messages are TELLING you where the problem is.

If it says error in [state

Perhaps you should look through the cns for where you've typed [state without a number or closing off the brackets. It might not be the same state you've previously had problems with.


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: trouble coding
#9  January 06, 2009, 07:09:08 pm
  • **
I copied your code into the default kfm.cns and its causing no errors at all. The error has got to be somewhere else. What error message do you get?
Latest Creation: SSBB Assist Trophies
Re: trouble coding
#10  January 06, 2009, 10:03:41 pm
  • avatar
  • **
this is the EXACT error message

Error Message:
Error in [State
Character needs to be updated. See docs/incompt*.txt
Error Loading chars/editkfm4/editkfm4.def
Error While precaching
Error in [State
Character needs to be updated. See docs/incompt*.txt
Error loading chars/editkfm4/editkfm4.def
Error While Precaching
Error in [State
Character needs to be updated See docs/incompt*.txt
Error loading chars/editkfm4/editkfm4.def
Error loading p1

this might not be a technical problem at all and if it's not i am sorry a brought you guys into this. :o
go ahead and run!!! there's nowwhere in the world you can hide when it's my world!!
Re: trouble coding
#11  January 06, 2009, 10:04:35 pm
  • ******
  • I hang out tough. I'm a real boss.
    • USA
    • litotichues.com/
:gonk:
Look these error messages are TELLING you where the problem is.

If it says error in [state

Perhaps you should look through the cns for where you've typed [state without a number or closing off the brackets. It might not be the same state you've previously had problems with.

Re: trouble coding
#12  January 06, 2009, 11:46:48 pm
  • avatar
  • **
so ok i got the move to work so thanx ;),BUT the sprites i edited don't show up and kfm disapears while doing the move, do i still have paste these sprites over a regular kfm sprite to get them to show up even though i edited them from kfm sprites
go ahead and run!!! there's nowwhere in the world you can hide when it's my world!!
Re: trouble coding
#13  January 06, 2009, 11:48:43 pm
  • ******
  • Legendary XIII
  • I am the eye of the storm to come!
    • New Zealand
    • network.mugenguild.com/cyanide/
Read the FAQ at the top of this page. It will explain everything you probably aren't doing. Read the tutorial in your mugen\docs folder as well.


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: trouble coding
#14  January 07, 2009, 12:07:11 am
  • avatar
  • **
i used gimp to edit the sprites from kfm by using the dropper and eraser tool to draw kfm's leg in different positions read the faqs and it says you need to have 256 colors and be a pcx file and it is why are my edited spirtes not showing up
go ahead and run!!! there's nowwhere in the world you can hide when it's my world!!
Re: trouble coding
#15  January 07, 2009, 12:31:56 am
  • ******
Extract the palette from the original sprite and apply it to your new sprite. Hopefully you changed the animation itself properly.
If I struggled to the end of my determination, to the end of my way of life with my followers, if the result is ruin, then this ruin is inevitable. Grieve. Shed tears. But you cannot regret.
Re: trouble coding
#16  January 07, 2009, 08:32:53 pm
  • avatar
  • **
what do you mean by changed the animation properly?
go ahead and run!!! there's nowwhere in the world you can hide when it's my world!!
Re: trouble coding
#17  January 07, 2009, 10:44:48 pm
  • ******
  • Legendary XIII
  • I am the eye of the storm to come!
    • New Zealand
    • network.mugenguild.com/cyanide/
If you're asking that question you probably didn't.

This is in the FAQ as well. Each move needs an animation created for it and the animation must have sprites from the sff referenced and given a display time. Display times of 0 will cause an invisible sprite.


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: trouble coding
#18  January 22, 2009, 10:16:57 pm
  • avatar
  • **
sorry a haven't been here for a few weeks. the display time on each spirte is 10 ticks and edited the spirtes from a kfm sprite but the sprites don't show up is the pallete not the right, should i paste it over a kfm sprite, what should i do to make the sprites show up.
go ahead and run!!! there's nowwhere in the world you can hide when it's my world!!
Re: trouble coding
#19  January 25, 2009, 11:36:10 pm
  • avatar
  • **
my spirtes are still not apearing in mugen, i know the problem is with the palette because when i click shared palette a black box that is sometimes fuzzy or has red lines though it apears below the sprite, edited it using gimp by erasing kfm's leg and redrawing it into a different position in gimp using the dropper tool to make it the same color as kfm's other leg
is there any thing a do to these sprites to make them compatable or do i have to redo them based on a mistake. why aren't the palettes working is it something to do with gimp?
go ahead and run!!! there's nowwhere in the world you can hide when it's my world!!