I am creating an autoexec.cfg which includes all my binds (aliens, humans, admin, messages, etc.) and I recently added a whole section involving the keypad keys. Previously to this addition, autoexec worked perfectly, however, since I added these 100 extra lines (brings to total line count to 450+, and 20kb), whenever I run autoexec, it comes up with "cbuf_insertText Overflow".
Trying to locate the error, I created a "keypad.cfg" file, containing all I did, exec it in the console and no problems there. I added some messages (echo) display at the start, end and middle sections, and all messages where displayed. I tried the binds ingame, and they worked fine. Pasted this into autoexec, and the same error appeared again.
Would anyone have a possible cause and even better a solution to this problem? And would it be possible to keep my autoexec file in one piece (instead of spreading it in admin.cfg, alien.cfg, human.cfg, etc.).
Thank you
Unfortunately, that error occurs when a script file exceeds the max character limit. It looks like you'll be forced to split your present config into a number of smaller one's in order to make it work.
Edit: A preliminary look into cmd.c, the file responsible for parsing user scripts, shows a value of 16384 as the char limit.
The char limit is correct, but there is afaik no limit to how many different configs can get called.
That's a shame, I really liked having all my autoexec.cfg file in one piece... anyway, I guess it will keep me occupied for a little while the changing of my autoexec.cfg file and the creation of other .cfg files
And thanks for the quick answer