Graal Forums  

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

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 01-21-2004, 11:44 PM
Blue_Dragn Blue_Dragn is offline
Registered User
Join Date: Jul 2003
Posts: 302
Blue_Dragn is on a distinguished road
Script classes

yes this is a tech problem i noticed with classes here is the problem.

When i update a class, it says that the class was updated, and all the npcs of that class are updated. Great!

Then i go to play to see if the npc is fixed, only to see it is not reading the updated scriptclass. In order to get it to work i have to update the level the npc is on. This never used to have to happen, the npc would update alone, thus the npc is fixed.

Just wondering if anyone else is experincing the same problem
__________________
No longer a Advertisement Goat
Reply With Quote
  #2  
Old 01-22-2004, 12:40 AM
VeX_RaT_Boy VeX_RaT_Boy is offline
WannaBe Scripter
VeX_RaT_Boy's Avatar
Join Date: Aug 2002
Location: Norway
Posts: 960
VeX_RaT_Boy is on a distinguished road
Send a message via ICQ to VeX_RaT_Boy Send a message via AIM to VeX_RaT_Boy Send a message via Yahoo to VeX_RaT_Boy
It does update, but it doesn't "reset" meaning if you added some stuff in if (created) wouldn't be affected before you update the level. If you added something in a timeout loop, you would notice it.
__________________
-Kjetil Valen
Reply With Quote
  #3  
Old 01-22-2004, 01:45 AM
Blue_Dragn Blue_Dragn is offline
Registered User
Join Date: Jul 2003
Posts: 302
Blue_Dragn is on a distinguished road
Quote:
Originally posted by VeX_RaT_Boy
It does update, but it doesn't "reset" meaning if you added some stuff in if (created) wouldn't be affected before you update the level. If you added something in a timeout loop, you would notice it.
Actually that is the problem, i added the extra bits under the timeout loop and they went unupdated by the server untill i did a "update level" of the level the script join thisname; was on
__________________
No longer a Advertisement Goat
Reply With Quote
  #4  
Old 01-22-2004, 04:00 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
The npcs automatically use the new code. There can be following problems when updating a class:
- when npcs are doing a sleep inside the updated class then the npc is normally stopped (no sleep-reentry)
- when the updated class catches more events (like you add an if (playertouchsme)) then the npc will still not get the playertouchsme-event until you update the level / npc
Reply With Quote
  #5  
Old 01-23-2004, 02:53 AM
Thought Thought is offline
PipBoy Extraordinaire!
Thought's Avatar
Join Date: Nov 2001
Location: Long Beach, California.
Posts: 692
Thought is on a distinguished road
Also: any code after //#CLIENTSIDE won't be updated until the level is updated.
__________________
Rick ([email protected])
#gscript on FreeNode (#gscript Guild, #gscript Information)
Graal User Statistics

I am now using my new account, Rick.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 07:36 PM.


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