Page 1 of 1
Server Lagggg
Posted: October 10th, 2010, 6:53 pm
by Moustache
When someone joins or leaves my server the server gets a lagg shot.
What kind of things in a script could cause lagg?
Very huge loops for example

But are there more things that can give lag shots?
Re: Server Lagggg
Posted: October 11th, 2010, 9:13 am
by <LT>YosemiteSam[NL]
The connectionspeed of the player who joins maybe ... but that doesn't cause a spike rather then continues lagg.
Re: Server Lagggg
Posted: October 11th, 2010, 9:34 am
by Rezil
Well you might have overlooked an infinite loop without a wait so the server might mave to kill threads. Check console for infinite loop - killing thread errors.
Re: Server Lagggg
Posted: October 11th, 2010, 10:32 am
by Drofder2004
Does it happen when running the mod locally?
/developer 1?
Re: Server Lagggg
Posted: October 11th, 2010, 1:56 pm
by Moustache
<LT>YosemiteSam[NL] wrote:The connectionspeed of the player who joins maybe ... but that doesn't cause a spike rather then continues lagg.
That should give that lagg to only that player instead of the whole server?
Rezil wrote:Well you might have overlooked an infinite loop without a wait so the server might mave to kill threads. Check console for infinite loop - killing thread errors.
Can you see it in the console when you have joined the server and you have your console fully opened? Or do I have to enable log files and then check them?
Drofder2004 wrote:Does it happen when running the mod locally?
/developer 1?
When I run the mod locally with developer 1 the script gives an error. Without developer 1 in the command line the server just starts and doesn't shows me an error. And I can just join the server and play in it.
The error:
CoD 4 Console wrote:ERROR: script runtime error
(see console for details)
pair '5050' and 'undefined' has unmatching types 'int' and 'undefined'
********************
----- Server Shutdown -----
Sending heartbeat to cod4master.activision.com
==== ShutdownGame (1) ====
---------------------------
Re: Server Lagggg
Posted: October 11th, 2010, 7:23 pm
by Drofder2004
If the mod is error'ing when in develoepr, the mod needs fixed.
Developer should enver give errors on a completed mod (except the few console warnings).
Is it your own mod or ?
Re: Server Lagggg
Posted: October 11th, 2010, 7:28 pm
by Moustache
Drofder2004 wrote:If the mod is error'ing when in develoepr, the mod needs fixed.
Developer should enver give errors on a completed mod (except the few console warnings).
Is it your own mod or ?
I was sill working on an additions for promod. So it is not my own mod, but the additions are.
I don't know if I am allowed to post the server ip here?
Re: Server Lagggg
Posted: October 11th, 2010, 8:34 pm
by Drofder2004
Moustache wrote:Drofder2004 wrote:If the mod is error'ing when in develoepr, the mod needs fixed.
Developer should enver give errors on a completed mod (except the few console warnings).
Is it your own mod or ?
I was sill working on an additions for promod. So it is not my own mod, but the additions are.
I don't know if I am allowed to post the server ip here?
Post the code that is erroring and then we can go from there.
PM it if you don't want it public.
Re: Server Lagggg
Posted: October 11th, 2010, 8:44 pm
by Rezil
Me too me too!