Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   Tech Support (https://forums.graalonline.com/forums/forumdisplay.php?f=7)
-   -   Script classes (https://forums.graalonline.com/forums/showthread.php?t=50545)

Blue_Dragn 01-21-2004 11:44 PM

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

VeX_RaT_Boy 01-22-2004 12:40 AM

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.

Blue_Dragn 01-22-2004 01:45 AM

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

Admins 01-22-2004 04:00 PM

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

Thought 01-23-2004 02:53 AM

Also: any code after //#CLIENTSIDE won't be updated until the level is updated.


All times are GMT +2. The time now is 02:41 PM.

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