Earu / EasyChat

A modular Garry's Mod chat addon for both users and developers. (EOL 2025)
https://steamcommunity.com/sharedfiles/filedetails/?id=1182471500
GNU General Public License v3.0
90 stars 31 forks source link

Error with starfall #79

Closed licen150 closed 2 years ago

licen150 commented 2 years ago

Hello, when i trying to spawn a starfall chip he spawns but in console i see this error: addons/easychat/lua/easychat/easychat.lua:755: Regex is too complex! 2 ext search length too long (500 max) Starfall HUD enabled by licen777. NOTE: Type 'sf_hud_unlink' in the console to disconnect yourself from all HUDs.

Can you fix this please?

Cynosphere commented 2 years ago

Feels like an addon conflict with most likely some shitty "library" addon unrelated to EasyChat and StarfallEx overwriting string.find, because that error is not something seen from the game normally, as Lua patterns and regular expression are not the same thing.

Would be nice to also have a way to replicate.

licen150 commented 2 years ago

Install StarfallEX and EasyChat and and I think you can repeat

licen150 commented 2 years ago

Also, follow-up messages from Starfall are sent. It is with the first message that something is wrong

Earu commented 2 years ago

I still won't be able to reproduce it because starfall is a lua sandbox, so I need the lua code that causes this to replicate it.

Earu commented 2 years ago

Also follow-up: Regex is too complex! is not an error from either EasyChat or the vanilla game, so I can say first-hand that its very unlikely that EasyChat has anything to do with this.

licen150 commented 2 years ago

For some reason he cannot send this message: "Starfall HUD enabled by licen777. NOTE: Type 'sf_hud_unlink' in the console to disconnect yourself from all HUDs." Here is the lua code: https://pastebin.com/F5n12QF1

Earu commented 2 years ago

Who's "he" and also I dont see anything related to adding text to the chat in the code you sent?

licen150 commented 2 years ago

StarFallEX trying to send first message about StarFall HUD but he cant

Earu commented 2 years ago

I ran

local owner = LocalPlayer()
local enabledBy = owner and owner:IsValid() and (" by ".. owner:Nick()) or ""
LocalPlayer():ChatPrint("Starfall HUD enabled"..enabledBy..". NOTE: Type 'sf_hud_unlink' in the console to disconnect yourself from all HUDs.")

Which is the equivalent of what is being ran when starfall runs the hud thing you have there. There is no error at all when I run it. However when I use a starfall chip with your code it does happen.

Either way the problem isnt coming from EasyChat.

licen150 commented 2 years ago

https://youtu.be/xkv7QWKhae0

Earu commented 2 years ago

This is not an EasyChat problem, it's a starfall problem at most. Their repository is there: https://github.com/thegrb93/StarfallEx