Results 1 to 10 of 35

Thread: Unidentified Server's Crash (Shutdown)

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #34
    Global Mossaderator Mitch's Avatar
    Join Date
    Nov 2012
    Posts
    654
    Thanks
    204
    Thanked 450 Times in 305 Posts
    The rate limit patch is not related to crashes. It is for preventing people from generating too much traffic on your server.

    I never found why the server crashes when you are seeing a few cmdCount > MAX_PACKET_USERCMDS in your log.
    How often does this crash happen and are you able to replicate the crash? Replicating the crash will make it easier to test and fix the issue.

    I don't think cmdCount > MAX_PACKET_USERCMDS (32) is the cause of the crash.
    https://github.com/id-Software/Quake...er/sv_client.c

    #0 0x080e983d traces back to:

    PHP Code:
    int __cdecl sub_80E97F0(int a1int a2)
    {
      
    int v3// [sp+Ch] [bp-Ch]@5
      
    char v4// [sp+17h] [bp-1h]@1

      
    v4 1;
      if ( !(
    unsigned __int8)sub_80E9758(a2) )
        
    v4 0;
      if ( !(
    unsigned __int8)sub_80D9E84(a1 1348a2) )
        
    v4 0;
      
    v3 sub_80E9270(a2); // weapon = getweapon(index)
      
    if ( !*(_DWORD *)(v3 132// = 0x080e983d = weapon offhandClass
        
    && *(_BYTE *)(a1 1365) != a2
        
    && *(_BYTE *)(a1 1366) != a2
        
    && *(_DWORD *)(v3 876) != a2 )
        
    v4 0;
      return (
    unsigned __int8)v4;

    PHP Code:
    v7 = &v8[28 i];
    sub_8068ADE(a2v11v6, &v8[28 i]);
    if ( !(
    unsigned __int8)sub_80E97F0(v5, (unsigned __int8)v7[8]) ) // probably player entity, weapon index 
    It could that for some reason the weapon index is out of range.
    One way to found out is to hook the sub_80E9270 call and print a message when the index is invalid.

  2. The Following User Says Thank You to Mitch For This Useful Post:

    Whiskas (11th April 2016)

Posting Permissions

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