Thread: getTimeStamp()
View Single Post
  #16  
Old 11-07-2008, 02:00 PM
Skyld Skyld is offline
Script-fu
Skyld's Avatar
Join Date: Jan 2002
Location: United Kingdom
Posts: 3,914
Skyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud of
Send a message via AIM to Skyld
Quote:
Originally Posted by LoneAngelIbesu View Post
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.
Reply With Quote