Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 10-27-2006, 06:08 AM
Yen Yen is offline
Banned
Yen's Avatar
Join Date: Oct 2005
Location: Nova Scotia, Canada
Posts: 1,085
Yen is an unknown quantity at this point
Send a message via AIM to Yen Send a message via MSN to Yen
Gani not being shown

I have an NPC which shows a gani moving, something like a boomerang.
The script is fine. I'm using the exact same script with a different gani in three different places, but this one won't display the gani to anyone but the person using the NPC.

I can see the gani just fine. Nobody else can.
When somebody elses uses the NPC, they can see the gani but I can't.

The index of the gani is 15, so it should be shown globally; the similar scripts are the exact same and they work.

This is the gani:
PHP Code:
GANI0001
SPRITE  299 PARAM1                 0    0  160  132 scythe 
(00)
SPRITE  301 PARAM1                 320    0  160  132 scythe (20)
SPRITE  303 PARAM1                 0  132  160  132 scythe (01)
SPRITE  305 PARAM1                 320  132  160  132 scythe (21)
SPRITE  309 PARAM1                 320  264  160  132 scythe (22)
SPRITE  311 PARAM1                 0  396  160  132 scythe (03)
SPRITE  313 PARAM1                 320  396  160  132 scythe (23)
SPRITE  316 PARAM1                 160  528  160  132 scythe (14)

LOOP
CONTINUOUS
SINGLEDIRECTION
DEFAULTPARAM1 zodiac_scytheofdreams
.png

ANI
 311 
-46 -26,  309 -72 -29

 311 
-46 -26,  316 -35 -37

 316 
-35 -37,  313 -48 -62

 313 
-48 -62,  305 -59 -60

 305 
-59 -60,  303 -61 -51

 303 
-61 -51,  299 -63 -31

 299 
-63 -31,  301 -66 -31

 301 
-66 -31,  309 -72 -29
ANIEND 
I've also tried using a constant image, rather than the first parameter, but it still doesn't show to others.
Reply With Quote
  #2  
Old 10-27-2006, 06:18 AM
coreys coreys is offline
N-Pulse Assistant Manager
coreys's Avatar
Join Date: Mar 2005
Posts: 2,180
coreys has a spectacular aura about
Send a message via AIM to coreys Send a message via MSN to coreys Send a message via Yahoo to coreys
Hmm, odd. It may be a problem where players would have to reconnect, or even restart Graal to see the gani. That's happened to me before, although I'm not sure why.
__________________

Quote:
*SlikRick: so should I even ask about your aim status?
*Xor: well if you want to
*Xor: but i am LARPING
*SlikRick: While on a computer?
*Xor: yes
*Xor: in my living room
*SlikRick: ahh
*Xor: i have a fort setup to hide from beasts
Reply With Quote
  #3  
Old 10-27-2006, 06:22 AM
Yen Yen is offline
Banned
Yen's Avatar
Join Date: Oct 2005
Location: Nova Scotia, Canada
Posts: 1,085
Yen is an unknown quantity at this point
Send a message via AIM to Yen Send a message via MSN to Yen
No, I had the problem with the same gani months ago, but I didn't bother to look into it.
Reply With Quote
  #4  
Old 10-27-2006, 08:02 AM
xAndrewx xAndrewx is offline
Registered User
xAndrewx's Avatar
Join Date: Sep 2004
Posts: 5,260
xAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud of
Yea, you're missing the shadow image thing. If you include that, it'll work. =S
I don't know if it's a bug or not, but that's why.
__________________
Reply With Quote
  #5  
Old 10-28-2006, 04:23 AM
Yen Yen is offline
Banned
Yen's Avatar
Join Date: Oct 2005
Location: Nova Scotia, Canada
Posts: 1,085
Yen is an unknown quantity at this point
Send a message via AIM to Yen Send a message via MSN to Yen
Quote:
Originally Posted by xAndrewx View Post
Yea, you're missing the shadow image thing. If you include that, it'll work. =S
I don't know if it's a bug or not, but that's why.
No good. Still doesn't work.
A few other ganis don't use the shadow image, and they still work O_o
Reply With Quote
  #6  
Old 10-28-2006, 08:04 AM
xAndrewx xAndrewx is offline
Registered User
xAndrewx's Avatar
Join Date: Sep 2004
Posts: 5,260
xAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud of
Weird o_O
When ever I did a gani without the shadow image, it never worked
__________________
Reply With Quote
  #7  
