Raised This Month: $ Target: $400
 0% 

Issue Error with store-loadout plugin


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
vodka00
Veteran Member
Join Date: Jun 2012
Location: Los Angeles
Old 07-13-2013 , 13:29   Error with store-loadout plugin
Reply With Quote #1

Hello,

I've noticed an error I am getting for the loadout plugin. Was wondering how I could fix that?

Code:
L 07/13/2013 - 02:02:16: [SM] Native "GetClientTeam" reported: Client 1 is not in game
L 07/13/2013 - 02:02:16: [SM] Displaying call stack trace for plugin "store\store-loadout.smx":
L 07/13/2013 - 02:02:16: [SM]   [0]  Line 301, C:\Users\Alon\Documents\GitHub\store\scripting\store-loadout.sp::FindOptimalLoadoutFor()
L 07/13/2013 - 02:02:16: [SM]   [1]  Line 182, C:\Users\Alon\Documents\GitHub\store\scripting\store-loadout.sp::Event_PlayerSpawn()
L 07/13/2013 - 02:02:16: [SM] Native "GetClientTeam" reported: Client 1 is not in game
L 07/13/2013 - 02:02:16: [SM] Displaying call stack trace for plugin "store\store-loadout.smx":
L 07/13/2013 - 02:02:16: [SM]   [0]  Line 301, C:\Users\Alon\Documents\GitHub\store\scripting\store-loadout.sp::FindOptimalLoadoutFor()
L 07/13/2013 - 02:02:16: [SM]   [1]  Line 182, C:\Users\Alon\Documents\GitHub\store\scripting\store-loadout.sp::Event_PlayerSpawn()
L 07/13/2013 - 02:03:33: SourceMod error session started
__________________
cw main:

cw speedruns:

Last edited by vodka00; 07-13-2013 at 13:29.
vodka00 is offline
shavit
AlliedModders Donor
Join Date: Dec 2011
Location: Israel
Old 07-13-2013 , 20:30   Re: Error with store-loadout plugin
Reply With Quote #2

Recompile store-loadout locally after editing the Event_PlayerSpawn function to this:
PHP Code:
public Event_PlayerSpawn(Handle:event, const String:name[], bool:dontBroadcast)
{
    new 
client GetClientOfUserId(GetEventInt(event"userid"));
    
    if(
client >= && client <= MaxClients && IsClientConnected(client) && IsClientInGame(client))
    {
        if(
g_clientLoadout[client] == || !IsLoadoutAvailableFor(clientg_clientLoadout[client]))
        {
            
FindOptimalLoadoutFor(client);
        }
    }

__________________
retired
shavit is offline
Maxunit
SourceMod Donor
Join Date: Jul 2005
Old 07-22-2013 , 10:32   Re: Error with store-loadout plugin
Reply With Quote #3

I tried the change suggested by shavit just right now and I don't know if it is still valid. For me, it resulted in my Server (Linux) to crash all the time in a loop.

If more info is needed (most likely), then please tell me, what kind of information.

Greetings,

Maxunit
Maxunit is offline
Send a message via ICQ to Maxunit Send a message via AIM to Maxunit Send a message via MSN to Maxunit
Arrow768
Veteran Member
Join Date: Nov 2011
Location: Austria
Old 07-22-2013 , 12:33   Re: Error with store-loadout plugin
Reply With Quote #4

You have compiled the plugin again ?
__________________
Arrow768 is offline
Maxunit
SourceMod Donor
Join Date: Jul 2005
Old 07-22-2013 , 14:43   Re: Error with store-loadout plugin
Reply With Quote #5

I applied the code change from shavit to store-loadout.sp and it compiled just fine. Sadly, the SMX crashes my server.

Maybe the plugin then has problems with it, that the Server spawns only Survivor and Infected AI (if no player joins)?

Here's a bit more info:

Server: Debian 6.0.7 64bit
Game: Left 4 Dead 2
Metamod Source Version: mmsource-1.10.0-hg849-linux
Sourcemod Version: sourcemod-1.6.0-hg3957-linux

Yep, I know I'm on unstable versions from SourceMM and SourceMod.

I will post a debug log from the SRCDS Output asap.

Last edited by Maxunit; 07-22-2013 at 14:44.
Maxunit is offline
Send a message via ICQ to Maxunit Send a message via AIM to Maxunit Send a message via MSN to Maxunit
Ms. Trooper
Senior Member
Join Date: Nov 2012
Old 02-15-2014 , 21:37   Re: Error with store-loadout plugin
Reply With Quote #6

I too am having this spammed in my console. It's really staring to bother me.
Ms. Trooper 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 16:03.


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