![]() |
Joining classes first
There's an annoying delay between the time the onActionPlayerOnline function in the Control-NPC is called and when the classes are joined. That, or the level NPCs are called first (onPlayerEnters).
The problem is that this kind of thing happens in level NPCs that have an onPlayerEnters() function: Quote:
PHP Code:
I think that the server should wait up to five seconds for onActionPlayerOnline to complete and for all of the classes to join, and then trigger onPlayerEnters to level NPCs. This could also be extended to weapons so that they are not called before their items and such have been loaded. |
Also clientside callstack, please?
|
Bump because I can't stress how important this is.
|
I added something like this on Maloria a while back, since I too was annoyed by it, and thought this might solve it. Note that it didn't.
PHP Code:
|
Hmmm it could be possible to force the onActionPlayerOnline to execute immediatelly at login, need to check this.
|
Quote:
http://img170.imageshack.us/img170/5383/sorrystefan.png :( sorry stefan |
Quote:
|
Has Classic staff already tested if it's working fine?
|
Quote:
a player class function is definately working straight after player.join("class"); in ActionPlayerOnline, and not before it (if I remember correctly player classes are no longer joined to the player object once they log out), levels with scripts that call a player class function on entry aren't causing errors after logging in, so I believe this is working. |
Quote:
|
Quote:
Glad to hear that this is working on Classic, hopefully this can be enabled soon for other servers. |
Any ETA for other servers? I haven't noticed this in a while, though, so perhaps it's already been done?
|
It has not been enabled yet on other servers but can be done soon.
|
Quote:
|
I'm getting a similar issue except with classes that are joined to the player clientside, it had been working fine for myself, but then I realised there was a large delay involved before the player functions could be called by players with a slow connection/high ping, which is understandable, but something which could cause alot of problems.
Any possibility this could be rectified in the next client version? |
Quote:
|
I've done some experimenting with the joinedclasses variable, seems the class names immediately get added before the class has actually loaded, and I can't seem to get any type of success with the onClassLoaded function, whether it be within a weapon or the class script itself, same for onCreated within the clientside class script, they just don't seem to occur, otherwise that's probably what I would do.
|
Quote:
|
Quote:
Totally forgot I could just do player.hasfunction(""); though. |
| All times are GMT +2. The time now is 10:19 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.