Graal Forums  

Go Back   Graal Forums > Development Forums > Tech Support
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 12-28-2002, 10:10 PM
Ningnong Ningnong is offline
Registered User
Ningnong's Avatar
Join Date: Nov 2002
Location: < -- way
Posts: 262
Ningnong is on a distinguished road
showani bug

Hi, Boco noticed some bugs about showani in the new graal exe and i'd like to share them:

-=Showani bugs=-

1) If you use showani to show a character animation (like idle or walk), then you MUST use it from an NPC with the showcharacter; command or else it will not work.

2) Showani does not like to work in weapon scripts. The animation will be frozen on the first frame. Also, it seems that if the gani uses any parameters (PARAM1, PARAM2), those are disregarded.


-=Example Scripts=-
::(For problem 1)::

(As you can see, this script will only display a black dot. You can hear the walk sounds, though. My guess is that the animation is looking to the NPC for info on how the character looks. Finding nothing, it doesn't draw.)
NPC Code:

NPC picture: door.png

// NPC made by Boco
if (created) {
showani 0,x+3,y,2,walk,;
}


(Now, try this script. As you will notice, it will now work, but the door image will be replaced by the image of a person.)
NPC Code:

NPC picture: door.png

// NPC made by Boco
if (created) {
showcharacter;
showani 0,x+3,y,2,walk,;
}



::(For problem 2)::

(When you run this script, notice that only a black dot is placed down. Showani does not recognize the animation parameters (PARAM1, PARAM2).)
NPC Code:

NPC picture: door.png

// NPC made by Boco
if (created) {
}
if (playertouchsme) {
toweapons ShowAni Test;
}
if (weaponfired) {
showani 0,playerx,playery,playerdir,houses_bogenera2,;
}


(But, if you use a character gani, you can see that it freezes on the first frame.)
NPC Code:

NPC picture: door.png

// NPC made by Boco
if (created) {
}
if (playertouchsme) {
toweapons ShowAni Test;
}
if (weaponfired) {
showani 0,playerx,playery,playerdir,walk,;
}



Just like to bring that up.
__________________
Former Global Scripting Team Member


Reply With Quote
  #2  
Old 12-30-2002, 10:16 AM
Com013 Com013 is offline
Registered User
Join Date: Aug 2002
Location: GMT+1
Posts: 381
Com013 is on a distinguished road
Concerning problem #1

Quote:
newfeatures2002.txt
- new script commands showani and showani2 for
displaying animations without adding new npcs

showani index,x,y,direction,animation,params;
showani2 index,x,y,z,direction,animation,params;

Displays an animation at the specified position. It
will use the attributes of the npc for the head/body etc.
As long as your NPC isn't using showcharacter it doesn't have any head/body etc., so you can't see it.
So #1 isn't really a bug.

But I hope #2 will get fixed soon.
__________________
Com013
Former Admin of the LAT on Graal The Adventure

e-mail: [email protected]
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 06:45 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.