Old 10-28-2006, 04:08 PM
Chompy Chompy is offline
¯\(º_o)/¯
Chompy's Avatar
Join Date: Sep 2006
Location: Norway
Posts: 2,815
Chompy is just really niceChompy is just really niceChompy is just really nice
Send a message via MSN to Chompy
I think the spacing is wrong?

HTML Code:
SPRITE  299           ATTR2    0    0   60   76 sprite
thats from one of my latest ganises, and that one worked,
I think you must put PARAM1 three spaces from second value

HTML Code:
SPRITE  299 PARAM1                 0    0  160  132 scythe (0, 0)

could be:

SPRITE  299               PARAM1   0    0  160  132 scythe (0, 0)
I can be wrong tho
__________________
Reply With Quote
  #8  
Old 10-28-2006, 07:09 PM
Yen Yen is offline
Banned
Yen's Avatar
Join Date: Oct 2005
Location: Nova Scotia, Canada
Posts: 1,085
Yen is an unknown quantity at this point
Send a message via AIM to Yen Send a message via MSN to Yen
Spacing doesn't matter, other ganis have weird spacing like that and still work.
Reply With Quote
  #9  
Old 10-28-2006, 07:52 PM
Admins Admins is offline
Graal Administration
Join Date: Jan 2000
Location: Admins
Posts: 11,693
Admins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud of
There is probably a problem with PARAM1, what does it show when you do echo(player.attr[15]) ?
Reply With Quote
  #10  
Old 10-29-2006, 02:21 AM
Yen Yen is offline
Banned
Yen's Avatar
Join Date: Oct 2005
Location: Nova Scotia, Canada
Posts: 1,085
Yen is an unknown quantity at this point
Send a message via AIM to Yen Send a message via MSN to Yen
Hmm, the params seem to be read just fine.
The gani is also there for other players. It echo'd the params to them, even though they couldn't see it.
Reply With Quote
  #11  
Old 10-29-2006, 02:24 AM
xXziroXx xXziroXx is offline
Malorian
xXziroXx's Avatar
Join Date: May 2004
Posts: 5,289
xXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant future
Sounds exactly like my problem..

http://forums.graalonline.com/forums...ad.php?t=69336
__________________
Follow my work on social media post-Graal:Updated august 2025.
Reply With Quote
  #12  
Old 10-29-2006, 02:31 AM
Yen Yen is offline
Banned
Yen's Avatar
Join Date: Oct 2005
Location: Nova Scotia, Canada
Posts: 1,085
Yen is an unknown quantity at this point
Send a message via AIM to Yen Send a message via MSN to Yen
No, you're trying to do something that Graal doesn't support..
My problem is that the gani is only showing to me, even though it's being sent to other people.
Reply With Quote
  #13  
Old 10-29-2006, 11:18 AM
xXziroXx xXziroXx is offline
Malorian
xXziroXx's Avatar
Join Date: May 2004
Posts: 5,289
xXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant future
Quote:
Originally Posted by Yen View Post
No, you're trying to do something that Graal doesn't support..
My problem is that the gani is only showing to me, even though it's being sent to other people.
That IS my problem aswell. The gani works perfectly, BUT its only shown to the current player.
__________________
Follow my work on social media post-Graal:Updated august 2025.
Reply With Quote
  #14  
Old 11-02-2006, 02:24 AM
Admins Admins is offline
Graal Administration
Join Date: Jan 2000
Location: Admins
Posts: 11,693
Admins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud of
Don't know what the problem with that is though, it should only be 'bugged' if the gani contains spaces or special characters, can be verified by echoing the parameters on the other machine, and if nothing is working you can still append the parameters manually with "my.gani," @ {param1,params2,..}
Reply With Quote
  #15  
Old 11-02-2006, 09:25 PM
Yen Yen is offline
Banned
Yen's Avatar
Join Date: Oct 2005
Location: Nova Scotia, Canada
Posts: 1,085
Yen is an unknown quantity at this point
Send a message via AIM to Yen Send a message via MSN to Yen
Hm, yeah, it's really weird.
The parameters are echoing the right values on other machines, so it's not that.. Oh well.
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 02:56 AM.


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