Raised This Month: $433 Target: $400

Server crashing from GameRules_GetPropFloat?

Post New Thread Reply   
Thread Tools Display Modes
Author Message
Join Date: Dec 2018
Old 03-02-2020 , 21:37   Server crashing from GameRules_GetPropFloat?
Reply With Quote #1

This is for TF2, I have a plugin that i'm making to check the respawnwavetime for each team on round start and on player death (and change it if some conditions are met). Every now and then (usually once a day) I get a server crash from it, it looks like its always on round start.

I have an accelerator log if helps: https://crash.limetech.org/f5nlq5veivgn

Example of what im trying to do.
#define OWAVE 6.0

public void Event_Round_Start(Event event, const char[] name, bool dontBroadcast)
    if (changeplayerspawntime) {
        float RedTime = Get_Time(2);
        float BlueTime = Get_Time(3);
        Set_Time(2, OWAVE + RedTime);
        Set_Time(3, OWAVE + BlueTime);

public void Set_Time(int team, float wave)
    GameRules_SetPropFloat("m_TeamRespawnWaveTimes", wave, team, true);

stock float Get_Time(int team)
    return GameRules_GetPropFloat("m_TeamRespawnWaveTimes", team);
foon is online now
Veteran Member
Join Date: Aug 2014
Old 03-02-2020 , 23:59   Re: Server crashing from GameRules_GetPropFloat?
Reply With Quote #2

This may be related to alliedmodders/sourcemod#1089.

The fix is merged into 1.11; you may need to update to the developer branch, hope / wait for it to be backported into stable, or cherry-pick the commit and build SourceMod yourself.
I do TF2, TF2 servers, and TF2 plugins.
I don't do DMs over Discord -- PM me on the forums regarding inquiries.
AlliedModders Releases / Github / TF2 Server / Donate (BTC / BCH / coffee)

Last edited by nosoop; 03-03-2020 at 00:06.
nosoop is offline

Thread Tools
Display Modes

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 13:00.

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