Question..

Posted by Ember on Sat 09 Nov 2002 07:57 PM — 6 posts, 22,111 views.

#0
I was wondering how I would go about changing the character limit that is set on says and emotes and such..?
USA #1
You'd have to redefine maximum_string_length, or maybe smaug has it as maximum_input_length. I'd recommend against going above 256 chars as a practical limit, if they need more input than that at once they can figure out multiline on their own.
#2
'You'd have to redefine maximum_string_length, or maybe smaug has it as maximum_input_length.'

Where do I do that at?
Amended on Sun 10 Nov 2002 10:33 PM by Ember
USA #3
At this point, I'm guessing you aren't an experienced coder. I don't remember the file these are defined in off the top of my head and quite honestly I'm too lazy right now to go find it, but if you use grep or find to search for the variable name it should be very easy to find them. I would also repeat the much given advise of starting on something fairly simple to add, like a new spell, before moving into changing what can be rather fickle variables that can easily make a mud terminally unstable. Failing that, find an experienced coder and a good CVS setup for the sake of your own sanity and that of your players.
USA #4
i just happened to change this in LOD. in comm.c there is
a function call read_from_buffer.. about 10 lines in there is a line that says if (k >= 256)... change that 256 to like 512 or 1024.. not much larger then that unless you change the size of MAX_STRING_LENGTH or the other maxes in mud.h
USA #5
Even doing this you run the fairly high risk of setting the read value greater than MSL and still losing part of the text anyway. If there is a specific application you want 'unlimited' input length for, notes and helpfiles are where most ppl run into these issues, I'd suggest looking into a mudftp setup instead of jacking with the input limitations.