Results 1 to 2 of 2

Thread: XML Attack State Issue

  1. #1

    Default XML Attack State Issue

    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:

    Code:
    <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.

  2. #2
    Administrator Seth's Avatar
    Join Date
    Jul 2002
    Location
    Japan
    Posts
    5,345

    Default

    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.
    Seth A. Robinson
    Robinson Technologies

Similar Threads

  1. State of the configure.ac file
    By rombust in forum Official ClanLib SDK Forums
    Replies: 4
    Last Post: 05-09-2007, 01:11 PM
  2. Announcement: State Secrets
    By jjohn in forum Game development
    Replies: 0
    Last Post: 09-13-2005, 12:12 AM
  3. Latest Beta Bug/Issue
    By SLATE in forum Funeral Quest
    Replies: 5
    Last Post: 09-03-2004, 06:09 AM
  4. Attack, Defence, Magic
    By Kediri in forum Dink Smallwood HD
    Replies: 3
    Last Post: 08-29-2004, 08:51 PM
  5. New Attack Info Stuff?
    By redink1 in forum Funeral Quest
    Replies: 4
    Last Post: 01-14-2003, 12:28 AM

Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •