Forum

> > CS2D > Scripts > Character Limit (menu func)
Forums overviewCS2D overview Scripts overviewLog in to reply

English Character Limit (menu func)

7 replies
To the start Previous 1 Next To the start

old Character Limit (menu func)

Mami Tomoe
User Off Offline

Quote
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?

old Re: Character Limit (menu func)

Mami Tomoe
User Off Offline

Quote
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.

old Re: Character Limit (menu func)

Mami Tomoe
User Off Offline

Quote
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

old Re: Character Limit (menu func)

DC
Admin Off Offline

Quote
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).

old Re: Character Limit (menu func)

Mami Tomoe
User Off Offline

Quote
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.
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview