[ANY] DeadChat

Release your plugins here!
User avatar
iPlayer
Developer
Posts: 590
Joined: Sat Nov 14, 2015 8:37 am
Location: Moscow
Contact:

[ANY] DeadChat

Postby iPlayer » Fri Apr 08, 2016 1:19 am

[ANY] DeadChat


Description
The plugin makes spec/dead chat messages visible to all players as long as they're not team-only; if a message from a dead player is team-only, only his team will see this message, but that includes alive team members too.

Installation
  1. Download the latest development snapshot of this plugin
  2. Extract sp-deadchat-master directory to your mod folder
  3. Add the following line to autoexec.cfg:
    sp plugin load deadchat

Tested Games:
[-] CS:S, Linux
[+] CS:S, Windows - works
[-] CS:GO, Linux
[+] CS:GO, Windows - crashes, see https://github.com/Source-Python-Dev-Team/Source.Python/issues/194
[+] TF2, Linux - works
[-] TF2, Windows
[-] Other games - not tested, but the plugin should support them
Last edited by iPlayer on Tue Apr 25, 2017 2:06 pm, edited 2 times in total.
Image /id/its_iPlayer
My plugins: Map Cycle • Killstreaker • DeadChat • Infinite Jumping • TripMines • AdPurge • Bot Damage • PLRBots • Entity AntiSpam

Hail, Companion. [...] Hands to yourself, sneak thief. Image
decompile
Senior Member
Posts: 416
Joined: Sat Oct 10, 2015 10:37 am
Location: Germany
Contact:

Postby decompile » Fri Apr 08, 2016 2:07 pm

Getting an import error in

Syntax: Select all

import info


