Results 1 to 6 of 6

Thread: Sys_Error: Com_BeginParseSession / G_ParseSpawnVars

  1. #1
    Private First Class RobsoN's Avatar
    Join Date
    Jan 2013
    Location
    /home/cod2/
    Posts
    230
    Thanks
    119
    Thanked 95 Times in 64 Posts

    Sys_Error: Com_BeginParseSession / G_ParseSpawnVars

    Hello, I got 2 weird errors today:

    PHP Code:
    Already parsing:
    0.
    1. player_data_new
    /user_12345
    2. player_data_new
    /user_12345
    3. player_data_new
    /user_12345
    4. player_data_new
    /user_12345
    5. player_data_new
    /user_12345
    6. player_data_new
    /user_12345
    7. player_data_new
    /user_12345
    8. player_data_new
    /user_12345
    9. player_data_new
    /user_12345
    10. player_data_new
    /user_12345
    11. player_data_new
    /user_12345
    12. player_data_new
    /user_12345
    13. player_data_new
    /user_12345
    14. player_data_new
    /user_12345
    Sys_Error
    Com_BeginParseSessionsession overflow trying to parse player_accounts/user_12345 
    and

    PHP Code:
    ERRORG_ParseSpawnVarsclosing brace without data 
    Does someone have a little idea about it? Thanks in advance.
    Last edited by RobsoN; 3rd January 2014 at 13:23.
    "Don't worry if your code doesn't work correctly - if everything worked, you would not work" ~Mosher's right

  2. #2
    Brigadier General
    Join Date
    Dec 2012
    Posts
    1,012
    Thanks
    440
    Thanked 171 Times in 132 Posts
    open the file user_12345 and post it here

  3. #3
    Private First Class RobsoN's Avatar
    Join Date
    Jan 2013
    Location
    /home/cod2/
    Posts
    230
    Thanks
    119
    Thanked 95 Times in 64 Posts
    It's a directory with player stats. But the script didn't show which file it was.
    "Don't worry if your code doesn't work correctly - if everything worked, you would not work" ~Mosher's right

  4. #4
    Brigadier General
    Join Date
    Dec 2012
    Posts
    1,012
    Thanks
    440
    Thanked 171 Times in 132 Posts
    session overflow trying to parse player_accounts/user_12345 ?
    It says its file user_12345

    Quote from Tally
    "G_ParseSpawnVars parses a brace bounded set of key value pairs out of the
    level's entity strings into level.spawnVars[] (but does not actually spawn an entity). When gamestate is exceeded, or nearly exceeded, the bounded set of values embraced with curly braces gets lost, and hence the error."

    And this is from q3 engine
    PHP Code:
    00504 /*
    00505 ====================
    00506 G_ParseSpawnVars
    00507 
    00508 Parses a brace bounded set of key / value pairs out of the
    00509 level's entity strings into level.spawnVars[]
    00510 
    00511 This does not actually spawn an entity.
    00512 ====================
    00513 */
    00514 qboolean G_ParseSpawnVarsvoid ) {
    00515     char        keyname[MAX_TOKEN_CHARS];
    00516     char        com_token[MAX_TOKEN_CHARS];
    00517 
    00518     level.numSpawnVars 0;
    00519     
    level.numSpawnVarChars 0;
    00520 
    00521     
    // parse the opening brace
    00522     if ( !trap_GetEntityTokencom_tokensizeofcom_token ) ) ) {
    00523         // end of spawn string
    00524         return qfalse;
    00525     }
    00526     if ( com_token[0] != '{' ) {
    00527         G_Error"G_ParseSpawnVars: found %s when expecting {",com_token );
    00528     }
    00529 
    00530     // go through all the key / value pairs
    00531     while ( ) {   
    00532         // parse key
    00533         if ( !trap_GetEntityTokenkeynamesizeofkeyname ) ) ) {
    00534             G_Error"G_ParseSpawnVars: EOF without closing brace" );
    00535         }
    00536 
    00537         
    if ( keyname[0] == '}' ) {
    00538             break;
    00539         }
    00540         
    00541         
    // parse value  
    00542         if ( !trap_GetEntityTokencom_tokensizeofcom_token ) ) ) {
    00543             G_Error"G_ParseSpawnVars: EOF without closing brace" );
    00544         }
    00545 
    00546         
    if ( com_token[0] == '}' ) {
    00547             G_Error"G_ParseSpawnVars: closing brace without data" );
    00548         }
    00549         if ( 
    level.numSpawnVars == MAX_SPAWN_VARS ) {
    00550             G_Error"G_ParseSpawnVars: MAX_SPAWN_VARS" );
    00551         }
    00552         level.spawnVarslevel.numSpawnVars ][0] = G_AddSpawnVarTokenkeyname );
    00553         level.spawnVarslevel.numSpawnVars ][1] = G_AddSpawnVarTokencom_token );
    00554         level.numSpawnVars++;
    00555     }
    00556 
    00557     
    return qtrue;
    00558 } 

  5. The Following 2 Users Say Thank You to Ni3ls For This Useful Post:

    kung foo man (3rd January 2014),smect@ (3rd January 2014)

  6. #5
    Brigadier General
    Join Date
    Oct 2012
    Posts
    994
    Thanks
    20
    Thanked 588 Times in 388 Posts
    Actually, the error in this case is:

    Code:
    Com_BeginParseSession: session overflow trying to parse [data name]
    This is a variant of a server command overflow. It is caused by too many vars being set on players at the same time, and is exacerbated by the server trying to parse other client data sets at the same time.

    SOLUTION:

    1. Lower the number of player slots;
    2. Try not to set too many vars on players when they are connecting. Move some of it to other places like onJoinedTeam();

  7. The Following 3 Users Say Thank You to Tally For This Useful Post:

    kung foo man (3rd January 2014),RobsoN (3rd January 2014),smect@ (4th January 2014)

  8. #6
    Private Paho's Avatar
    Join Date
    Feb 2014
    Location
    Russia
    Posts
    101
    Thanks
    43
    Thanked 48 Times in 37 Posts
    As for Sys_Error: Couldn't reopen /root/cod2/main/iw_13.iwd
    > [PLUGIN UNLOADED]?
    P.S.: on this server crash falls every fortnight(two weeks).

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •