Coder Social home page Coder Social logo

"False" together with the text about easychat HOT 9 CLOSED

earu avatar earu commented on June 1, 2024
"False" together with the text

from easychat.

Comments (9)

Earu avatar Earu commented on June 1, 2024 1

Hey @asupreme1337 thank you for the report, do you possibly have any other addons that uses the chat installed?

Oh and knowing the gamemode would also help!

from easychat.

Earu avatar Earu commented on June 1, 2024 1

So I've found the bug, it's in the gamemode you're using, specifically here: https://github.com/NotMyWing/GarrysModAmongUs/blob/3357ce9ee2ae4b963918d16416a8540ae4fcd80b/src/gamemodes/amongus/gamemode/cl_init.moon#L246

This line is responsible for dictating the color displayed in the chat except well if you're alive it stays a boolean and not a color hence the reason as to why every message you send is prepended by false when you are alive.

from easychat.

asupreme1337 avatar asupreme1337 commented on June 1, 2024

No other chat addons were installed.

My server uses a new gamemode - Among Us. I do not argue, perhaps it can create such an error, but why then it is in the general chat and with your addon... In a normal chat, everything is fine. I also looked at the code of this gamemod, but I didn't find any points that could conflict with your chat.

GM: https://steamcommunity.com/workshop/filedetails/?id=2308955070

from easychat.

Earu avatar Earu commented on June 1, 2024

Tested in DarkRP, sandbox & murder. It does seem to be from the gamemode. I'm going to look into it

from easychat.

asupreme1337 avatar asupreme1337 commented on June 1, 2024

Oh, that would be great. Thank you. I will wait for the fix.

from easychat.

Earu avatar Earu commented on June 1, 2024

If you have lua access on your server add this line to run on your clients to fix the problem temporarily:

hook.Remove("OnPlayerChat", "NMW AU DeadSay")

from easychat.

asupreme1337 avatar asupreme1337 commented on June 1, 2024

Maybe then it would be better to just edit this code a little to set the color for live players? This game mod is fully present on my server and I can edit it.
I understand that this is not your job (to dig into this code), but if you can suggest a little fix for this, then it will be great. 😄

from easychat.

Earu avatar Earu commented on June 1, 2024

Unfortunately this gamemode is written in a language that compiles to lua (moonscript), and the source code on github only contains the moonscript files, I have no idea what the compiled code would look like but I have my suspicions that the file should be called the same so look for something called cl_init.lua. In that file look for the hook called NMW AU DeadSay and try replacing this line:

chat.AddText(prefixColor, prefixText, ply:GetPlayerColor():ToColor() or ply:GetColor(), ply:Nick(), Color(255, 255, 255), ": ", ply:IsDead() and Color(220, 220, 220), text)

With this one:

chat.AddText(prefixColor, prefixText, ply:GetPlayerColor():ToColor() or ply:GetColor(), ply:Nick(), Color(255, 255, 255), ": ", ply:IsDead() and Color(220, 220, 220) or Color(255, 255, 255), text)

Hope this help, I'm sorry to say I can't help much more, you could try opening an issue on their repo or leave a comment on their workshop page.

from easychat.

asupreme1337 avatar asupreme1337 commented on June 1, 2024

Yes, it really helped me. Thank you very much!

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.