Quote:
Originally Posted by LoneAngelIbesu
I wasn't aware that shared functions were limited to clientside use...
EDIT: Could you explain the reason why a shared functions pack can't be serverside?
|
The shared functions are in a privileged weapon on the login server, which is added to the player when they connect to the login server but is not removed upon changing server. This allows the functions to work clientside on all servers, all the time. The reason that it can't work serverside is because that would require each server to also maintain a copy of the shared functions pack that's always up-to-date, and the client can't carry it's own serverside script because usually, the client is sent byte-coded clientside scripting and doesn't know anything of the serverside portion.
For it to be able to transport serverside code in the same way, the server and client would need to be modified to accept serverside code from the client, and that would be awfully insecure, but I don't know whether some way of automatically copying the shared functions script from the login server to other servers periodically would work.