Apolyton Archive  |  Preserved copy of the Apolyton Civilization Site and its forums as they stood in September 2005. Read-only; nothing here can be posted to or replied to.  |  Forum index |  About this archive |  The 1998–2001 UBB forums
Today on Apolyton WARDELL INTERVIEW PROMO A.C.S. HISTORY CHAPTER 4 GET CIV4 /w FREE PLUS! A.C.S. PHOTO GALLERY GET A.O.M. V1.1
Apolyton Civilization Forums
main| civ2| civ3| civ4| smac| ctp2| ron| moo3| galciv| galciv2| alt| about|
ApolytonPLUS | register | search | faq | new posts | pm (-/-) | upload | members
hall of fame new! | civgroups | civgroups news | interviews | the column | radio | chat | directory | news | store | PLUS
Apolyton Civilization Forums : Powered by vBulletin version 2.0.3 Apolyton Civilization Forums > Miscellaneous > Archive > CtP2-Creation/AI/Mods/Scenarios-Archive > More spritetool
Show a Printable Version | Email This Page to Someone! | Receive updates to this thread | Report this to Apolyton news!

bottom of page
  
Author
Thread    < Last Thread     Next Thread > Post New Thread     Post A Reply
Immortal Wombat is offline Immortal Wombat
Prince
in perpetuity
Dec 2000
time: 05:14
Post  Old Post 18-03-2001 10:18 Visit Immortal Wombat's homepage!
Edit/Delete Message Reply w/Quote
#1 Report this post to a moderator
More spritetool Support Apolyton buy from Amazon

As I continue to learn this program, I'm adding attack animations to my sprites, and I have hit a problem. When I added the animation code, I get errors saying the line UNIT_SPRITE_IDLE should be further up the page.
Here's the code I'm using:

code:
UNIT_SPRITE { UNIT_SPRITE_MOVE 1 { # This is the sprite action definition block. All sprite # actions require this block if the sprite action is defined. # SPRITE_NUM_FRAMES 1 # number of frames of animation SPRITE_FIRST_FRAME 0 # the index of the first frame SPRITE_WIDTH 96 # the width of each sprite image SPRITE_HEIGHT 72 # the height of each sprite image SPRITE_HOT_POINTS # the hot points (center points) of # the sprite for each of the 5 facings 49 54 # facing 1 49 54 # facing 2 49 54 # facing 3 49 54 # facing 4 49 54 # facing 5 } ANIM 1 { ANIM_TYPE 1 ANIM_NUM_FRAMES 1 ANIM_PLAYBACK_TIME 1000 ANIM_DELAY 10000 ANIM_FRAME_DATA 0 ANIM_MOVE_DELTAS 0 ANIM_TRANSPARENCIES 0 } UNIT_SPRITE_ATTACK 1 UNIT_SPRITE_ATTACK_IS_DIRECTIONAL 1 { SPRITE_NUM_FRAMES 2 # number of frames of animation SPRITE_FIRST_FRAME 1 # the index of the first frame SPRITE_WIDTH 96 # the width of each sprite image SPRITE_HEIGHT 72 # the height of each sprite image SPRITE_HOT_POINTS # the hot points (center points) of # the sprite for each of the 5 facings 49 54 # facing 1 49 54 # facing 2 49 54 # facing 3 49 54 # facing 4 49 54 # facing 5 } ANIM 1 { ANIM_TYPE 1 ANIM_NUM_FRAMES 2 ANIM_PLAYBACK_TIME 1000 ANIM_DELAY 2000 ----> the problem is on ANIM_MOVE_DELTAS 1 this line ANIM_FRAME_DATA 1 2 3 4 ANIM_TRANSPARENCIES 0 } UNIT_SPRITE_VICTORY 1 UNIT_SPRITE_IS_DEATH 1 { SPRITE_NUM_FRAMES 2 SPRITE_FIRST_FRAME 1 SPRITE_WIDTH 96 SPRITE_HEIGHT 72 SPRITE_HOT_POINT 58 38 } ANIM 1 { ANIM_TYPE 0 ANIM_NUM_FRAMES 2 ANIM_PLAYBACK_TIME 3300 ANIM_DELAY 0 ANIM_FRAME_DATA 1 2 ANIM_MOVE_DELTAS 1 { 0 0 0 0 } ANIM_TRANSPARENCIES 1 { 15 12 } } UNIT_SPRITE_IDLE 0 UNIT_SPRITE_VICTORY 0 UNIT_SPRITE_WORK 0 UNIT_SPRITE_FIREPOINTS 0 UNIT_SPRITE_FIREPOINTS_WORK 0 UNIT_SPRITE_MOVEOFFSETS 0 ##then sprite sheildpoints...

All it says is:
ERR: GU02.txt line 62: Expected keword UNIT_SPRITE_IDLE not found
error in conversion process

And then it stops.
Can anyone help me ?

[This message has been edited by Immortal Wombat (edited March 17, 2001).]

Paul is offline Paul
Emperor
Zwolle, The Netherlands
Mar 1999
time: 06:14
Post  Old Post 18-03-2001 14:08 Visit Paul's homepage!
Edit/Delete Message Reply w/Quote
#2 Report this post to a moderator
Browse Apolyton AD-FREE

In the example script in the spritetool documentation UNIT_SPRITE_IDLE comes before UNIT_SPRITE_VICTORY. In your script it doesn't, so that must be the cause of your problem.

Immortal Wombat is offline Immortal Wombat
Prince
in perpetuity
Dec 2000
time: 05:14
Post  Old Post 18-03-2001 19:09 Visit Immortal Wombat's homepage!
Edit/Delete Message Reply w/Quote
#3 Report this post to a moderator
Increase the size of your Attachments

I've just tried swapping them, and it doesn't work that way either.
The error is the same.

Paul is offline Paul
Emperor
Zwolle, The Netherlands
Mar 1999
time: 06:14
Post  Old Post 18-03-2001 23:55 Visit Paul's homepage!
Edit/Delete Message Reply w/Quote
#4 Report this post to a moderator
Got spare money?

Just noticed something I didn't notice this morning: UNIT_SPRITE_VICTORY appears twice in your script: near the bottom and about halfway through the script. You should put UNIT_SPRITE_IDLE before the first UNIT_SPRITE_VICTORY and delete the second one. I hope that will work.

  < Last Thread     Next Thread > Post New Thread     Post A Reply
All times are GMT. The time now is 05:14.
Apolyton Time is 00:14.
    top of page
Rate This Thread:
archivepost
Forum Jump:
Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is ON
vB code is ON
Smilies are ON
[IMG] code is ON
 




Contact Us - Apolyton Civilization Site - Support Us!

Building a better Apolyton through better information. Click here and take our poll!
Non-US visitors, click here!

Powered by: vBulletin Version 2.0.3
Copyright ©2000, 2001, Jelsoft Enterprises Limited.

Page generated in 0.0404 seconds (87.45% PHP - 12.55% MySQL) with 31 queries
Page Loading Time:

Support Apolyton: Amazon USA | Amazon UK | Amazon DE | Amazon FR |
Support Apolyton and get FREE PLUS, Buy from Chips&Bits: Galactic Civilizations | Galactic Civilizations: Deluxe Edition | Call to Power 2 | Civilization: The Boardgame | GURPS/ Alpha Centauri | Alpha Centauri | Civilization IV | Civilization III: Complete |


Front Page | Civilization IV | Civilization III | Civilization II | Call to Power II | Alpha Centauri | Master of Orion III
Rise of Nations | Galactic Civilizations | Galactic Civilizations II | Misc
Alt.Civs | Civ I | C:CtP I | About | News | Directory | Apolyton Store | Forums | Chat | Columns | Interviews | Newsletter
Scenario League | CSC | Clash of Civs | Spanish Site | CtP Maps | Cradle of Civ | WesW's Ctp1/2 Site | Civ3 Haven

apolyton.net | apolyton.com | civilization2.net | civilization3.net | civilization4.net | civilizationiv.info | calltopower.net | galciv.net | galciv2.net | moo3.net