I'm wondering how you go about making the the prog buffer longer than it already is. We tried simply setting it longer at some point in the code I'm not sure exactly where. We set it to be over 50 but when you got to the 51st line things got very wierd and the mud didn't want to support it. Where would you all suggest editing the code to increase the buffer lenght substantially?
Adding a longer prog buffer
Posted by IYG_Ryo on Wed 12 Jan 2005 01:20 AM — 3 posts, 15,246 views.
*nod* When we tried, strcpy couldn't handle that much it seemed. I heard there was a snippet out there with editor.c, but I'm not sure where to find that.
There are several places that are checked. The first is to increase the editor_data in mud.h to the required length per line and amount of lines. The rest, I beleive, is all in build.c, where there are repeated tests of line lengths and buffer size. These also need to be increased. Be aware, though, that there are alot of checks in there for a good reason, as there are alot of memory safety issues here, not overrunning bounds and such.