Switching to spectator causes laggs

General chat area for anything whatsoever

Moderator: Core Staff

chef
CJ Wannabe
CJ Wannabe
Posts: 9
Joined: May 6th, 2013, 5:21 pm

Switching to spectator causes laggs

Post by chef » May 6th, 2013, 5:46 pm

Hello,

Only certain maps(blue_v2) when a player switches to Spectator the server starts to lagg and the server console is spammed with methods being called..

Basically whenever someone switches to Spectator everyone gets lagg..

I also noticed when an admin goes into the Admin Panel the server keeps lagging(like a constant loop).

Code: Select all

(file 'codjumper/_codjumper.gsc', line 715)
  wait 2;

Any help on how to fix this?

Here you can see what the server does when a player switches to Spectator:

Code: Select all

(file 'maps/mp/gametypes/_globallogic.gsc', line 886)
 [[level.onSpawnSpectator]]( origin, angles );
         *
(file 'maps/mp/gametypes/_globallogic.gsc', line 852)
 in_spawnSpectator( origin, angles );
 *
(file 'maps/mp/gametypes/_globallogic.gsc', line 2160)
  [[level.spawnSpectator]]();
          *
(file 'maps/mp/gametypes/_menus.gsc', line 205)
   self [[level.spectator]]();
                *
(file 'maps/mp/gametypes/_menus.gsc', line 101)
  self waittill("menuresponse", menu, response);
       *
(file 'maps/mp/gametypes/_globallogic.gsc', line 886)
 [[level.onSpawnSpectator]]( origin, angles );
         *
(file 'maps/mp/gametypes/_globallogic.gsc', line 852)
 in_spawnSpectator( origin, angles );
 *
(file 'maps/mp/gametypes/_globallogic.gsc', line 2160)
  [[level.spawnSpectator]]();
          *
(file 'maps/mp/gametypes/_menus.gsc', line 205)
   self [[level.spectator]]();
                *
(file 'maps/mp/gametypes/_menus.gsc', line 101)
  self waittill("menuresponse", menu, response);
       *
(file 'maps/mp/gametypes/_globallogic.gsc', line 886)
 [[level.onSpawnSpectator]]( origin, angles );
         *
(file 'maps/mp/gametypes/_globallogic.gsc', line 852)
 in_spawnSpectator( origin, angles );
 *
(file 'maps/mp/gametypes/_globallogic.gsc', line 2160)
  [[level.spawnSpectator]]();
          *
(file 'maps/mp/gametypes/_menus.gsc', line 205)
   self [[level.spectator]]();
                *
(file 'maps/mp/gametypes/_menus.gsc', line 101)
  self waittill("menuresponse", menu, response);
       *

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

Re: Switching to spectator causes laggs

Post by Drofder2004 » May 6th, 2013, 9:14 pm

There code you have posted does not show the full story and is practically impossible to debug.

Clear your server log, run the map and reproduce the error as quick as possible.
As soon as the error starts, kill the server.
Send the full log and hopefully it will show the source of the error.

In regards to admin menu, does this happen on all maps or just the few?
The admin section is unoptimised and to my knowledge is not causing serious issues.
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

chef
CJ Wannabe
CJ Wannabe
Posts: 9
Joined: May 6th, 2013, 5:21 pm

Re: Switching to spectator causes laggs

Post by chef » May 7th, 2013, 6:42 pm

Drofder2004 wrote:There code you have posted does not show the full story and is practically impossible to debug.

Clear your server log, run the map and reproduce the error as quick as possible.
As soon as the error starts, kill the server.
Send the full log and hopefully it will show the source of the error.

In regards to admin menu, does this happen on all maps or just the few?
The admin section is unoptimised and to my knowledge is not causing serious issues.
There are no errors just lagg on certain maps when you switch to Spectator.

The admin menu lagg is also on the maps where the spectator switching occurs.

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

Re: Switching to spectator causes laggs

