Skip to content

Set Transmit crashes on certain maps #264

@Velocity-plus

Description

@Velocity-plus

OS: Linux
Game: CS:GO

Example map that crashes: trikz_advanced_csgo
Download: https://gamebanana.com/maps/170864

IMPORTANT: Please copy the full output.
--------------------------------------------------------
Checksum      : 5a60a1bae2f27f62a5aa05e68b7c835b
Date          : 2018-11-20 22:24:42.974079
OS            : Linux-4.15.0-38-generic-x86_64-with-debian-buster-sid
Game          : csgo
SP version    : 667
Github commit : 4b4d6a886456e7f59793af7ca0a9d2f098683b78
Server plugins:
   00: Source.Python, (C) 2012-2018, Source.Python Team.
   01: Metamod:Source 1.10.7-dev
SP plugins:
   00: transmit
--------------------------------------------------------

Nothing else was loaded with this code, I made a new file called transmit.py with the only following code

from entities.hooks import EntityCondition
from entities.hooks import EntityPreHook
from messages import SayText2
from players.entity import Player
from entities import CheckTransmitInfo
from entities.entity import BaseEntity
from memory import make_object
from entities.helpers import index_from_edict

@EntityPreHook(EntityCondition.is_not_player, 'set_transmit')
def pre_set_transmit(args):
        entity = make_object(BaseEntity, args[0])
        edict = make_object(CheckTransmitInfo, args[1]).client

        player = Player(index_from_edict(edict))
        # We always transmit the player to himself. If we don't, bad things happen.
        if player.index == entity.index:
            return None

It doesn't matter what EntityCondition is or if I use PreHook instead of EntityPreHook AND it does not matter what is inside the transmit function as long as transmit is hooked. This code crashes my server in many maps, a few maps do work, but I think there must be something wrong with PreHook.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions