YesNoOk
avatar

New problem with Power Charge (Read 1472 times)

Started by YungBlaze, March 06, 2011, 02:10:42 am
Share this topic:
New problem with Power Charge
#1  March 06, 2011, 02:10:42 am
  • avatar
  • *
  • Im a spriter learning how to make mugen characters
New:
im having trouble making the ground shake when he chargeing i got it to work with all my projectile moves,  i tryed to add it to  the power charge and its just not working
heres the code
Code:
;Power Charge
[Statedef 6010]
type = S
movetype = I
physics =  S
ctrl = 0
anim = 6010
sprpriority = 0

[State 6010, 1]
type = PowerAdd
trigger1 = (time%3)= 0
value = 10+ceil(time/20)

[State 6010, 2]
type = changestate
trigger1 = Command != "holddown" && Command != "hold_z"
trigger2 = power = PowerMax
value =  6011

[State 6010, EnvShake]
type = EnvShake
trigger1 = Command != "holddown" && Command != "hold_z"
time = 30
freq = 60
ampl = -4
phase = 90


;finsh charge
[Statedef 6011]
type = s
movetype = I
physics = s
anim = 6011
sprpriority = 2


[State 6011, 1]
type = changestate
trigger1 = animtime = 0
value = 0
ctrl = 1

OLD:
i followed this This tutorial www.youtube.com/watch?v=fW1ck480WEI i looked over it 3 to 4 time and everything looks right what did i do wrong.
This is the error i got

Code:
;Power Charge
[StateDef 6010]
type = S
movetype= i
physics = S
ctrl = 0
anim = 6010
sprpriority = 2

[StateDef 6010, 1]
type = PowerAdd
trigger1 = (time%3)
value = 10+ceil(time/20)

[State 6010, 2]
type = Explod
trigger1 = !Time
anim = 6004
ID = 6004
pos = 0,0
postype = p1
facing = 1
vfacing = 1
bindtime = 1
removetime = -2
scale = 1,1
sprpriority = 3
removeongethit = 0

[State 6010, 3]
type = changestate
trigger1 = Comand != "holdx" && Command != "holda"
trigger2 = power = PowerMax
value =  6011

;finsh charge
[StateDef 6010]
type - s
movetype = I
physics = s
anim = 6010
sprpriority = 2

[StateDef 6010, 1]
type = removeexplod
trigger1 = !time
id = 6004

[StateDef 6010, 2]
type = changestate
trigger1 = animtime = 0
value = 0
ctrl = 1
Last Edit: March 08, 2011, 04:32:03 am by YungBlaze
Re: Power Charge
#2  March 06, 2011, 02:15:01 am
  • avatar
  • ****
movetype should be I not i

type - s
should be type=s

fix those then see if you get an error in StateDef 6010, 1

2OS

Re: Power Charge
#3  March 06, 2011, 02:21:47 am
  • ****
  • Ich schicke dich zur HOELLE ! ¡ ! ¡
    • Egypt
    • deuceovspadez.webs.com/


[ 052012 ] Inazumachi 181/256  /  deviantART   /  2OS Grafphicsxz  Dead Anims ( Orochi/Mizuchi )  /  608's FX Volume 3
Re: Power Charge
#4  March 06, 2011, 02:23:08 am
  • avatar
  • *
  • Im a spriter learning how to make mugen characters
okay i edited it and i get the same error, what now? or did i not misses up again
Code:
;Power Charge
[StateDef 6010]
type = s
movetype= I
physics =  S
ctrl = 0
anim = 6010
sprpriority = 2

[StateDef 6010, 1]
type = PowerAdd
trigger1 = (time%3)
value = 10+ceil(time/20)

[State 6010, 2]
type = Explod
trigger1 = !Time
anim = 6004
ID = 6004
pos = 0,0
postype = p1
facing = 1
vfacing = 1
bindtime = 1
removetime = -2
scale = 1,1
sprpriority = 3
removeongethit = 0

[State 6010, 3]
type = changestate
trigger1 = Comand != "holdx" && Command != "holda"
trigger2 = power = PowerMax
value =  6011

;finsh charge
[StateDef 6011]
type = s
movetype = I
physics = s
anim = 6011
sprpriority = 2

[StateDef 6011, 1]
type = removeexplod
trigger1 = !time
id = 6004

[StateDef 6011, 2]
type = changestate
trigger1 = animtime = 0
value = 0
ctrl = 1
Re: Power Charge
#5  March 06, 2011, 03:19:40 am
  • avatar
  • ****
Type=S not s
I don't see anything else throwing an error.
Re: Power Charge
#6  March 06, 2011, 03:26:53 am
  • ******
  • Legendary XIII
  • I am the eye of the storm to come!
    • New Zealand
    • network.mugenguild.com/cyanide/
trigger1 = (time%3)

It's that. You need an = 0 on the end of it or something.

And in most cases, Case is not important. The only times i have found it makes a difference is in p2dist where it's an expression. Using p2dist x broke, using p2dist X did not. And with command strings, you have to match case there 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.

2OS

Re: Power Charge
#7  March 06, 2011, 03:30:06 am
  • ****
  • Ich schicke dich zur HOELLE ! ¡ ! ¡
    • Egypt
    • deuceovspadez.webs.com/
I should have been more abundant

Casing DOES NOT EVER MATTER


As for your error


[StateDef 6010, 1]
type = PowerAdd
trigger1 = (time%3)
value = 10+ceil(time/20)

[StateDef 6010, 1]
type = removeexplod
trigger1 = !time
id = 6004

[StateDef 6010, 2]
type = changestate
trigger1 = animtime = 0
value = 0
ctrl = 1


Get rid of ^ those please


[ 052012 ] Inazumachi 181/256  /  deviantART   /  2OS Grafphicsxz  Dead Anims ( Orochi/Mizuchi )  /  608's FX Volume 3
Re: Power Charge
#8  March 06, 2011, 03:38:41 am
  • avatar
  • ****
I didn't realize he had def everywhere. I was only looking at statedef 610 because that where the error was :P

I kept thinking something was wrong with his formatting but ignored it thinking those were separate states.

Casing matters in the CMD so I just assumed. I never use lowercase letters in the CNS.
Re: Power Charge
#9  March 06, 2011, 04:02:13 am
  • avatar
  • *
  • Im a spriter learning how to make mugen characters
edited code
Code:
[State 6010, 1]
type = PowerAdd
trigger1 = (time%3)= 0
value = 10+ceil(time/20)

[State 6010, 2]
type = Explod
trigger1 = !Time
anim = 6004
ID = 6004
pos = 0,0
postype = p1
facing = 1
vfacing = 1
bindtime = 1
removetime = -2
scale = 1,1
sprpriority = 3
removeongethit = 0

[State 6010, 3]
type = changestate
trigger1 = Comand != "holdx" && Command != "holda"
trigger2 = power = PowerMax
value =  6011

;finsh charge
[Statedef 6011]
type = s
movetype = I
physics = s
anim = 6011
sprpriority = 2

[State 6011, 1]
type = removeexplod
trigger1 = !time
id = 6004

[State 6011, 2]
type = changestate
trigger1 = animtime = 0
value = 0
ctrl = 1
new error
Code:
Error message: Invalid trigger: Comand
Error parsing trigger1, 1
Error parsing [State 6010, 3]
Error in [Statedef 6010]
Error in Taitto.cns
Character mugenversion is older than this version of M.U.G.E.N.
Error loading chars/ffchartest/ffchartest.def
Error loading p1

Library error message: Died parsing Comand != "holdx" && Command != "holda"

Re: Power Charge
#10  March 06, 2011, 04:04:24 am
  • avatar
  • ****
Comand  should be command.

You're having all these spelling and syntax errors. You need to look over your code.
I'd hate to see what would happen if you were working in the CMD.
Re: Power Charge
#11  March 06, 2011, 05:11:46 am
  • avatar
  • *
  • Im a spriter learning how to make mugen characters
this is my first character  i never knew 1 thing could just corrupt the thing now that i know ill be sure to be more careful.
i was working the the command spot too, i always mark thing off when i add

New error code
Code:
Error message: Need at least 1 trigger
Error parsing [State -1, Power Charge]
Error in [Statedef -1]
Error in Taitto.cmd
Error loading chars/ffchartest/ffchartest.def
Error loading p1

Code:
 [Command]
name = "holdx"
command = /x
time = 1

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

Code:
;power Charge
[State -1, Power Charge]
type = ChangeState
value = 6010
triggerall = conrl && power != PowerMax && StateType != A
Tigger1 = command = "holda" command = "holdx"

What do i do from here
Re: Power Charge
#12  March 06, 2011, 05:55:36 am
  • ******
  • Legendary XIII
  • I am the eye of the storm to come!
    • New Zealand
    • network.mugenguild.com/cyanide/
conrl
Tigger1 = command = "holda" (you need something here) command = "holdx"

Every time you type something, check it, these are probably things you could bug test yourself, even with limited experience. Spelling errors don't help much.


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: Power Charge
#13  March 06, 2011, 06:20:23 am
  • avatar
  • ****
 ::) I was right about the cmd. If you are using FF you shouldn't be running into all those spelling errors. Are you typing stuff from scratch on notepad?
Re: Power Charge
#14  March 06, 2011, 06:25:05 am
  • avatar
  • *
  • Im a spriter learning how to make mugen characters
:D got it to work now thanks for your help everyone.

ill make sure i check  my spelling, everything i know is what i learn on youtube, is there any place around here or anywhere else that i could learn how to code properly.
i was typing from scratch following what the guy was saying  quality  was not the best so i had to make somethings out.
Re: Power Charge
#15  March 06, 2011, 06:30:26 am
  • avatar
  • ****
Read the docs and keep talking to cyanide. Don't always type from scratch.
I used youtube in the beginning but I realized the information was limited, old and some of it was incorrect.  So I came here. Reading other people's help topics can help you get through some of your problems.
Sometimes I do that for code ideas.
Re: Power Charge
#16  March 06, 2011, 07:03:00 am
  • avatar
  • *
  • Im a spriter learning how to make mugen characters
kk cool    i guess reading other peoples stuff should help me a bit, right now i wanna learn combos anywhere you suggest i look?
Re: New problem with Power Charge
#17  March 08, 2011, 04:32:21 am
  • avatar
  • *
  • Im a spriter learning how to make mugen characters
im having trouble making the ground shake when he chargeing i got it to work with all my projectile moves,  i tryed to add it to  the power charge and its just not working
heres the code
Code:
;Power Charge
[Statedef 6010]
type = S
movetype = I
physics =  S
ctrl = 0
anim = 6010
sprpriority = 0

[State 6010, 1]
type = PowerAdd
trigger1 = (time%3)= 0
value = 10+ceil(time/20)

[State 6010, 2]
type = changestate
trigger1 = Command != "holddown" && Command != "hold_z"
trigger2 = power = PowerMax
value =  6011

[State 6010, EnvShake]
type = EnvShake
trigger1 = Command != "holddown" && Command != "hold_z"
time = 30
freq = 60
ampl = -4
phase = 90


;finsh charge
[Statedef 6011]
type = s
movetype = I
physics = s
anim = 6011
sprpriority = 2


[State 6011, 1]
type = changestate
trigger1 = animtime = 0
value = 0
ctrl = 1
Re: New problem with Power Charge
#18  March 08, 2011, 04:36:32 am
  • avatar
  • ****
Does it just trigger once or...what is actually happening?
Re: New problem with Power Charge
#19  March 08, 2011, 04:48:49 am
  • avatar
  • *
  • Im a spriter learning how to make mugen characters
im tryin to make it when when your in power change mode it shakes,  when you let go it stops

2OS

Re: New problem with Power Charge
#20  March 08, 2011, 05:07:47 am
  • ****
  • Ich schicke dich zur HOELLE ! ¡ ! ¡
    • Egypt
    • deuceovspadez.webs.com/
[State 6010, EnvShake]
type = EnvShake
trigger1 = Command != "holddown" && Command != "hold_z"&&timemod=10,1
time = 10

freq = 60
ampl = -4
phase = 90


[ 052012 ] Inazumachi 181/256  /  deviantART   /  2OS Grafphicsxz  Dead Anims ( Orochi/Mizuchi )  /  608's FX Volume 3
Re: New problem with Power Charge
#21  March 08, 2011, 05:27:05 am
  • avatar
  • *
  • Im a spriter learning how to make mugen characters
i added and still doesnt shake do i have to add to the cmd too?