Post by Drofder2004 » May 7th, 2013, 8:27 pm

chef wrote:
Drofder2004 wrote:There code you have posted does not show the full story and is practically impossible to debug.

Clear your server log, run the map and reproduce the error as quick as possible.
As soon as the error starts, kill the server.
Send the full log and hopefully it will show the source of the error.

In regards to admin menu, does this happen on all maps or just the few?
The admin section is unoptimised and to my knowledge is not causing serious issues.
There are no errors just lagg on certain maps when you switch to Spectator.

The admin menu lagg is also on the maps where the spectator switching occurs.
You just posted an entire code box full of errors. All of that code will point to an error, the error happens to fast for you to see it, that is why I said use an error log.
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

chef
CJ Wannabe
CJ Wannabe
Posts: 9
Joined: May 6th, 2013, 5:21 pm

Re: Switching to spectator causes laggs

Post by chef » May 8th, 2013, 2:17 pm

Ok here is my console_mp.log.
I switched to spectator in map: mp_blue_v2 and shutdown the server

Full log: http://www.mediafire.com/?g773tfa4bl4m8yr

Here is a part of the log:

Code: Select all


******* script runtime error *******
undefined is not a field object: (file 'maps/mp/gametypes/_globallogic.gsc', line 966)
 self spawn(spawnpoint.origin, spawnpoint.angles);
                               *
Error: called from:
(file 'maps/mp/gametypes/_globallogic.gsc', line 886)
 [[level.onSpawnSpectator]]( origin, angles );
         *
Error: called from:
(file 'maps/mp/gametypes/_globallogic.gsc', line 852)
 in_spawnSpectator( origin, angles );
 *
Error: called from:
(file 'maps/mp/gametypes/_globallogic.gsc', line 3983)
  [[level.spawnSpectator]]();
          *
Error: called from:
(file 'maps/mp/gametypes/_callbacksetup.gsc', line 38)
 [[level.callbackPlayerConnect]]();
         *
Error: started from:
(file 'maps/mp/gametypes/_globallogic.gsc', line 3803)
 waittillframeend;
 *
Error: ************************************

******* script runtime error *******
undefined is not a field object: (file 'maps/mp/gametypes/_globallogic.gsc', line 966)
 self spawn(spawnpoint.origin, spawnpoint.angles);
            *
Error: called from:
(file 'maps/mp/gametypes/_globallogic.gsc', line 886)
 [[level.onSpawnSpectator]]( origin, angles );
         *
Error: called from:
(file 'maps/mp/gametypes/_globallogic.gsc', line 852)
 in_spawnSpectator( origin, angles );
 *
Error: called from:
(file 'maps/mp/gametypes/_globallogic.gsc', line 3983)
  [[level.spawnSpectator]]();
          *
Error: called from:
(file 'maps/mp/gametypes/_callbacksetup.gsc', line 38)
 [[level.callbackPlayerConnect]]();
         *
Error: started from:
(file 'maps/mp/gametypes/_globallogic.gsc', line 3803)
 waittillframeend;
 *
Error: ************************************

******* script runtime error *******
type undefined is not a vector: (file 'maps/mp/gametypes/_globallogic.gsc', line 966)
 self spawn(spawnpoint.origin, spawnpoint.angles);
                       *
Error: called from:
(file 'maps/mp/gametypes/_globallogic.gsc', line 886)
 [[level.onSpawnSpectator]]( origin, angles );
         *
Error: called from:
(file 'maps/mp/gametypes/_globallogic.gsc', line 852)
 in_spawnSpectator( origin, angles );
 *
Error: called from:
(file 'maps/mp/gametypes/_globallogic.gsc', line 3983)
  [[level.spawnSpectator]]();
          *
Error: called from:
(file 'maps/mp/gametypes/_callbacksetup.gsc', line 38)
 [[level.callbackPlayerConnect]]();
         *
