Raised This Month: $ Target: $400
 0% 

[L4D] sourcemod-1.2.0-hg2453 bug


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Dionys
Senior Member
Join Date: Sep 2008
Location: Terra, Russia
Old 12-13-2008 , 08:19   [L4D] sourcemod-1.2.0-hg2453 bug
Reply With Quote #1

l4d server in a mode versus
After updating sourcemod to the version 1.2.0-hg2453 there was a bug: in the end of mission the airport when all players automatically leave from a server, on a map bot survived, zombies and tank respawn. Survived and the tank are immortal. The server cannot replace a map. At manual change of a map - server to crush.
Code:
This dump file has an exception of interest stored in it.
The stored exception information can be accessed via.ecxr.
(f1c.f20): Access violation - code c0000005 (first/second chance not available)
eax=0e6e14e0 ebx=00000000 ecx=0000057c edx=0e6e14e8 esi=00000584 edi=0012ca04
eip=7c90eb94 esp=0012bba4 ebp=0012bbb4 iopl=0 nv up ei pl zr na pe nc
cs=001b ss=0023 ds=0023 es=0023 fs=003b gs=0000 efl=00000246
*** ERROR: Symbol file could not be found. Defaulted to export symbols for ntdll.dll - 
ntdll! KiFastSystemCallRet:
7c90eb94 c3 ret

Last edited by Dionys; 12-14-2008 at 09:28.
Dionys is offline
Dionys
Senior Member
Join Date: Sep 2008
Location: Terra, Russia
Old 12-14-2008 , 09:25   Re: [L4D] sourcemod-1.2.0-hg2453 bug
Reply With Quote #2

I have corrected a problem a plug-in

Code:
#pragma semicolon 1
#include <sourcemod>

new Handle:Allowed = INVALID_HANDLE;
new RoundEndCounter = 0;

public OnPluginStart()
{
    decl String:ModName[50];
    GetGameFolderName(ModName, sizeof(ModName));

    if(!StrEqual(ModName, "left4dead", false))
    {
        SetFailState("Use this Left 4 Dead only.");
    }

    HookEvent("round_end", Event_RoundEnd);

    Allowed = CreateConVar("sm_l4dvs_mapchangeforce", "1", "Enables Force changelevel when mission end.");

    // Execute the config file
    AutoExecConfig(true, "sm_l4dvs_mapchanger");
}

public OnMapStart()
{
    RoundEndCounter = 0;
}

public Action:Event_RoundEnd(Handle:event, const String:name[], bool:dontBroadcast)
{
    if(GetConVarInt(Allowed))
    {
        decl String:currentMap[64];
        GetCurrentMap(currentMap, 64);

        if (StrEqual(currentMap, "l4d_vs_farm05_cornfield") == true || StrEqual(currentMap, "l4d_vs_hospital05_rooftop") == true)
        {
            RoundEndCounter += 1;

            if (RoundEndCounter == 4 && StrEqual(currentMap, "l4d_vs_farm05_cornfield") == true)
            {
                for (new player=1; player<=GetMaxClients(); player++)
                {
                    if (IsClientInGame(player) && IsFakeClient(player))
                    {
                        ServerCommand("kick %s", player);
                    }
                }

                ServerCommand("changelevel %s", "l4d_vs_hospital01_apartment");
            }
            if (RoundEndCounter == 4 && StrEqual(currentMap, "l4d_vs_hospital05_rooftop") == true)
            {
                for (new player=1; player<=GetMaxClients(); player++)
                {
                    if (IsClientInGame(player) && IsFakeClient(player))
                    {
                        ServerCommand("kick %s", player);
                    }
                }

                ServerCommand("changelevel %s", "l4d_vs_farm01_hilltop");
            }
        }
    }
}

Last edited by Dionys; 12-14-2008 at 09:28.
Dionys is offline
Fyren
FyrenFyrenFyrenFyrenFyren FyrenFyrenFyrenFyrenFyren FyrenFyrenFyrenFyrenFyren FyrenFyrenFyrenFyrenFyren
Join Date: Feb 2106
Old 12-14-2008 , 19:12   Re: [L4D] sourcemod-1.2.0-hg2453 bug
Reply With Quote #3

I experienced something that sounds similar to what happened to you, only without a crash. I was using build 2441. I wasn't sure if it was SM's fault or not and it only happened once.

What happened to me was at the end of the game, everyone but me got returned to the lobby. I was left in game and it switched the teams again as if it were a third round on that map and the game acted very strangely (zombies kept streaming in targetting me instead of being spawned around waiting, when I got up to the top I couldn't hit the radio, a little while later the chopper showed up anyway and I got in). Then it switched me again to infected and filled the other side with bots, but all I had was a blank screen. After I left the server, we couldn't join again using sv_search_key until I restarted it. I tried manually changing maps, checking the master servers, and sending a heartbeat before that.

Last edited by Fyren; 12-14-2008 at 20:34. Reason: not sure if I actually unloaded everything that run
Fyren is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 00:17.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode