PDA

View Full Version : XML Attack State Issue



koss911
12-10-2007, 07:23 PM
I'm new to NovaShell (and loving it so far), but ran into a bit of a snag with my XML Attack animations. It defaults to idle_left as if they weren't found and the console bleeps out this message:

"Strange, state attack1_(left/right/up/down*) has no valid sprite attached to it in profile (profile name)"

*to avoid confusion, each direction gets its own line, and it's one attack1_ prefix. its just easier to type that.

The following is the XML in question:


<resources>

<profile name="top_hero">

<anim state="attack1_left" spritename="attack_left" mirrorx="no" x="0" y="0"/>
<anim state="attack1_right" spritename="attack_left" mirrorx="yes" x="0" y="0"/>
<anim state="attack1_up" spritename="attack_up" mirrorx="no" x="0" y="0"/>
<anim state="attack1_down" spritename="attack_down" mirrorx="no" x="0" y="0"/>

</profile>

<!---Snip---!>

<sprite name="attack_left">
<image fileseq="hit/hit_left_.png" leading_zeroes="3"/>
<translation origin="center"/>
<animation pingpong="no" loop="no" speed="70"/>
</sprite>

<sprite name="attack_up">
<image fileseq="hit/hit_up_.png" leading_zeroes="3"/>
<translation origin="center"/>
<animation pingpong="no" loop="no" speed="70"/>
</sprite>

<sprite name="attack_down">
<image fileseq="hit/hit_down_.png" leading_zeroes="3"/>
<translation origin="center"/>
<animation pingpong="no" loop="no" speed="70"/>
</sprite>
</resources>

As for other possibilities to what the error may be, the file names and paths are all correct and there has been no issue with either the Walk state or other Idle states (both were omitted here) in the XML. So I'm at a loss. Any and all help would and will be appreciated. :D

Seth
12-11-2007, 10:28 PM
Hmm, strange problem. Some random ideas:

1. If you change the order so the attack sprites load first, is it fixed? (maybe related to a memory problem in novashell if so)

2. Try replacing the script (and art) with the one from RT_TopViewRPGTest\script\char\man\man.xml and see if that works. If it does, start slowly changing it back piece by piece and testing each step.