Coder Social home page Coder Social logo

Comments (18)

Earu avatar Earu commented on June 12, 2024

Thank you. Could you describe the problem in details? Also it seemed as you were only having that problem with messages sent by the server at one point, is it every message or just the server messages?

from easychat.

KekkyShmekky avatar KekkyShmekky commented on June 12, 2024

When I did "say testing" from the server console with the EasyChat's custom HUD disabled, I could see the console's text but not text from other players.

from easychat.

Earu avatar Earu commented on June 12, 2024

Do you have a list of addons you use on your server I can look into?
Because so far I'm unable to reproduce this problem
image

from easychat.

KekkyShmekky avatar KekkyShmekky commented on June 12, 2024

https://steamcommunity.com/sharedfiles/filedetails/?id=1648401086
Screen Shot 2021-12-07 at 7 49 09 AM

from easychat.

Earu avatar Earu commented on June 12, 2024

Have you checked "actchatcommands" ? Also have you tried to switch your server to another gamemode to be sure it wasnt the gamemode?

from easychat.

KekkyShmekky avatar KekkyShmekky commented on June 12, 2024

Trying that now

from easychat.

KekkyShmekky avatar KekkyShmekky commented on June 12, 2024

Hey so I actually just got around to removing actchatcommands, switching to Sandbox, and nothing worked

from easychat.

KekkyShmekky avatar KekkyShmekky commented on June 12, 2024

Event "OnPlayerChat", GAMEMODE,
in "lua/easychat/easychat.lua" (lines 2924 to 2966),
found in Workshop addon « EasyChat », returned:
Arg #1 = true

Ran a clientside conflict finder and it keeps returning true, which unless I'm mistaken in this case, suppresses the message.

from easychat.

Earu avatar Earu commented on June 12, 2024

Your conflict finder is finding a GAMEMODE function which is not a hook. The default return of OnPlayerChat is true which is the case here as expected. "OnPlayerChat" is a client function anyway so this appears to be unrelated.

from easychat.

Earu avatar Earu commented on June 12, 2024

Since I can't reproduce this problem on my end here's something that you can do:
Remove everything except your gamemode, check that it works.
If it does, add back each addon until it doesn't work anymore.

See message below for things that might help you find the culprit, or the solution to your problem.

from easychat.

Earu avatar Earu commented on June 12, 2024

@KekkyShmekky I was just thinking of something, your server is a dedicated one right? Because the server console won't print player messages in there if it's not dedicated.

You may want to look for things like:

  • "game.IsDedicated" overrides
  • "MsgC" overrides
  • a global called "_MsgC"
  • "PlayerCanSeePlayersChat" hooks
  • Make sure your messages are not all local, because console won't show local messages from players due to privacy concerns

from easychat.

KekkyShmekky avatar KekkyShmekky commented on June 12, 2024

Server is dedicated, messages were not local, PlayerCanSeePlayerChat returned this:

Event "PlayerCanSeePlayersChat", GAMEMODE,
 in "gamemodes/base/gamemode/player.lua" (lines 747 to 756),
 not found in Workshop addons, returned:
        Arg #1 = true

I printed MsgC() in console and it returned a blank line.
Some other addons use MsgC, but I doubt that should mean they're to blame.

I've also noticed the console messages print into a chat that's visually "behind" EasyChat. Not sure if this is intended.

from easychat.

Earu avatar Earu commented on June 12, 2024

I've also noticed the console messages print into a chat that's visually "behind" EasyChat. Not sure if this is intended.

The chat you're talking about is probably the default source chat, you can't really remove it, and it's useful if you want to disable easychat on your client.

I printed MsgC() in console and it returned a blank line.

MsgC is a function that allows you to make colorful messages in the console, so if you pass no arguments it will print a blank line for sure.

Some other addons use MsgC, but I doubt that should mean they're to blame.

I agree with you, using MsgC won't do anything particularly unexpected, however it would be useful to check if that function has been detoured by any addon you may have installed or the gamemode you're playing on.

Event "PlayerCanSeePlayersChat", GAMEMODE,
in "gamemodes/base/gamemode/player.lua" (lines 747 to 756),
not found in Workshop addons, returned:
     Arg #1 = true```

Could you past here the hook content of this?

from easychat.

KekkyShmekky avatar KekkyShmekky commented on June 12, 2024
function GM:PlayerCanSeePlayersChat( strText, bTeamOnly, pListener, pSpeaker )

	if ( bTeamOnly ) then
		if ( !IsValid( pSpeaker ) || !IsValid( pListener ) ) then return false end
		if ( pListener:Team() != pSpeaker:Team() ) then return false end
	end

	return true

end

from easychat.

Earu avatar Earu commented on June 12, 2024

Alright well this seems pretty normal. I don't have any other leads for now.

from easychat.

KekkyShmekky avatar KekkyShmekky commented on June 12, 2024

Actually I noticed you made a function local. Gonna test this on the next player that joins, unless you'd like to test it with me. My Discord is >KEKSQUAD#7054. IP is in the bio.

from easychat.

Earu avatar Earu commented on June 12, 2024

@KekkyShmekky Do you still need me to test this bug out with you, did my change fix your issue?

(Sorry for the late answer, I got busy)

from easychat.

Earu avatar Earu commented on June 12, 2024

Seeing the lack of response I'm gonna assume it's fixed, if it isn't please open a new issue.

from easychat.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.