Have a question about modding, modelling or skinning? Have a tutorial to post? Post here!
Moderator: Core Staff
-
Moustache
- CJ Worshipper

- Posts: 476
- Joined: August 18th, 2008, 9:30 am
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?
-
<LT>YosemiteSam[NL]
- Core Staff

- Posts: 2155
- Joined: December 7th, 2004, 2:07 am
- Location: Netherlands
-
Contact:
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.
-
Rezil
- Core Staff

- Posts: 2030
- Joined: July 24th, 2006, 11:21 am
- Location: Cramped in a small cubicle/making another jump map
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.
-
Drofder2004
- Core Staff

- Posts: 13315
- Joined: April 13th, 2005, 8:22 pm
- Location: UK, London
Post
by Drofder2004 » October 11th, 2010, 10:32 am
Does it happen when running the mod locally?
/developer 1?
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

- Posts: 476
- Joined: August 18th, 2008, 9:30 am
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?
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) ====
---------------------------
-
Drofder2004
- Core Staff

- Posts: 13315
- Joined: April 13th, 2005, 8:22 pm
- Location: UK, London
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 ?
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

- Posts: 476
- Joined: August 18th, 2008, 9:30 am
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?
-
Drofder2004
- Core Staff

- Posts: 13315
- Joined: April 13th, 2005, 8:22 pm
- Location: UK, London
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.
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
-
Rezil
- Core Staff

- Posts: 2030
- Joined: July 24th, 2006, 11:21 am
- Location: Cramped in a small cubicle/making another jump map
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.
Users browsing this forum: No registered users and 1 guest