Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are
spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the
password reset link.
Due to spam on this forum, all posts now need moderator approval.
Entire forum
➜ SMAUG
➜ Running the server
➜ Adding a longer prog buffer
Adding a longer prog buffer
|
It is now over 60 days since the last post. This thread is closed.
Refresh page
Posted by
| IYG_Ryo
(2 posts) Bio
|
Date
| Wed 12 Jan 2005 01:20 AM (UTC) |
Message
| 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? | Top |
|
Posted by
| Zeno
USA (2,871 posts) Bio
|
Date
| Reply #1 on Wed 12 Jan 2005 02:13 AM (UTC) |
Message
| *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. |
Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org | Top |
|
Posted by
| Greven
Canada (835 posts) Bio
|
Date
| Reply #2 on Wed 12 Jan 2005 08:25 AM (UTC) |
Message
| 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. |
Nobody ever expects the spanish inquisition!
darkwarriors.net:4848
http://darkwarriors.net | Top |
|
The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).
To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.
11,497 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top