Code:
;Power Charge
[State -1, Power Charge]
type = ChangeState
value = 6010
triggerall = ctrl && power != PowerMax && StateType != A
trigger1 = command = "holddown" && command = "hold_z"

2OS

Re: New problem with Power Charge
#22  March 08, 2011, 05:37:23 am
  • ****
  • Ich schicke dich zur HOELLE ! ¡ ! ¡
    • Egypt
    • deuceovspadez.webs.com/
Yea I just realized your shake trigger is the same as your changestate trigger [ Fuck my patience lately ]


;Power Charge
[Statedef 6010]
type = S
movetype = I
physics =  S
ctrl = 0
anim = 6010
sprpriority = 0

[State 6010, 0]
type = EnvShake
trigger1=time>=0&&timemod=10,1
time=10
freq = 60
ampl = -4
phase = 90

[State 6010, 1]
type = PowerAdd
trigger1 = (time%3)= 0
value = 10+ceil(time/20)

[State 6010, 2]
type = ChangeState
trigger1 = Command != "holddown" && Command != "hold_z"
trigger2 = power = PowerMax
value =  6011


;Finish Charge
[Statedef 6011]
type = S
movetype = I
physics = S
anim = 6011
ctrl=0
sprpriority = 2

[State 6011, 0]
type = ChangeState
trigger1 = animtime = 0
value = 0
ctrl = 1


Try this


[ 052012 ] Inazumachi 181/256  /  deviantART   /  2OS Grafphicsxz  Dead Anims ( Orochi/Mizuchi )  /  608's FX Volume 3
Re: New problem with Power Charge
#23  March 08, 2011, 05:42:47 am
  • avatar
  • *
  • Im a spriter learning how to make mugen characters
bingo, it wokrs now thank alot :) .

i have one more question is it possible to put after image on a spin kick if so how would i do it?
Re: New problem with Power Charge
#24  March 08, 2011, 05:54:00 am
  • avatar
  • ****
Re: New problem with Power Charge
#25  March 08, 2011, 06:13:14 am
  • avatar
  • *
  • Im a spriter learning how to make mugen characters
hmm, is there any preexisting cod  that i can learn from? im kinda lost right now

2OS

Re: New problem with Power Charge
#26  March 08, 2011, 06:27:04 am
  • ****
  • Ich schicke dich zur HOELLE ! ¡ ! ¡
    • Egypt
    • deuceovspadez.webs.com/
Some of these lines should be self explan


[State 2OS]
type=afterimage
trigger1=time=1
time=99999
length=7
palbright=0,0,0  ;;  Red,Green,Blue
palcontrast=255,255,255  ;;  Red,Green,Blue
paladd=0,0,0  ;;  Red,Green,Blue
palmul=0.9,0.9,0.9  ;;  Red,Green,Blue
framegap=1
timegap=3
color=256  ;;  0 is black and white
trans=add


[ 052012 ] Inazumachi 181/256  /  deviantART   /  2OS Grafphicsxz  Dead Anims ( Orochi/Mizuchi )  /  608's FX Volume 3
Re: New problem with Power Charge
#27  March 08, 2011, 06:43:41 am
  • avatar
  • *
  • Im a spriter learning how to make mugen characters
ohhhh so thats how it works im kinda a visual learner. i get it now thanks again bro
Re: New problem with Power Charge
#28  March 08, 2011, 06:46:42 am
  • ******
  • Legendary XIII
  • I am the eye of the storm to come!
    • New Zealand
    • network.mugenguild.com/cyanide/
And if you don't get the right values or look, just mess with it, you'll get there eventually.

Quote
Yea I just realized your shake trigger is the same as your changestate trigger [ Fuck my patience lately ]
Yep this happens, makes it easier to miss stupid shit which is pretty annoying.


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: New problem with Power Charge
#29  March 08, 2011, 07:01:55 am
  • avatar
  • ****
You would have gotten the same code as 2OS if you are using FF and click on afterimage on the right.
 :???: Why go through so much trouble by using notepad.
Re: New problem with Power Charge
#30  March 08, 2011, 09:03:12 pm
  • avatar
  • *
  • Im a spriter learning how to make mugen characters
i tried it, it didn't do any thing :/, when i put in that code it work idk i must have put something in wrong but i get it now.