Creation/Dev/Serverside: Difference between revisions

From Graal Bible
m (Serverside moved to Creation/Dev/Serverside)
mNo edit summary
Line 1: Line 1:
'''Serverside''' scripts are those that run on the [[NPC Server]], as opposed to [[Clientside]] scripts that are run on each client's graal client.
'''Serverside''' scripts are those that run on the [[NPC Server]], as opposed to [[Creation/Dev/Clientside|Clientside]] scripts that are run on each client's graal client.


Serverside scripting requires a wholly different approach to scripting.
Serverside scripting requires a wholly different approach to scripting.
As the code is being executed on the server, clients cannot tamper with it and therefore everything that needs to be remotely secure should happen on the serverside.
As the code is being executed on the server, clients cannot tamper with it and therefore everything that needs to be remotely secure should happen on the serverside.
However, there is only a limited amount of CPU power on the server, therefore it is advisable kick everything to [[Clientside]] if possible, and not to use tight loops or 0.1 second timeouts.
However, there is only a limited amount of CPU power on the server, therefore it is advisable kick everything to [[Creation/Dev/Clientside|Clientside]] if possible, and not to use tight loops or 0.1 second timeouts.




Someone needs to make the [[NPC Server]] page less comprehensive and outdated and move the fun stuff over here and to [[Clientside]] and [[GScript]]
Someone needs to make the [[NPC Server]] page less comprehensive and outdated and move the fun stuff over here and to [[Creation/Dev/Clientside|Clientside]] and [[GScript]]

Revision as of 15:53, 20 April 2006

Serverside scripts are those that run on the NPC Server, as opposed to Clientside scripts that are run on each client's graal client.

Serverside scripting requires a wholly different approach to scripting. As the code is being executed on the server, clients cannot tamper with it and therefore everything that needs to be remotely secure should happen on the serverside. However, there is only a limited amount of CPU power on the server, therefore it is advisable kick everything to Clientside if possible, and not to use tight loops or 0.1 second timeouts.


Someone needs to make the NPC Server page less comprehensive and outdated and move the fun stuff over here and to Clientside and GScript