English Character Limit (menu func)

7 replies
Goto Page
To the start Previous 1 Next To the start
17.12.21 12:50:34 pm
Up
Mami Tomoe
User
Offline Off
Specifically for the cs2d lua cmd menu function, is there a character limit?

I have a very detailed menu and I've noticed that if I add more text to it, the latter buttons would get omitted.

Is there a character limit? How does it work? Is there a way around it? Will it be fixed if it is an issue?
Look at me standing, here on my own again
17.12.21 03:19:15 pm
Up
SQ
Moderator
Offline Off
are you using UTF support or ASCII input?
17.12.21 03:21:54 pm
Up
Mami Tomoe
User
Offline Off
The regular function, it's old code, I didn't touch/update my framework.

I don't know anything about the UTF-8 stuff.

I can give you a sample function that you can test, but I'm unavailable to do so at the moment.
Look at me standing, here on my own again
17.12.21 04:19:21 pm
Up
SQ
Moderator
Offline Off
There might be 255 character limit.
...but there might be the limit in the drawing function itself.
18.12.21 03:34:16 am
Up
thx
User
Offline Off
@user Mami Tomoe: what support are you using?
sad
18.12.21 04:44:54 pm
Up
Mami Tomoe
User
Offline Off
user SQ has written:
There might be 255 character limit.
...but there might be the limit in the drawing function itself.


Could you check, please?
I spent about an hour trying to debug the cause of this and ended up realising that the problem comes from CS2D.

And now I'd like to know if I should reduce the amount of detail in my menus or keep it as is and await for an update.
edited 1×, last 18.12.21 05:13:17 pm
Look at me standing, here on my own again
18.12.21 05:35:36 pm
Up
DC
Admin
Offline Off
The character limit is 400 there. That's for networking reasons (MTU etc). This most likely won't be raised because it would be a lot of work to do so.

I updated the documentation accordingly (cs2d lua cmd menu).
www.UnrealSoftware.de | www.CS2D.com | www.CarnageContest.com | Use the forum & avoid PMs!
18.12.21 06:28:26 pm
Up
Mami Tomoe
User
Offline Off
I understand.
A bit odd since I didn't exceed the logical button length on my menu, so even though wide menus are supported, you can't actually use the entire length of the button on every button (I barely reached half).

Thank you for the quick response.
Look at me standing, here on my own again
To the start Previous 1 Next To the start