Server Lagggg

Have a question about modding, modelling or skinning? Have a tutorial to post? Post here!

Moderator: Core Staff

Post Reply
Moustache
CJ Worshipper
CJ Worshipper
Posts: 476
Joined: August 18th, 2008, 9:30 am

Server Lagggg

Post by Moustache » October 10th, 2010, 6:53 pm

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?

User avatar
<LT>YosemiteSam[NL]
Core Staff
Core Staff
Posts: 2155
Joined: December 7th, 2004, 2:07 am
Location: Netherlands
Contact:

Re: Server Lagggg

Post by <LT>YosemiteSam[NL] » October 11th, 2010, 9:13 am

The connectionspeed of the player who joins maybe ... but that doesn't cause a spike rather then continues lagg.

User avatar
Rezil
Core Staff
Core Staff
Posts: 2030
Joined: July 24th, 2006, 11:21 am
Location: Cramped in a small cubicle/making another jump map

Re: Server Lagggg

Post by Rezil » October 11th, 2010, 9:34 am

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.
Drofder2004: Drofder's rules for reviewing a map
[...]
#5 If your name is Rezil, minimum 5/5.
---
<LT>YosemiteSam[NL]:
I heard somewhere that the best way to start is juggling 2 balls with one hand, so you will get a feel for it.

User avatar
Drofder2004
Core Staff
Core Staff
Posts: 13313
Joined: April 13th, 2005, 8:22 pm
Location: UK, London

Re: Server Lagggg

Post by Drofder2004 » October 11th, 2010, 10:32 am

Does it happen when running the mod locally?

/developer 1?
Image
Virgin Media 20Mb Broadband:
"Perfect for families going online at the same time, downloading movies, online gaming and more."
Borked internet since: 22-07-2010

Moustache
CJ Worshipper
CJ Worshipper
Posts: 476
Joined: August 18th, 2008, 9:30 am

Re: Server Lagggg

Post by Moustache » October 11th, 2010, 1:56 pm

<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?
:shock:
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) ====
---------------------------

User avatar
Drofder2004
Core Staff
Core Staff
Posts: 13313
Joined: April 13th, 2005, 8:22 pm
Location: UK, London

Re: Server Lagggg

Post by Drofder2004 » October 11th, 2010, 7:23 pm

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 ?
Image
Virgin Media 20Mb Broadband:
"Perfect for families going online at the same time, downloading movies, online gaming and more."
Borked internet since: 22-07-2010

Moustache
CJ Worshipper
CJ Worshipper
Posts: 476
Joined: August 18th, 2008, 9:30 am

Re: Server Lagggg

Post by Moustache » October 11th, 2010, 7:28 pm

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?

User avatar
Drofder2004
Core Staff
Core Staff
Posts: 13313
Joined: April 13th, 2005, 8:22 pm
Location: UK, London

Re: Server Lagggg

Post by Drofder2004 » October 11th, 2010, 8:34 pm

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.
Image
Virgin Media 20Mb Broadband:
"Perfect for families going online at the same time, downloading movies, online gaming and more."
Borked internet since: 22-07-2010

User avatar
Rezil
Core Staff
Core Staff
Posts: 2030
Joined: July 24th, 2006, 11:21 am
Location: Cramped in a small cubicle/making another jump map

Re: Server Lagggg

Post by Rezil » October 11th, 2010, 8:44 pm

Me too me too!
Drofder2004: Drofder's rules for reviewing a map
[...]
#5 If your name is Rezil, minimum 5/5.
---
<LT>YosemiteSam[NL]:
I heard somewhere that the best way to start is juggling 2 balls with one hand, so you will get a feel for it.

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests