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 03-15-2007, 09:19 AM
zokemon zokemon is offline
That one guy...
zokemon's Avatar
Join Date: Mar 2001
Location: Sonoma County, California
Posts: 2,925
zokemon is a jewel in the roughzokemon is a jewel in the rough
Send a message via ICQ to zokemon Send a message via AIM to zokemon Send a message via MSN to zokemon Send a message via Yahoo to zokemon
About Gani Scripts...

It seems that sometimes a gani script will just lock up for no apparent reason. When you change the gani and then re play it again, the script won't trigger the onPlayerEnters() any more. Re uploading the file and having the client re download it does not change this (even if the gani animation is different and you see such updates, the script still will not run). It seems to become especially apparent when you use showimgs or even more so when you use particles.

Anyone else experiancing this?
__________________
Do it with a DON!
Reply With Quote
  #2  
Old 03-15-2007, 09:22 AM
napo_p2p napo_p2p is offline
oh snaps
napo_p2p's Avatar
Join Date: Sep 2003
Location: Pismo Beach, California
Posts: 2,118
napo_p2p has a spectacular aura aboutnapo_p2p has a spectacular aura about
Send a message via AIM to napo_p2p Send a message via MSN to napo_p2p
I asked a question about a gani script in an earlier thread, and I think that it is related. Hell Raven had a fix for it, but it does, indeed, seem to be some kind of bug with onPlayerEnters().

Earlier thread with fix: http://forums.graalonline.com/forums...ad.php?t=72305
__________________
Scito hoc super omnia.
Haec vita est tua una sola.
Dum vita superest, utere maxime quoque puncto, momento, et hora quae habes.
Tempus neminem non manet.
Noli manere tempus.
Carpe Diem

Seize the Day.
Reply With Quote
  #3  
Old 03-16-2007, 04:50 AM
zokemon zokemon is offline
That one guy...
zokemon's Avatar
Join Date: Mar 2001
Location: Sonoma County, California
Posts: 2,925
zokemon is a jewel in the roughzokemon is a jewel in the rough
Send a message via ICQ to zokemon Send a message via AIM to zokemon Send a message via MSN to zokemon Send a message via Yahoo to zokemon
Sadly, that won't do anything for me. I am using a set of sleeps (this is a hp/nick type display thing but rather a particle/showimg effect added on to the gani animation) in the onPlayerEnters() function. I COULD conceivably have a timeout just for kicks but that would do nothing for me since I wouldn't know when to "start" the showimg/particle animation.
__________________
Do it with a DON!
Reply With Quote
  #4  
Old 03-16-2007, 11:36 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
I have not had such problems yet. The onPlayerEnters() event is invoked when the animation is starting to play. Eventually you need to make your gani non-CONTINUOUS ?
Reply With Quote
  #5  
Old 03-16-2007, 11:43 AM
Kristi Kristi is offline
Bowie's Deciple
Kristi's Avatar
Join Date: Dec 2003
Location: Boston, MA
Posts: 748
Kristi has a spectacular aura aboutKristi has a spectacular aura about
Send a message via AIM to Kristi Send a message via MSN to Kristi
Quote:
Originally Posted by Stefan View Post
I have not had such problems yet. The onPlayerEnters() event is invoked when the animation is starting to play. Eventually you need to make your gani non-CONTINUOUS ?
Or use the solution i gave napo, give the image a definition, and recreate it when the reference breaks.

Zokemon, the solution napo linked to you will work in your situation. Use a timeout. reference the image (thiso.whatever = showimg(yada))

Check to see if an arbitrary property or an assigned one exists in a timeout, i used font for napo's. if the font became undefined for thiso.whatever, its because the image wasnt showing anymore, and if thats the case, reshow it!
__________________
Reply With Quote
  #6  
Old 03-17-2007, 06:03 AM
zokemon zokemon is offline
That one guy...
zokemon's Avatar
Join Date: Mar 2001
Location: Sonoma County, California
Posts: 2,925
zokemon is a jewel in the roughzokemon is a jewel in the rough
Send a message via ICQ to zokemon Send a message via AIM to zokemon Send a message via MSN to zokemon Send a message via Yahoo to zokemon
I did use a timeout and it sort of helped but the problem still exists. Aparently if a script gets stuck in a timeout or there are certain script errors, the gani locks up and won't invoke onPlayerEnters() anymore when you restart the gani.
__________________
Do it with a DON!
Reply With Quote
  #7  
Old 03-17-2007, 06:24 AM
Kristi Kristi is offline
Bowie's Deciple
Kristi's Avatar
Join Date: Dec 2003
Location: Boston, MA
Posts: 748
Kristi has a spectacular aura aboutKristi has a spectacular aura about
Send a message via AIM to Kristi Send a message via MSN to Kristi
Quote:
Originally Posted by zokemon View Post
I did use a timeout and it sort of helped but the problem still exists. Aparently if a script gets stuck in a timeout or there are certain script errors, the gani locks up and won't invoke onPlayerEnters() anymore when you restart the gani.
restarting the gani wouldnt invoke the onPlayerEnters, it just picks up the timeout where it left off. I assure you the solution I gave napo will work.
__________________
Reply With Quote
  #8  
Old 03-18-2007, 12:39 AM
zokemon zokemon is offline
That one guy...
zokemon's Avatar
Join Date: Mar 2001
Location: Sonoma County, California
Posts: 2,925
zokemon is a jewel in the roughzokemon is a jewel in the rough
Send a message via ICQ to zokemon Send a message via AIM to zokemon Send a message via MSN to zokemon Send a message via Yahoo to zokemon
Quote:
Originally Posted by Kristi View Post
restarting the gani wouldnt invoke the onPlayerEnters, it just picks up the timeout where it left off. I assure you the solution I gave napo will work.
It still does not help me though as I need to have some way of finding out when a gani is restarted.

Restarting a gani does infact invoke the onPlayerEnters, but only if the script has had no problems prior to that.
__________________
Do it with a DON!
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 10:45 PM.


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