YesNoOk
avatar

Golden Silver-Dodge Code. (Read 547 times)

Started by Bloodly, October 27, 2007, 09:41:27 pm
Share this topic:
Golden Silver-Dodge Code.
#1  October 27, 2007, 09:41:27 pm
  • avatar
  • ***
  • Foolish, but learning.
Observe the following:



This is intended to be the Dodge animation for my first character, Golden Silver.  As such, it has no collision boxes at all.

Now, the animation is there, and fine.  My problem is with coding, or so it seems.

Here's the coding I've used to this point:

---
Command Portion(Goes in '"Double Tap" section, under the standard "F, F" and "B, B".)
[Command]
name = "Dodge"
command = a, a
time = 10

---
State Portion
;Dodge
[State -1, Dodge]
type = ChangeState
value = 850
triggerall = command = "a, a"
triggerall = statetype != A
trigger1 = ctrl
---

CNS Portion

;Dodge(Now, I'll admit some of it is culled from the character file of Randy M Green, because he's got one as well.)
[Statedef 850]
type = S
movetype = I
physics = S
anim = 850
sprpriority = -1
ctrl = 0

[State 850, 1]
type = ChangeState
trigger1 = Animtime = 0
value = 0
ctrl = 1

---

When I try using Fighter Factory's testing feature, it crashes out without explanation.  Trying to run it via WinMugen directly by editing the Properties gives a 'Cannot find GS.Def' error.  So I've no idea WHAT the problem is.

Help?  What's wrong with it?
\"So you have chosen....death.\"-Saruman.
Re: Golden Silver-Dodge Code.
#2  October 27, 2007, 10:10:46 pm
  • ******
  • Legendary XIII
  • I am the eye of the storm to come!
    • New Zealand
    • network.mugenguild.com/cyanide/
How have you actually added the character?

What's the folder structure and what's the .def file name.


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: Golden Silver-Dodge Code.
#3  October 27, 2007, 10:48:19 pm
  • avatar
  • ***
  • Foolish, but learning.
Well, bear in mind there's currently no 'Select' picture for him yet.  So I find that it doesn't acknowledge his existence, even when I add him to the roster.  Though I've only tried adding it properly once.

E:/No_Limit_Winmugen_Patch/chars/Gs.def(Though Fighter Factory somehow reads it as GS.def.def.  And I can't tell from looking at the file in Windows whether that is accurate.)

Though I haven't actually 'ADDED' it, yet.  At the moment I use Fighter Factory's 'Run in WinMugen' option for testing.

It's the coding I'm more worried about at present.  I remove what I mentioned, and it WORKS.  I add the State stuff and Constants stuff, it doesn't.(Command is seemingly harmless, as I've got another one that's not connected to any states and the character runs fine, so it's been with THIS command as well.)  So where's the flaw?  I've learned it doesn't like having a State with nothing linking to it, and that such goes both ways.  So a flaw in one stops the whole thing from running.
\"So you have chosen....death.\"-Saruman.
Re: Golden Silver-Dodge Code.
#4  October 27, 2007, 11:03:10 pm
  • ******
  • Legendary XIII
  • I am the eye of the storm to come!
    • New Zealand
    • network.mugenguild.com/cyanide/
Quote
E:/No_Limit_Winmugen_Patch/chars/Gs.def

Is probably incorrect if that's what you have in the select.def file

Go with gs.def, in addition turn on file extensions in folder options. If you're getting gs.def.def i'd say some of your other names may be stuffed up and the .def file can't actually find any of what you're telling it to

tools>folderoptions>view tab>Uncheck hide file extensions for known file types

If there's anything like blah.cns.cns, take out the second .cns


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: Golden Silver-Dodge Code.
#5  October 28, 2007, 11:09:35 am
  • avatar
  • ***
  • Foolish, but learning.
The matters raised have been resolved.  Both of them.

Requesting deletion.
\"So you have chosen....death.\"-Saruman.
Re: Golden Silver-Dodge Code.
#6  October 29, 2007, 08:22:49 pm
  • ******
  • [E]
    • Mexico

Command Portion(Goes in '"Double Tap" section, under the standard "F, F" and "B, B".)
[Command]
name = "Dodge"
command = a, a
time = 10

---
State Portion
;Dodge
[State -1, Dodge]
type = ChangeState
value = 850
triggerall = command = "a, a"
triggerall = statetype != A
trigger1 = ctrl
---

this was the problem, but it seems you already solved it. normally help topics are left as is, in case someone has a similar problem.