Error: started from:
(file 'maps/mp/gametypes/_globallogic.gsc', line 3803)
 waittillframeend;
 *
Error: ************************************
PunkBuster Server: New Connection (slot #1) 192.168.1.1:28960 [04846e2758ea59f826b5dfa111232997] "CHEF" (seq 14361274)
Hitch warning: 749 msec frame time

******* script runtime error *******
undefined is not a field object: (file 'maps/mp/gametypes/_globallogic.gsc', line 966)
 self spawn(spawnpoint.origin, spawnpoint.angles);
                               *
Error: called from:
(file 'maps/mp/gametypes/_globallogic.gsc', line 886)
 [[level.onSpawnSpectator]]( origin, angles );
         *
Error: called from:
(file 'maps/mp/gametypes/_globallogic.gsc', line 852)
 in_spawnSpectator( origin, angles );
 *
Error: called from:
(file 'maps/mp/gametypes/_globallogic.gsc', line 2160)
  [[level.spawnSpectator]]();
          *
Error: called from:
(file 'maps/mp/gametypes/_menus.gsc', line 205)
   self [[level.spectator]]();
                *
Error: started from:
(file 'maps/mp/gametypes/_menus.gsc', line 101)
  self waittill("menuresponse", menu, response);
       *
Error: ************************************

******* script runtime error *******
undefined is not a field object: (file 'maps/mp/gametypes/_globallogic.gsc', line 966)
 self spawn(spawnpoint.origin, spawnpoint.angles);
            *
Error: called from:
(file 'maps/mp/gametypes/_globallogic.gsc', line 886)
 [[level.onSpawnSpectator]]( origin, angles );
         *
Error: called from:
(file 'maps/mp/gametypes/_globallogic.gsc', line 852)
 in_spawnSpectator( origin, angles );
 *
Error: called from:
(file 'maps/mp/gametypes/_globallogic.gsc', line 2160)
  [[level.spawnSpectator]]();
          *
Error: called from:
(file 'maps/mp/gametypes/_menus.gsc', line 205)
   self [[level.spectator]]();
                *
Error: started from:
(file 'maps/mp/gametypes/_menus.gsc', line 101)
  self waittill("menuresponse", menu, response);
       *
Error: ************************************

******* script runtime error *******
type undefined is not a vector: (file 'maps/mp/gametypes/_globallogic.gsc', line 966)
 self spawn(spawnpoint.origin, spawnpoint.angles);
                       *
Error: called from:
(file 'maps/mp/gametypes/_globallogic.gsc', line 886)
 [[level.onSpawnSpectator]]( origin, angles );
         *
Error: called from:
(file 'maps/mp/gametypes/_globallogic.gsc', line 852)
 in_spawnSpectator( origin, angles );
 *
Error: called from:
(file 'maps/mp/gametypes/_globallogic.gsc', line 2160)
  [[level.spawnSpectator]]();
          *
Error: called from:
(file 'maps/mp/gametypes/_menus.gsc', line 205)
   self [[level.spectator]]();
                *
Error: started from:
(file 'maps/mp/gametypes/_menus.gsc', line 101)
  self waittill("menuresponse", menu, response);
       *
Error: ************************************
Hitch warning: 929 msec frame time
quitting...
----- CL_Shutdown -----
-----------------------
----- Server Shutdown -----
Sending heartbeat to cod4master.activision.com
==== ShutdownGame (1) ====
0:CHEF EXE_DISCONNECTED
      dvar set sv_running 0
---------------------------
Unloaded fastfile mp_blue2
Unloaded fastfile localized_common_mp
Unloaded fastfile common_mp
Unloaded fastfile mod
Unloaded fastfile localized_code_post_gfx_mp
Unloaded fastfile code_post_gfx_mp


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

Re: Switching to spectator causes laggs

Post by Drofder2004 » May 8th, 2013, 8:02 pm

It looks to me like this map is missing either a global intermission or DM spawnpoints.
Will take a look at the map
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
Drofder2004
Core Staff
Core Staff
Posts: 13313
Joined: April 13th, 2005, 8:22 pm
Location: UK, London

Re: Switching to spectator causes laggs

Post by Drofder2004 » May 8th, 2013, 8:28 pm

I can confirm, this map has no "mp_global_intermission".
It is not fit for server use.
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

chef
CJ Wannabe
CJ Wannabe
Posts: 9
Joined: May 6th, 2013, 5:21 pm

Re: Switching to spectator causes laggs

Post by chef » May 8th, 2013, 8:36 pm

Drofder2004 wrote:I can confirm, this map has no "mp_global_intermission".
It is not fit for server use.
Why some other servers can use this map without the lagg? Is there some fix for it?

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

Re: Switching to spectator causes laggs

Post by Drofder2004 » May 8th, 2013, 9:25 pm

I can only guess your server has "developer 1".
And no, there is no fix other than recompiling the map.
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

chef
CJ Wannabe
CJ Wannabe
Posts: 9
Joined: May 6th, 2013, 5:21 pm

Re: Switching to spectator causes laggs

Post by chef » May 8th, 2013, 9:28 pm

Drofder2004 wrote:I can only guess your server has "developer 1".
And no, there is no fix other than recompiling the map.
No, I checked ingame and "developer" = "0".

I also don't have that DVAR set anywhere in my server config or a script file.

User avatar
Chucky.
CJ Fan
CJ Fan
Posts: 172
Joined: June 12th, 2012, 4:27 am
Location: UK
Contact:

Re: Switching to spectator causes laggs

Post by Chucky. » May 8th, 2013, 10:21 pm

I will have it fixed soon. Sorry. Keep an eye out on the blue2 thread if you want to upload after it's done. Thanks.

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

Re: Switching to spectator causes laggs

Post by Drofder2004 » May 8th, 2013, 11:56 pm

chef wrote:
Drofder2004 wrote:I can only guess your server has "developer 1".
And no, there is no fix other than recompiling the map.
No, I checked ingame and "developer" = "0".

I also don't have that DVAR set anywhere in my server config or a script file.
Then sorry but I do not know. Either way a map without spectator spawn should not be on any server - and author is fixing it.
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

chef
CJ Wannabe
CJ Wannabe
Posts: 9
Joined: May 6th, 2013, 5:21 pm

Re: Switching to spectator causes laggs

Post by chef » May 9th, 2013, 12:48 am

Drofder2004 wrote:
chef wrote:
Drofder2004 wrote:I can only guess your server has "developer 1".
And no, there is no fix other than recompiling the map.
No, I checked ingame and "developer" = "0".

I also don't have that DVAR set anywhere in my server config or a script file.
Then sorry but I do not know. Either way a map without spectator spawn should not be on any server - and author is fixing it.
There's alot of other maps with this issue:

mp_awe
mp_islands_v2
and more........

User avatar
Chucky.
CJ Fan
CJ Fan
Posts: 172
Joined: June 12th, 2012, 4:27 am
Location: UK
Contact:

Re: Switching to spectator causes laggs

Post by Chucky. » May 9th, 2013, 5:50 am

True...I have to recompile islands_v2 soon also because the Mantle on the first house (after spawn) is glitchy in some servers. I wont be uploading that here though. Maps done and dusted...Not like anyone liked it anyway.

Futile
Most of eBc maps
Hazard

Oh god, so many more. But of course, my map gets removed instantly :)

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: Switching to spectator causes laggs

Post by Rezil » May 9th, 2013, 11:16 am

Chucky. wrote:Oh god, so many more. But of course, my map gets removed instantly :)
Your map was the one that was reported to be causing these problems. Provide us a list of ALL the other maps that have this bug and we can remove them from the site as well.
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: Ahrefs [Bot] and 4 guests