Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   Tech Support (https://forums.graalonline.com/forums/forumdisplay.php?f=7)
-   -   showani bug (https://forums.graalonline.com/forums/showthread.php?t=41541)

Ningnong 12-28-2002 10:10 PM

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.

Com013 12-30-2002 10:16 AM

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.


All times are GMT +2. The time now is 11:06 AM.

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