TeamUlysses / ulib

ULib: A Lua library for more rapid development on Garry's Mod servers
http://ulyssesmod.net
Other
104 stars 55 forks source link

Workshop Version: umsg error #21

Closed robotboy655 closed 3 years ago

robotboy655 commented 8 years ago
Warning: Usermessage was larger than 256 bytes. This will cause problems.
Error sending usermessage - too large (ulib_repChangeC)Warning: Unhandled usermessage ''

I am assuming it is about ulib_repChangeCvar: https://github.com/TeamUlysses/ulib/blob/81044e2a65790d264a45e9bbc54cbe1cb615b64c/lua/ulib/server/util.lua#L240-L245

Why does ULib still use user messages is beyond me.

This error happens with only ulib and ulx enabled.

Nayruden commented 8 years ago

Please share your configuration file

robotboy655 commented 8 years ago

I did not change any configuration(s). Everything is on its default settings, all I did was subscribe to the mods on the Steam Workshop - ULX and ULib. If you insist, tell where do I find it.

Nayruden commented 8 years ago

Huh, the error is saying one of the ULX/ULib cvars is over 255 bytes, which is a known issue, but there's not really any good reason for such a large cvar value size (and definitely not any of the defaults). I can't look up the exact path right now, but I think the file is at data/ulx/config.txt.

robotboy655 commented 8 years ago

http://pastebin.com/raw/KEnCzDGB

Here are the settings. The issue is not that a convar is too large, it is that the usermessage contains > 255bytes of data. You write like 3 strings into the usermessage.

Switch to net messages. You should've done this for everything years ago.

JoshPiper commented 3 years ago

This was fixed by @zpetty33 in https://github.com/TeamUlysses/ulib/commit/09c4e751a1deaec6202c7c5c23a8b11205720956.