and when I bypass it Ill get
saytext2_filter = server[SAYTEXT2_FILTER_IDENTIFIER].make_function(

ValueError: Could not find signature.


[SP] Plugin 'deadchat' was unable to be loaded.


CS:S Windows

Would this work for spectator team chat too?
User avatar
iPlayer
Developer
Posts: 590
Joined: Sat Nov 14, 2015 8:37 am
Location: Moscow
Contact:

Postby iPlayer » Fri Apr 08, 2016 3:52 pm

Yes, it will work for spec team chat this way: if it's a team spec message, only spectators will see it; but if it's a regular spec message, everyone will see it.

As for the signature, it's a Windows-specific problem, but I'll try to find a correct signature soon.
Image /id/its_iPlayer
My plugins: Map Cycle • Killstreaker • DeadChat • Infinite Jumping • TripMines • AdPurge • Bot Damage • PLRBots • Entity AntiSpam

Hail, Companion. [...] Hands to yourself, sneak thief. Image
User avatar
iPlayer
Developer
Posts: 590
Joined: Sat Nov 14, 2015 8:37 am
Location: Moscow
Contact:

Postby iPlayer » Fri Apr 08, 2016 6:37 pm

I think I got it working for CS:S on Windows. Please test it.
Image /id/its_iPlayer
My plugins: Map Cycle • Killstreaker • DeadChat • Infinite Jumping • TripMines • AdPurge • Bot Damage • PLRBots • Entity AntiSpam

Hail, Companion. [...] Hands to yourself, sneak thief. Image
decompile
Senior Member
Posts: 416
Joined: Sat Oct 10, 2015 10:37 am
Location: Germany
Contact:

Postby decompile » Fri Apr 08, 2016 7:57 pm

[SP] Successfully loaded plugin 'deadchat'.

Works!
decompile
Senior Member
Posts: 416
Joined: Sat Oct 10, 2015 10:37 am
Location: Germany
Contact:

Postby decompile » Fri Apr 08, 2016 8:25 pm

Loaded ingame getting

AttributeError: 'str' object has no attribute 'get_string_array' for every msg
User avatar
iPlayer
Developer
Posts: 590
Joined: Sat Nov 14, 2015 8:37 am
Location: Moscow
Contact:

Postby iPlayer » Fri Apr 08, 2016 9:22 pm

Fixed that.
You can update from GitHub or go to deadchat_css.py and on line 27 replace

Syntax: Select all

msg_name = args[3].get_string_array()

with

Syntax: Select all

msg_name = args[3]
Image /id/its_iPlayer
My plugins: Map Cycle • Killstreaker • DeadChat • Infinite Jumping • TripMines • AdPurge • Bot Damage • PLRBots • Entity AntiSpam

Hail, Companion. [...] Hands to yourself, sneak thief. Image
decompile
Senior Member
Posts: 416
Joined: Sat Oct 10, 2015 10:37 am
Location: Germany
Contact:

Re: [CS:S/CS:GO] DeadChat

Postby decompile » Fri May 20, 2016 2:58 am

CS:S Version Linux

When im in spec, my messages shows 2x times.

"say this is just a test msg"

Code: Select all

*ZUSCHAUER* decompile :  this is just a test msg
*ZUSCHAUER* decompile :  this is just a test msg
User avatar
iPlayer
Developer
Posts: 590
Joined: Sat Nov 14, 2015 8:37 am
Location: Moscow
Contact:

Re: [CS:S/CS:GO] DeadChat

Postby iPlayer » Fri May 20, 2016 5:23 pm

Can't reproduce on CS:S, Windows
Image

Can this be Linux-specific?

decompile, try adding such line

Code: Select all

recipient_filter.remove_all_players()

to 27th line of deadchat_css.py

It will look like this

Code: Select all

@PreHook(saytext2_filter)
def pre_saytext2_filter(args):
    recipient_filter = make_object(RecipientFilter, args[0])
    recipient_filter.remove_all_players()
    msg_name = args[3]


Don't forget to write back.
Image /id/its_iPlayer
My plugins: Map Cycle • Killstreaker • DeadChat • Infinite Jumping • TripMines • AdPurge • Bot Damage • PLRBots • Entity AntiSpam

Hail, Companion. [...] Hands to yourself, sneak thief. Image
User avatar
satoon101
Project Leader
Posts: 2697
Joined: Sat Jul 07, 2012 1:59 am

Re: [CS:S/CS:GO] DeadChat

Postby satoon101 » Fri May 20, 2016 5:39 pm

I know that under certain circumstances, EventScripts would have this issue when SourceMod was also installed. I don't fully remember what causes it or how to avoid it, sorry. This might not even be your issue, but I thought it worth mentioning.
Image
User avatar
iPlayer
Developer
Posts: 590
Joined: Sat Nov 14, 2015 8:37 am
Location: Moscow
Contact:

Re: [CS:S/CS:GO] DeadChat

Postby iPlayer » Fri May 20, 2016 5:46 pm

Thanks, Satoon

Decompile, make sure this problem is not present when DeadChat is unloaded
Image /id/its_iPlayer
My plugins: Map Cycle • Killstreaker • DeadChat • Infinite Jumping • TripMines • AdPurge • Bot Damage • PLRBots • Entity AntiSpam

Hail, Companion. [...] Hands to yourself, sneak thief. Image
decompile
Senior Member
Posts: 416
Joined: Sat Oct 10, 2015 10:37 am
Location: Germany
Contact:

Re: [CS:S/CS:GO] DeadChat

Postby decompile » Fri May 20, 2016 11:19 pm

When I add that line, no chat messages gets shown in chat.
And this problem is not present when deadcheat is unloaded
User avatar
satoon101
Project Leader
Posts: 2697
Joined: Sat Jul 07, 2012 1:59 am

Re: [CS:S/CS:GO] DeadChat

Postby satoon101 » Fri May 20, 2016 11:27 pm

Just checking to make sure, but from what my post refers to, do you have SourceMod on your server? If so, try disabling it to see if the problem persists.
Image
User avatar
iPlayer
Developer
Posts: 590
Joined: Sat Nov 14, 2015 8:37 am
Location: Moscow
Contact:

Re: [CS:S/CS:GO] DeadChat

Postby iPlayer » Sat May 21, 2016 10:18 am

decompile, try this

Syntax: Select all

@PreHook(saytext2_filter)
def pre_saytext2_filter(args):
recipient_filter = make_object(RecipientFilter, args[0])
msg_name = args[3]

if msg_name in ("Cstrike_Chat_AllDead", "Cstrike_Chat_AllSpec"):
recipient_filter.remove_all_players()
recipient_filter.add_all_players()

elif msg_name == "Cstrike_Chat_T_Dead":
recipient_filter.remove_all_players()
recipient_filter.update(PlayerIter('t'))

elif msg_name == "Cstrike_Chat_CT_Dead":
recipient_filter.remove_all_players()
recipient_filter.update(PlayerIter('ct'))
Last edited by L'In20Cible on Sat Jun 04, 2016 7:26 am, edited 1 time in total.
Reason: [code] → [python]
Image /id/its_iPlayer
My plugins: Map Cycle • Killstreaker • DeadChat • Infinite Jumping • TripMines • AdPurge • Bot Damage • PLRBots • Entity AntiSpam

Hail, Companion. [...] Hands to yourself, sneak thief. Image
User avatar
iPlayer
Developer
Posts: 590
Joined: Sat Nov 14, 2015 8:37 am
Location: Moscow
Contact:

Re: [ANY] DeadChat

Postby iPlayer » Tue Apr 25, 2017 2:06 pm

DeadChat update
Works perfectly on bitbuf games and successfully crashes on CS:GO (see Source-Python-Dev-Team/Source.Python#194)
Fixed a bug with dupe chat messages when HLTV is on the server (see Source-Python-Dev-Team/Source.Python#185)
Dedicated separate files to signatures / offsets
Updated signature for bitbuf games, made it more stable
Improved flexibility
General refactor and updates
Image /id/its_iPlayer
My plugins: Map Cycle • Killstreaker • DeadChat • Infinite Jumping • TripMines • AdPurge • Bot Damage • PLRBots • Entity AntiSpam

Hail, Companion. [...] Hands to yourself, sneak thief. Image

Return to “Plugin Releases”

Who is online

Users browsing this forum: No registered users and 27 guests